DocsHarness SDK

This reference is currently available in English. The Cloud console remains in your selected language.

BEEOS CLOUD / DEVELOPER REFERENCE

Operations and runtime methods

The operation route table and the runtime methods Cloud may deliver.

Every Cloud route the SDK uses has a stable operation id. Build paths with the helper so path parameters are percent-encoded.

Operation table

Every operation of HARNESS_OPERATIONS / OPERATIONS. The service column names the Cloud component whose origin receives the request; {name} in a path is a path parameter.

Operation idHTTPPathTarget serviceDescription
runtimeRegisterPOST/api/v1/runtime/registrationsagent-gatewayRegisters a runtime and returns its lease.
runtimeHeartbeatPOST/api/v1/runtime/registrations/{registrationId}/heartbeatagent-gatewayRenews the lease of a registration.
runtimeRealtimeTokenCreatePOST/api/v1/runtime/realtime/tokenmessage-serviceCreates a realtime connection token with the channels to follow.
runtimeConversationSyncPOST/api/v1/runtime/conversationsmessage-serviceCreates or updates the conversation of a runtime operation.
runtimeConversationMessagesListGET/api/v1/runtime/conversations/{conversationId}/messagesmessage-serviceLists the messages of a conversation, one page at a time.
runtimeConversationMessageCreatePOST/api/v1/runtime/conversations/{conversationId}/messagesmessage-servicePosts a message to a conversation.
runtimeConversationMessageGetGET/api/v1/runtime/conversations/{conversationId}/messages/{messageId}message-serviceReads one message of a conversation.
runtimeConversationMessagePatchPATCH/api/v1/runtime/conversations/{conversationId}/messages/{messageId}message-serviceChanges a message that is being streamed.
runtimeConversationRunStartPOST/api/v1/runtime/conversations/{conversationId}/runs/startmessage-serviceStarts a run of a conversation.
runtimeConversationRunFinishPOST/api/v1/runtime/conversations/{conversationId}/runs/finishmessage-serviceFinishes a run of a conversation.
runtimeDeliveriesReadPOST/api/v1/runtime/deliveries/readmessage-serviceReads pending runtime-method deliveries.
runtimeDeliveriesRenewPOST/api/v1/runtime/deliveries/renewmessage-serviceRenews deliveries that are still being handled.
runtimeDeliveriesAckPOST/api/v1/runtime/deliveries/ackmessage-serviceAcknowledges deliveries.
runtimeOperationHistoryGetGET/api/v1/runtime/operations/{operationId}/historymessage-serviceReads the stored history of an operation.
runtimeOperationMessageAppendPOST/api/v1/runtime/operations/{operationId}/messagesmessage-serviceAppends a message to an operation.
conversationMessagesListGET/api/v2/conversations/{conversationId}/messagesmessage-serviceLists the messages of a conversation. Used by the Python runtime facade.
conversationMessageSendPOST/api/v2/conversations/{conversationId}/messagesmessage-servicePosts a message to a conversation. Used by the Python runtime facade.
agentGetGET/api/v1/agents/{agentId}agent-gatewayReads an agent.
agentUpdatePATCH/api/v1/agents/{agentId}agent-gatewayChanges an agent.
agentSyncPOST/api/v1/agents/syncagent-gatewaySynchronises the agent definition with Cloud.
agentFilesListGET/api/v1/agent/filesagent-gatewayLists the files of the agent.
agentFilePresignPOST/api/v1/agent/files/presignagent-gatewayRequests an upload URL for a new file.
agentFileConfirmPOST/api/v1/agent/files/confirmagent-gatewayConfirms that a file was uploaded.
agentFileResolveGET/api/v1/agent/files/{fileId}/resolveagent-gatewayResolves a file id into its details, including a download URL.
canvasTokenCreatePOST/api/v1/canvas/tokenagent-gatewayCreates a canvas connection token.
a2aDiscoverGET/api/v1/a2a/discoveragent-gatewaySearches for agents that can be called through agent-to-agent calls.
a2aJsonRpcPOST/api/v1/a2a/{agentId}/jsonrpcagent-gatewaySends a JSON-RPC request to a peer agent.
a2aTaskGetGET/api/v1/a2a/tasks/{taskId}agent-gatewayReads an agent-to-agent task.
messagingTokenCreatePOST/api/v1/messaging/tokenagent-gatewayCreates a messaging token.
runtimeHistoryBoundaryPreparePOST/api/v1/runtime/conversations/{conversationId}/history-boundary/preparemessage-serviceHistory-boundary action prepare of a conversation.
runtimeHistoryBoundaryResettingPOST/api/v1/runtime/conversations/{conversationId}/history-boundary/resettingmessage-serviceHistory-boundary action resetting of a conversation.
runtimeHistoryBoundaryResetDonePOST/api/v1/runtime/conversations/{conversationId}/history-boundary/reset_donemessage-serviceHistory-boundary action reset_done of a conversation.
runtimeHistoryBoundaryCommitPOST/api/v1/runtime/conversations/{conversationId}/history-boundary/commitmessage-serviceHistory-boundary action commit of a conversation.
runtimeHistoryBoundaryAbortPOST/api/v1/runtime/conversations/{conversationId}/history-boundary/abortmessage-serviceHistory-boundary action abort of a conversation.
runtimeHistoryBoundaryReconcilePOST/api/v1/runtime/conversations/{conversationId}/history-boundary/reconcilemessage-serviceHistory-boundary action reconcile of a conversation.
runtimeConversationMetadataModelPOST/api/v1/runtime/conversations/{conversationId}/metadata/modelmessage-servicePublishes the session model of a conversation.
runtimeConversationCronDeliveryPOST/api/v1/runtime/conversations/{conversationId}/deliveries/cronmessage-serviceDelivers a scheduled-task result into a conversation.
runtimeClaimNextPOST/api/v1/runtime/claims/nextmessage-serviceClaims the next pending operation.
runtimeClaimExactPOST/api/v1/runtime/operations/{operationId}/claimsmessage-serviceClaims one specific operation.
runtimeClaimRenewPOST/api/v1/runtime/operations/{operationId}/claims/renewmessage-serviceRenews the claim of an operation.
runtimeClaimReleasePOST/api/v1/runtime/operations/{operationId}/claims/releasemessage-serviceReleases the claim of an operation.
runtimeResourceRedeemPOSTbuilt by the SDKagent-gatewayRedeems a resource (a skill or an MCP resource) of an operation.
runtimeOutputFilePresignPOSTbuilt by the SDKagent-gatewayRequests upload URLs for the output files of an operation.
runtimeOutputFileConfirmPOSTbuilt by the SDKagent-gatewayConfirms that the output files of an operation were uploaded.
runtimeInputFilesResolvePOSTbuilt by the SDKagent-gatewayResolves the input files of an operation into download locations.
agentTemplateOriginReportPOST/api/v1/agents/{agentId}/template-originagent-gatewayReports the template that an agent was created from.
channelCreatePOST/api/v1/channelsagent-gatewayCreates a channel with the given participants and metadata.
a2aTaskCompletePOST/api/v1/a2a/tasks/{taskId}/completeagent-gatewayReports the outcome of an agent-to-agent task.
agentEventPublishPOST/api/v1/agent/eventsagent-gatewayPublishes an agent event.
bridgeConfigGetGET/api/v1/bridge/configagent-gatewayReads the bridge configuration.
agentConnectorMcpPOST/api/v1/agent/connectors/mcpagent-gatewayPasses a JSON-RPC request through to the connector MCP endpoint.
automationListGET/api/v1/automationsagent-gatewayLists automations.
automationCreatePOST/api/v1/automationsagent-gatewayCreates an automation.
automationWebhookCreatePOST/api/v1/automations/webhooksagent-gatewayCreates a webhook for automations.
automationGetGET/api/v1/automations/{automationId}agent-gatewayReads one automation.
automationRunsListGET/api/v1/automations/{automationId}/runsagent-gatewayLists the runs of an automation.
automationRunCreatePOST/api/v1/automations/{automationId}/runsagent-gatewayStarts a run of an automation.
automationRunGetGET/api/v1/automations/{automationId}/runs/{runId}agent-gatewayReads one run of an automation.

