ai/ai.model.ts
The part of an AI message representing a call to a tool (which may or may not have completed and a result is available).
Properties |
| error |
error:
|
Type : boolean
|
| Optional |
|
Set to true for a tool-result where an error occurred. The error message or JSON is in the output field. |
| output |
output:
|
Type : TOutput
|
| Optional |
|
The output generated by the tool. This field is set once the type is |
| toolCallId |
toolCallId:
|
Type : string
|
|
Unique identifier for this invocation of the tool, used to match calls with results. |
| toolName |
toolName:
|
Type : string
|
|
Unique identifier for the tool, as specified in the MCP server and agent definition. |