Wait for an Oliver run to finish or pause.
GET/api/v1/oliver-runs/{oliver_run_id}/waitoliver:run
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Long-polls the run for up to wait_seconds (at most 50) and answers the run's summary, with timed_out true when the wait ran out first. Requires the conversation, run, tool history, tool request and tool result read permissions.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | wait_oliver_run |
| Portal の権限 | view_oliver_conversations, view_oliver_runs, view_oliver_tool_execution_history, view_oliver_tool_requests, view_oliver_tool_results |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_run_id | path | string | 必須 | |
wait_seconds | query | integer または null | 任意 | Seconds to wait for the run to finish or pause, up to 50 (default 30). |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json OliverRunWait |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
| コード | ステータス |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
スキーマ
OliverContextBreakdown
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
latest_user_message_percent | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
memory_topics_percent | integer または null | 必須 | The memory topics in the system instructions; null when the agent's prompt carries none. |
messages_percent | integer | 必須 | The conversation so far. ≥ -2147483648; ≤ 2147483647 |
system_instructions_percent | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
tool_definitions_percent | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
OliverContextWindow
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
breakdown | OliverContextBreakdown | 必須 | |
compaction_buffer_percent | integer または null | 必須 | Percent of the window kept free before the conversation is compacted. |
model_name | string | 必須 | |
used_percent | integer | 必須 | Percent of the model's context window the latest prompt filled. ≥ -2147483648; ≤ 2147483647 |
OliverRun
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agent_name | string または null | 必須 | |
answer | OliverRunAnswer または null | 必須 | |
child_runs | OliverRunChild の配列 | 必須 | |
created_at | string (date-time) または null | 必須 | |
error | OliverRunError または null | 必須 | Why the run failed; null unless it failed. |
is_finished | boolean | 必須 | |
oliver_agent_id | string または null | 必須 | |
oliver_run_id | string | 必須 | |
oliver_thread_id | string | 必須 | |
origin | string または null | 必須 | |
parent_oliver_run_id | string または null | 必須 | The run that delegated to this one, for a sub-agent run. |
pending | OliverRunPending または null | 必須 | The question or approval the run waits on; null otherwise. |
permission_mode | string | 必須 | ask or auto. |
progressive_wait | OliverRunProgressiveWait または null | 必須 | A progressive run only: why it stopped and the checkpoint revision that resumes it (resume_oliver_run); null for a standard run. |
status | string | 必須 | planning, executing, running, waiting_for_user, waiting_for_surface_save, waiting_for_closure, paused, completed, failed or cancelled (open). |
steps | OliverRunStep の配列 | 必須 | |
updated_at | string (date-time) または null | 必須 | |
usage | OliverRunUsage | 必須 | The tokens and cost of the messages the run wrote, and the context-window breakdown of its latest call. The tool calls are listed by list_oliver_run_tool_calls. |
waiting_for | string または null | 必須 | What the run waits for, when it is paused on something other than an answer. |
OliverRunAnswer
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
from_sub_agent | boolean | 必須 | True when the answer is a sub-agent's reply the run delegated to. |
is_final | boolean | 必須 | True once the run has completed. |
oliver_message_id | string | 必須 | |
oliver_thread_id | string または null | 必須 | The sub-agent's thread, when from_sub_agent is true. |
text | string | 必須 |
OliverRunChild
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agent_name | string または null | 必須 | |
oliver_run_id | string | 必須 | |
oliver_thread_id | string | 必須 | |
status | string | 必須 | |
usage | OliverRunUsage | 必須 | What the sub-agent run cost and how full its context window was. |
OliverRunError
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
error | string または null | 必須 | The error the dispatch recorded. |
step_summary | string または null | 必須 | The summary of the failed step. |
OliverRunPending
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
asked_by_sub_agent | boolean | 必須 | True when a sub-agent asked; the answer goes to it. |
details | object | 必須 | What the agent proposes, as it stated it (an approval's operation summary, risk level and so on). |
gated_tool | string または null | 必須 | The tool an approval holds. |
kind | string | 必須 | approval or clarification (open). |
multi_select | boolean | 必須 | |
question | string または null | 必須 | The question a clarification asks. |
steps | OliverRunQuestionStep の配列 | 必須 | |
suggestions | string の配列 | 必須 | |
tool_call_key | string | 必須 | Quote it in respond. |
OliverRunProgressiveWait
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
blocked_code | string または null | 必須 | Why no resume is accepted yet (for example ReconciliationRequired); null when one is. |
resume_reason | string または null | 必須 | continue when resume_oliver_run is accepted now; null when no resume is accepted yet. |
state_revision | integer | 必須 | The checkpoint revision the run stopped at: send it as expected_state_revision to resume_oliver_run. ≥ -2147483648; ≤ 2147483647 |
wait_code | string または null | 必須 | The reason code of the wait. |
wait_kind | string または null | 必須 | What the run waits for, as the runtime recorded it; null when it is not waiting. |
OliverRunQuestionStep
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
multi_select | boolean | 必須 | |
question | string | 必須 | |
step_key | string | 必須 | The step's key: the step_answers key. |
suggestions | string の配列 | 必須 |
OliverRunStep
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
capability | string または null | 必須 | |
created_at | string (date-time) または null | 必須 | |
kind | string | 必須 | |
output_summary | string または null | 必須 | |
seq | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
status | string | 必須 |
OliverRunUsage
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
context_window | OliverContextWindow または null | 必須 | How full the model's context window was at the run's latest call; null until the run has made one. |
cost | string または null | 必須 | What the run's model calls cost, as the Portal records it for the chat; null when none was recorded. |
reasoning_tokens | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
request_tokens | integer | 必須 | Tokens sent to the model across the messages the run wrote. ≥ -2147483648; ≤ 2147483647 |
response_tokens | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
OliverRunWait
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
run | OliverRun | 必須 | |
timed_out | boolean | 必須 | True when the wait ended before the run finished or paused. |