Record Class ChannelRuntimeContextRequest
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.gateway.channel.ChannelRuntimeContextRequest
- Record Components:
channelId- originating channel id (e.g."chatui","dingtalk"); may be nullinboundMessage- the normalized inbound envelope when the turn came throughChannel.dispatch(io.agentscope.harness.agent.gateway.channel.InboundMessage);nullfor programmaticSendOptionspaths that skip an inbound envelopemsgContext- resolved routing context for this turnoutboundAddress- delivery target for replies; may be nullcallerContext- context carried onSendOptionsorInboundMessage; may be null
public record ChannelRuntimeContextRequest(String channelId, InboundMessage inboundMessage, MsgContext msgContext, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext)
extends Record
Inputs available to a
ChannelRuntimeContextResolver when resolving caller context for a
Gateway turn.-
Constructor Summary
ConstructorsConstructorDescriptionChannelRuntimeContextRequest(String channelId, InboundMessage inboundMessage, MsgContext msgContext, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) Creates an instance of aChannelRuntimeContextRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.agentscope.core.agent.RuntimeContextReturns the value of thecallerContextrecord component.Returns the value of thechannelIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinboundMessagerecord component.Returns the value of themsgContextrecord component.Returns the value of theoutboundAddressrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChannelRuntimeContextRequest
public ChannelRuntimeContextRequest(String channelId, InboundMessage inboundMessage, MsgContext msgContext, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext) Creates an instance of aChannelRuntimeContextRequestrecord class.- Parameters:
channelId- the value for thechannelIdrecord componentinboundMessage- the value for theinboundMessagerecord componentmsgContext- the value for themsgContextrecord componentoutboundAddress- the value for theoutboundAddressrecord componentcallerContext- the value for thecallerContextrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
channelId
Returns the value of thechannelIdrecord component.- Returns:
- the value of the
channelIdrecord component
-
inboundMessage
Returns the value of theinboundMessagerecord component.- Returns:
- the value of the
inboundMessagerecord component
-
msgContext
Returns the value of themsgContextrecord component.- Returns:
- the value of the
msgContextrecord component
-
outboundAddress
Returns the value of theoutboundAddressrecord component.- Returns:
- the value of the
outboundAddressrecord component
-
callerContext
public io.agentscope.core.agent.RuntimeContext callerContext()Returns the value of thecallerContextrecord component.- Returns:
- the value of the
callerContextrecord component
-