klyn.llm.ToolRegistry.execute
method

    public execute(call as ToolCall) as String:

Description

Executes one tool call and returns its textual result.

Tool methods may return strings, numbers, booleans, lists, maps or richer objects. Chat providers expect tool results as message content, so non-string values are serialized as JSON before they are sent back to the model.

    result = tools.execute(call)
    print(result)

Throws

- Exception if the tool name is unknown or if the target method fails.