承認付きデプロイ
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