Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
验证最终输出、重试模型调用,并检查已完成的 Ruby 运行。
agent = PhaseoAgentSdk.create_agent(
id: "research-agent",
model: "openai/gpt-5.4-nano",
model_retry: PhaseoAgentSdk::ModelRetryConfig.new(
max_retries: 3,
base_delay_ms: 500,
max_delay_ms: 4_000
)
)
result = agent.run(input: prompt, client: client)
puts result.output
puts result.run.status
puts result.usage[:total_tokens]
puts result.usage[:cost]