Publish to npm as @jackchen_me/open-multi-agent
This commit is contained in:
parent
0c02327a56
commit
ae6968a52c
12
README.md
12
README.md
|
|
@ -16,13 +16,13 @@ Build AI agent teams that work together. One agent plans, another implements, a
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install github:JackChen-me/open-multi-agent
|
npm install @jackchen_me/open-multi-agent
|
||||||
```
|
```
|
||||||
|
|
||||||
Set `ANTHROPIC_API_KEY` (and optionally `OPENAI_API_KEY`) in your environment.
|
Set `ANTHROPIC_API_KEY` (and optionally `OPENAI_API_KEY`) in your environment.
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { OpenMultiAgent } from 'open-multi-agent'
|
import { OpenMultiAgent } from '@jackchen_me/open-multi-agent'
|
||||||
|
|
||||||
const orchestrator = new OpenMultiAgent({ defaultModel: 'claude-sonnet-4-6' })
|
const orchestrator = new OpenMultiAgent({ defaultModel: 'claude-sonnet-4-6' })
|
||||||
|
|
||||||
|
|
@ -44,8 +44,8 @@ console.log(result.output)
|
||||||
This is where it gets interesting. Three agents, one goal:
|
This is where it gets interesting. Three agents, one goal:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { OpenMultiAgent } from 'open-multi-agent'
|
import { OpenMultiAgent } from '@jackchen_me/open-multi-agent'
|
||||||
import type { AgentConfig } from 'open-multi-agent'
|
import type { AgentConfig } from '@jackchen_me/open-multi-agent'
|
||||||
|
|
||||||
const architect: AgentConfig = {
|
const architect: AgentConfig = {
|
||||||
name: 'architect',
|
name: 'architect',
|
||||||
|
|
@ -126,7 +126,7 @@ const result = await orchestrator.runTasks(team, [
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { defineTool, Agent, ToolRegistry, ToolExecutor, registerBuiltInTools } from 'open-multi-agent'
|
import { defineTool, Agent, ToolRegistry, ToolExecutor, registerBuiltInTools } from '@jackchen_me/open-multi-agent'
|
||||||
|
|
||||||
const searchTool = defineTool({
|
const searchTool = defineTool({
|
||||||
name: 'web_search',
|
name: 'web_search',
|
||||||
|
|
@ -192,7 +192,7 @@ const result = await orchestrator.runTeam(team, 'Build a CLI tool that converts
|
||||||
<summary><b>Streaming Output</b></summary>
|
<summary><b>Streaming Output</b></summary>
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Agent, ToolRegistry, ToolExecutor, registerBuiltInTools } from 'open-multi-agent'
|
import { Agent, ToolRegistry, ToolExecutor, registerBuiltInTools } from '@jackchen_me/open-multi-agent'
|
||||||
|
|
||||||
const registry = new ToolRegistry()
|
const registry = new ToolRegistry()
|
||||||
registerBuiltInTools(registry)
|
registerBuiltInTools(registry)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "open-multi-agent",
|
"name": "@jackchen_me/open-multi-agent",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Production-grade multi-agent orchestration framework. Model-agnostic, supports team collaboration, task scheduling, and inter-agent communication.",
|
"description": "Production-grade multi-agent orchestration framework. Model-agnostic, supports team collaboration, task scheduling, and inter-agent communication.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue