pub struct SubmitAgentTaskRequest {
pub assignment: TaskAgentAssignment,
pub attempt_id: String,
pub input: TaskAgentInput,
pub objective: String,
pub task_id: String,
pub visibility: DurableMessageVisibility,
}Expand description
Explicit role-aware attempt, separate from legacy session-context tasks.
Identical redelivery includes the assignment and structured input. Once admitted, the task’s role, selection, original request, and accepted plan are immutable; clarification and additional images may change in a new attempt. A host must reject conflicting assignments rather than changing an existing task’s conversation or falling back to ordinary chat.
These contracts alone do not enable submission or dispatch.
Fields§
§assignment: TaskAgentAssignmentAssignment captured before admission and retained across attempts.
attempt_id: StringGlobally unique delivery identity; retries and continuations use new IDs.
input: TaskAgentInputRole-specific input supplied to the isolated conversation.
objective: StringDesired outcome, immutable across this task’s attempts.
task_id: StringGlobally unique desired-outcome identity.
visibility: DurableMessageVisibilityWhether task views show the explicit input. Task input never enters the ordinary session’s transcript.