Skip to content

Interface: AguiToolCall

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AguiToolCall

Defined in: src/types/agui.ts:56

A tool call embedded in an assistant message.

type is the AG-UI call kind (function). It is left open because the protocol may add kinds; the SDK does not narrow it.

const toolCall: AguiToolCall = {
id: 'call_1',
type: 'function',
function: { name: 'lookupPatient', arguments: '{"patientId":"42"}' },
};

function: AguiFunctionCall

Defined in: src/types/agui.ts:58

The function invocation.


id: string

Defined in: src/types/agui.ts:60

Tool call id.


optional type?: string

Defined in: src/types/agui.ts:62

Call type (function).