BEEOS CLOUD / DEVELOPER REFERENCE
目录
Provider、部署区域与模型、实例与智能体模板,以及协议 discovery 文档。
概览
catalog domain 列出创建资源时可供选择的内容:provider、部署区域与模型、实例模板和智能体模板。它还提供协议 discovery 文档,该文档无需鉴权。
8 个操作 · SDK 资源:TypeScript cloud.catalog · Python cloud.catalog · Go cloud.Catalog · API 总览
路径以 /uhp/v1 开头的操作由 https://api.cloud.beeos.ai/uhp/v1 提供,而不是 https://api.cloud.beeos.ai/v1;SDK 会自动切换。
主要对象
InstanceTemplate(及其CatalogVariant条目):创建实例时从中选择已发布 variant 的模板。Provider、DeployRegion、DeployModel:实例可以在哪里、用哪些模型运行。agentTemplateCatalogView:智能体模板。UHPDiscovery:协议 discovery 文档。
InstanceTemplate
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 模板的 ID。 |
name | string | 是 | 模板的显示名称。 |
description | string | 否 | 模板的描述。 |
logo_url | string | 否 | — |
sort_order | integer | 否 | — |
harness | string | 否 | — |
provider_id | string | 否 | — |
specs | array<CatalogSpec> | 否 | — |
variants | array<CatalogVariant> | 否 | 模板的可部署 variant。创建实例时,把 variant 的 id 作为 variant_id 发送。 |
完整字段和使用该对象的方法见附录。
CatalogVariant
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | variant 的 ID。创建实例时作为 variant_id 发送。 |
spec_value_ids | array<string> | 是 | — |
sort_order | integer | 是 | — |
完整字段和使用该对象的方法见附录。
Provider
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 提供方的 ID。 |
name | string | 是 | 提供方的显示名称。 |
description | string | 否 | — |
capabilities | ProviderCapabilities | 否 | — |
完整字段和使用该对象的方法见附录。
DeployRegion
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 区域的 ID。 |
name | string | 是 | 区域的显示名称。 |
available | boolean | 是 | 该区域当前是否可用。 |
完整字段和使用该对象的方法见附录。
DeployModel
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 模型的 ID,通常为 provider/model 形式。 |
name | string | 是 | 模型的显示名称。 |
tier | string | 否 | — |
reasoning | boolean | 否 | — |
input | array<string> | 否 | — |
context_window | integer | 否 | 模型的最大上下文窗口,单位为 token。 |
完整字段和使用该对象的方法见附录。
agentTemplateCatalogView
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 模板的 ID。用该模板创建 harness 时,把它作为 template_id 传入。 |
display_name | string | 是 | 模板的显示名称;存在翻译时,使用 Accept-Language 的语言。 |
summary | string | 是 | 一句话概括模板的用途,与 display_name 一样做了本地化。 |
description | string | 是 | 模板的完整描述,与 display_name 一样做了本地化。 |
category | string | 是 | 模板所列入的类别。可用作 list 操作的 category 过滤条件。 |
vibe | string | 是 | 描述该模板所创建的智能体个性的短语,与 display_name 一样做了本地化。 |
icon_url | string | 是 | 模板图标的 URL。模板没有时为空。 |
banner_url | string | 是 | 模板横幅图片的 URL。模板没有时为空。 |
default_model | string | 是 | 模板选为智能体主模型的模型的 ID。 |
tags | array<string> | 是 | 描述模板的标签。 |
harness | string | 是 | 模板所适用的 harness(智能体运行时),例如 openclaw。 |
template_version | string | 是 | 模板包的版本,语义化版本号,例如 1.2.0。 |
完整字段和使用该对象的方法见附录。
UHPDiscovery
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
object | string | 是 | 对象类型:始终为 uhp.discovery。 可选值: "uhp.discovery" — 协议发现文档. |
protocol | string | 是 | 服务器所使用的协议:始终为 uhp,即 Unified Harness Protocol。 可选值: "uhp" — Unified Harness Protocol. |
versions | array<string> | 是 | 服务器所使用的协议版本,作为 UHP-Version header 的值。 约束: minItems=1. |
default_version | string | 是 | 请求不发送 UHP-Version header 时,服务器所使用的协议版本。 |
conformance_class | string | 是 | 服务器的粗粒度一致性级别。请依据 capabilities 中精确的标志分支,而不是依据该级别。 可选值: "core" — 发现、harness 读取、任务和会话; "extended" — Core 加上文件输入和产物获取; "full" — Extended 加上 harness 管理、插件、环境和记忆. (枚举表) |
capabilities | UHPCapabilities | 是 | 服务器能做什么。只有背后的端点都能响应时,标志才为 true。 |
plugin_schemas | array<string> | 否 | 该服务器所安装的 Agent Plugins manifest schema 标识符。当 capabilities.plugins 为 true 时出现且非空。 |
implementation | object | 否 | 服务器的信息。除 name 和 version 外,还可能带有 availability,说明模型可用性如何计算。 |
implementation.name | string | 否 | 服务器实现的名称:BeeOS Cloud。 |
implementation.version | string | 否 | 服务器实现的版本。未知时省略。 |
完整字段和使用该对象的方法见附录。
CatalogSpec
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | — |
name | string | 是 | — |
label | string | 是 | — |
values | array<CatalogSpecValue> | 是 | — |
完整字段和使用该对象的方法见附录。
ProviderCapabilities
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
long_running | boolean | 是 | — |
browser_use | boolean | 是 | — |
code_exec | boolean | 是 | — |
file_system | boolean | 是 | — |
custom_image | boolean | 是 | — |
device | boolean | 是 | — |
max_duration_sec | integer | 是 | — |
cost_model | string | 是 | — |
完整字段和使用该对象的方法见附录。
UHPCapabilities
具名布尔值。服务器对自己没有实现的能力报告 false,而不是省略它,这样客户端就能区分“不支持”和“服务器早于该字段”。客户端把缺失的键视为 false。
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
streaming | boolean | 否 | 服务器可以把响应以 server-sent events 流式返回。 |
sessions | boolean | 否 | 服务器保留会话,后续请求可以继续。 |
cancellation | boolean | 否 | 正在运行的响应可以被取消。 |
files_input | boolean | 否 | 服务器接受文件作为请求的输入。 |
files_output | boolean | 否 | 服务器返回 harness 产出的文件。 |
session_listing | boolean | 否 | 服务器可以列出现有会话。 |
harness_management | boolean | 否 | 可以通过 API 创建、更新和删除 harness。 |
session_sharing | boolean | 否 | 服务器可以与其他调用方分享会话。 |
idempotency | boolean | 否 | 服务器对接受 Idempotency-Key header 的写操作遵循该 header。 |
plugins | boolean | 否 | 服务器把 Agent Plugins 包安装到 harness 中,提供其文件,并可把 harness 导出为一个包。在每个级别都是可选的。 |
environments | boolean | 否 | 服务器持有 environment:一个项目的文件和已安装的依赖,只构建一次,在每个指明它的会话中以固定路径只读挂载。在每个级别都是可选的。 |
memories | boolean | 否 | 服务器持有 memory:一棵 memory 树,按节点授予访问权限;记录由已连接的 provider 保存;以及 harness 的 agent 访问它们所用的工具。在每个级别都是可选的。 |
完整字段和使用该对象的方法见附录。
典型流程
- 用
catalog.listInstanceTemplates列出模板,用catalog.getInstanceTemplate读取其中一个,选定 variant。 - 用
catalog.listProviders、catalog.listRegions、catalog.listModels查看可选的部署位置与模型。 - 用
instances.create创建实例。 catalog.listAgentTemplates与catalog.getAgentTemplate列出智能体模板;catalog.getDiscovery告诉客户端服务端支持哪些协议版本。
方法
| 方法 | HTTP | 摘要 |
|---|---|---|
| catalog.listAgentTemplates | GET /v1/agent-templates | 列出 agent 模板 |
| catalog.getAgentTemplate | GET /v1/agent-templates/{id} | 获取 agent 模板 |
| catalog.listModels | GET /v1/deploy/models | 列出部署模型 |
| catalog.listRegions | GET /v1/deploy/regions | 列出部署区域 |
| catalog.listInstanceTemplates | GET /v1/instance-templates | 列出实例模板 |
| catalog.getInstanceTemplate | GET /v1/instance-templates/{templateId} | 获取实例模板 |
| catalog.listProviders | GET /v1/providers | 列出 provider |
| catalog.getDiscovery | GET /uhp/v1/uhp | 协议发现文档 |
catalog.listAgentTemplates
GET /v1/agent-templates · Operation ID listAgentTemplates
列出 agent 模板
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.listAgentTemplates | listAgentTemplates(query?: Models.ListAgentTemplatesQuery): Promise<Models.ListAgentTemplatesResponse> |
| Python | cloud.catalog.list_agent_templates | def list_agent_templates(self, options: ListAgentTemplatesOptions | None = None) -> ListAgentTemplatesResponse |
| Go | cloud.Catalog.ListAgentTemplates | func (r *CatalogResource) ListAgentTemplates(ctx context.Context, options ListAgentTemplatesOptions) (ListAgentTemplatesResponse, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
category | query | string | 否 | 只返回该类别的模板,最多 128 个字符。必须等于模板的 category。 |
search | query | string | 否 | 对模板的显示名称或摘要做不区分大小写的子串匹配,最多 256 个字符。 |
page | query | integer | 否 | 从 1 开始的页码,取值 1 到 1000000。默认为 1。 |
page_size | query | integer | 否 | 每页的模板数量,1 到 100。默认为 50。 |
响应
200 · application/json
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | array<agentTemplateCatalogView> | 是 | — |
total | integer | 是 | — |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.listAgentTemplates();
console.log(result);catalog.getAgentTemplate
GET /v1/agent-templates/{id} · Operation ID getAgentTemplate
获取 agent 模板
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.getAgentTemplate | getAgentTemplate(id: string): Promise<Models.GetAgentTemplateResponse> |
| Python | cloud.catalog.get_agent_template | def get_agent_template(self, id: str) -> agentTemplateCatalogView |
| Go | cloud.Catalog.GetAgentTemplate | func (r *CatalogResource) GetAgentTemplate(ctx context.Context, id string) (agentTemplateCatalogView, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
id | path | string | 是 | 智能体模板的 ID。 |
响应
200 · application/json · Schema: agentTemplateCatalogView
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 模板的 ID。用该模板创建 harness 时,把它作为 template_id 传入。 |
display_name | string | 是 | 模板的显示名称;存在翻译时,使用 Accept-Language 的语言。 |
summary | string | 是 | 一句话概括模板的用途,与 display_name 一样做了本地化。 |
description | string | 是 | 模板的完整描述,与 display_name 一样做了本地化。 |
category | string | 是 | 模板所列入的类别。可用作 list 操作的 category 过滤条件。 |
vibe | string | 是 | 描述该模板所创建的智能体个性的短语,与 display_name 一样做了本地化。 |
icon_url | string | 是 | 模板图标的 URL。模板没有时为空。 |
banner_url | string | 是 | 模板横幅图片的 URL。模板没有时为空。 |
default_model | string | 是 | 模板选为智能体主模型的模型的 ID。 |
tags | array<string> | 是 | 描述模板的标签。 |
harness | string | 是 | 模板所适用的 harness(智能体运行时),例如 openclaw。 |
template_version | string | 是 | 模板包的版本,语义化版本号,例如 1.2.0。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.getAgentTemplate("id_123");
console.log(result);catalog.listModels
GET /v1/deploy/models · Operation ID listDeployModels
列出部署模型
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.listModels | listModels(query?: Models.ListDeployModelsQuery): Promise<Models.ListDeployModelsResponse> |
| Python | cloud.catalog.list_models | def list_models(self, options: ListDeployModelsOptions | None = None) -> ModelPage |
| Go | cloud.Catalog.ListModels | func (r *CatalogResource) ListModels(ctx context.Context, options ListDeployModelsOptions) (ModelPage, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
harness | query | string | 否 | 不支持:发送它会返回 400 invalid_request。 |
search | query | string | 否 | 对模型名称做不区分大小写的子串匹配。 |
响应
200 部署模型 · application/json · Schema: ModelPage
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | array<DeployModel> | 是 | 符合过滤条件的模型。 |
total | integer | 是 | 符合过滤条件的模型数量。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.listModels();
console.log(result);catalog.listRegions
GET /v1/deploy/regions · Operation ID listDeployRegions
列出部署区域
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.listRegions | listRegions(query?: Models.ListDeployRegionsQuery): Promise<Models.ListDeployRegionsResponse> |
| Python | cloud.catalog.list_regions | def list_regions(self, options: ListDeployRegionsOptions | None = None) -> RegionPage |
| Go | cloud.Catalog.ListRegions | func (r *CatalogResource) ListRegions(ctx context.Context, options ListDeployRegionsOptions) (RegionPage, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
provider_id | query | string | 否 | 只返回该提供方的区域。 |
available | query | boolean | 否 | true 只返回可用的区域,false 只返回不可用的区域。其他任何值返回 400 invalid_request。 |
响应
200 部署区域 · application/json · Schema: RegionPage
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | array<DeployRegion> | 是 | 符合过滤条件的区域。 |
total | integer | 是 | 符合过滤条件的区域数量。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.listRegions();
console.log(result);catalog.listInstanceTemplates
GET /v1/instance-templates · Operation ID listInstanceTemplates
列出实例模板
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.listInstanceTemplates | listInstanceTemplates(query?: Models.ListInstanceTemplatesQuery): Promise<Models.ListInstanceTemplatesResponse> |
| Python | cloud.catalog.list_instance_templates | def list_instance_templates(self, options: ListInstanceTemplatesOptions | None = None) -> InstanceTemplatePage |
| Go | cloud.Catalog.ListInstanceTemplates | func (r *CatalogResource) ListInstanceTemplates(ctx context.Context, options ListInstanceTemplatesOptions) (InstanceTemplatePage, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
page | query | integer | 否 | 从 1 开始的页码,取值 1 到 1000000。默认为 1。 约束: minimum=1, maximum=1000000. |
page_size | query | integer | 否 | 每页的模板数量,1 到 100。默认为 50。 约束: minimum=1, maximum=100. |
harness | query | string | 否 | 不支持:发送它会返回 400 invalid_request。 |
provider_id | query | string | 否 | 不支持:发送它会返回 400 invalid_request。 |
search | query | string | 否 | 不支持:发送它会返回 400 invalid_request。 |
响应
200 实例模板 · application/json · Schema: InstanceTemplatePage
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | array<InstanceTemplate> | 是 | 所请求页上的模板。 |
total | integer | 是 | 符合过滤条件的模板总数,跨所有页。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.listInstanceTemplates();
console.log(result);catalog.getInstanceTemplate
GET /v1/instance-templates/{templateId} · Operation ID getInstanceTemplate
获取实例模板
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.getInstanceTemplate | getInstanceTemplate(id: string): Promise<Models.GetInstanceTemplateResponse> |
| Python | cloud.catalog.get_instance_template | def get_instance_template(self, template_id: str) -> InstanceTemplate |
| Go | cloud.Catalog.GetInstanceTemplate | func (r *CatalogResource) GetInstanceTemplate(ctx context.Context, templateId string) (InstanceTemplate, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
templateId | path | string | 是 | 实例模板的 ID。 约束: minLength=1, maxLength=256. |
响应
200 实例模板 · application/json · Schema: InstanceTemplate
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | 是 | 模板的 ID。 |
name | string | 是 | 模板的显示名称。 |
description | string | 否 | 模板的描述。 |
logo_url | string | 否 | — |
sort_order | integer | 否 | — |
harness | string | 否 | — |
provider_id | string | 否 | — |
specs | array<CatalogSpec> | 否 | — |
variants | array<CatalogVariant> | 否 | 模板的可部署 variant。创建实例时,把 variant 的 id 作为 variant_id 发送。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.getInstanceTemplate("template_123");
console.log(result);catalog.listProviders
GET /v1/providers · Operation ID listProviders
列出 provider
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.listProviders | listProviders(query?: Models.ListProvidersQuery): Promise<Models.ListProvidersResponse> |
| Python | cloud.catalog.list_providers | def list_providers(self, options: ListProvidersOptions | None = None) -> ProviderPage |
| Go | cloud.Catalog.ListProviders | func (r *CatalogResource) ListProviders(ctx context.Context, options ListProvidersOptions) (ProviderPage, error) |
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
capability | query | string | 否 | 只返回列出了该能力的提供方,例如 instance。 |
响应
200 Provider 目录 · application/json · Schema: ProviderPage
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | array<Provider> | 是 | 符合过滤条件的提供方。 |
total | integer | 是 | 符合过滤条件的提供方数量。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | ErrorResponse | Cloud Server 错误 |
错误 schema 见错误。
示例
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.catalog.listProviders();
console.log(result);catalog.getDiscovery
GET /uhp/v1/uhp · Operation ID getDiscovery
协议发现文档
无需认证即可访问:客户端必须能在出示凭证之前了解自己所连接的是否是 UHP 服务器,以及它支持哪些版本。该文档不包含任何与主体相关的内容。
无需鉴权。
SDK 方法
| 语言 | 方法 | 签名 |
|---|---|---|
| TypeScript | cloud.catalog.getDiscovery | getDiscovery(): Promise<Models.GetDiscoveryResponse> |
| Python | cloud.catalog.get_discovery | def get_discovery(self) -> UHPDiscovery |
| Go | cloud.Catalog.GetDiscovery | func (r *CatalogResource) GetDiscovery(ctx context.Context) (UHPDiscovery, error) |
响应
200 发现文档 · application/json · Schema: UHPDiscovery
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
object | string | 是 | 对象类型:始终为 uhp.discovery。 可选值: "uhp.discovery" — 协议发现文档. |
protocol | string | 是 | 服务器所使用的协议:始终为 uhp,即 Unified Harness Protocol。 可选值: "uhp" — Unified Harness Protocol. |
versions | array<string> | 是 | 服务器所使用的协议版本,作为 UHP-Version header 的值。 约束: minItems=1. |
default_version | string | 是 | 请求不发送 UHP-Version header 时,服务器所使用的协议版本。 |
conformance_class | string | 是 | 服务器的粗粒度一致性级别。请依据 capabilities 中精确的标志分支,而不是依据该级别。 可选值: "core" — 发现、harness 读取、任务和会话; "extended" — Core 加上文件输入和产物获取; "full" — Extended 加上 harness 管理、插件、环境和记忆. (枚举表) |
capabilities | UHPCapabilities | 是 | 服务器能做什么。只有背后的端点都能响应时,标志才为 true。 |
plugin_schemas | array<string> | 否 | 该服务器所安装的 Agent Plugins manifest schema 标识符。当 capabilities.plugins 为 true 时出现且非空。 |
implementation | object | 否 | 服务器的信息。除 name 和 version 外,还可能带有 availability,说明模型可用性如何计算。 |
implementation.name | string | 否 | 服务器实现的名称:BeeOS Cloud。 |
implementation.version | string | 否 | 服务器实现的版本。未知时省略。 |
错误
| 状态码 | Schema | 说明 |
|---|---|---|
| 其他(default) | UHPErrorEnvelope | UHP 协议错误信封 |
错误 schema 见错误。
示例
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.catalog.getDiscovery();
console.log(result);