Uses of Record Class
io.agentscope.harness.agent.gateway.MsgContext
Packages that use MsgContext
-
Uses of MsgContext in io.agentscope.harness.agent.gateway
Methods in io.agentscope.harness.agent.gateway that return MsgContextModifier and TypeMethodDescriptionstatic MsgContextMsgContext.defaultContext()Default single-conversation context (no channel metadata, no userId).MsgContext.withUserId(String userId) Returns a copy of this context with the givenuserIdset.Methods in io.agentscope.harness.agent.gateway with parameters of type MsgContextModifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<io.agentscope.core.message.Msg>Gateway.run(MsgContext context, io.agentscope.core.message.Msg message) Single-message convenience.reactor.core.publisher.Mono<io.agentscope.core.message.Msg>Gateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages) Inbound turn (direct API or channel adapter).default reactor.core.publisher.Mono<io.agentscope.core.message.Msg>Gateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress) Inbound turn with outbound address.default reactor.core.publisher.Mono<io.agentscope.core.message.Msg>Gateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) Inbound turn with outbound address and an optional callerRuntimeContext.default reactor.core.publisher.Mono<io.agentscope.core.message.Msg>Gateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext, InboundMessage inboundMessage) Inbound turn with full Channel metadata forChannelRuntimeContextResolver.reactor.core.publisher.Mono<io.agentscope.core.message.Msg>HarnessGateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages) reactor.core.publisher.Mono<io.agentscope.core.message.Msg>HarnessGateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress) reactor.core.publisher.Mono<io.agentscope.core.message.Msg>HarnessGateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) reactor.core.publisher.Mono<io.agentscope.core.message.Msg>HarnessGateway.run(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext, InboundMessage inboundMessage) default reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>Gateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages) Streaming variant ofGateway.run(MsgContext, List).default reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>Gateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress) Streaming variant ofGateway.run(MsgContext, List, OutboundAddress).default reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>Gateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) Streaming variant ofGateway.run(MsgContext, List, OutboundAddress, RuntimeContext).default reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>Gateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext, InboundMessage inboundMessage) Streaming variant ofGateway.run(MsgContext, List, OutboundAddress, RuntimeContext, InboundMessage).reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>HarnessGateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress) reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>HarnessGateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>HarnessGateway.runStream(MsgContext context, List<io.agentscope.core.message.Msg> messages, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext, InboundMessage inboundMessage) -
Uses of MsgContext in io.agentscope.harness.agent.gateway.channel
Methods in io.agentscope.harness.agent.gateway.channel that return MsgContextModifier and TypeMethodDescriptionRouteResult.context()Returns the value of thecontextrecord component.ChannelRuntimeContextRequest.msgContext()Returns the value of themsgContextrecord component.Constructors in io.agentscope.harness.agent.gateway.channel with parameters of type MsgContextModifierConstructorDescriptionChannelRuntimeContextRequest(String channelId, InboundMessage inboundMessage, MsgContext msgContext, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) Creates an instance of aChannelRuntimeContextRequestrecord class.RouteResult(String agentId, MsgContext context, String matchedBy, OutboundAddress outboundAddress) Creates an instance of aRouteResultrecord class.