Skip to main content

execute_entry

Function execute_entry 

Source
pub async fn execute_entry(
    tool_key: &str,
    entry: &ScriptToolEntry,
    args: &Value,
    ctx: &ToolContext,
) -> AgentResult<Vec<Content>>
Expand description

Execute one script entry (shared by ScriptProvider / ScriptTool / the future plugin script form).

tool_key is the identity key (carried in errors); args MUST already have been validated by the host against the envelope.