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.
Signature
def tool_call(name: str, arguments: Optional[Dict[str, Any]]) -> ScriptedReplyParameters
ParamField
strTool function name.
ParamField
OptionalArguments to call it with.
Returns
ResponseField
ScriptedReplyclass:ScriptedReply to put in the script.
Uses
ScriptedReplyScriptedToolCall
Source
View on GitHubpraisonaiagents/model_harness/scripted.py at line 311