ToolCall
class in package klyn.llm

    public class ToolCall extends Object:

Object
└ ToolCall

Tool call requested by an LLM provider.

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

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | arguments `arguments as Map<String, Object>` | Decoded arguments.
public readonly property | extraContent `extraContent as Map<String, Object>` | Provider-specific metadata attached to the tool call.
public readonly property | id `id as String` | Provider-side call identifier.
public readonly property | name `name as String` | Requested tool name.

Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ToolCall `ToolCall(id as String, name as String, arguments as Map<String, Object> = null, extraContent as Map<String, Object> = null):` | Creates a tool call.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | toString `toString() as String:` | No summary.

Inherited Methods
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml