klyn.llm.ToolCall.ToolCall
constructor

    public ToolCall(id as String, name as String, arguments as Map<String, Object> = null, extraContent as Map<String, Object> = null):

Description

Creates a tool call.

Parameters

Parameter | Description
--- | ---
`id` | Provider-side call identifier.
`name` | Requested tool name.
`arguments` | Decoded tool arguments.
`extraContent` | Provider-specific metadata that must be replayed with the assistant message.

Example

    call = ToolCall("call_1", "listFiles", {"path": "."})
    print(call.name)