Class AgentProtocolConstants
java.lang.Object
io.agentscope.extensions.agentprotocol.AgentProtocolConstants
Workspace partitioning for persisted task records served by the protocol endpoints, plus the
contract for caller-supplied context attributes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringField inside the submissioncontextthat carries caller-defined attributes.static final StringSynthetic parent agent id foragents/<id>/tasks/paths.static final StringSingle session bucket file holding all protocol tasks as a task-id map.static final StringRuntimeContextkey holding the wholecontext.attributesmap as an unmodifiableMap<String, Object>. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanWhetherkeyis read by the framework itself and therefore unsafe to overwrite with a caller-supplied value.
-
Field Details
-
PROTOCOL_AGENT_ID
Synthetic parent agent id foragents/<id>/tasks/paths.- See Also:
-
PROTOCOL_SESSION_ID
Single session bucket file holding all protocol tasks as a task-id map.- See Also:
-
CONTEXT_ATTRIBUTES_FIELD
Field inside the submissioncontextthat carries caller-defined attributes. Keeping them nested separates them from the protocol's own context fields (user_id,parent_session_id,stream,detail,deny_rules).- See Also:
-
RUNTIME_CONTEXT_ATTRIBUTES_KEY
RuntimeContextkey holding the wholecontext.attributesmap as an unmodifiableMap<String, Object>.Attributes are namespaced under this single key so that no caller-controlled name can shadow a framework key. Tools and middlewares read them with
ctx.get( AgentProtocolConstants.RUNTIME_CONTEXT_ATTRIBUTES_KEY); to expose an attribute under its own top-level key instead, useRuntimeContextCustomizer.flatten(String...).- See Also:
-
-
Method Details
-
isReservedRuntimeContextKey
Whetherkeyis read by the framework itself and therefore unsafe to overwrite with a caller-supplied value. Examples:agentIddrives async tool wakeup routing andoutboundAddresscarries the gateway reply address.
-