DocsCloud SDK reference

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

BEEOS CLOUD / DEVELOPER REFERENCE

Conversations

Create, list, rename, delete, cancel, resume, and clear conversations; set the model, reasoning effort, and approval mode.

Overview

The conversations domain manages the conversations of an agent: create, list, read, rename, and delete them, cancel or resume their execution, clear their history, and set the model, reasoning effort, and approval mode. Every operation is scoped by an agent ID.

11 operations · SDK resource: TypeScript cloud.conversations · Python cloud.conversations · Go cloud.Conversations · API overview

Main objects

CreateConversationInput

FieldTypeRequiredDescription
titlestringnoTitle of the new conversation, at most 512 bytes of valid UTF-8. Omit it to create a conversation without a title. Constraints: maxLength=256.

Every field, and the methods that use this object: appendix.

UpdateConversationInput

FieldTypeRequiredDescription
titlestringyesNew title of the conversation, 1 to 256 characters after leading and trailing whitespace is removed. Constraints: minLength=1, maxLength=256.

Every field, and the methods that use this object: appendix.

ConversationResponse

FieldTypeRequiredDescription
dataConversationyesThe conversation.

Every field, and the methods that use this object: appendix.

ConversationPage

FieldTypeRequiredDescription
conversationsarray<Conversation>yesConversations on this page.
next_cursorstringnoCursor to pass as cursor to get the next page. Empty when has_more is false.
has_morebooleanyesWhether more conversations are available after this page.

Every field, and the methods that use this object: appendix.

CommandReceiptResponse

FieldTypeRequiredDescription
dataCommandReceiptyesThe receipt of the request.

Every field, and the methods that use this object: appendix.

ClearConversationReceiptResponse

FieldTypeRequiredDescription
dataClearConversationReceiptyesThe receipt of the clear operation.

Every field, and the methods that use this object: appendix.

ApprovalModeSettings

FieldTypeRequiredDescription
approval_modestringyesApproval mode to set for the conversation: lowercase letters, digits and underscores, starting with a letter, at most 32 characters. ask and full are the modes defined so far. New modes can be added, and an agent treats a mode it does not know as ask. Send null to remove the setting so the instance default applies. Nullable. Constraints: minLength=1, maxLength=32, pattern=^[a-z][a-z0-9_]*$.

Every field, and the methods that use this object: appendix.

ReasoningSettings

FieldTypeRequiredDescription
modelIdstringyesID of the model that reasoningOverrideId applies to, 1 to 512 characters. Constraints: minLength=1, maxLength=512.
reasoningOverrideIdstringyesID of the reasoning option to use with the model, 1 to 64 characters. Send null to use the model's default. Nullable. Constraints: minLength=1, maxLength=64.

Every field, and the methods that use this object: appendix.

SetConversationModelInput

FieldTypeRequiredDescription
model_override_idstringyesID of the model to use for this conversation, at most 512 characters. Send null to remove the override so the agent's default model is used again. When the override changes, the conversation's reasoning is cleared. Nullable. Constraints: maxLength=512.

Every field, and the methods that use this object: appendix.

Conversation

