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.
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 TypeMethodDescriptionio.agentscope.core.agent.RuntimeContextresolve(ChannelRuntimeContextRequest request) Resolve the runtime context for the current channel turn.
-
Method Details
-
resolve
Resolve the runtime context for the current channel turn.- Parameters:
request- channel turn metadata, including any caller-supplied context- Returns:
- a runtime context to use as the merge base, or
nullto keepChannelRuntimeContextRequest.callerContext()
-