API コントラクト(Agent Lab Platform API 1.0.0-alpha.1)から生成しています。説明文はコントラクトの英語の原文のままです。
The workspace's knowledge library: documents and curated Q&A entries, which a run's configuration names by id. Read and changed as the acting member, with what they may see and do in the console.
GET /v1/workspaces/{workspaceId}/knowledge/documents
The workspace library as the acting member sees it, newest first: documents whose audience admits the member, and the member's own personal documents. A run's configuration names documents from here by id.
スコープ
実行主体
認証
Idempotency-Key
knowledge:read
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
POST /v1/workspaces/{workspaceId}/knowledge/documents
Stores the document and queues it for indexing, which runs in the background: the answer is queued, and the document is usable once a later list shows it ready. Markdown and plain text are sent as text (at most 2 MiB); a PDF is sent base64-encoded (at most 5 MiB of PDF). The body is at most 8 MiB. Needs a member who may manage the workspace's knowledge. audience: team admits the named teams and the workspace's owners and administrators; it is set at upload so the document is never readable more widely first. A large document may stop at waiting_for_confirmation until someone confirms its indexing cost in the console.
スコープ
実行主体
認証
Idempotency-Key
knowledge:write
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
Removes the document from the library and from every answer that used it. Needs a member who may manage the workspace's knowledge, or the owner of a personal document. A document of another workspace is not found.
スコープ
実行主体
認証
Idempotency-Key
knowledge:write
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
Curated questions and answers the acting member's audience admits, newest first. With search, only entries whose question or answer contains every word of it.
スコープ
実行主体
認証
Idempotency-Key
knowledge:read
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
cursor
query
string
いいえ
The nextCursor of the previous page. Opaque.
limit
query
integer
いいえ
Items per page. 既定値: 50.
search
query
string
いいえ
Words that must each appear in the question or the answer.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
Usable in answers as soon as it is saved. Needs a member who may manage the workspace's knowledge. audience: team admits the named teams and the workspace's owners and administrators, from the moment the entry exists.
スコープ
実行主体
認証
Idempotency-Key
knowledge:write
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
Replaces the question and the answer; every answer that uses the entry uses the new wording. Who the entry is for does not change. Needs a member who may manage the workspace's knowledge. An entry of another workspace is not found.
スコープ
実行主体
認証
Idempotency-Key
knowledge:write
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).
Removes the entry from the library and from every answer that used it. Needs a member who may manage the workspace's knowledge. An entry of another workspace is not found.
スコープ
実行主体
認証
Idempotency-Key
knowledge:write
member
installationToken
—
パラメーター
名前
場所
型
必須
説明
workspaceId
path
string
はい
The workspace, by id. It must be the installation's.
Agentlab-On-Behalf-Of
header
string
はい
The account id of the member the installation acts for: a current member of the workspace whose sign-in to the application there is still live, neither revoked nor expired. When the member's sign-in expires, the application acts for them again once they sign in again.
Refused: SCOPE_NOT_GRANTED (configure); WORKSPACE_NOT_INSTALLED, the path names a workspace other than the installation's (configure); MEMBER_REQUIRED, no single Agentlab-On-Behalf-Of (none); MEMBER_NOT_AUTHORIZED, the named account is not a current member who signed in to the application here, or the member may not read or do this (authorize); SERVER_TO_SERVER_ONLY, sent from a browser (none); PRODUCT_ACCESS_DENIED, the workspace's plan does not include it (configure).