FieldTypeRequiredDescription
idstringyesID of the conversation. Constraints: minLength=1.
agent_idstringyesID of the agent the conversation is with, the id returned by the agents API. Constraints: minLength=1.
instance_idstringyesID of the instance the agent runs on. Constraints: minLength=1.
titlestringyesTitle of the conversation. Empty when no title was set.
statestringyesWhether the conversation still accepts messages. A closed conversation stays readable but cannot receive new messages. Allowed values: "open" — The conversation accepts new messages; "closed" — The conversation was closed, for example by deleting it. closed_at is set, and sending to it returns 410 conversation_closed. (enum table)
metadata_versionintegeryesVersion of the conversation settings (title, model override, reasoning and approval mode). It increases by one on every change. It always equals resource_version. Constraints: minimum=1, format=int64.
history_generationintegeryesGeneration of the conversation history. It increases by one each time the history is cleared, so a larger value means messages sent before the latest clear are no longer part of the history. Constraints: minimum=0, format=int64.
created_atstringyesTime the conversation was created, in RFC 3339 format. Constraints: format=date-time.
last_activity_atstringnoTime of the latest activity in the conversation, in RFC 3339 format. Omitted when no activity is recorded. Constraints: format=date-time.
closed_atstringnoTime the conversation was closed, in RFC 3339 format. Omitted while the conversation is open. Constraints: format=date-time.
resource_versionintegeryesVersion of the conversation to send as If-Match, in double quotes, when you rename it or change its model, reasoning or approval mode. The same value is returned in the ETag header when you read or update a single conversation. Constraints: minimum=1, format=int64.
model_override_idstringnoID of the model that overrides the agent's default model for this conversation. Omitted when no override is set.
effective_model_idstringnoReserved. The Server API does not currently return this field; use model_override_id.
active_responseActiveConversationResponsenoThe response that is currently being produced in the conversation. Returned only when you read a single conversation, and only while a response is in progress.
reasoningReasoningSettingsnoReasoning selection set for the conversation: the model and the reasoning option chosen for it. Omitted when none is set. It is cleared when model_override_id changes.
approval_modestringnoApproval mode set for the conversation. Omitted when none is set and the instance default applies. Nullable.

Every field, and the methods that use this object: appendix.

CommandReceipt

FieldTypeRequiredDescription
request_idstringyesID of the request. For cancel and resume it identifies the control message that was sent to the agent; for a model change it is the ID of this HTTP request.
statusstringyesOutcome of the request at the time the call returned. Allowed values: "accepted" — The request was queued for the agent and has not taken effect yet. Read the conversation messages to follow the result; "completed" — The change was applied before the call returned. (enum table)

Every field, and the methods that use this object: appendix.

ClearConversationReceipt

FieldTypeRequiredDescription
request_idstringyesID of the clear operation. Retrying with the same Idempotency-Key returns the same ID.
conversation_idstringyesID of the conversation that was cleared.
current_generationintegeryesHistory generation after the clear. Messages from earlier generations are no longer part of the conversation history. Constraints: minimum=0, format=int64.
statusstringyesOutcome of the clear at the time the call returned. Allowed values: "completed" — The history was cleared before the call returned.

Every field, and the methods that use this object: appendix.

Typical flow

  1. Create a conversation for an agent with conversations.create; find existing ones with conversations.list and conversations.get.
  2. Adjust it with conversations.setModel, conversations.setReasoning, and conversations.setApprovalMode.
  3. Stop work with conversations.cancel and continue a paused conversation with conversations.resume.
  4. Reset it with conversations.clear, rename it with conversations.update, or remove it with conversations.delete.
  5. Read its messages with the messages domain.

Methods

MethodHTTPSummary
conversations.listGET /v1/agents/{agentId}/conversationsList conversations
conversations.createPOST /v1/agents/{agentId}/conversationsCreate a conversation
conversations.getGET /v1/agents/{agentId}/conversations/{conversationId}Get a conversation
conversations.updatePATCH /v1/agents/{agentId}/conversations/{conversationId}Rename a conversation
conversations.deleteDELETE /v1/agents/{agentId}/conversations/{conversationId}Delete a conversation
conversations.setApprovalModePUT /v1/agents/{agentId}/conversations/{conversationId}/approval-modeSet the conversation approval mode
conversations.cancelPOST /v1/agents/{agentId}/conversations/{conversationId}/cancelCancel conversation execution
conversations.clearPOST /v1/agents/{agentId}/conversations/{conversationId}/clearClear conversation history
conversations.setModelPUT /v1/agents/{agentId}/conversations/{conversationId}/modelSet the conversation model override
conversations.setReasoningPUT /v1/agents/{agentId}/conversations/{conversationId}/reasoningSet the conversation reasoning effort
conversations.resumePOST /v1/agents/{agentId}/conversations/{conversationId}/resumeResume a paused conversation

