| Field | Value |
|---|---|
| Canonical URI | https://docs.aion.to/extensions/aion/context/get-context/1.0.0 |
| Issuer | aion |
| Version | 1.0.0 |
| Activation | Available on all A2A agent servers. No explicit activation required. |
| Related Methods | GetContexts |
Overview
GetContext is a JSON-RPC method that retrieves a specific conversation context by ID, including its full message history and any associated artifacts.
Request
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
contextId | String | required | Unique identifier of the conversation context to retrieve. |
historyLength | Integer | optional | Maximum number of recent tasks to return. Defaults to server-defined limit. |
historyOffset | Integer | optional | Number of recent messages to skip before returning results. Defaults to 0. |
Response
Success
result field contains a Conversation object.
Conversation
| Field | Type | Description |
|---|---|---|
context_id | String | Unique identifier for this conversation context. |
history | Message[] | Ordered list of A2A messages in the conversation. |
artifacts | Artifact[] | Generated artifacts produced during the conversation (code, files, documents). |
status | ConversationTaskStatus | Current lifecycle state of the conversation. |
ConversationTaskStatus
| Field | Type | Description |
|---|---|---|
state | TaskState | Current task state (see below). |
TaskState
| Value | Description |
|---|---|
TASK_STATE_UNSPECIFIED | State is not set. |
TASK_STATE_WORKING | Task is actively being processed. |
TASK_STATE_INPUT_REQUIRED | Task is paused and waiting for user input. |
TASK_STATE_AUTH_REQUIRED | Task is paused and waiting for authentication. |
TASK_STATE_COMPLETED | Task finished successfully. |
TASK_STATE_FAILED | Task finished with an error. |