Skip to main content
PhaseoAgentSdk::Tool値を作成し、define_toolで渡します。ツールには次の内容を含められます。
  • モデルに提示するJSONのparameters
  • input_schema、output_schema、event_schemaの検証コールバック
  • timeout_msとexecuteコールバック
  • 真偽値または呼び出し可能なrequire_approval
  • インタラクティブな処理向けのon_tool_calledとon_response_received
  • next_turn_paramsとon_error: "return-to-model"
暫定結果にはruntime.emit_progress、アプリケーションコンテキストにはset_contextを使います。スレッド数を制限して独立したツールを並列実行できますが、保存される結果はモデル呼び出し順を保ちます。

関連項目

最終更新日 2026年10月2日