Tasks are the fundamental coordination mechanism in the A2A protocol. They represent stateful execution units that manage the complete lifecycle of work from client request to agent completion. Every interaction between a client and an agent is organized around tasks.Documentation Index
Fetch the complete documentation index at: https://docs.getbindu.com/llms.txt
Use this file to discover all available pages before exploring further.
Task Object
A Task is the central coordination unit that tracks work execution. It encapsulates the entire interaction related to a specific goal or request, maintaining conversation history, execution state, and generated artifacts. Schema:- Task Identity: Unique
idandcontextIdfor tracking - Status Tracking: Current state (
completed) with timestamp and agent message - Artifact Delivery: Complete analysis report with both text and structured data
- History Preservation: Full conversation trail from initial request to completion
- Metadata Context: Additional information about priority, duration, and categorization
TaskStatus Object
Represents the current state and context of a task at a specific point in time. Schema:TaskState Enum
Defines all possible lifecycle states a task can be in during execution. Standard A2A States:-
submitted- Task has been submitted and is awaiting execution- Initial state when task is created
- Agent has acknowledged receipt but hasn’t started processing
-
working- Agent is actively working on the task- Task is being processed
- May transition to
input-required,completed, orfailed
-
input-required- Task is paused, waiting for user input- Agent needs clarification or additional information
- Task will resume once user provides required input
- This is an interrupted state, not terminal
-
completed- Task has been successfully completed- Final deliverables are available in
artifacts - This is a terminal state - task cannot be modified
- Final deliverables are available in
-
canceled- Task has been canceled by the user- User explicitly stopped the task before completion
- This is a terminal state
-
failed- Task failed due to an error during execution- Agent encountered an unrecoverable error
- Error details typically included in status message
- This is a terminal state
-
rejected- Task was rejected by the agent and was not started- Agent determined it cannot or will not perform the task
- May occur during initial creation or after assessment
- This is a terminal state
-
auth-required- Task requires authentication to proceed- Additional authentication needed from the client
- Authentication expected to come out-of-band
- Not a terminal state - task can resume after auth
<NotPartOfA2A>:
payment-required- Task requires payment to proceedunknown- Task is in an unknown or indeterminate statetrust-verification-required- Task requires trust verificationpending- Task is pending execution (queued)suspended- Task is suspended and not currently runningresumed- Task has been resumed after suspensionnegotiation-bid-submitted- Task bid submitted for negotiationnegotiation-bid-lost- Task bid was lost in negotiationnegotiation-bid-won- Task bid was won in negotiation
- Terminal States:
completed,failed,rejected,canceled- Cannot transition further - Interrupted States:
input-required,auth-required- Can resume toworking - Active States:
submitted,working- Task is being processed
Task Events
Events notify clients of task state changes and artifact updates, typically used in streaming (SSE) or push notification scenarios to keep clients informed without polling.TaskStatusUpdateEvent
Sent by the agent when a task’s status changes, enabling real-time progress tracking. Schema:- Real-time progress tracking for long-running tasks
- Notifying clients when tasks require input or authentication
- Alerting on task completion or failure
- Streaming task execution updates via Server-Sent Events (SSE)
TaskArtifactUpdateEvent
Sent by the agent when an artifact is generated or updated, enabling incremental delivery of large outputs. Schema:- Streaming large reports or documents in chunks
- Progressive rendering of generated content
- Real-time display of agent-generated outputs
- Reducing memory overhead for large artifacts
append: false- Start new artifact or replace existingappend: true- Add content to existing artifactlastChunk: true- Signal completion of artifact delivery
Task Operations & Parameters
Parameters used for various task operations including execution, querying, and management.TaskSendParams <NotPartOfA2A>
Internal parameters for task execution within the Bindu framework.
Schema:
TaskIdParams
Simple parameters containing a task ID, used for basic task operations. Schema:TaskQueryParams
Parameters for querying task details with optional history limiting. Schema:- Retrieving task status without full history
- Reducing payload size for list operations
- Efficient polling for task updates
- Getting recent conversation context only
ListTasksParams <NotPartOfA2A>
Parameters for listing multiple tasks with optional history limiting.
Schema:
- Dashboard views showing multiple tasks
- Task management interfaces
- Batch status checking
- Filtering tasks by status or context
- Pagination with history control
TaskFeedbackParams <NotPartOfA2A>
Parameters for providing feedback on completed tasks.
Schema:
- 5 - Excellent: Exceeded expectations
- 4 - Good: Met expectations well
- 3 - Satisfactory: Met basic expectations
- 2 - Poor: Below expectations
- 1 - Very Poor: Did not meet expectations
- Quality assurance and agent improvement
- User satisfaction tracking
- Identifying areas for enhancement
- Training data for agent optimization
- Performance metrics and analytics
- Provide specific, actionable feedback
- Use ratings consistently across tasks
- Include context in metadata
- Submit feedback promptly after task completion
- Be constructive in criticism
Message Sending Parameters
Parameters for sending messages to agents to initiate or continue task interactions.MessageSendConfiguration
Configuration options for message sending behavior. Schema:MessageSendParams
Parameters for sending a message to an agent. Schema:- Cannot restart tasks in terminal states (
completed,canceled,rejected,failed) - Use
blocking: truefor quick operations,falsefor long-running tasks acceptedOutputModeshelps agent format response appropriately- Include
taskIdin message to continue existing task
Push Notification Parameters
Parameters for managing push notification configurations associated with tasks.ListTaskPushNotificationConfigParams
Parameters for retrieving all push notification configurations for a task. Schema:DeleteTaskPushNotificationConfigParams
Parameters for removing a push notification configuration from a task. Schema:- Clean up obsolete webhook endpoints
- Remove notification configs after task completion
- Update notification routing by removing old configs
- Manage webhook lifecycle
tasks/pushNotificationConfig/set- Add or update notification configtasks/pushNotificationConfig/get- Retrieve specific configtasks/pushNotificationConfig/list- List all configs for a task