API 参考
列出技能
列出你可以在任务中运行的技能。
技能是 BioAgent 目录中的打包工作流,例如有依据的文献综述或基因组编辑设计流程。此接口同时返回内置技能与你自己拥有的技能。
把某项的 id 或 name 作为 skill 传给 POST /tasks/{id}/messages 即可运行它。owner_type 为 system 表示内置技能,user 表示你自己的技能。
OpenAPI
openapi: 3.1.0
info:
title: BioAgent API — V1
description: Public API for BioAgent, the biomedical AI agent platform.
version: 0.1.0
servers:
- url: https://bioagent.cloud/api/v1
description: >-
BioAgent public API base URL. Every endpoint on this page is served from
this host.
security: []
paths:
/experimental/skills:
get:
tags:
- skills
summary: List skills
description: List the skills you can run in a task.
operationId: list_skills_experimental_skills_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: Maximum objects to return.
default: 20
title: Limit
description: Maximum objects to return.
- name: before_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Before Id
- name: after_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: After Id
responses:
'200':
description: Page of skills available to you.
content:
application/json:
schema:
$ref: '#/components/schemas/SkillList'
example:
type: list
data:
- id: skill_0008d582238d9a1f65a2322b3bf71728
type: skill
name: generative-molecule-design
description: >-
Goal-directed de novo small-molecule design against a
molecular target.
category: molecular_design
owner_type: system
has_more: true
first_id: skill_0008d582238d9a1f65a2322b3bf71728
last_id: skill_019caa158c8a4011b19285967639a364
security:
- bearerAuth: []
components:
schemas:
SkillList:
properties:
type:
type: string
const: list
title: Type
default: list
data:
items:
$ref: '#/components/schemas/Skill'
type: array
title: Data
has_more:
type: boolean
title: Has More
default: false
first_id:
anyOf:
- type: string
- type: 'null'
title: First Id
last_id:
anyOf:
- type: string
- type: 'null'
title: Last Id
type: object
required:
- data
title: SkillList
Skill:
properties:
id:
type: string
title: Id
description: Pass this as `skill` when starting a task.
type:
type: string
const: skill
title: Type
default: skill
name:
type: string
title: Name
description: Display name. Also accepted as `skill` when starting a task.
description:
type: string
title: Description
default: ''
category:
type: string
title: Category
default: ''
owner_type:
type: string
title: Owner Type
description: '`system` for a built-in skill, `user` for one of your own.'
default: system
type: object
required:
- id
- name
title: Skill
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Requires an API key. See the Authentication guide.