execute


Description:

public virtual async string execute (Chat chat_call, ToolCall tool_call, bool is_markdown = false)

Public method that creates a Request and delegates execution to it.

Converts parameters to Json.Node, calls deserialize() to create a Request object, then sets tool and agent properties, and calls its execute() method.

For wrapped tools, uses deserialize_wrapped() instead of deserialize().

Parameters:

chat_call

The chat call context for this tool execution

tool_call

The tool call object containing id, function name, and arguments

is_markdown

When true, called from skills agent path; output is shown with header_raw. No reformatting of request output.

Returns:

String result or error message (prefixed with "ERROR: " for errors)