Tool Call • AI Agent SDK

tool_call: Script a turn in which the model calls one tool.

tool_call

Method

</div>

This is a method of the ScriptedModel class in the scripted module.

Script a turn in which the model calls one tool.

Diagram

uses

returns

Agent

Tool: tool_call

Result

Signature

python
def tool_call(name: str, arguments: Optional[Dict[str, Any]]) -> ScriptedReply

Parameters

ParamField str

Tool function name.

ParamField Optional

Arguments to call it with.

Returns

ResponseField ScriptedReply

class:ScriptedReply to put in the script.

Uses

  • ScriptedReply
  • ScriptedToolCall

Source

View on GitHub

praisonaiagents/model_harness/scripted.py at line 311


Related Documentation