Create an Oliver thread.
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Starts an empty chat thread of yours, with no run and no cost. Without oliver_agent_id it uses the organisation's default agent. contexts scopes the chat to documents, folders and dataviews ("ask Oliver about this document"): each must exist and be readable by you, or the call is refused (422 reference_not_found or reference_forbidden naming the ID you sent), and naming one needs the matching read scope. A progressive agent starts a progressive thread instead, together with its first message and run (message required; the Portal's progressive admission checks that it admits the caller to progressive agents, the tenant's controls and the agent's profile; it needs Start Oliver Runs and Execute Oliver Tools, and images need Inject Oliver Images). The thread starts in ask mode, where any write the agent proposes waits for your approval, unless permission_mode is auto (Oliver itself may not choose auto, 403). Send the first message with POST /oliver-threads/{oliver_thread_id}/messages. Needs Create Oliver Conversations.
| スコープ | oliver:run |
| 非同期 | いいえ |
| MCP ツール | create_oliver_thread |
| Portal の権限 | create_oliver_conversations |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
Idempotency-Key | header | string | 任意 | max 255 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | OliverThreadCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
201 | Success. | application/json OliverThread または 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 |
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 のコードです。各コードからそのページに移動できます。
スキーマ
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. |
OliverThread
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
agent_name | string または null | 必須 | |
contexts | OliverThreadContext の配列 | 必須 | What the chat is scoped to: documents, folders and dataviews the agent is told to work with. |
created_at | string (date-time) または null | 必須 | |
latest_run | OliverThreadRunRef または null | 必須 | The thread's most recent run; null when it has none. |
my_rating | OliverThreadFeedback または null | 必須 | Your own rating of the thread, as the Portal's rate dialog shows it; null until you rate it. Rate with rate_oliver_thread. |
oliver_agent_id | string または null | 必須 | The agent the thread talks to. |
oliver_thread_id | string | 必須 | |
permission_mode | string | 必須 | ask (any write waits for approval) or auto. |
title | string または null | 必須 | The chat's heading, taken from its first message; null until then. |
updated_at | string (date-time) または null | 必須 | When the thread last had a message. |
OliverThreadContext
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dataview_id | string または null | 必須 | The dataview, for type dataview. |
document_id | string または null | 必須 | The document, for type document. |
folder_id | string または null | 必須 | The folder, for type folder. |
label | string または null | 必須 | What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent. |
type | string | 必須 | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string または null | 必須 | The stored type of a context whose type is unknown. Read-only. |
OliverThreadContextInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
dataview_id | string または null | 任意 | The dataview, for type dataview. |
document_id | string または null | 任意 | The document, for type document. |
folder_id | string または null | 任意 | The folder, for type folder. |
label | string または null | 任意 | What the Portal shows for the context: a document's number, a folder's or dataview's name. Read-only: ignored when sent. |
type | string | 必須 | document, folder or dataview. A context this API does not set (a search, a clustering run, a redaction) reads as unknown. |
type_code | string または null | 任意 | The stored type of a context whose type is unknown. Read-only. |
OliverThreadCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
contexts | OliverThreadContextInput の配列 | 任意 | What to scope the chat to: a document, a folder or a dataview each, as {type, document_id | folder_id | dataview_id}. You must be able to read each, and your token needs documents:read, folders:read or dataviews:read to name one. |
images | OliverMessageImageInput の配列 | 任意 | A progressive agent only: pictures attached to the first message, as for create_oliver_thread_message. |
message | string または null | 任意 | A progressive agent only: the first message. A progressive thread is created together with its first message and run (the Portal's progressive admission); a standard thread starts empty and takes its first message with create_oliver_thread_message. |
oliver_agent_id | string または null | 任意 | The agent to chat with; omit for the organisation's default agent. |
permission_mode | string または null | 任意 | ask (the default: any write the agent proposes waits for your approval) or auto (writes run without asking, each audited on its tool call), as the Portal's mode toggle. Change it later with update_oliver_thread. |
OliverThreadFeedback
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
created_at | string (date-time) または null | 必須 | |
message | string または null | 必須 | What went wrong or right; required at 2 stars or fewer. |
oliver_thread_id | string | 必須 | |
rating | integer | 必須 | 1 to 5 stars. ≥ -2147483648; ≤ 2147483647 |
release | string または null | 必須 | The backend release the rating is tied to; null when unknown. |
OliverThreadRunRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
oliver_run_id | string | 必須 | |
status | string | 必須 | The run's status: planning, executing, running, waiting_for_user, completed, failed or cancelled (open). |