You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove superseded agentic-workflows examples; make example docs consistent
The examples/agentic-workflows/ folder (5 hand-built LLM-system-task
workflow examples) is superseded by the durable agents layer merged in
891bd06 - every scenario it demonstrated (tool calling, multi-agent chat,
HITL, MCP) has a richer counterpart under examples/agents/. Delete it and
repoint all references (README, examples/README, SDK_DEVELOPMENT,
SDK_NEW_LANGUAGE_GUIDE) to the agents examples.
Also make the docs consistent about example counts:
- examples/agents/README.md catalog rebuilt to list all 111 core examples
(65 were missing after the merge) organized by topic; removed a broken
link to the nonexistent 27-user-proxy-agent.ts
- all counts standardized to "200+" across README, CHANGELOG,
SDK_DEVELOPMENT, SDK_NEW_LANGUAGE_GUIDE, and examples READMEs
- stale workflow-example counts in SDK_DEVELOPMENT fixed (14 core /
9 api-journeys / 8 advanced)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
-
-**Durable AI agents** -- the Agentspan TypeScript SDK (`@conductor-oss/conductor-agent-sdk`) is merged into this package as new subpath exports: `@io-orkes/conductor-javascript/agents` (core: `Agent`, `AgentRuntime`, `tool`, guardrails, handoffs, memory, schedules, streaming, HITL), `/agents/testing`, and framework wrappers `/agents/vercel-ai`, `/agents/langgraph`, `/agents/langchain`. The agent clients are also first-class citizens of the root export (`AgentClient`, `WorkflowClient`, `Schedule`, `ScheduleInfo`, schedule errors) — the root surface grows additively (minor). Docs at [docs/agents/](docs/agents/README.md); 60+ examples at [examples/agents/](examples/agents/).
12
+
-**Durable AI agents** -- the Agentspan TypeScript SDK (`@conductor-oss/conductor-agent-sdk`) is merged into this package as new subpath exports: `@io-orkes/conductor-javascript/agents` (core: `Agent`, `AgentRuntime`, `tool`, guardrails, handoffs, memory, schedules, streaming, HITL), `/agents/testing`, and framework wrappers `/agents/vercel-ai`, `/agents/langgraph`, `/agents/langchain`. The agent clients are also first-class citizens of the root export (`AgentClient`, `WorkflowClient`, `Schedule`, `ScheduleInfo`, schedule errors) — the root surface grows additively (minor). Docs at [docs/agents/](docs/agents/README.md); 200+ examples at [examples/agents/](examples/agents/).
13
13
-**Migration for `@conductor-oss/conductor-agent-sdk` users:** install `@io-orkes/conductor-javascript` and rewrite import specifiers -- `@conductor-oss/conductor-agent-sdk` becomes `@io-orkes/conductor-javascript/agents`, and the wrapper subpaths gain the `/agents` prefix (e.g. `.../vercel-ai` becomes `.../agents/vercel-ai`).
14
14
- New optional peer dependencies (all lazily resolved, install only what you use): `zod`, `zod-to-json-schema`, `ai`, `@langchain/core`, `@langchain/langgraph`. `dotenv` becomes a runtime dependency (the agent entry points load it at import time; the package `sideEffects` field allowlists `dist/agents/**` so bundlers keep that bootstrap).
15
15
-**Agent clients in `sdk/clients`, one client for both planes** -- `AgentClient` is an interface (the `/agent/*` control-plane surface); `OrkesAgentClient` is the implementation, obtained via `runtime.client` or `OrkesClients.getAgentClient()`. Both share a single underlying `ConductorClient` (and its one token mint) across control-plane and worker-plane calls -- no bespoke agent-layer auth/transport code exists. Naming note: `getWorkflowClient()` returns the general-purpose `WorkflowExecutor`; the agent `WorkflowClient` (`OrkesClients.getAgentClient().workflows` / `getAgentWorkflowClient()`) adds the agent-execution 404 fallback and token-usage rollup.
Copy file name to clipboardExpand all lines: README.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -459,7 +459,7 @@ See the [Examples Guide](examples/README.md) for the full catalog. Key examples:
459
459
| [test-workflows.ts](examples/test-workflows.ts) | Unit testing with mock outputs (no workers) |`npx ts-node examples/test-workflows.ts`|
460
460
| [metrics.ts](examples/metrics.ts) | Prometheus metrics + HTTP server on :9090 |`npx ts-node examples/metrics.ts`|
461
461
| [express-worker-service.ts](examples/express-worker-service.ts) | Express.js + workers in one process |`npx ts-node examples/express-worker-service.ts`|
462
-
| [function-calling.ts](examples/agentic-workflows/function-calling.ts) | LLM dynamically picks which worker to call |`npx ts-node examples/agentic-workflows/function-calling.ts`|
462
+
| [02-tools.ts](examples/agents/02-tools.ts) |Durable agent: LLM dynamically picks which tool to call |`npx tsx examples/agents/02-tools.ts`|
Copy file name to clipboardExpand all lines: SDK_DEVELOPMENT.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -603,24 +603,24 @@ Read in `resolveOrkesConfig.ts`. Env vars take precedence over config object val
603
603
604
604
## Examples
605
605
606
-
The `examples/` directory contains 32 runnable TypeScript files across 3 subdirectories, matching the Python SDK's examples structure. See [examples/README.md](examples/README.md) for the full catalog.
606
+
The `examples/` directory contains 31 runnable TypeScript files for the workflow/worker layer, plus 200+ durable AI-agent examples under `examples/agents/`. See [examples/README.md](examples/README.md) for the full catalog.
├── agents/ # 200+ durable AI agent examples (see examples/agents/README.md)
614
+
├── api-journeys/ # 9 complete API lifecycle demos
615
+
└── advanced/ # 8 advanced workflow patterns
616
616
```
617
617
618
618
### Conventions
619
619
620
620
-**Self-contained**: Every file imports from `../src/sdk`, connects via `OrkesClients.from()`, and is runnable with `npx ts-node examples/<file>.ts`
621
621
-**Cleanup**: Examples that create resources clean up after themselves in try/finally blocks
622
622
-**Env vars**: All examples read `CONDUCTOR_SERVER_URL` (required) and optionally `CONDUCTOR_AUTH_KEY`/`CONDUCTOR_AUTH_SECRET`
623
-
-**AI examples**: Use `LLM_PROVIDER` and `LLM_MODEL` env vars with defaults to `openai_integration` / `gpt-4o`
623
+
-**Agent examples**: `examples/agents/` uses `AGENTSPAN_SERVER_URL`/`AGENTSPAN_LLM_MODEL` plus a provider API key — see [examples/agents/README.md](examples/agents/README.md)
|**[test-workflows.ts](test-workflows.ts)**| Unit testing with mock task outputs (no workers needed) |`npx ts-node examples/test-workflows.ts`|
46
46
47
-
### AI/LLM Workflows
47
+
### AI Agents
48
48
49
-
Require an LLM integration configured in Conductor. Set `LLM_PROVIDER` and `LLM_MODEL` env vars.
49
+
Agentic examples live in [`agents/`](agents/) and use the durable agents layer
50
+
(`@io-orkes/conductor-javascript/agents`). See [agents/README.md](agents/README.md)
51
+
for the full catalog and environment setup (`AGENTSPAN_SERVER_URL`,
52
+
`AGENTSPAN_LLM_MODEL`, provider API key). Highlights:
50
53
51
54
| File | Description | Run |
52
55
|------|-------------|-----|
53
-
|**[agentic-workflows/llm-chat.ts](agentic-workflows/llm-chat.ts)**| Two LLMs in automated multi-turn conversation |`npx ts-node examples/agentic-workflows/llm-chat.ts`|
54
-
|**[agentic-workflows/llm-chat-human-in-loop.ts](agentic-workflows/llm-chat-human-in-loop.ts)**| Interactive chat with WAIT tasks for human input |`npx ts-node examples/agentic-workflows/llm-chat-human-in-loop.ts`|
55
-
|**[agentic-workflows/function-calling.ts](agentic-workflows/function-calling.ts)**| LLM dynamically picks which worker to call |`npx ts-node examples/agentic-workflows/function-calling.ts`|
56
-
|**[agentic-workflows/mcp-weather-agent.ts](agentic-workflows/mcp-weather-agent.ts)**| MCP tool discovery + invocation for real-time data |`npx ts-node examples/agentic-workflows/mcp-weather-agent.ts`|
57
-
|**[agentic-workflows/multiagent-chat.ts](agentic-workflows/multiagent-chat.ts)**| Multi-agent debate: optimist vs skeptic with moderator |`npx ts-node examples/agentic-workflows/multiagent-chat.ts`|
56
+
|**[agents/01-basic-agent.ts](agents/01-basic-agent.ts)**| Simplest possible agent: define, run, print result |`npx tsx examples/agents/01-basic-agent.ts`|
57
+
|**[agents/02-tools.ts](agents/02-tools.ts)**| LLM dynamically picks which tool to call |`npx tsx examples/agents/02-tools.ts`|
|**[agents/04-mcp-weather.ts](agents/04-mcp-weather.ts)**| MCP tool discovery + invocation for real-time data |`npx tsx examples/agents/04-mcp-weather.ts`|
60
+
|**[agents/09-human-in-the-loop.ts](agents/09-human-in-the-loop.ts)**| Agent pauses for human approval mid-run |`npx tsx examples/agents/09-human-in-the-loop.ts`|
61
+
|**[agents/15-agent-discussion.ts](agents/15-agent-discussion.ts)**| Multi-turn debate between agents with opposing viewpoints |`npx tsx examples/agents/15-agent-discussion.ts`|
0 commit comments