next_turn_params,仅修改紧接着的下一次请求。这些覆盖项会跨越审批检查点保留,并在下一轮后失效。
需要在每轮重新计算的策略请使用可调用函数。工具专属的交接设置请使用 next_turn_params。Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
在 Ruby Agent 的轮次之间更改路由、指令、工具和采样设置。
agent = PhaseoAgentSdk.create_agent(
id: "support-agent",
model: ->(turn) {
turn.run.step_count > 3 ? "openai/gpt-5.4" : "openai/gpt-5.4-nano"
},
instructions: ->(turn) {
"Resolve the request using the current context."
}
)
next_turn_params,仅修改紧接着的下一次请求。这些覆盖项会跨越审批检查点保留,并在下一轮后失效。
需要在每轮重新计算的策略请使用可调用函数。工具专属的交接设置请使用 next_turn_params。