Interface: AguiTool
@kortexya/reasoninglayer / AguiTool
Interface: AguiTool
Section titled “Interface: AguiTool”Defined in: src/types/agui.ts:127
A frontend tool definition offered by the AG-UI client to the agent.
Remarks
Section titled “Remarks”parameters is a JSON Schema document, carried through as opaque JSON.
Example
Section titled “Example”const tool: AguiTool = { name: 'highlightRow', description: 'Highlight a row in the table', parameters: { type: 'object', properties: { rowId: { type: 'string' } } },};Properties
Section titled “Properties”description?
Section titled “description?”
optionaldescription?:string
Defined in: src/types/agui.ts:129
What the tool does.
name:
string
Defined in: src/types/agui.ts:131
Tool name.
parameters?
Section titled “parameters?”
optionalparameters?:JsonValue
Defined in: src/types/agui.ts:133
JSON Schema of the tool parameters.