Platform API 資料結構
Platform API v1 收送的每一種物件,逐欄列出,含執行的事件串流(RunEvents)與 Error 的形狀。
最後更新 2026-12-05
由 API 合約(Agent Lab Platform API 1.0.0-alpha.1)產生。說明文字是合約的英文原文。
Recovery#
What gets a refused request working again. Clients tolerate values added later.
型別 值 string可用值: authorize, configure, retry, none.
Error#
欄位 型別 必填 說明 errorobject是 — error.codestring是 Stable, UPPER_SNAKE_CASE. New codes may be added under an existing recovery. error.messagestring是 For the developer's logs; not for display to a person, and never parsed. error.recoveryRecovery 是 — error.requestIdstring是 Quote it when asking for support. error.problemsProblem []否 With RUN_CONFIGURATION_INVALID: every problem found, each with its field.
Page#
The page envelope every list answers, with its items beside it.
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page.
AccountWorkspace#
欄位 型別 必填 說明 idstring是 — namestring是 — slugstring是 The workspace's short name, in its console address. statestring是 deletion_scheduled only in the list filtered by it. 可用值: active, deletion_scheduled.rolestring否 The person's role in the workspace, when known. Clients tolerate roles added later. organizationobject否 The organization the workspace belongs to, once it is placed in one. organization.idstring是 — organization.namestring是 — deletionEffectiveAtstring (date-time)否 When a workspace scheduled for deletion is deleted; recoverable until then.
AccountWorkspaceList#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsAccountWorkspace []是 — creationobject否 Whether the person may create another workspace; absent from the deletion_scheduled list. creation.statusstring是 可用值: available, limit_reached. creation.remaininginteger 或 null否 With available, how many more; null when there is no limit. creation.limitinteger否 With limit_reached, the limit.
AccountWorkspaceCreate#
欄位 型別 必填 說明 namestring是 — slugstring是 —
WorkspaceAdmission#
欄位 型別 必填 說明 statusstring是 可用值: reachable, realm_not_admitted, no_membership. signInRealmsobject[]否 With realm_not_admitted, the entrances the workspace admits. signInRealms[].idstring是 — signInRealms[].kindstring是 — signInRealms[].loginMethodsstring[]是 —
Installation#
欄位 型別 必填 說明 idstring是 — workspaceIdstring是 — clientIdstring是 The OAuth client id of the installed application. applicationNamestring是 — installedAtstring (date-time)是 — grantedScopesstring[]是 What an administrator approved. pendingScopesstring[]是 What the application declares beyond them, awaiting an administrator's approval. tokenScopesstring[]是 What this token carries, and so what this call and the next ones with it may use.
WorkspaceMember#
欄位 型別 必填 說明 accountIdstring是 — rolestring是 The member's role in the workspace. Clients tolerate roles added later. capabilitiesstring[]是 What the role lets the member do in this workspace. Clients ignore names they do not know.
WorkspaceSettings#
欄位 型別 必填 說明 defaultModelstring是 The workspace's default model id; empty when it uses the platform's. systemPromptstring是 The instructions the workspace adds to every answer. requireEvalBeforePublishboolean是 — monthlyTokenBudgetinteger是 Tokens per calendar month; 0 keeps the platform's default. rollingWindowTokenBudgetinteger是 Tokens per rolling window; 0 keeps the platform's default. disableAutoToolExecutionboolean是 Every tool call waits for a person's approval. approvalChannelIdstring是 Where approval requests are delivered; empty keeps them in the console. localestring是 The language of platform-written messages. auditRetentionDaysinteger 或 null是 Null keeps every audit record. gatewayActivityRetentionDaysinteger 或 null是 Null keeps every AI Gateway activity record. sandboxPosturestring是 — sandboxAvailableboolean是 Whether this platform offers code execution to the workspace at all. taskFocusedboolean是 — generalAssistantEnabledboolean是 — timeZonestring是 IANA time zone.
WorkspaceSettingsPatch#
The settings to change; each field left out keeps its value.
欄位 型別 必填 說明 defaultModelstring否 A model id or capability profile the plan includes; empty uses the platform's default. systemPromptstring否 — requireEvalBeforePublishboolean否 — monthlyTokenBudgetinteger否 — rollingWindowTokenBudgetinteger否 — disableAutoToolExecutionboolean否 — approvalChannelIdstring否 Trimmed, then at most 60 characters; empty keeps approvals in the console. localestring否 可用值: en, zh-TW, zh-CN, ja, th. auditRetentionDaysinteger 或 null否 Null keeps every audit record. gatewayActivityRetentionDaysinteger 或 null否 Null keeps every AI Gateway activity record; a number deletes older records. taskFocusedboolean否 — generalAssistantEnabledboolean否 — timeZonestring否 An IANA time zone; empty uses the platform's.
InstructionVersion#
欄位 型別 必填 說明 seqinteger是 The version's number in the workspace, from 1. systemPromptstring是 — changedByAccountIdstring 或 null是 The member who set it; null for a version the platform wrote. createdAtstring (date-time)是 —
InstructionVersionPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsInstructionVersion []是 —
WorkspaceModule#
欄位 型別 必填 說明 modulestring是 The product (deployment, studio, aiRouting, channelSdk, apiGateway, or one added later). enabledboolean是 — planstring是 The product's plan (such as free).
WorkspaceModuleList#
Team#
欄位 型別 必填 說明 idstring是 — namestring是 — memberCountinteger是 — createdAtstring (date-time)是 — viewerRolestring 或 null是 The acting member's role in the team (manager or member); null when not on it.
TeamPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsTeam []是 — truncatedboolean是 The workspace has more teams than the platform lists.
Member#
欄位 型別 必填 說明 accountIdstring是 — emailstring 或 null是 — rolestring是 — statusstring是 — createdAtstring (date-time)是 When the membership began.
MemberPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsMember []是 — truncatedboolean是 The workspace has more members than the platform lists.
Model#
欄位 型別 必填 說明 providerstring是 — idstring是 — displayNamestring是 — isDefaultboolean是 The platform's default model. entitledboolean是 The workspace's plan includes it; a run naming one it does not is refused.
ResolvedModel#
欄位 型別 必填 說明 idstring是 — entitledboolean是 —
ModelCatalog#
欄位 型別 必填 說明 itemsModel []是 — capabilityProfilesobject[]是 Model choices by capability rather than by name, such as agentlab/balanced. capabilityProfiles[].idstring是 — capabilityProfiles[].tierstring是 — platformDefaultResolvedModel 是 — workspaceDefaultResolvedModel 是 —
KnowledgeAudience#
Who may retrieve it: organization, every member; team, the named teams and the workspace's owners and administrators.
型別 值 string可用值: organization, team.
KnowledgeDocument#
欄位 型別 必填 說明 idstring是 — titlestring是 — sourceTypestring是 markdown, text or pdf.byteSizeinteger是 — statusstring是 queued, indexing, waiting_for_confirmation, waiting_for_allowance, ready or failed. Only a ready document contributes to answers. Clients tolerate values added later.descriptionstring是 The summary indexing wrote; empty until ready. sectionCountinteger是 — errorstring 或 null是 Why indexing failed, for the developer's logs. failureCodestring 或 null是 A stable reason for some failures, such as spend_cap_reached. estimatedCostMicrosinteger是 Indexing's estimated cost, in millionths of a US dollar. spendCapMicrosinteger是 — audienceKnowledgeAudience 是 — personalboolean是 The acting member's own document, which no one else sees. createdAtstring (date-time)是 —
KnowledgeDocumentPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsKnowledgeDocument []是 —
KnowledgeDocumentUpload#
欄位 型別 必填 說明 titlestring是 — sourceTypestring是 可用值: markdown, text, pdf. contentstring是 The text, or for pdf the file base64-encoded. audienceKnowledgeAudience 否 — audienceTeamIdsstring (uuid)[]否 With audience: team, the teams it admits, by id.
KnowledgeQAEntry#
欄位 型別 必填 說明 idstring是 — questionstring是 — answerstring是 — audienceKnowledgeAudience 是 — createdAtstring (date-time)是 — updatedAtstring (date-time)是 —
KnowledgeQAPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsKnowledgeQAEntry []是 —
KnowledgeQACreate#
欄位 型別 必填 說明 questionstring是 — answerstring是 — audienceKnowledgeAudience 否 — audienceTeamIdsstring (uuid)[]否 With audience: team, the teams it admits, by id.
KnowledgeQAUpdate#
欄位 型別 必填 說明 questionstring是 — answerstring是 —
Channel#
欄位 型別 必填 說明 idstring是 — providerstring是 slack, line or teams. Clients tolerate values added later.teamNamestring是 The provider workspace or official account's name. teamRefstring是 The provider's own id for it. statusstring是 connected or revoked. Clients tolerate values added later.scopeCoveragestring是 Whether the provider granted everything the platform asks for. ambientReadinessstring是 Whether the platform can answer in it without being mentioned. createdAtstring (date-time)是 —
ChannelPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsChannel []是 — truncatedboolean是 The workspace has more channels than the platform lists.
LineConnect#
A LINE official account's Messaging API credentials. Never answered.
欄位 型別 必填 說明 channelSecretstring是 — accessTokenstring是 —
LinePushBudget#
欄位 型別 必填 說明 ceilinginteger是 Pushes the workspace's LINE summaries may send each calendar month; 0 sends none.
ConnectLinkCreate#
欄位 型別 必填 說明 redirectUristring是 Where the browser returns, one of the application's registered redirect URIs.
ConnectLink#
欄位 型別 必填 說明 urlstring是 Open it in the acting member's browser, once. expiresAtstring (date-time)是 After this the link connects nothing; ask for another.
EngagementPolicy#
欄位 型別 必填 說明 channelRefstring是 The provider's own id of the room. modestring是 addressed_only or ambient. Clients tolerate values added later.standingOrdersstring否 What the assistant follows in this room; empty for none.
EngagementPolicyPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsEngagementPolicy []是 — truncatedboolean是 The channel has more policies than the platform lists.
ChannelIdentity#
欄位 型別 必填 說明 idstring是 — providerUserIdstring是 The provider's own id of the user. accountIdstring是 The member it is bound to. evidencestring是 What was verified when it was bound. Clients tolerate values added later. createdAtstring (date-time)是 —
ChannelIdentityPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsChannelIdentity []是 — scopestring是 own, the acting member's binding only, or workspace, everyone's.truncatedboolean是 The workspace has more bindings than the platform lists.
LineQuota#
欄位 型別 必填 說明 knownboolean是 LINE answered. limitedboolean是 The official account's plan caps pushes per month. limitinteger是 — usedinteger是 —
Conversation#
欄位 型別 必填 說明 idstring是 — workspaceIdstring是 — categorystring是 conversation, one a person started; background, one automation started; evaluation, an evaluation run's. Clients tolerate values added later.channelboolean是 Held in a channel (Slack, LINE, Teams) rather than in Agent Lab. agentRefstring 或 null是 What it was held with, opaque, for grouping; not a resource of this API. titlestring是 The name a reader sees; the member's own name when they gave one. customTitlestring是 The member's own name for it; empty when they gave none. archivedboolean是 — pinnedboolean是 — unseenboolean是 It holds a reply the acting member has not opened; only ever true for the member who started it. updatedAtstring (date-time)是 —
ConversationPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsConversation []是 —
ConversationMessage#
欄位 型別 必填 說明 idstring是 — rolestring是 user or assistant. Clients tolerate values added later.statusstring是 pending while a reply is being written, completed or failed. Clients tolerate values added later.contentstring是 — refusalstring 或 null是 What stopped this reply, as a stable code, such as budget. Clients tolerate values added later. stoppedboolean是 The member stopped this reply; its content is what had been written. attachmentsConversationAttachment []是 The files the member attached to this message; empty on a read by anyone but the member who started the conversation. createdAtstring (date-time)是 —
ConversationDetail#
ConversationStateChange#
Only what is sent changes. pinned and archived are never both true.
欄位 型別 必填 說明 titlestring否 The member's own name for it; empty clears it back to the generated one. pinnedboolean否 — archivedboolean否 Archiving also unpins it. seenboolean否 The member opened it. Nothing marks a conversation unread. 可用值: true.
ConversationAttachment#
欄位 型別 必填 說明 idstring是 — namestring是 — sourceTypestring是 markdown, text or pdf. Clients tolerate values added later.byteSizeinteger是 — archivedboolean是 Archived after the member who attached it left the workspace.
ConversationAttachmentContent#
欄位 型別 必填 說明 idstring是 — namestring是 — sourceTypestring是 markdown, text or pdf. Clients tolerate values added later.byteSizeinteger是 — archivedboolean是 Archived after the member who attached it left the workspace. contentstring是 The file as it was attached, base64-encoded.
ConversationAttachmentInventory#
欄位 型別 必填 說明 itemsConversationAttachment []是 — uploaderActiveboolean是 The member who started the conversation is still a member; until they leave, their files cannot be archived.
ConversationSearch#
欄位 型別 必填 說明 itemsobject[]是 — items[].conversationConversation 是 — items[].matchesinteger是 How many of its messages matched; not what orders the list. items[].snippetstring是 The first matching message, clipped. searchedinteger是 How many conversations were searched.
ConversationSource#
欄位 型別 必填 說明 kindstring是 schedule or trigger. Clients tolerate values added later.idstring是 — namestring否 Its name; absent once it has been deleted.
BackgroundConversation#
欄位 型別 必填 說明 conversationConversation 是 — outcomestring 或 null是 How its run ended: succeeded, failed, refused or running; null when nobody recorded it. Clients tolerate values added later. sourceConversationSource 或 null是 What started it; null when it names nothing. lastActivitystring (date-time)是 —
BackgroundConversationPage#
BackgroundConversationSummary#
欄位 型別 必填 說明 groupsobject[]是 — groups[].sourceConversationSource 是 — groups[].totalinteger是 — groups[].succeededinteger是 — groups[].failedinteger是 — groups[].refusedinteger是 — groups[].runninginteger是 — groups[].unknowninteger是 Runs whose outcome nobody recorded. groups[].lastFailureAtstring (date-time) 或 null (date-time)是 The newest failed or refused run in the window. unattributedCountinteger是 — windowinteger是 How many of the newest background conversations were counted.
BackgroundConversationUnseen#
欄位 型別 必填 說明 countinteger是 — windowinteger是 How many of the member's newest background conversations were counted.
PendingAuthorizationList#
欄位 型別 必填 說明 itemsobject[]是 — items[].toolIdstring是 — items[].namestring是 — items[].descriptionstring是 —
McpCatalogEntry#
欄位 型別 必填 說明 idstring是 — scopestring是 platform (the platform's own) or workspace (the workspace registered it). Clients tolerate values added later.namestring是 — urlstring是 The connector's MCP server. authTypestring是 How a connection authenticates: none, static_bearer, client_credentials or oauth (in the browser, through POST …/mcp/connections). Clients tolerate values added later. descriptionstring是 — statusstring是 enabled, disabled or deprecated. Clients tolerate values added later.healthstring是 unknown, healthy or unhealthy. Clients tolerate values added later.lastErrorstring 或 null是 Why the last health check failed; null when it did not, or for a member who may not manage connections. toolsOmittedinteger是 Tools the server exposed beyond what the platform keeps.
McpCatalog#
欄位 型別 必填 說明 itemsMcpCatalogEntry []是 — truncatedboolean是 The workspace has more connectors than the platform lists.
McpConnection#
One identity connected to a connector. Its credential is never answered.
欄位 型別 必填 說明 idstring是 — catalogEntryIdstring是 — scopestring是 workspace (shared by everyone) or member (one member's own). Clients tolerate values added later.labelstring 或 null是 Names one of several shared identities of a connector. authTypestring是 As the connector's authType. statusstring是 connected, needs_reauth (connect again with POST …/mcp/connections) or revoked. Clients tolerate values added later.ownedByMeboolean是 It is the acting member's own. delegationModestring是 Whose permission applies at the connector, in the platform's delegation taxonomy. Clients tolerate values added later. appliesMemberPermissionboolean是 Calls act with the member's own permission at the connector. credentialExpiresboolean是 The credential is short-lived and renewed. outputPolicystring是 Who may read what its calls answer: inherit, workspace or personal. Clients tolerate values added later.
McpConnectionPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsMcpConnection []是 —
McpConnectionCreate#
欄位 型別 必填 說明 catalogEntryIdstring是 The connector, one the workspace registered. scopestring是 Shared by everyone, or the acting member's own. 可用值: workspace, member. labelstring否 Names one of several shared identities; only with workspace. redirectUristring是 Where the browser returns, one of the application's registered redirect URIs.
欄位 型別 必填 說明 namestring是 — descriptionstring是 — serverDeclaredReadOnlyboolean 或 null是 The server's own claim, null when it makes none; it never lowers the approval bar. workspaceReadOnlyboolean 或 null是 The workspace's own declaration, null when it made none; this, never the server's claim, decides whether a call waits for approval.
The identity a tool presents. The credential itself is never answered.
欄位 型別 必填 說明 idstring是 — toolIdstring是 — scopestring是 workspace (shared by everyone) or member (one member's own). Clients tolerate values added later.ownedByMeboolean是 It is the acting member's own. delegationModestring是 Whose permission applies downstream, in the platform's delegation taxonomy. Clients tolerate values added later. appliesMemberPermissionboolean是 — credentialExpiresboolean是 — statusstring是 connected or revoked. Clients tolerate values added later.
欄位 型別 必填 說明 itemsToolCredential []是 — truncatedboolean是 The workspace has more tool credentials than the platform lists.
欄位 型別 必填 說明 toolIdstring是 — tokenstring是 The credential the tool presents. Never answered.
OAuthError#
欄位 型別 必填 說明 errorstring是 — error_descriptionstring否 —
LegacyErrorString#
The body these operations answered before this document; kept within v1.
LegacyErrorCode#
The body this operation answered before this document; kept within v1.
欄位 型別 必填 說明 errorobject是 — error.codestring是 —
TokenRequest#
欄位 型別 必填 說明 grant_typestring是 可用值: authorization_code, refresh_token, client_credentials. codestring否 — code_verifierstring否 — client_idstring否 — client_secretstring否 client_secret_post; a workspace application's secret.redirect_uristring否 — resourcestring否 — refresh_tokenstring否 — installation_idstring否 client_credentials: the installation, by id.workspace_idstring否 client_credentials: the installation, by the workspace it is in.scopestring否 client_credentials: install or absent.
TokenResponse#
欄位 型別 必填 說明 access_tokenstring是 — token_typestring是 可用值: Bearer. expires_ininteger是 Seconds. refresh_tokenstring否 — scopestring是 Space-separated. id_tokenstring否 Present when openid was granted to an operators' own application.
InstallationTokenResponse#
An installation token (client_credentials).
欄位 型別 必填 說明 access_tokenstring是 — token_typestring是 可用值: Bearer. expires_ininteger是 Seconds. scopestring是 — installation_idstring是 — workspace_idstring是 —
InstallResult#
An install request's code answers where the application was installed, and no token.
欄位 型別 必填 說明 installation_idstring是 — workspace_idstring是 — scopestring是 —
Introspection#
欄位 型別 必填 說明 activeboolean是 — substring否 The account id. client_idstring否 — scopestring否 Space-separated. expinteger否 Unix seconds. audstring否 — issstring否 — token_typestring否 可用值: Bearer. workspace_idstring否 An installation token names its workspace.
UserInfo#
欄位 型別 必填 說明 substring是 — workspace_idstring是 — workspace_slugstring否 — workspace_namestring否 — emailstring否 — email_verifiedboolean否 — namestring否 —
OpenIDConfiguration#
欄位 型別 必填 說明 issuerstring是 — authorization_endpointstring是 — token_endpointstring是 — userinfo_endpointstring是 — revocation_endpointstring否 — introspection_endpointstring否 — jwks_uristring是 — response_types_supportedstring[]是 — grant_types_supportedstring[]否 — subject_types_supportedstring[]是 — id_token_signing_alg_values_supportedstring[]是 — code_challenge_methods_supportedstring[]否 — token_endpoint_auth_methods_supportedstring[]否 — introspection_endpoint_auth_methods_supportedstring[]否 — scopes_supportedstring[]否 — claims_supportedstring[]否 —
欄位 型別 必填 說明 issuerstring是 — authorization_endpointstring是 — token_endpointstring是 — revocation_endpointstring否 — registration_endpointstring否 — response_types_supportedstring[]是 — grant_types_supportedstring[]否 — code_challenge_methods_supportedstring[]否 — token_endpoint_auth_methods_supportedstring[]否 — scopes_supportedstring[]否 — client_id_metadata_document_supportedboolean否 —
SdkEventVerificationKey#
欄位 型別 必填 說明 versionstring是 agentlab-sdk-event-v1-ed25519.keyIdstring是 — algorithmstring是 可用值: Ed25519. publicKeystring是 base64url, no padding.
SdkReply#
欄位 型別 必填 說明 versionstring是 可用值: sdk-event/v1. correlationIdstring (uuid)是 The delivered event's correlationId. contentstring是 The answer's text; not blank.
Problem#
欄位 型別 必填 說明 fieldstring是 The request's JSON path to the value, such as agent.skills[0].name. reasonstring是 For the developer; not for display to a person, and never parsed.
RunCreate#
欄位 型別 必填 說明 conversationIdstring (uuid)否 A run conversation of this member and installation to continue; omitted starts a new one. agentAgentConfig 是 — inputRunInputMessage []是 The member's message. backgroundboolean否 An automation with no reader waiting; not streamed. 預設值: false. replyToobject否 — replyTo.eventIdstring (uuid)是 The eventId of an sdk-event/v1 event delivered to this installation's application, accepted and not yet answered, that no other run answers (a run that failed, was cancelled or could not deliver no longer does). metadataRunMetadata 否 —
EvaluationRunCreate#
EvaluationCase#
欄位 型別 必填 說明 idstring是 The application's own id for the case, echoed back with its result; no surrounding spaces. titlestring否 A name for the case; omitted, the start of its question. inputRunInputMessage []是 The member's message the case asks; at most 1000 characters in all. expectationsEvaluationExpectations 是 — weightinteger否 What the case counts for beside the others. 預設值: 1.
EvaluationExpectations#
欄位 型別 必填 說明 rubricstring是 What a good answer does, which the platform's judge reads; no surrounding spaces. requiredToolsstring[]否 Tools the answer must have used successfully, by name. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces. forbiddenToolsstring[]否 Tools the answer must not reach for at all, by name; none also required. Each name at most 120 bytes in UTF-8, listed once, no surrounding spaces. groundingRequiredboolean否 The answer must rest on the configuration's knowledge. 預設值: false. mustContainstring[]否 Phrases every one of which the answer's text must contain, checked without the judge: a missing phrase fails the case whatever the judge thinks. Compared after Unicode case folding, NFC and collapsing every run of whitespace to one space, as a substring (not a word). Each phrase listed once in that form, no surrounding spaces. mustNotContainstring[]否 Phrases none of which the answer's text may contain, compared as mustContain is; a phrase found fails the case whatever the judge thinks. None may sit inside a mustContain phrase. Each phrase listed once in that form, no surrounding spaces.
EvaluationRun#
欄位 型別 必填 說明 idstring是 — statusstring是 running, completed (every case answered and judged) or failed (reason says why). Clients tolerate values added later. 可用值: running, completed, failed.reasonstring 或 null是 Why the run failed; null otherwise. passedinteger是 Cases judged so far that passed. failedinteger是 Cases judged so far that did not pass, an error verdict included. casesEvaluationCaseResult []是 — createdAtstring (date-time)是 When the run started; on the 202, when the start was answered, which may differ by a moment. completedAtstring (date-time) 或 null (date-time)是 —
EvaluationCaseResult#
欄位 型別 必填 說明 idstring是 The case's id as the application sent it. resultnull 或 EvaluationVerdict 是 The answer and the judge's verdict; null until the case is answered and judged.
EvaluationVerdict#
欄位 型別 必填 說明 verdictstring是 pass, fail, or error (the case could not be answered or judged). Clients tolerate values added later. 可用值: pass, fail, error.outputstring是 The answer's text. rationalestring是 The judge's reasoning, or why the case could not be answered. refusalstring 或 null是 Which limit refused the answer, when the verdict is error for that reason. modelstring是 The model that answered; empty when none did. durationMsinteger是 How long the answer took; 0 when not recorded. toolCallsobject[]是 The tools the answer reached for, in order, and how each call ended. toolCalls[].namestring是 — toolCalls[].statusstring是 How the call ended (succeeded, failed, rejected for a call declined because it waited for a person, refused). Clients tolerate values added later. weightinteger是 What the case counted for; 0 when not recorded. phraseFailuresobject[]是 Every mustContain phrase the answer's text lacks and every mustNotContain phrase it has, as the application sent it, whatever else decided the verdict; empty when the verdict is error or every phrase held. phraseFailures[].expectationstring是 mustContain or mustNotContain: the list the phrase came from. 可用值: mustContain, mustNotContain.phraseFailures[].phrasestring是 —
DeploymentCreate#
欄位 型別 必填 說明 entryKindstring是 slack, slack_channel or line; values may be added later.entryRefstring是 The entry point in the channel's own terms, as createDeployment describes. agentAgentConfig 否 —
DeployedAgentReplace#
欄位 型別 必填 說明 agentAgentConfig 是 — expectedRevisioninteger是 The revision this replaces, as the deployment answered it; 0 for the first.
DeployedAgent#
欄位 型別 必填 說明 agentRefstring 或 null是 The deployed configuration's ref, null when it named none. revisioninteger是 Counts the configurations deployed to this entry; the next replacement names it. deployedAtstring (date-time)是 —
Deployment#
欄位 型別 必填 說明 idstring是 — entryKindstring是 — entryRefstring是 — statusstring是 active or disabled; clients tolerate values added later.responderstring是 application, a registered application answers the entry; agent, an assistant the console deployed. Clients tolerate values added later.applicationIdstring 或 null是 The registered application that answers the entry, null for an assistant. thisApplicationboolean是 The calling installation's application answers the entry. agentDeployedAgent 或 null是 The entry's deployed configuration, which the platform answers its events with; null when its events are delivered to the application, or the entry is not an application's. A first PUT …/agent names expectedRevision: 0. createdAtstring (date-time)是 —
DeploymentPage#
欄位 型別 必填 說明 nextCursorstring 或 null否 Absent or null on the last page. itemsDeployment []是 —
The application's own values, kept with the run and answered back; never interpreted.
AgentConfig#
The agent, passed with every run. The platform keeps it with the run and stores no agent.
欄位 型別 必填 說明 refstring否 The application's own id for the agent and its version, opaque to the platform; answered back as agentRef. namestring是 — instructionsstring是 — modelstring是 "auto" for the workspace's default, or a model the workspace may use (GET …/models).skillsInlineSkill []否 Standing instructions sent with the agent's, in order; together at most 6000 characters with their headings. toolsRunTool []否 The tools the agent may call, and nothing else: no platform tools, no member's own connections beyond those named. Each runs under the platform's tool authority, bound to this configuration: a call approved under it never runs under another. knowledgeRunKnowledge 否 —
type: "mcp": the tools of an MCP connection, by connectionId — the member's own, or an organization-shared one when the member's role may manage connections — narrowed by allowedTools (left out: every tool its server offers); approval is "always", a person approves every call. type: "http": an HTTPS action the configuration defines, presenting no credential: name, description, inputSchema (a JSON Schema object), url, method; approval: "never" lets a GET run unattended when the workspace allows it. A field of the other type is refused.
欄位 型別 必填 說明 typestring是 可用值: mcp, http. connectionIdstring否 — allowedToolsstring[]否 — approvalstring是 可用值: always, never. namestring否 — descriptionstring否 — inputSchemaobject否 — urlstring否 — methodstring否 可用值: GET, POST.
RunKnowledge#
What the agent answers from. scope: "listed" (the default) retrieves from the documents and Q&A entries listed; "workspace" from everything in the workspace the member may read. The member's team audience filters either.
contextProvider: "self" asks the calling application instead, on every turn: the platform sends a signed context-provider/v1 request to the context endpoint the application's registration publishes, and writes what it answers into the turn as it writes its own knowledge. It is the answer's only knowledge, so it is refused beside documentIds, qaIds or scope: "workspace"; and it is refused before the run starts when the installation is not granted context:provide or the registration publishes no context endpoint. A turn whose request fails (timeout, error, invalid answer, the installation revoked since) is answered without knowledge, and nothing is recorded as its grounding.
欄位 型別 必填 說明 documentIdsstring[]否 — qaIdsstring[]否 Every listed entry the member may read is sent with each answer. scopestring否 可用值: listed, workspace. contextProviderstring否 可用值: self.
InlineSkill#
欄位 型別 必填 說明 namestring是 — instructionsstring是 —
欄位 型別 必填 說明 rolestring是 可用值: user. contentRunTextPart []是 Text parts, joined with a blank line; at most 4000 characters in all.
RunTextPart#
欄位 型別 必填 說明 typestring是 可用值: text. textstring是 —
Run#
欄位 型別 必填 說明 idstring是 — conversationIdstring是 — statusstring是 queued, running, requires_action (a tool call waits for approval), completed, failed (cancelled says whether it was stopped), or refused (a limit refused the answer; refusal says which). Clients tolerate values added later. 可用值: queued, running, requires_action, completed, failed, refused.agentRefstring 或 null是 The configuration's ref; null when it had none. outputRunOutputMessage [] 或 null是 The answer, when completed. refusalstring 或 null是 Which limit refused the answer, when refused. metadataRunMetadata 否 — backgroundboolean否 — cancelledboolean否 The run was stopped (POST …/runs/{runId}/cancel) before it finished; its status is failed. replyToobject 或 null否 The event the run answers, when it was started with replyTo. replyTo.eventIdstring是 — replyTo.deliverystring是 pending until the run settles; delivered; or not_delivered, the run did not complete or the event could no longer be answered (the application may still answer it with POST /v1/sdk/replies). Clients tolerate values added later. 可用值: pending, delivered, not_delivered.requiredActionnull 或 RunRequiredAction 否 What the run waits on, when requires_action; else null. createdAtstring (date-time)是 —
RunEvents#
Server-sent events, each event: <name> and one data: line of JSON:
run: the whole Run; first, whenever its status changes, and last when it settles.output_text.delta: {"delta": string}, text the answer gained while running. The settled run event carries the whole answer.error: an Error; the run could not be read, and the stream ends.
Lines starting with : keep the connection open. The stream ends when the run settles, or after ten minutes; read or stream the run again with GET …/runs/{runId}. A streamed POST under Idempotency-Key keeps the events written before the stream ended, and a retry replays exactly those; read the run with GET for where it stands.
RunRequiredAction#
欄位 型別 必填 說明 idstring是 — namestring是 The tool, as the agent called it (an MCP tool's name is prefixed mcp__). argumentsobject是 What the agent passed. readOnlyboolean 或 null是 The risk the workspace declared for this tool: true read-only, false writing, null undeclared (approved as destructive). reasonstring 或 null是 Why the call waits for a person beyond the configuration asking, when there is one. createdAtstring (date-time)是 —
欄位 型別 必填 說明 decisionstring是 可用值: approve, reject.
RunOutputMessage#
欄位 型別 必填 說明 rolestring是 可用值: assistant. contentobject[]是 — content[].typestring是 可用值: text. content[].textstring是 —
UsageReport#
欄位 型別 必填 說明 sinceDaysinteger是 The window the report covers, in days. itemsAgentRefUsage []是 — truncatedboolean是 There are more groups than the report lists.
AgentRefUsage#
欄位 型別 必填 說明 agentRefstring 或 null是 The configuration's ref; null for configurations passed without one. kindstring是 run or evaluation. Clients tolerate values added later.turnsinteger是 Replies answered. modelCallsinteger是 Model calls made for those replies; a reply that calls tools makes several. inputTokensinteger是 Input tokens charged at the full rate (not read from or written to a cache). outputTokensinteger是 — cachedReadTokensinteger是 — cacheWriteTokensinteger是 — costnull 或 UsageCost 是 What it cost at the workspace's prices; null for a member who may not read cost.
UsageCost#
欄位 型別 必填 說明 amountUsdnumber是 — pricingCompleteboolean是 Every model was priced at the workspace's prices. When false, the models in unpricedModels are counted at the platform's list price where it has one. unpricedModelsstring[]是 —
MemoryFact#
欄位 型別 必填 說明 idstring是 — kindstring是 standing or episodic. Clients tolerate values added later.bodystring是 One sentence, at most 1000 characters. sourceLabelstring是 Where it was learned, as the console names it. sourceTrustedboolean是 — explicitboolean是 Someone stated it deliberately, rather than an assistant inferring it. organizationWideboolean是 — capturedAtstring (date-time)是 —
MemoryRevision#
欄位 型別 必填 說明 idstring是 — opstring是 What the line records, such as edit or delete. Clients tolerate values added later. bodystring是 — authorAccountIdstring 或 null是 The member who made the change; null when an assistant made it. atstring (date-time)是 —
MemoryNotebook#
MemoryFactEdit#
欄位 型別 必填 說明 expectedBodystring是 The fact's sentence as last read. bodystring是 —
TranscriptionCreate#
欄位 型別 必填 說明 audiostring是 A mono 16 kHz 16-bit PCM WAV of at most two minutes, base64-encoded.
Transcription#
OutreachSend#
欄位 型別 必填 說明 targetUserRefstring否 A person, by their Slack user id. Exactly one of this and targetChannelRef. targetChannelRefstring否 A channel, by its Slack id. Exactly one of this and targetUserRef. bodystring是 The message, at most 4000 characters. reasonstring是 Why it is sent, at most 300 characters; kept with the message.
OutreachMessage#
欄位 型別 必填 說明 idstring是 — channelIdstring是 The channel it was sent through. targetRefstring是 The Slack conversation it was posted to (a direct message's, for a person). bodystring是 — reasonstring是 — statusstring是 pending, sent, abandoned or unknown. Clients tolerate values added later.attemptsinteger是 — lastErrorstring是 Why the latest attempt failed; empty when none did. createdAtstring (date-time)是 —
OutreachList#
欄位 型別 必填 說明 itemsOutreachMessage []是 — truncatedboolean是 The member has older sends in the workspace than the 50 that were read.
Gateway#
欄位 型別 必填 說明 enabledboolean是 — operatorDisabledboolean是 Agent Lab turned the Gateway off for this workspace. plannull 或 GatewayPlan 是 Null while the Gateway is off, and for a member who may not read usage.
GatewayPlan#
欄位 型別 必填 說明 planstring是 The plan's name. Clients tolerate values added later. sourcestring是 Where the plan comes from. Clients tolerate values added later. includedRequestsinteger 或 null是 The requests the plan includes this month; null when it does not limit them. usedRequestsinteger 或 null是 The requests made this month; null when they are not counted. periodStartstring (date-time)是 — periodEndstring (date-time)是 — asOfstring (date-time)是 — spendCapUsdnumber 或 null是 The plan's model-spend ceiling; null without one. spentUsdnumber 或 null是 All Gateway spend the workspace made; null when some of it has no price. creditnull 或 GatewayCredit 是 The prepaid credit; null before the first credit.
GatewayCredit#
欄位 型別 必填 說明 creditedUsdnumber是 Every top-up, contract credit and redeemed code. spentUsdnumber 或 null是 What was drawn from it; null when some spend has no price. balanceUsdnumber 或 null是 What is left; null when the spend is not known.