Interface ChannelRuntimeContextResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ChannelRuntimeContextResolver
Resolves a caller-provided RuntimeContext for a Channel / Gateway turn.

Applications can plug this into HarnessGateway (or via GatewayBootstrap) to attach request-scoped values such as tenant information, force-sync flags, or tool dependencies. Gateway identity fields ( sessionId, userId, outboundAddress, …) are still applied after resolution and take precedence over conflicting caller values.

Return null to leave the existing caller context (from ChannelRuntimeContextRequest.callerContext()) unchanged.

  • Method Summary

    Modifier and Type
    Method
    Description
    io.agentscope.core.agent.RuntimeContext
    Resolve the runtime context for the current channel turn.
  • Method Details