Skip to main content

run_sandbox_tool

Function run_sandbox_tool 

Source
pub async fn run_sandbox_tool(
    state: &SharedState,
    a: Value,
) -> Result<Value, ToolError>
Expand description

run_sandbox takes the same body as POST /api/debug/sandbox. Shape errors come back with a hint showing the accepted payload, because a model that guessed wrong needs the correct shape, not just the field name.