需审批的部署
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.
参考 Ruby 示例,了解工具、审批、流式传输和受限运行。
deploy = PhaseoAgentSdk.define_tool(
id: "deploy",
description: "Deploy the selected release",
require_approval: true,
execute: ->(input, runtime) { deployments.deploy(input) }
)
waiting_for_human 后保存返回的运行状态,再使用与待处理调用 ID 关联的决策继续运行。
stream = agent.stream(input: prompt, client: client)
stream.text_stream.each { |delta| print delta }
result = stream.result