Symbols

harnessOperationPath

TypeScript @beeos-ai/cloud-harness-sdk · Python beeos_cloud_harness_sdk

Returns the path of an operation with every placeholder replaced by its URI-encoded value.

function harnessOperationPath<K extends OperationId>(id: K, ...params: keyof OperationPathParams[K] extends never ? [] : [OperationPathParams[K]]): string

TypeScript · Parameters

ParameterTypeRequiredDefaultDescription
idKyesIdentifier of the operation, a key of HARNESS_OPERATIONS.
paramskeyof OperationPathParams[K] extends never ? [] : [OperationPathParams[K]]yesValues for the {name} placeholders in the path. Omit it for a path without placeholders.

Returns string

Python · Parameters

ParameterTypeRequiredDefaultDescription
operation_idstryesIdentifier of the operation.
**paramsobjectyesValues for the {name} placeholders in the path. Omit it for a path without placeholders.

Returns str

CHAT_PROMPT_METHOD

Python beeos_cloud_harness_sdk · Python only

The runtime method, session/prompt, in which Cloud delivers every user chat prompt. The reply row is created by Cloud in the streaming state, and the agent finishes it.

CHAT_PROMPT_METHOD = 'session/prompt'

HARNESS_OPERATIONS

TypeScript @beeos-ai/cloud-harness-sdk · Python beeos_cloud_harness_sdk

