Documentation for the core types used in the Agent User Interaction Protocol SDK
POST
request.
Property | Type | Description |
---|---|---|
threadId | string | ID of the conversation thread |
runId | string | ID of the current run |
state | any | Current state of the agent |
messages | Message[] | Array of messages in the conversation |
tools | Tool[] | Array of tools available to the agent |
context | Context[] | Array of context objects provided to the agent |
forwardedProps | any | Additional properties forwarded to the agent |
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the message |
role | "developer" | Role of the message sender, fixed as “developer” |
content | string | Text content of the message (required) |
name | string | Optional name of the sender |
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the message |
role | "system" | Role of the message sender, fixed as “system” |
content | string | Text content of the message (required) |
name | string | Optional name of the sender |
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the message |
role | "assistant" | Role of the message sender, fixed as “assistant” |
content | string (optional) | Text content of the message |
name | string (optional) | Name of the sender |
toolCalls | ToolCall[] (optional) | Tool calls made in this message |
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the message |
role | "user" | Role of the message sender, fixed as “user” |
content | string | Text content of the message (required) |
name | string | Optional name of the sender |
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the message |
content | string | Text content of the message |
role | "tool" | Role of the message sender, fixed as “tool” |
toolCallId | string | ID of the tool call this message responds to |
error | string | Error message if the tool call failed |
Property | Type | Description |
---|---|---|
id | string | Unique identifier for the tool call |
type | "function" | Type of the tool call, always “function” |
function | FunctionCall | Details about the function being called |
Property | Type | Description |
---|---|---|
name | string | Name of the function to call |
arguments | string | JSON-encoded string of arguments to the function |
Property | Type | Description |
---|---|---|
description | string | Description of what this context represents |
value | string | The actual context value |
Property | Type | Description |
---|---|---|
name | string | Name of the tool |
description | string | Description of what the tool does |
parameters | any | JSON Schema defining the parameters for the tool |