Approval-gated deployment
waiting_for_human, then continue it with a decision keyed by the pending call ID.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Copy focused PHP patterns for tools, approvals, streaming, and bounded runs.
$deploy = new Tool(
id: "deploy",
description: "Deploy the selected release",
requireApproval: true,
execute: fn (array $input, $runtime) => $deployments->deploy($input)
);
waiting_for_human, then continue it with a decision keyed by the pending call ID.
$stream = $agent->stream(input: $prompt, client: $client);
foreach ($stream->textStream() as $delta) { echo $delta; }
$result = $stream->getResult();
Was this page helpful?