类的使用
io.agentscope.core.message.Msg
使用Msg的程序包
程序包
说明
-
io.agentscope.core中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core中的方法修饰符和类型方法说明reactor.core.publisher.Mono<Msg> ReActAgent.call(String text, RuntimeContext context) Calls the agent with a plain text input and per-callRuntimeContext.reactor.core.publisher.Mono<Msg> ReActAgent.call(String text, Class<?> structuredOutputClass, RuntimeContext context) Calls the agent with a plain text input, structured output class, and per-callRuntimeContext.reactor.core.publisher.Mono<Msg> ReActAgent.call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode outputSchema, RuntimeContext context) reactor.core.publisher.Mono<Msg> ReActAgent.call(List<Msg> msgs, RuntimeContext context) Calls the agent with a per-callRuntimeContext(metadata for hooks and tools, not persisted).reactor.core.publisher.Mono<Msg> ReActAgent.call(List<Msg> msgs, Class<?> structuredOutputClass, RuntimeContext context) protected reactor.core.publisher.Mono<Msg> ReActAgent.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Overrides the base-class hook so that everycall()variant — including structured output and context-bearing overloads — runs through the sameReActAgent.buildAgentStream(java.util.List<io.agentscope.core.message.Msg>, io.agentscope.core.agent.RuntimeContext, java.util.function.Function<java.util.List<io.agentscope.core.message.Msg>, reactor.core.publisher.Mono<io.agentscope.core.message.Msg>>)core asstreamEvents().protected reactor.core.publisher.Mono<Msg> protected reactor.core.publisher.Mono<Msg> protected reactor.core.publisher.Mono<Msg> protected reactor.core.publisher.Mono<Msg> ReActAgent.handleInterrupt(InterruptContext context, Msg... originalArgs) protected reactor.core.publisher.Mono<Msg> ReActAgent.seedSystemMsg(Object callExectution) 参数类型为Msg的io.agentscope.core中的方法修饰符和类型方法说明protected voidReActAgent.consumeSystemMsgAfterPreCall(Msg systemMsg, Object callScope) protected reactor.core.publisher.Mono<Void> protected reactor.core.publisher.Mono<Msg> ReActAgent.handleInterrupt(InterruptContext context, Msg... originalArgs) voidReActAgent.interrupt(RuntimeContext ctx, Msg msg) Interrupts the in-flight call identified by the givenRuntimeContextwith an associated user message.void已过时。voidInterrupts the in-flight call for a specific(userId, sessionId)session with an associated user message.reactor.core.publisher.Flux<AgentEvent> ReActAgent.streamEvents(Msg msg) Stream fine-grainedAgentEvents for a single input message.reactor.core.publisher.Flux<AgentEvent> ReActAgent.streamEvents(Msg msg, RuntimeContext context) Stream fine-grainedAgentEvents for a single input message with a caller-suppliedRuntimeContext.类型变量类型为Msg的io.agentscope.core中的方法参数修饰符和类型方法说明protected ObjectReActAgent.beforeAgentExecution(List<Msg> msgs, RuntimeContext rc) reactor.core.publisher.Mono<Msg> ReActAgent.call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode outputSchema, RuntimeContext context) reactor.core.publisher.Mono<Msg> ReActAgent.call(List<Msg> msgs, RuntimeContext context) Calls the agent with a per-callRuntimeContext(metadata for hooks and tools, not persisted).reactor.core.publisher.Mono<Msg> ReActAgent.call(List<Msg> msgs, Class<?> structuredOutputClass, RuntimeContext context) protected reactor.core.publisher.Mono<Msg> ReActAgent.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Overrides the base-class hook so that everycall()variant — including structured output and context-bearing overloads — runs through the sameReActAgent.buildAgentStream(java.util.List<io.agentscope.core.message.Msg>, io.agentscope.core.agent.RuntimeContext, java.util.function.Function<java.util.List<io.agentscope.core.message.Msg>, reactor.core.publisher.Mono<io.agentscope.core.message.Msg>>)core asstreamEvents().protected reactor.core.publisher.Mono<Msg> ReActAgent.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Overrides the base-class hook so that everycall()variant — including structured output and context-bearing overloads — runs through the sameReActAgent.buildAgentStream(java.util.List<io.agentscope.core.message.Msg>, io.agentscope.core.agent.RuntimeContext, java.util.function.Function<java.util.List<io.agentscope.core.message.Msg>, reactor.core.publisher.Mono<io.agentscope.core.message.Msg>>)core asstreamEvents().protected reactor.core.publisher.Mono<Msg> ReActAgent.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Overrides the base-class hook so that everycall()variant — including structured output and context-bearing overloads — runs through the sameReActAgent.buildAgentStream(java.util.List<io.agentscope.core.message.Msg>, io.agentscope.core.agent.RuntimeContext, java.util.function.Function<java.util.List<io.agentscope.core.message.Msg>, reactor.core.publisher.Mono<io.agentscope.core.message.Msg>>)core asstreamEvents().protected reactor.core.publisher.Mono<Msg> protected reactor.core.publisher.Mono<Msg> protected reactor.core.publisher.Mono<Msg> reactor.core.publisher.Flux<Event> ReActAgent.stream(List<Msg> msgs, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema, RuntimeContext context) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> ReActAgent.stream(List<Msg> msgs, StreamOptions options, RuntimeContext context) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> ReActAgent.stream(List<Msg> msgs, StreamOptions options, Class<?> structuredModel, RuntimeContext context) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<AgentEvent> ReActAgent.streamEvents(List<Msg> msgs) Stream fine-grainedAgentEvents from the full agent lifecycle.reactor.core.publisher.Flux<AgentEvent> ReActAgent.streamEvents(List<Msg> msgs, RuntimeContext context) Stream fine-grainedAgentEvents with a caller-suppliedRuntimeContext. -
io.agentscope.core.agent中Msg的使用
返回Msg的io.agentscope.core.agent中的方法返回变量类型为Msg的类型的io.agentscope.core.agent中的方法修饰符和类型方法说明final reactor.core.publisher.Mono<Msg> Process a list of input messages and generate a response with hook execution.final reactor.core.publisher.Mono<Msg> Process multiple input messages and generate structured output with hook execution.final reactor.core.publisher.Mono<Msg> Process multiple input messages and generate structured output with hook execution.default reactor.core.publisher.Mono<Msg> CallableAgent.call()Continue generation based on current state without adding new input.default reactor.core.publisher.Mono<Msg> CallableAgent.call(com.fasterxml.jackson.databind.JsonNode schema) Continue generation with JSON schema based on current state.default reactor.core.publisher.Mono<Msg> Process a single input message and generate a response.default reactor.core.publisher.Mono<Msg> Process multiple input messages (varargs) and generate a response.default reactor.core.publisher.Mono<Msg> Process a single input message with JSON schema and generate a response.default reactor.core.publisher.Mono<Msg> Process a single input message with structured model and generate a response.default reactor.core.publisher.Mono<Msg> Continue generation with structured model based on current state.default reactor.core.publisher.Mono<Msg> Process a plain text input and generate a response.default reactor.core.publisher.Mono<Msg> Process a plain text input with JSON schema and generate a response.default reactor.core.publisher.Mono<Msg> Process a plain text input with structured model and generate a response.reactor.core.publisher.Mono<Msg> Process a list of input messages and generate a response.reactor.core.publisher.Mono<Msg> Process multiple input messages with JSON schema and generate a response.reactor.core.publisher.Mono<Msg> Process multiple input messages with structured model and generate a response.protected reactor.core.publisher.Mono<Msg> AgentBase.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Extension point called by everycall()overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. theonAgentchain inReActAgent).protected abstract reactor.core.publisher.Mono<Msg> Internal implementation for processing multiple input messages.protected reactor.core.publisher.Mono<Msg> Internal implementation for processing multiple messages with structured output.protected reactor.core.publisher.Mono<Msg> Internal implementation for processing multiple messages with structured output.protected abstract reactor.core.publisher.Mono<Msg> AgentBase.handleInterrupt(InterruptContext context, Msg... originalArgs) Handle an interruption that occurred during execution.protected reactor.core.publisher.Mono<Msg> AgentBase.runLifecycle(List<Msg> msgs, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Sharedcall()lifecycle: acquire execution, then (insidedeferContextualso the caller-suppliedRuntimeContextis read per-subscription) runAgentBase.beforeAgentExecution(List, RuntimeContext)(which returns this call's per-call scope), carry that scope on the Reactor Context, and run the preCall → doCall → postCall chain with error handling, releasing execution on terminate.protected reactor.core.publisher.Mono<Msg> AgentBase.seedSystemMsg(Object callScope) Returns the initial system message to seed intoPreCallEventbefore hooks run.参数类型为Msg的io.agentscope.core.agent中的方法修饰符和类型方法说明default reactor.core.publisher.Mono<Msg> Process a single input message and generate a response.default reactor.core.publisher.Mono<Msg> Process multiple input messages (varargs) and generate a response.default reactor.core.publisher.Mono<Msg> Process a single input message with JSON schema and generate a response.default reactor.core.publisher.Mono<Msg> Process a single input message with structured model and generate a response.protected voidAgentBase.consumeSystemMsgAfterPreCall(Msg systemMsg, Object callScope) Called afterPreCallEventhooks have run, with the final system message value.protected reactor.core.publisher.Mono<Void> Observe a message without generating a reply.protected abstract reactor.core.publisher.Mono<Msg> AgentBase.handleInterrupt(InterruptContext context, Msg... originalArgs) Handle an interruption that occurred during execution.voidInterrupt the current agent execution with a user message.void已过时。Subclasses should implement per-session interrupt via RuntimeContext.final reactor.core.publisher.Mono<Void> Observe a single message without generating a reply.reactor.core.publisher.Mono<Void> Observe a single message without generating a reply.default reactor.core.publisher.Flux<Event> 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(Msg msg, StreamOptions options) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(Msg msg, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(Msg msg, StreamOptions options, Class<?> structuredModel) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.类型变量类型为Msg的io.agentscope.core.agent中的方法参数修饰符和类型方法说明protected ObjectAgentBase.beforeAgentExecution(List<Msg> msgs, RuntimeContext rc) Invoked at the start of acall/ stream-backed call, afterAgentBase.acquireExecution()and before any hooks.final reactor.core.publisher.Mono<Msg> Process a list of input messages and generate a response with hook execution.final reactor.core.publisher.Mono<Msg> Process multiple input messages and generate structured output with hook execution.final reactor.core.publisher.Mono<Msg> Process multiple input messages and generate structured output with hook execution.reactor.core.publisher.Mono<Msg> Process a list of input messages and generate a response.reactor.core.publisher.Mono<Msg> Process multiple input messages with JSON schema and generate a response.reactor.core.publisher.Mono<Msg> Process multiple input messages with structured model and generate a response.protected reactor.core.publisher.Mono<Msg> AgentBase.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Extension point called by everycall()overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. theonAgentchain inReActAgent).protected reactor.core.publisher.Mono<Msg> AgentBase.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Extension point called by everycall()overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. theonAgentchain inReActAgent).protected reactor.core.publisher.Mono<Msg> AgentBase.callInternal(List<Msg> msgs, RuntimeContext context, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Extension point called by everycall()overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. theonAgentchain inReActAgent).protected abstract reactor.core.publisher.Mono<Msg> Internal implementation for processing multiple input messages.protected reactor.core.publisher.Mono<Msg> Internal implementation for processing multiple messages with structured output.protected reactor.core.publisher.Mono<Msg> Internal implementation for processing multiple messages with structured output.final reactor.core.publisher.Mono<Void> Observe multiple messages without generating a reply.reactor.core.publisher.Mono<Void> Observe multiple messages without generating a reply.protected reactor.core.publisher.Mono<Msg> AgentBase.runLifecycle(List<Msg> msgs, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Sharedcall()lifecycle: acquire execution, then (insidedeferContextualso the caller-suppliedRuntimeContextis read per-subscription) runAgentBase.beforeAgentExecution(List, RuntimeContext)(which returns this call's per-call scope), carry that scope on the Reactor Context, and run the preCall → doCall → postCall chain with error handling, releasing execution on terminate.protected reactor.core.publisher.Mono<Msg> AgentBase.runLifecycle(List<Msg> msgs, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Sharedcall()lifecycle: acquire execution, then (insidedeferContextualso the caller-suppliedRuntimeContextis read per-subscription) runAgentBase.beforeAgentExecution(List, RuntimeContext)(which returns this call's per-call scope), carry that scope on the Reactor Context, and run the preCall → doCall → postCall chain with error handling, releasing execution on terminate.protected reactor.core.publisher.Mono<Msg> AgentBase.runLifecycle(List<Msg> msgs, Function<List<Msg>, reactor.core.publisher.Mono<Msg>> doCallFn) Sharedcall()lifecycle: acquire execution, then (insidedeferContextualso the caller-suppliedRuntimeContextis read per-subscription) runAgentBase.beforeAgentExecution(List, RuntimeContext)(which returns this call's per-call scope), carry that scope on the Reactor Context, and run the preCall → doCall → postCall chain with error handling, releasing execution on terminate.reactor.core.publisher.Flux<Event> AgentBase.stream(List<Msg> msgs, StreamOptions options) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> AgentBase.stream(List<Msg> msgs, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> AgentBase.stream(List<Msg> msgs, StreamOptions options, Class<?> structuredModel) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.default reactor.core.publisher.Flux<Event> 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options, com.fasterxml.jackson.databind.JsonNode schema) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.default reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options, RuntimeContext context) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.reactor.core.publisher.Flux<Event> StreamableAgent.stream(List<Msg> msgs, StreamOptions options, Class<?> structuredModel) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 2.0.0, for removal.参数类型为Msg的io.agentscope.core.agent中的构造器 -
io.agentscope.core.agent.user中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core.agent.user中的方法修饰符和类型方法说明protected reactor.core.publisher.Mono<Msg> UserAgent.handleInterrupt(InterruptContext context, Msg... originalArgs) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Handle interrupt scenarios.参数类型为Msg的io.agentscope.core.agent.user中的方法修饰符和类型方法说明protected reactor.core.publisher.Mono<Msg> UserAgent.handleInterrupt(InterruptContext context, Msg... originalArgs) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Handle interrupt scenarios.类型变量类型为Msg的io.agentscope.core.agent.user中的方法参数修饰符和类型方法说明reactor.core.publisher.Mono<UserInputData> StreamUserInput.handleInput(String agentId, String agentName, List<Msg> contextMessages, Class<?> structuredModel) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Handle user input from the configured input stream.reactor.core.publisher.Mono<UserInputData> UserInputBase.handleInput(String agentId, String agentName, List<Msg> contextMessages, Class<?> structuredModel) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Handle user input and return the input data. -
io.agentscope.core.event中Msg的使用
返回Msg的io.agentscope.core.event中的方法参数类型为Msg的io.agentscope.core.event中的构造器 -
io.agentscope.core.formatter中Msg的使用
参数类型为Msg的io.agentscope.core.formatter中的方法修饰符和类型方法说明protected StringAbstractBaseFormatter.extractTextContent(Msg msg) Extract text content from a message, filtering out ThinkingBlock.protected booleanAbstractBaseFormatter.hasMediaContent(Msg msg) Check if a message contains multimodal content (images, audio, video).protected booleanAbstractBaseFormatter.shouldBypassHistory(Msg msg) Check if a message should bypass history merging in multiagent formatters.类型变量类型为Msg的io.agentscope.core.formatter中的方法参数修饰符和类型方法说明Format AgentScope messages to provider-specific request format.Format AgentScope messages to provider-specific request format. -
io.agentscope.core.hook中Msg的使用
返回Msg的io.agentscope.core.hook中的方法修饰符和类型方法说明ReasoningChunkEvent.getAccumulated()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the full accumulated message containing all content generated so far.SummaryChunkEvent.getAccumulated()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the full accumulated message containing all content generated so far.PostCallEvent.getFinalMessage()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the final response message returned by the agent.ReasoningChunkEvent.getIncrementalChunk()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get only the new content generated in this streaming event.SummaryChunkEvent.getIncrementalChunk()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get only the new content generated in this streaming event.PostReasoningEvent.getReasoningMessage()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the reasoning result message from LLM.PostSummaryEvent.getSummaryMessage()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the summary result message.final MsgHookEvent.getSystemMessage()已过时, 待删除: 此 API 元素将从以后的版本中删除。Returns the current unified system message, ornullif none has been set.PostActingEvent.getToolResultMsg()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the tool result message.返回变量类型为Msg的类型的io.agentscope.core.hook中的方法修饰符和类型方法说明PostReasoningEvent.getGotoReasoningMsgs()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the messages to add before going back to reasoning.PreCallEvent.getInputMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the input messages for the agent call.PreReasoningEvent.getInputMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the messages that will be sent to LLM for reasoning.PreSummaryEvent.getInputMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。Get the messages that will be sent to LLM for summary generation.参数类型为Msg的io.agentscope.core.hook中的方法修饰符和类型方法说明reactor.core.publisher.Mono<PostActingEvent> LegacyHookDispatcher.firePostActing(ToolUseBlock toolUse, ToolResultBlock result, Toolkit toolkit, Msg toolMsg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<PostReasoningEvent> LegacyHookDispatcher.firePostReasoning(Msg msg, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<PostSummaryEvent> LegacyHookDispatcher.firePostSummary(Msg msg, GenerateOptions generateOptions, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<PreReasoningEvent> LegacyHookDispatcher.firePreReasoning(List<Msg> msgs, Msg systemMsg, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<PreSummaryEvent> LegacyHookDispatcher.firePreSummary(List<Msg> msgs, GenerateOptions generateOptions, String modelName, int maxIters, Msg systemMsg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<Void> LegacyHookDispatcher.fireReasoningChunk(Msg chunkMsg, io.agentscope.core.agent.accumulator.ReasoningContext context, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<Void> LegacyHookDispatcher.fireSummaryChunk(Msg chunkMsg, io.agentscope.core.agent.accumulator.ReasoningContext context, GenerateOptions generateOptions, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidPostReasoningEvent.gotoReasoning(Msg msg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Request to go back to reasoning phase with a single message.voidPostCallEvent.setFinalMessage(Msg finalMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Modify the final response message.voidPostReasoningEvent.setReasoningMessage(Msg reasoningMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Modify the reasoning result message.voidPostSummaryEvent.setSummaryMessage(Msg summaryMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Modify the summary result message.final voidHookEvent.setSystemMessage(Msg systemMsg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Replaces the entire system message with the given one.voidPostActingEvent.setToolResultMsg(Msg toolResultMsg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Set the tool result message.类型变量类型为Msg的io.agentscope.core.hook中的方法参数修饰符和类型方法说明reactor.core.publisher.Mono<PreReasoningEvent> LegacyHookDispatcher.firePreReasoning(List<Msg> msgs, Msg systemMsg, String modelName) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<PreSummaryEvent> LegacyHookDispatcher.firePreSummary(List<Msg> msgs, GenerateOptions generateOptions, String modelName, int maxIters, Msg systemMsg) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidPostReasoningEvent.gotoReasoning(List<Msg> msgs) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Request to go back to reasoning phase with multiple messages.voidPreCallEvent.setInputMessages(List<Msg> inputMessages) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Modify the input messages for the agent call.voidPreReasoningEvent.setInputMessages(List<Msg> inputMessages) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Modify the messages to send to LLM.voidPreSummaryEvent.setInputMessages(List<Msg> inputMessages) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Modify the messages to send to LLM for summary.参数类型为Msg的io.agentscope.core.hook中的构造器限定符构造器说明PostCallEvent(Agent agent, Msg finalMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PostCallEvent.PostReasoningEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg reasoningMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PostReasoningEvent.PostSummaryEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg summaryMessage) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PostSummaryEvent.ReasoningChunkEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg incrementalChunk, Msg accumulated) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for ReasoningChunkEvent.SummaryChunkEvent(Agent agent, String modelName, GenerateOptions generateOptions, Msg incrementalChunk, Msg accumulated) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for SummaryChunkEvent.类型变量类型为Msg的io.agentscope.core.hook中的构造器参数限定符构造器说明PreCallEvent(Agent agent, List<Msg> inputMessages) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PreCallEvent.PreReasoningEvent(Agent agent, String modelName, GenerateOptions generateOptions, List<Msg> inputMessages) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PreReasoningEvent.PreSummaryEvent(Agent agent, String modelName, GenerateOptions generateOptions, List<Msg> inputMessages, int maxIterations, int currentIteration) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Constructor for PreSummaryEvent. -
io.agentscope.core.interruption中Msg的使用
修饰符和类型方法说明InterruptContext.getUserMessage()Get the user message that triggered the interruption (if any).InterruptControl.getUserMessage()参数类型为Msg的io.agentscope.core.interruption中的方法修饰符和类型方法说明voidInterruptControl.trigger(InterruptSource src, Msg msg) Raise the interrupt signal.InterruptContext.Builder.userMessage(Msg userMessage) Set the user message that triggered the interruption. -
io.agentscope.core.memory中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core.memory中的方法修饰符和类型方法说明AgentStateMemoryView.getMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。InMemoryMemory.getMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。Retrieves all non-null messages from memory.Memory.getMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。Retrieves all messages stored in memory.StateBackedMemory.getMessages()已过时, 待删除: 此 API 元素将从以后的版本中删除。参数类型为Msg的io.agentscope.core.memory中的方法修饰符和类型方法说明voidAgentStateMemoryView.addMessage(Msg message) 已过时, 待删除: 此 API 元素将从以后的版本中删除。voidInMemoryMemory.addMessage(Msg message) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Adds a message to the in-memory message list.voidMemory.addMessage(Msg message) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Adds a message to the memory.voidStateBackedMemory.addMessage(Msg message) 已过时, 待删除: 此 API 元素将从以后的版本中删除。reactor.core.publisher.Mono<String> 已过时, 待删除: 此 API 元素将从以后的版本中删除。Retrieves relevant information from long-term memory based on the input message.类型变量类型为Msg的io.agentscope.core.memory中的方法参数 -
io.agentscope.core.message中Msg的使用
修饰符和类型类说明final classAMsgwithMsgRole.ASSISTANTpinned at construction time.final classAMsgwithMsgRole.SYSTEMpinned at construction time.final classAMsgwithMsgRole.TOOLpinned at construction time.final classAMsgwithMsgRole.USERpinned at construction time.修饰符和类型方法说明Msg.Builder.build()Builds a new message instance with the configured properties.Msg.withContent(List<ContentBlock> newContent) Returns a copy of this message with the given content blocks.Msg.withGenerateReason(GenerateReason reason) Creates a new message with the specified generate reason. -
io.agentscope.core.middleware中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core.middleware中的方法修饰符和类型方法说明ModelCallInput.messages()返回messages记录组件的值。ReasoningInput.messages()返回messages记录组件的值。AgentInput.msgs()返回msgs记录组件的值。类型变量类型为Msg的io.agentscope.core.middleware中的构造器参数限定符构造器说明AgentInput(List<Msg> msgs) 创建AgentInput记录类的实例。ModelCallInput(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options, Model model) 创建ModelCallInput记录类的实例。ReasoningInput(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) 创建ReasoningInput记录类的实例。 -
io.agentscope.core.model中Msg的使用
类型变量类型为Msg的io.agentscope.core.model中的方法参数修饰符和类型方法说明protected abstract reactor.core.publisher.Flux<ChatResponse> ChatModelBase.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Internal implementation for streaming chat completion responses.final reactor.core.publisher.Flux<ChatResponse> ChatModelBase.stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses.reactor.core.publisher.Flux<ChatResponse> Model.stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses. -
io.agentscope.core.rag.model中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core.rag.model中的方法修饰符和类型方法说明RetrieveConfig.getConversationHistory()已过时, 待删除: 此 API 元素将从以后的版本中删除。Gets the conversation history for context-aware retrieval.类型变量类型为Msg的io.agentscope.core.rag.model中的方法参数修饰符和类型方法说明RetrieveConfig.Builder.conversationHistory(List<Msg> conversationHistory) Sets the conversation history for context-aware retrieval. -
io.agentscope.core.state中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core.state中的方法修饰符和类型方法说明AgentState.contextMutable()Live, mutable handle for components that append/replace messages in place.AgentState.getContext()Defensive copy of the conversation buffer.参数类型为Msg的io.agentscope.core.state中的方法类型变量类型为Msg的io.agentscope.core.state中的方法参数 -
io.agentscope.core.tool中Msg的使用
返回Msg的io.agentscope.core.tool中的方法修饰符和类型方法说明static MsgToolResultMessageBuilder.buildToolResultMsg(ToolResultBlock result, ToolUseBlock originalCall, String agentName) Build a tool result message from a ToolResultBlock and the original tool call.参数类型为Msg的io.agentscope.core.tool中的方法修饰符和类型方法说明static voidToolValidator.validateToolResultMatch(Msg assistantMsg, List<Msg> inputMsgs) Validate that ToolResult messages match pending ToolUse blocks.类型变量类型为Msg的io.agentscope.core.tool中的方法参数修饰符和类型方法说明static voidToolValidator.validateToolResultMatch(Msg assistantMsg, List<Msg> inputMsgs) Validate that ToolResult messages match pending ToolUse blocks. -
io.agentscope.core.tracing中Msg的使用
返回变量类型为Msg的类型的io.agentscope.core.tracing中的方法修饰符和类型方法说明default reactor.core.publisher.Mono<Msg> Tracer.callAgent(AgentBase instance, List<Msg> inputMessages, Supplier<reactor.core.publisher.Mono<Msg>> agentCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。类型变量类型为Msg的io.agentscope.core.tracing中的方法参数修饰符和类型方法说明default reactor.core.publisher.Mono<Msg> Tracer.callAgent(AgentBase instance, List<Msg> inputMessages, Supplier<reactor.core.publisher.Mono<Msg>> agentCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。default reactor.core.publisher.Mono<Msg> Tracer.callAgent(AgentBase instance, List<Msg> inputMessages, Supplier<reactor.core.publisher.Mono<Msg>> agentCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。default <TReq,TResp, TParams>
List<TReq> Tracer.callFormat(AbstractBaseFormatter<TReq, TResp, TParams> formatter, List<Msg> msgs, Supplier<List<TReq>> formatCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。default reactor.core.publisher.Flux<ChatResponse> Tracer.callModel(ChatModelBase instance, List<Msg> inputMessages, List<ToolSchema> toolSchemas, GenerateOptions options, Supplier<reactor.core.publisher.Flux<ChatResponse>> modelCall) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
io.agentscope.core.util中Msg的使用
类型变量类型为Msg的io.agentscope.core.util中的方法参数修饰符和类型方法说明static List<ToolUseBlock> Extract tool calls from the most recent assistant message in the message list.
ReActAgent.interrupt(String, String, Msg)with explicit userId/sessionId.