类的使用
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-call RuntimeContext.
    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-call RuntimeContext.
    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-call RuntimeContext (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 every call() variant — including structured output and context-bearing overloads — runs through the same ReActAgent.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 as streamEvents().
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.doCall(List<Msg> msgs)
     
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.doCall(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode outputSchema)
     
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.doCall(List<Msg> msgs, Class<?> structuredOutputClass)
     
    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 void
    ReActAgent.consumeSystemMsgAfterPreCall(Msg systemMsg, Object callScope)
     
    protected reactor.core.publisher.Mono<Void>
    ReActAgent.doObserve(Msg msg)
     
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.handleInterrupt(InterruptContext context, Msg... originalArgs)
     
    void
    ReActAgent.interrupt(RuntimeContext ctx, Msg msg)
    Interrupts the in-flight call identified by the given RuntimeContext with an associated user message.
    void
    ReActAgent.interrupt(Msg msg)
    已过时。
    Use ReActAgent.interrupt(String, String, Msg) with explicit userId/sessionId.
    void
    ReActAgent.interrupt(String userId, String sessionId, Msg msg)
    Interrupts 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-grained AgentEvents for a single input message.
    reactor.core.publisher.Flux<AgentEvent>
    ReActAgent.streamEvents(Msg msg, RuntimeContext context)
    Stream fine-grained AgentEvents for a single input message with a caller-supplied RuntimeContext.
    类型变量类型为Msg的io.agentscope.core中的方法参数
    修饰符和类型
    方法
    说明
    protected Object
     
    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-call RuntimeContext (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 every call() variant — including structured output and context-bearing overloads — runs through the same ReActAgent.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 as streamEvents().
    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 every call() variant — including structured output and context-bearing overloads — runs through the same ReActAgent.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 as streamEvents().
    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 every call() variant — including structured output and context-bearing overloads — runs through the same ReActAgent.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 as streamEvents().
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.doCall(List<Msg> msgs)
     
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.doCall(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode outputSchema)
     
    protected reactor.core.publisher.Mono<Msg>
    ReActAgent.doCall(List<Msg> msgs, Class<?> structuredOutputClass)
     
    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-grained AgentEvents from the full agent lifecycle.
    reactor.core.publisher.Flux<AgentEvent>
    ReActAgent.streamEvents(List<Msg> msgs, RuntimeContext context)
    Stream fine-grained AgentEvents with a caller-supplied RuntimeContext.
  • io.agentscope.core.agent中Msg的使用

    返回Msg的io.agentscope.core.agent中的方法
    修饰符和类型
    方法
    说明
    Event.getMessage()
    已过时。
    Get the message content.
    返回变量类型为Msg的类型的io.agentscope.core.agent中的方法
    修饰符和类型
    方法
    说明
    final reactor.core.publisher.Mono<Msg>
    AgentBase.call(List<Msg> msgs)
    Process a list of input messages and generate a response with hook execution.
    final reactor.core.publisher.Mono<Msg>
    AgentBase.call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode schema)
    Process multiple input messages and generate structured output with hook execution.
    final reactor.core.publisher.Mono<Msg>
    AgentBase.call(List<Msg> msgs, Class<?> structuredOutputClass)
    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>
    CallableAgent.call(Msg msg)
    Process a single input message and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg... msgs)
    Process multiple input messages (varargs) and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg msg, com.fasterxml.jackson.databind.JsonNode schema)
    Process a single input message with JSON schema and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg msg, Class<?> structuredModel)
    Process a single input message with structured model and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Class<?> structuredModel)
    Continue generation with structured model based on current state.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(String text)
    Process a plain text input and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(String text, com.fasterxml.jackson.databind.JsonNode schema)
    Process a plain text input with JSON schema and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(String text, Class<?> structuredModel)
    Process a plain text input with structured model and generate a response.
    reactor.core.publisher.Mono<Msg>
    CallableAgent.call(List<Msg> msgs)
    Process a list of input messages and generate a response.
    reactor.core.publisher.Mono<Msg>
    CallableAgent.call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode schema)
    Process multiple input messages with JSON schema and generate a response.
    reactor.core.publisher.Mono<Msg>
    CallableAgent.call(List<Msg> msgs, Class<?> structuredModel)
    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 every call() overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. the onAgent chain in ReActAgent).
    protected abstract reactor.core.publisher.Mono<Msg>
    AgentBase.doCall(List<Msg> msgs)
    Internal implementation for processing multiple input messages.
    protected reactor.core.publisher.Mono<Msg>
    AgentBase.doCall(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode outputSchema)
    Internal implementation for processing multiple messages with structured output.
    protected reactor.core.publisher.Mono<Msg>
    AgentBase.doCall(List<Msg> msgs, Class<?> structuredOutputClass)
    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)
    Shared call() lifecycle: acquire execution, then (inside deferContextual so the caller-supplied RuntimeContext is read per-subscription) run AgentBase.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 into PreCallEvent before hooks run.
    参数类型为Msg的io.agentscope.core.agent中的方法
    修饰符和类型
    方法
    说明
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg msg)
    Process a single input message and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg... msgs)
    Process multiple input messages (varargs) and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg msg, com.fasterxml.jackson.databind.JsonNode schema)
    Process a single input message with JSON schema and generate a response.
    default reactor.core.publisher.Mono<Msg>
    CallableAgent.call(Msg msg, Class<?> structuredModel)
    Process a single input message with structured model and generate a response.
    protected void
    AgentBase.consumeSystemMsgAfterPreCall(Msg systemMsg, Object callScope)
    Called after PreCallEvent hooks have run, with the final system message value.
    protected reactor.core.publisher.Mono<Void>
    AgentBase.doObserve(Msg msg)
    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.
    void
    Agent.interrupt(Msg msg)
    Interrupt the current agent execution with a user message.
    void
    AgentBase.interrupt(Msg msg)
    已过时。
    Subclasses should implement per-session interrupt via RuntimeContext.
    final reactor.core.publisher.Mono<Void>
    AgentBase.observe(Msg msg)
    Observe a single message without generating a reply.
    reactor.core.publisher.Mono<Void>
    ObservableAgent.observe(Msg msg)
    Observe a single message without generating a reply.
    default reactor.core.publisher.Flux<Event>
    StreamableAgent.stream(Msg msg)
    已过时, 待删除: 此 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 Object
    Invoked at the start of a call / stream-backed call, after AgentBase.acquireExecution() and before any hooks.
    final reactor.core.publisher.Mono<Msg>
    AgentBase.call(List<Msg> msgs)
    Process a list of input messages and generate a response with hook execution.
    final reactor.core.publisher.Mono<Msg>
    AgentBase.call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode schema)
    Process multiple input messages and generate structured output with hook execution.
    final reactor.core.publisher.Mono<Msg>
    AgentBase.call(List<Msg> msgs, Class<?> structuredOutputClass)
    Process multiple input messages and generate structured output with hook execution.
    reactor.core.publisher.Mono<Msg>
    CallableAgent.call(List<Msg> msgs)
    Process a list of input messages and generate a response.
    reactor.core.publisher.Mono<Msg>
    CallableAgent.call(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode schema)
    Process multiple input messages with JSON schema and generate a response.
    reactor.core.publisher.Mono<Msg>
    CallableAgent.call(List<Msg> msgs, Class<?> structuredModel)
    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 every call() overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. the onAgent chain in ReActAgent).
    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 every call() overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. the onAgent chain in ReActAgent).
    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 every call() overload, allowing subclasses to wrap the entire invocation in additional middleware (e.g. the onAgent chain in ReActAgent).
    protected abstract reactor.core.publisher.Mono<Msg>
    AgentBase.doCall(List<Msg> msgs)
    Internal implementation for processing multiple input messages.
    protected reactor.core.publisher.Mono<Msg>
    AgentBase.doCall(List<Msg> msgs, com.fasterxml.jackson.databind.JsonNode outputSchema)
    Internal implementation for processing multiple messages with structured output.
    protected reactor.core.publisher.Mono<Msg>
    AgentBase.doCall(List<Msg> msgs, Class<?> structuredOutputClass)
    Internal implementation for processing multiple messages with structured output.
    final reactor.core.publisher.Mono<Void>
    AgentBase.observe(List<Msg> msgs)
    Observe multiple messages without generating a reply.
    reactor.core.publisher.Mono<Void>
    ObservableAgent.observe(List<Msg> msgs)
    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)
    Shared call() lifecycle: acquire execution, then (inside deferContextual so the caller-supplied RuntimeContext is read per-subscription) run AgentBase.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)
    Shared call() lifecycle: acquire execution, then (inside deferContextual so the caller-supplied RuntimeContext is read per-subscription) run AgentBase.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)
    Shared call() lifecycle: acquire execution, then (inside deferContextual so the caller-supplied RuntimeContext is read per-subscription) run AgentBase.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>
    StreamableAgent.stream(List<Msg> msgs)
    已过时, 待删除: 此 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中的构造器
    限定符
    构造器
    说明
     
    Event(EventType type, Msg message, boolean isLast)
    已过时。
    Creates a new event (top-level agent — no source).
     
    Event(EventType type, Msg message, boolean isLast, EventSource source)
    已过时。
    Creates a new event with optional source.
  • 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中的方法
    修饰符和类型
    方法
    说明
    AgentResultEvent.getResult()
     
    参数类型为Msg的io.agentscope.core.event中的构造器
    限定符
    构造器
    说明
     
     
     
    AgentResultEvent(String id, String createdAt, Msg result)
     
  • io.agentscope.core.formatter中Msg的使用

    参数类型为Msg的io.agentscope.core.formatter中的方法
    修饰符和类型
    方法
    说明
    protected String
    AbstractBaseFormatter.extractTextContent(Msg msg)
    Extract text content from a message, filtering out ThinkingBlock.
    protected boolean
    AbstractBaseFormatter.hasMediaContent(Msg msg)
    Check if a message contains multimodal content (images, audio, video).
    protected boolean
    AbstractBaseFormatter.shouldBypassHistory(Msg msg)
    Check if a message should bypass history merging in multiagent formatters.
    类型变量类型为Msg的io.agentscope.core.formatter中的方法参数
    修饰符和类型
    方法
    说明
    protected abstract List<TReq>
    AbstractBaseFormatter.doFormat(List<Msg> msgs)
     
    AbstractBaseFormatter.format(List<Msg> msgs)
    Format AgentScope messages to provider-specific request format.
    Formatter.format(List<Msg> msgs)
    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 Msg
    HookEvent.getSystemMessage()
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Returns the current unified system message, or null if 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 元素将从以后的版本中删除。
     
    void
    PostReasoningEvent.gotoReasoning(Msg msg)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Request to go back to reasoning phase with a single message.
    void
    PostCallEvent.setFinalMessage(Msg finalMessage)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Modify the final response message.
    void
    PostReasoningEvent.setReasoningMessage(Msg reasoningMessage)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Modify the reasoning result message.
    void
    PostSummaryEvent.setSummaryMessage(Msg summaryMessage)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Modify the summary result message.
    final void
    HookEvent.setSystemMessage(Msg systemMsg)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Replaces the entire system message with the given one.
    void
    PostActingEvent.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 元素将从以后的版本中删除。
     
    void
    PostReasoningEvent.gotoReasoning(List<Msg> msgs)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Request to go back to reasoning phase with multiple messages.
    void
    PreCallEvent.setInputMessages(List<Msg> inputMessages)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Modify the input messages for the agent call.
    void
    PreReasoningEvent.setInputMessages(List<Msg> inputMessages)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Modify the messages to send to LLM.
    void
    PreSummaryEvent.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中的方法
    修饰符和类型
    方法
    说明
    void
    InterruptControl.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中的方法
    修饰符和类型
    方法
    说明
    void
    AgentStateMemoryView.addMessage(Msg message)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
    void
    InMemoryMemory.addMessage(Msg message)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Adds a message to the in-memory message list.
    void
    Memory.addMessage(Msg message)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Adds a message to the memory.
    void
    StateBackedMemory.addMessage(Msg message)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
    reactor.core.publisher.Mono<String>
    LongTermMemory.retrieve(Msg msg)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Retrieves relevant information from long-term memory based on the input message.
    类型变量类型为Msg的io.agentscope.core.memory中的方法参数
    修饰符和类型
    方法
    说明
    reactor.core.publisher.Mono<Void>
    LongTermMemory.record(List<Msg> msgs)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Records messages to long-term memory.
  • io.agentscope.core.message中Msg的使用

    修饰符和类型
    类
    说明
    final class 
    A Msg with MsgRole.ASSISTANT pinned at construction time.
    final class 
    A Msg with MsgRole.SYSTEM pinned at construction time.
    final class 
    A Msg with MsgRole.TOOL pinned at construction time.
    final class 
    A Msg with MsgRole.USER pinned at construction time.
    返回Msg的io.agentscope.core.message中的方法
    修饰符和类型
    方法
    说明
    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.
    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 记录类的实例。
     
    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中的方法
    修饰符和类型
    方法
    说明
    AgentState.Builder.addMessage(Msg message)
     
    类型变量类型为Msg的io.agentscope.core.state中的方法参数
    修饰符和类型
    方法
    说明
    AgentState.Builder.context(List<Msg> context)
     
  • io.agentscope.core.tool中Msg的使用

    返回Msg的io.agentscope.core.tool中的方法
    修饰符和类型
    方法
    说明
    static Msg
    ToolResultMessageBuilder.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 void
    ToolValidator.validateToolResultMatch(Msg assistantMsg, List<Msg> inputMsgs)
    Validate that ToolResult messages match pending ToolUse blocks.
    类型变量类型为Msg的io.agentscope.core.tool中的方法参数
    修饰符和类型
    方法
    说明
    static void
    ToolValidator.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中的方法参数
    修饰符和类型
    方法
    说明
    MessageUtils.extractRecentToolCalls(List<Msg> messages, String agentName)
    Extract tool calls from the most recent assistant message in the message list.