conversations.list

GET /v1/agents/{agentId}/conversations · Operation ID listAgentConversations

List conversations

Required scopes: conversations:read.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.listlist(agentId: string, query?: Models.ListAgentConversationsQuery): Promise<Models.ListAgentConversationsResponse>
Pythoncloud.conversations.listdef list(self, agent_id: str, options: ListAgentConversationsOptions | None = None) -> ConversationPage
Gocloud.Conversations.Listfunc (r *ConversationsResource) List(ctx context.Context, agentId string, options ListAgentConversationsOptions) (ConversationPage, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
cursorquerystringnoCursor from next_cursor of the previous page. Omit it to get the first page. At most 4096 characters.
limitqueryintegernoMaximum number of conversations to return in one page. Defaults to 50. Values from 1 to 200 are accepted. Constraints: minimum=1, maximum=100.
statequerystringnoWhich conversations to list: open for conversations that accept messages (default), closed for closed conversations such as deleted ones, or all for both. Allowed values: "open", "closed", "all".

Response

200 Authorized conversation directory · application/json · Schema: ConversationPage

FieldTypeRequiredDescription
conversationsarray<Conversation>yesConversations on this page.
next_cursorstringnoCursor to pass as cursor to get the next page. Empty when has_more is false.
has_morebooleanyesWhether more conversations are available after this page.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.list("agent_123");
console.log(result);

conversations.create

POST /v1/agents/{agentId}/conversations · Operation ID createAgentConversation

Create a conversation

Required scopes: conversations:write.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.createcreate(agentId: string, input: Models.CreateConversationInput, idempotencyKey: string): Promise<Models.CreateAgentConversationResponse>
Pythoncloud.conversations.createdef create(self, agent_id: str, input: CreateConversationInput, options: CreateAgentConversationOptions) -> ConversationResponse
Gocloud.Conversations.Createfunc (r *ConversationsResource) Create(ctx context.Context, agentId string, input CreateConversationInput, options CreateAgentConversationOptions) (ConversationResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
Idempotency-KeyheaderstringyesKey that makes retries of this request safe, 8 to 128 characters without leading or trailing whitespace. Retrying with the same key and the same content returns the original result; reusing the key with different content returns 409 idempotency_conflict. Constraints: minLength=8, maxLength=128.

Request body

application/json · required · Schema: CreateConversationInput

FieldTypeRequiredDescription
titlestringnoTitle of the new conversation, at most 512 bytes of valid UTF-8. Omit it to create a conversation without a title. Constraints: maxLength=256.

Response

201 Durable conversation created or replayed · application/json · Schema: ConversationResponse

FieldTypeRequiredDescription
dataConversationyesThe conversation.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.create("agent_123", {}, "YOUR_IDEMPOTENCY_KEY");
console.log(result);

conversations.get

GET /v1/agents/{agentId}/conversations/{conversationId} · Operation ID getConversation

Get a conversation

Required scopes: conversations:read.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.getget(agentId: string, conversationId: string): Promise<Models.GetConversationResponse>
Pythoncloud.conversations.getdef get(self, agent_id: str, conversation_id: str) -> ConversationResponse
Gocloud.Conversations.Getfunc (r *ConversationsResource) Get(ctx context.Context, agentId string, conversationId string) (ConversationResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.

Response

200 Authorized conversation · application/json · Schema: ConversationResponse

FieldTypeRequiredDescription
dataConversationyesThe conversation.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.get("agent_123", "conversation_123");
console.log(result);

conversations.update

PATCH /v1/agents/{agentId}/conversations/{conversationId} · Operation ID updateConversation

Rename a conversation

Required scopes: conversations:write.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.updateupdate(agentId: string, conversationId: string, input: Models.UpdateConversationInput, version: number): Promise<Models.UpdateConversationResponse>
Pythoncloud.conversations.updatedef update(self, agent_id: str, conversation_id: str, input: UpdateConversationInput, options: UpdateConversationOptions) -> ConversationResponse
Gocloud.Conversations.Updatefunc (r *ConversationsResource) Update(ctx context.Context, agentId string, conversationId string, input UpdateConversationInput, options UpdateConversationOptions) (ConversationResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
If-MatchheaderstringyesVersion of the conversation the change is based on: its resource_version in double quotes, for example "3". A different current version returns 412 resource_version_conflict; a missing header returns 428 precondition_required. Constraints: pattern=^"[1-9][0-9]*"$.

Request body

application/json · required · Schema: UpdateConversationInput

FieldTypeRequiredDescription
titlestringyesNew title of the conversation, 1 to 256 characters after leading and trailing whitespace is removed. Constraints: minLength=1, maxLength=256.

Response

200 Conversation renamed · application/json · Schema: ConversationResponse

FieldTypeRequiredDescription
dataConversationyesThe conversation.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.update("agent_123", "conversation_123", { title: "example_title" }, 1);
console.log(result);

conversations.delete

DELETE /v1/agents/{agentId}/conversations/{conversationId} · Operation ID deleteConversation

Delete a conversation

Required scopes: conversations:write.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.deletedelete(agentId: string, conversationId: string, idempotencyKey: string): Promise<Models.DeleteConversationResponse>
Pythoncloud.conversations.deletedef delete(self, agent_id: str, conversation_id: str, options: DeleteConversationOptions) -> None
Gocloud.Conversations.Deletefunc (r *ConversationsResource) Delete(ctx context.Context, agentId string, conversationId string, options DeleteConversationOptions) error

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
Idempotency-KeyheaderstringyesKey that makes retries of this request safe, 8 to 128 characters without leading or trailing whitespace. Retrying with the same key and the same content returns the original result; reusing the key with different content returns 409 idempotency_conflict. Constraints: minLength=8, maxLength=128.

Response

204 Conversation deleted

No response body.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.delete("agent_123", "conversation_123", "YOUR_IDEMPOTENCY_KEY");
console.log(result);

conversations.setApprovalMode

PUT /v1/agents/{agentId}/conversations/{conversationId}/approval-mode · Operation ID setConversationApprovalMode

Set the conversation approval mode

Required scopes: conversations:control.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.setApprovalModesetApprovalMode(agentId: string, conversationId: string, input: Models.ApprovalModeSettings, version: number): Promise<Models.SetConversationApprovalModeResponse>
Pythoncloud.conversations.set_approval_modedef set_approval_mode(self, agent_id: str, conversation_id: str, input: ApprovalModeSettings, options: SetConversationApprovalModeOptions) -> ApprovalModeResultResponse
Gocloud.Conversations.SetApprovalModefunc (r *ConversationsResource) SetApprovalMode(ctx context.Context, agentId string, conversationId string, input ApprovalModeSettings, options SetConversationApprovalModeOptions) (ApprovalModeResultResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
If-MatchheaderstringyesVersion of the conversation the change is based on: its resource_version in double quotes, for example "3". A different current version returns 412 resource_version_conflict; a missing header returns 428 precondition_required. Constraints: pattern=^"[1-9][0-9]*"$.

Request body

application/json · required · Schema: ApprovalModeSettings

FieldTypeRequiredDescription
approval_modestringyesApproval mode to set for the conversation: lowercase letters, digits and underscores, starting with a letter, at most 32 characters. ask and full are the modes defined so far. New modes can be added, and an agent treats a mode it does not know as ask. Send null to remove the setting so the instance default applies. Nullable. Constraints: minLength=1, maxLength=32, pattern=^[a-z][a-z0-9_]*$.

Response

200 Approval mode desired state confirmed · application/json · Schema: ApprovalModeResultResponse

FieldTypeRequiredDescription
dataApprovalModeResultyesThe result of the change.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.setApprovalMode("agent_123", "conversation_123", { approval_mode: "example_approval_mode" }, 1);
console.log(result);

conversations.cancel

POST /v1/agents/{agentId}/conversations/{conversationId}/cancel · Operation ID cancelConversation

Cancel conversation execution

Required scopes: conversations:control.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.cancelcancel(agentId: string, conversationId: string, idempotencyKey: string, input?: JSONValue): Promise<Models.CancelConversationResponse>
Pythoncloud.conversations.canceldef cancel(self, agent_id: str, conversation_id: str, input: CancelConversationInput, options: CancelConversationOptions) -> CommandReceiptResponse
Gocloud.Conversations.Cancelfunc (r *ConversationsResource) Cancel(ctx context.Context, agentId string, conversationId string, input CancelConversationInput, options CancelConversationOptions) (CommandReceiptResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
Idempotency-KeyheaderstringyesKey that makes retries of this request safe, 8 to 128 characters without leading or trailing whitespace. Retrying with the same key and the same content returns the original result; reusing the key with different content returns 409 idempotency_conflict. Constraints: minLength=8, maxLength=128.

Request body

application/json · required · Schema: CancelConversationInput

FieldTypeRequiredDescription
target_message_idstringyesID of the chat_message whose turn should stop, 1 to 256 characters. Constraints: minLength=1, maxLength=256.
reasonstringnoWhy the turn is stopped, as free text of at most 256 characters. When it is omitted or empty, user_request is recorded. Constraints: maxLength=256.

Response

202 Cancel accepted · application/json · Schema: CommandReceiptResponse

FieldTypeRequiredDescription
dataCommandReceiptyesThe receipt of the request.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.cancel("agent_123", "conversation_123", "YOUR_IDEMPOTENCY_KEY");
console.log(result);

conversations.clear

POST /v1/agents/{agentId}/conversations/{conversationId}/clear · Operation ID clearConversation

Clear conversation history

Required scopes: conversations:control.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.clearclear(agentId: string, conversationId: string, idempotencyKey: string): Promise<Models.ClearConversationResponse>
Pythoncloud.conversations.cleardef clear(self, agent_id: str, conversation_id: str, options: ClearConversationOptions) -> ClearConversationReceiptResponse
Gocloud.Conversations.Clearfunc (r *ConversationsResource) Clear(ctx context.Context, agentId string, conversationId string, options ClearConversationOptions) (ClearConversationReceiptResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
Idempotency-KeyheaderstringyesKey that makes retries of this request safe, 8 to 128 characters without leading or trailing whitespace. Retrying with the same key and the same content returns the original result; reusing the key with different content returns 409 idempotency_conflict. Constraints: minLength=8, maxLength=128.

Response

202 Clear accepted · application/json · Schema: ClearConversationReceiptResponse

FieldTypeRequiredDescription
dataClearConversationReceiptyesThe receipt of the clear operation.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.clear("agent_123", "conversation_123", "YOUR_IDEMPOTENCY_KEY");
console.log(result);

conversations.setModel

PUT /v1/agents/{agentId}/conversations/{conversationId}/model · Operation ID setConversationModel

Set the conversation model override

Required scopes: conversations:control.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.setModelsetModel(agentId: string, conversationId: string, modelId: string | null, version: number): Promise<Models.SetConversationModelResponse>
Pythoncloud.conversations.set_modeldef set_model(self, agent_id: str, conversation_id: str, input: SetConversationModelInput, options: SetConversationModelOptions) -> CommandReceiptResponse
Gocloud.Conversations.SetModelfunc (r *ConversationsResource) SetModel(ctx context.Context, agentId string, conversationId string, input SetConversationModelInput, options SetConversationModelOptions) (CommandReceiptResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
If-MatchheaderstringyesVersion of the conversation the change is based on: its resource_version in double quotes, for example "3". A different current version returns 412 resource_version_conflict; a missing header returns 428 precondition_required. Constraints: pattern=^"[1-9][0-9]*"$.

Request body

application/json · required · Schema: SetConversationModelInput

FieldTypeRequiredDescription
model_override_idstringyesID of the model to use for this conversation, at most 512 characters. Send null to remove the override so the agent's default model is used again. When the override changes, the conversation's reasoning is cleared. Nullable. Constraints: maxLength=512.

Response

202 Model change accepted · application/json · Schema: CommandReceiptResponse

FieldTypeRequiredDescription
dataCommandReceiptyesThe receipt of the request.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.setModel("agent_123", "conversation_123", "model_override_123", 1);
console.log(result);

conversations.setReasoning

PUT /v1/agents/{agentId}/conversations/{conversationId}/reasoning · Operation ID setConversationReasoning

Set the conversation reasoning effort

Required scopes: conversations:control.

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.setReasoningsetReasoning(agentId: string, conversationId: string, input: Models.ReasoningSettings, version: number): Promise<Models.SetConversationReasoningResponse>
Pythoncloud.conversations.set_reasoningdef set_reasoning(self, agent_id: str, conversation_id: str, input: ReasoningSettings, options: SetConversationReasoningOptions) -> ReasoningResultResponse
Gocloud.Conversations.SetReasoningfunc (r *ConversationsResource) SetReasoning(ctx context.Context, agentId string, conversationId string, input ReasoningSettings, options SetConversationReasoningOptions) (ReasoningResultResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
If-MatchheaderstringyesVersion of the conversation the change is based on: its resource_version in double quotes, for example "3". A different current version returns 412 resource_version_conflict; a missing header returns 428 precondition_required. Constraints: pattern=^"[1-9][0-9]*"$.

Request body

application/json · required · Schema: ReasoningSettings

FieldTypeRequiredDescription
modelIdstringyesID of the model that reasoningOverrideId applies to, 1 to 512 characters. Constraints: minLength=1, maxLength=512.
reasoningOverrideIdstringyesID of the reasoning option to use with the model, 1 to 64 characters. Send null to use the model's default. Nullable. Constraints: minLength=1, maxLength=64.

Response

200 Reasoning desired state confirmed · application/json · Schema: ReasoningResultResponse

FieldTypeRequiredDescription
dataReasoningResultyesThe result of the change.

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.setReasoning("agent_123", "conversation_123", { modelId: "model_123", reasoningOverrideId: "reasoning_override_123" }, 1);
console.log(result);

conversations.resume

POST /v1/agents/{agentId}/conversations/{conversationId}/resume · Operation ID resumeConversation

Resume a paused conversation

SDK methods

LanguageMethodSignature
TypeScriptcloud.conversations.resumeresume(agentId: string, conversationId: string, idempotencyKey: string): Promise<Models.ResumeConversationResponse>
Pythoncloud.conversations.resumedef resume(self, agent_id: str, conversation_id: str, options: ResumeConversationOptions) -> ResumeConversationResponse
Gocloud.Conversations.Resumefunc (r *ConversationsResource) Resume(ctx context.Context, agentId string, conversationId string, options ResumeConversationOptions) (ResumeConversationResponse, error)

Parameters

ParameterInTypeRequiredDescription
agentIdpathstringyesID of the agent, the id returned by the agents API.
conversationIdpathstringyesID of the conversation, as returned when it was created or listed.
Idempotency-KeyheaderstringyesKey that makes retries of this request safe, 8 to 128 characters without leading or trailing whitespace. Retrying with the same key and the same content returns the original result; reusing the key with different content returns 409 idempotency_conflict.

Response

200 · application/json

FieldTypeRequiredDescription
dataobjectyes—
data.request_idstringyes—
data.statusstringyes—

Errors

StatusSchemaDescription
other (default)ErrorResponseCloud Server error

The error schemas are described in Errors.

Example

import { BeeOSClient } from "@beeos-ai/cloud-sdk";

const cloud = new BeeOSClient({
  baseURL: "https://api.cloud.beeos.ai/v1",
  apiKey: "YOUR_API_KEY", // bsk_ key: backend only
});
const result = await cloud.conversations.resume("agent_123", "conversation_123", "YOUR_IDEMPOTENCY_KEY");
console.log(result);