Creates a new A2A task in the repository.
The A2ATask object to create.
A promise that resolves when the task is successfully stored.
Retrieves an A2A task by its unique identifier.
The unique identifier of the task.
A promise resolving to the A2ATask object if found, or null if not found.
Retrieves tasks assigned to a specific agent.
The agent identifier to filter tasks.
Optionalfilter: { priority?: A2ATaskPriority; status?: A2ATaskStatus | A2ATaskStatus[] }Optional filter criteria for task status or priority.
A promise resolving to an array of A2ATask objects assigned to the agent.
Retrieves tasks based on their current status.
The task status(es) to filter by.
Optionaloptions: { limit?: number; offset?: number }Optional query parameters like limit and pagination.
A promise resolving to an array of A2ATask objects with the specified status.
Retrieves tasks associated with a specific thread.
The thread identifier to filter tasks.
Optionalfilter: {Optional filter criteria for task status, priority, or assigned agent.
A promise resolving to an array of A2ATask objects matching the criteria.
Updates an existing A2A task with new information.
The unique identifier of the task to update.
Partial A2ATask object containing the fields to update.
A promise that resolves when the task is successfully updated.
Interface for managing A2A (Agent-to-Agent) task persistence and retrieval.