Class WebSubmitRequest
WebAgentSessionManager.submit(WebSubmitRequest).
Carries the target ConversationId, the agentRef the caller intends to bind to the conversation, the
raw user input, optional session options, optional idempotency key, priority tier (defaults to QueuedInputPriority.NEXT), and the Principal that initiated the input.
The optional contextDiscriminator selects which AgentExecutionContext instance the session should
bind to when a single agent definition is split into multiple agent-scoped contexts (per tenant, per environment,
etc.). When unset the manager derives the bare agent:<agentRef> id; when set the id becomes
agent:<agentRef>:<discriminator> and must match an entry pre-registered on the application's
OrcaAgentExecutionContextManager. Like OpenAttributes, it is read on cache miss only — once a
session is cached, subsequent submits with a different discriminator do not re-open the session.
Constructed via WebSubmitRequest.Builder; per project convention "prefer class over record".
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSubmitRequest.Builderbuilder()Optional discriminator used to select among multipleAgentExecutionContextinstances of the same agent (e.g., per tenant).at.aimon.core.agent.conversation.ConversationIdat.aimon.core.base.Principalat.aimon.core.agent.session.OpenAttributesCaller-provided open attributes forwarded to the configuredAgentSessionOpeneron cache miss.at.aimon.core.agent.session.AgentSessionOptionsat.aimon.core.agent.queue.QueuedInputPriorityat.aimon.core.agent.SubmitOptionsPer-turn options forwarded toAgentSession.submitAsync(input, submitOptions, listener)when this request is dispatched.
-
Method Details
-
builder
-
getConversationId
public at.aimon.core.agent.conversation.ConversationId getConversationId() -
getAgentRef
-
getContextDiscriminator
Optional discriminator used to select among multipleAgentExecutionContextinstances of the same agent (e.g., per tenant). Read by the manager on cache miss to derive theAgentExecutionContextIdthreaded into theAgentSessionOpener.- Returns:
- the discriminator, or empty when the bare
agent:<agentRef>context should be used
-
getUserInput
-
getOptions
public at.aimon.core.agent.session.AgentSessionOptions getOptions() -
getSubmitOptions
public at.aimon.core.agent.SubmitOptions getSubmitOptions()Per-turn options forwarded toAgentSession.submitAsync(input, submitOptions, listener)when this request is dispatched. Defaults toSubmitOptions.empty()so legacy callers see unchanged behavior. -
getOpenAttributes
public at.aimon.core.agent.session.OpenAttributes getOpenAttributes()Caller-provided open attributes forwarded to the configuredAgentSessionOpeneron cache miss.Attributes are consumed only when the manager actually invokes the opener for a fresh session — they have no effect on submits that hit an already-cached session. Defaults to
OpenAttributes.empty()so legacy callers see unchanged behavior. -
getIdempotencyKey
-
getPriority
public at.aimon.core.agent.queue.QueuedInputPriority getPriority() -
getInitiator
public at.aimon.core.base.Principal getInitiator()
-