需审批的部署
waiting_for_human 后保存返回的运行状态,再使用与待处理调用 ID 关联的决策继续运行。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
参考 PHP 示例,了解工具、审批、流式传输和受限运行。
$deploy = new Tool(
id: "deploy",
description: "Deploy the selected release",
requireApproval: true,
execute: fn (array $input, $runtime) => $deployments->deploy($input)
);
waiting_for_human 后保存返回的运行状态,再使用与待处理调用 ID 关联的决策继续运行。
$stream = $agent->stream(input: $prompt, client: $client);
foreach ($stream->textStream() as $delta) { echo $delta; }
$result = $stream->getResult();