← 全部集成
// 集成
在 Anthropic Claude 上跑多智能体团队
经原生 Anthropic SDK 使用 Claude——设一个环境变量、指定模型即可。
01 配置
一份最小配置。
import { OpenMultiAgent, type AgentConfig } from '@open-multi-agent/core'
const agents: AgentConfig[] = [
{ name: 'researcher', systemPrompt: 'Gather the key facts.' },
{ name: 'writer', systemPrompt: 'Write a tight summary.' },
]
// Set ANTHROPIC_API_KEY in the environment.
const oma = new OpenMultiAgent({ defaultProvider: 'anthropic', defaultModel: 'claude-sonnet-4-6' })
const team = oma.createTeam('brief', { name: 'brief', agents })
const result = await oma.runTeam(team, 'Summarize the latest release notes.')
console.log(result.success) 02 怎么契合
它怎么契合。
Anthropic 是内置提供方,走原生 Anthropic SDK。智能体的配置形状与其它提供方完全一致——于是你可以让一个智能体用 Claude、另一个用别的模型,它们在同一次运行里协作。
// 企业服务
要把它用到生产环境?
open-multi-agent 采用 MIT 许可、可自行免费运行。当你需要在期限内交付、集成,或获得支持时,元定义科技(YuanASI)提供商业交付与支持。