Table of all operations: for each operation id the HTTP method, the path template and the target service.

const HARNESS_OPERATIONS: { readonly runtimeRegister: { readonly method: "POST"; readonly path: "/api/v1/runtime/registrations"; readonly service: "agent-gateway"; }; readonly runtimeHeartbeat: { readonly method: "POST"; readonly path: "/api/v1/runtime/registrations/{registrationId}/heartbeat"; readonly service: "agent-gateway"; }; readonly runtimeRealtimeTokenCreate: { readonly method: "POST"; readonly path: "/api/v1/runtime/realtime/token"; readonly service: "message-service"; }; readonly runtimeConversationSync: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations"; readonly service: "message-service"; }; readonly runtimeConversationMessagesList: { readonly method: "GET"; readonly path: "/api/v1/runtime/conversations/{conversationId}/messages"; readonly service: "message-service"; }; readonly runtimeConversationMessageCreate: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/messages"; readonly service: "message-service"; }; readonly runtimeConversationMessageGet: { readonly method: "GET"; readonly path: "/api/v1/runtime/conversations/{conversationId}/messages/{messageId}"; readonly service: "message-service"; }; readonly runtimeConversationMessagePatch: { readonly method: "PATCH"; readonly path: "/api/v1/runtime/conversations/{conversationId}/messages/{messageId}"; readonly service: "message-service"; }; readonly runtimeConversationRunStart: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/runs/start"; readonly service: "message-service"; }; readonly runtimeConversationRunFinish: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/runs/finish"; readonly service: "message-service"; }; readonly runtimeDeliveriesRead: { readonly method: "POST"; readonly path: "/api/v1/runtime/deliveries/read"; readonly service: "message-service"; }; readonly runtimeDeliveriesRenew: { readonly method: "POST"; readonly path: "/api/v1/runtime/deliveries/renew"; readonly service: "message-service"; }; readonly runtimeDeliveriesAck: { readonly method: "POST"; readonly path: "/api/v1/runtime/deliveries/ack"; readonly service: "message-service"; }; readonly runtimeOperationHistoryGet: { readonly method: "GET"; readonly path: "/api/v1/runtime/operations/{operationId}/history"; readonly service: "message-service"; }; readonly runtimeOperationMessageAppend: { readonly method: "POST"; readonly path: "/api/v1/runtime/operations/{operationId}/messages"; readonly service: "message-service"; }; readonly conversationMessagesList: { readonly method: "GET"; readonly path: "/api/v2/conversations/{conversationId}/messages"; readonly service: "message-service"; }; readonly conversationMessageSend: { readonly method: "POST"; readonly path: "/api/v2/conversations/{conversationId}/messages"; readonly service: "message-service"; }; readonly agentGet: { readonly method: "GET"; readonly path: "/api/v1/agents/{agentId}"; readonly service: "agent-gateway"; }; readonly agentUpdate: { readonly method: "PATCH"; readonly path: "/api/v1/agents/{agentId}"; readonly service: "agent-gateway"; }; readonly agentSync: { readonly method: "POST"; readonly path: "/api/v1/agents/sync"; readonly service: "agent-gateway"; }; readonly agentFilesList: { readonly method: "GET"; readonly path: "/api/v1/agent/files"; readonly service: "agent-gateway"; }; readonly agentFilePresign: { readonly method: "POST"; readonly path: "/api/v1/agent/files/presign"; readonly service: "agent-gateway"; }; readonly agentFileConfirm: { readonly method: "POST"; readonly path: "/api/v1/agent/files/confirm"; readonly service: "agent-gateway"; }; readonly agentFileResolve: { readonly method: "GET"; readonly path: "/api/v1/agent/files/{fileId}/resolve"; readonly service: "agent-gateway"; }; readonly canvasTokenCreate: { readonly method: "POST"; readonly path: "/api/v1/canvas/token"; readonly service: "agent-gateway"; }; readonly a2aDiscover: { readonly method: "GET"; readonly path: "/api/v1/a2a/discover"; readonly service: "agent-gateway"; }; readonly a2aJsonRpc: { readonly method: "POST"; readonly path: "/api/v1/a2a/{agentId}/jsonrpc"; readonly service: "agent-gateway"; }; readonly a2aTaskGet: { readonly method: "GET"; readonly path: "/api/v1/a2a/tasks/{taskId}"; readonly service: "agent-gateway"; }; readonly messagingTokenCreate: { readonly method: "POST"; readonly path: "/api/v1/messaging/token"; readonly service: "agent-gateway"; }; readonly runtimeHistoryBoundaryPrepare: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/history-boundary/prepare"; readonly service: "message-service"; }; readonly runtimeHistoryBoundaryResetting: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/history-boundary/resetting"; readonly service: "message-service"; }; readonly runtimeHistoryBoundaryResetDone: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/history-boundary/reset_done"; readonly service: "message-service"; }; readonly runtimeHistoryBoundaryCommit: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/history-boundary/commit"; readonly service: "message-service"; }; readonly runtimeHistoryBoundaryAbort: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/history-boundary/abort"; readonly service: "message-service"; }; readonly runtimeHistoryBoundaryReconcile: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/history-boundary/reconcile"; readonly service: "message-service"; }; readonly runtimeConversationMetadataModel: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/metadata/model"; readonly service: "message-service"; }; readonly runtimeConversationCronDelivery: { readonly method: "POST"; readonly path: "/api/v1/runtime/conversations/{conversationId}/deliveries/cron"; readonly service: "message-service"; }; readonly runtimeClaimNext: { readonly method: "POST"; readonly path: "/api/v1/runtime/claims/next"; readonly service: "message-service"; }; readonly runtimeClaimExact: { readonly method: "POST"; readonly path: "/api/v1/runtime/operations/{operationId}/claims"; readonly service: "message-service"; }; readonly runtimeClaimRenew: { readonly method: "POST"; readonly path: "/api/v1/runtime/operations/{operationId}/claims/renew"; readonly service: "message-service"; }; readonly runtimeClaimRelease: { readonly method: "POST"; readonly path: "/api/v1/runtime/operations/{operationId}/claims/release"; readonly service: "message-service"; }; readonly runtimeResourceRedeem: { readonly method: "POST"; readonly path: "(built by the SDK)"; readonly service: "agent-gateway"; }; readonly runtimeOutputFilePresign: { readonly method: "POST"; readonly path: "(built by the SDK)"; readonly service: "agent-gateway"; }; readonly runtimeOutputFileConfirm: { readonly method: "POST"; readonly path: "(built by the SDK)"; readonly service: "agent-gateway"; }; readonly runtimeInputFilesResolve: { readonly method: "POST"; readonly path: "(built by the SDK)"; readonly service: "agent-gateway"; }; readonly agentTemplateOriginReport: { readonly method: "POST"; readonly path: "/api/v1/agents/{agentId}/template-origin"; readonly service: "agent-gateway"; }; readonly channelCreate: { readonly method: "POST"; readonly path: "/api/v1/channels"; readonly service: "agent-gateway"; }; readonly a2aTaskComplete: { readonly method: "POST"; readonly path: "/api/v1/a2a/tasks/{taskId}/complete"; readonly service: "agent-gateway"; }; readonly agentEventPublish: { readonly method: "POST"; readonly path: "/api/v1/agent/events"; readonly service: "agent-gateway"; }; readonly bridgeConfigGet: { readonly method: "GET"; readonly path: "/api/v1/bridge/config"; readonly service: "agent-gateway"; }; readonly agentConnectorMcp: { readonly method: "POST"; readonly path: "/api/v1/agent/connectors/mcp"; readonly service: "agent-gateway"; }; readonly automationList: { readonly method: "GET"; readonly path: "/api/v1/automations"; readonly service: "agent-gateway"; }; readonly automationCreate: { readonly method: "POST"; readonly path: "/api/v1/automations"; readonly service: "agent-gateway"; }; readonly automationWebhookCreate: { readonly method: "POST"; readonly path: "/api/v1/automations/webhooks"; readonly service: "agent-gateway"; }; readonly automationGet: { readonly method: "GET"; readonly path: "/api/v1/automations/{automationId}"; readonly service: "agent-gateway"; }; readonly automationRunsList: { readonly method: "GET"; readonly path: "/api/v1/automations/{automationId}/runs"; readonly service: "agent-gateway"; }; readonly automationRunCreate: { readonly method: "POST"; readonly path: "/api/v1/automations/{automationId}/runs"; readonly service: "agent-gateway"; }; readonly automationRunGet: { readonly method: "GET"; readonly path: "/api/v1/automations/{automationId}/runs/{runId}"; readonly service: "agent-gateway"; }; }

HarnessOperationId

TypeScript @beeos-ai/cloud-harness-sdk · TypeScript only

The string-literal union of every operation id in HARNESS_OPERATIONS (keyof typeof HARNESS_OPERATIONS), and the type of the id argument of harnessOperationPath. The generated source declares it as OperationId; the package exports it under this name.

type HarnessOperationId = OperationId

Type: OperationId

RuntimeMethod

TypeScript @beeos-ai/cloud-harness-sdk · Python beeos_cloud_harness_sdk

The runtime methods that Cloud may deliver to a harness. Every user chat prompt arrives as session/prompt.

Value: RuntimeMethod