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 null
inboundMessage - the normalized inbound envelope when the turn came through Channel.dispatch(io.agentscope.harness.agent.gateway.channel.InboundMessage); null for programmatic SendOptions paths that skip an inbound envelope
msgContext - resolved routing context for this turn
outboundAddress - delivery target for replies; may be null
callerContext - context carried on SendOptions or InboundMessage; 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 Details

    • ChannelRuntimeContextRequest

      public ChannelRuntimeContextRequest(String channelId, InboundMessage inboundMessage, MsgContext msgContext, OutboundAddress outboundAddress, io.agentscope.core.agent.RuntimeContext callerContext)
      Creates an instance of a ChannelRuntimeContextRequest record class.
      Parameters:
      channelId - the value for the channelId record component
      inboundMessage - the value for the inboundMessage record component
      msgContext - the value for the msgContext record component
      outboundAddress - the value for the outboundAddress record component
      callerContext - the value for the callerContext record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • channelId

      public String channelId()
      Returns the value of the channelId record component.
      Returns:
      the value of the channelId record component
    • inboundMessage

      public InboundMessage inboundMessage()
      Returns the value of the inboundMessage record component.
      Returns:
      the value of the inboundMessage record component
    • msgContext

      public MsgContext msgContext()
      Returns the value of the msgContext record component.
      Returns:
      the value of the msgContext record component
    • outboundAddress

      public OutboundAddress outboundAddress()
      Returns the value of the outboundAddress record component.
      Returns:
      the value of the outboundAddress record component
    • callerContext

      public io.agentscope.core.agent.RuntimeContext callerContext()
      Returns the value of the callerContext record component.
      Returns:
      the value of the callerContext record component