Send a message to an Oliver thread (starts a run).
POST/api/v1/oliver-threads/{oliver_thread_id}/messagesoliver:run
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Sends your message to the thread's agent and starts a run that answers it. Answers arrive as the run's answer (GET the run, or wait for it). A thread with an unfinished run is 409 naming that run. images attaches pictures to the message and needs Inject Oliver Images. On a progressive thread the message is a new run admitted by the Portal's progressive admission (neither oliver_agent_id nor oliver_model_id applies). The answer is 201 with the run's Location. Needs Start Oliver Runs and Execute Oliver Tools.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | create_oliver_thread_message |
| Portal の権限 | start_oliver_runs, execute_oliver_tools |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
oliver_thread_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverMessageCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json OliverMessage または object |
400 | invalid_version, malformed_json | 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 |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, 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 のコードです。各コードからそのページに移動できます。
スキーマ
OliverMessage
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agent_name | string または null | 必須 | |
content | string | 必須 | |
oliver_agent_id | string または null | 必須 | |
oliver_message_id | string | 必須 | |
oliver_run_id | string | 必須 | |
oliver_thread_id | string | 必須 | |
permission_mode | string | 必須 | ask or auto. |
status | string | 必須 | The run's status when it was started. |
OliverMessageCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
images | OliverMessageImageInput の配列 | 任意 | Images to attach to the message, as the chat's attach button does: each base64 (a data URL is accepted), with an optional caption. The Oliver image limits apply (count, bytes each and together, pixels): one over them is 413 payload_too_large or 422 on /images. |
message | string | 必須 | What the user says to the agent. |
oliver_agent_id | string または null | 任意 | The agent to answer; omit for the thread's agent (the default agent when it has none). |
oliver_model_id | string または null | 任意 | The model that answers this message, as the Portal's model picker chooses it for a turn: fast or smart, or an id from list_oliver_models. Omit for the agent's own model. |
OliverMessageImageInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
caption | string または null | 任意 | What the image shows, for the agent; default "User attached image". |
data | string | 必須 | The image bytes, base64; a data URL is accepted. PNG, JPEG, GIF or WebP. |