Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/agents/01-basic-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL set as environment variable (optional)
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL set (optional)
*/

import { Agent, AgentRuntime } from '@io-orkes/conductor-javascript/agents';
Expand Down
4 changes: 2 additions & 2 deletions examples/agents/02-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import * as readline from 'node:readline/promises';
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/02a-simple-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, tool } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -71,7 +71,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents weather_stock_agent
// conductor deploy --package examples/agents --agents weather_stock_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/02b-multi-step-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, tool } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -131,7 +131,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents account_analyst
// conductor deploy --package examples/agents --agents account_analyst
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/03-multi-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(writingPipeline);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents writer
// conductor deploy --package examples/agents --agents writer
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(writingPipeline);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/03-structured-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, tool } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -60,7 +60,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents weather_reporter
// conductor deploy --package examples/agents --agents weather_reporter
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/04-guardrails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(safeWriter);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents safe_writer
// conductor deploy --package examples/agents --agents safe_writer
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(safeWriter);
Expand Down
10 changes: 5 additions & 5 deletions examples/agents/04-http-and-mcp-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
* mcp-testkit --transport http --auth <secret>
*
* # Store credentials via CLI or Agentspan UI:
* agentspan credentials set HTTP_TEST_API_KEY <secret>
* agentspan credentials set MCP_TEST_API_KEY <secret>
* conductor secret put HTTP_TEST_API_KEY <secret>
* conductor secret put MCP_TEST_API_KEY <secret>
*
* Requirements:
* - Conductor server with LLM support
* - mcp-testkit running on http://localhost:3001 (see setup above)
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, tool, httpTool, mcpTool } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -103,7 +103,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents http_tools_demo
// conductor deploy --package examples/agents --agents http_tools_demo
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
8 changes: 4 additions & 4 deletions examples/agents/04-mcp-weather.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* mcp-testkit --transport http --auth <secret>
*
* # Store credentials via CLI or Agentspan UI:
* agentspan credentials set MCP_TEST_API_KEY <secret>
* conductor secret put MCP_TEST_API_KEY <secret>
*
* Requirements:
* - Conductor server with LLM support
* - mcp-testkit running on http://localhost:3001 (see setup above)
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, mcpTool } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -67,7 +67,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents weather_mcp_agent
// conductor deploy --package examples/agents --agents weather_mcp_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/05-handoffs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, tool } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -113,7 +113,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(support);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents support
// conductor deploy --package examples/agents --agents support
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(support);
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/05-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents streaming_agent
// conductor deploy --package examples/agents --agents streaming_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/06-sequential-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -58,7 +58,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(pipeline);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents researcher
// conductor deploy --package examples/agents --agents researcher
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(pipeline);
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/07-memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(researchAgent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents research_agent
// conductor deploy --package examples/agents --agents research_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(researchAgent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/07-parallel-agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -61,7 +61,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(analysis);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents analysis
// conductor deploy --package examples/agents --agents analysis
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(analysis);
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/08-credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents credentialed_agent
// conductor deploy --package examples/agents --agents credentialed_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/08-router-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -63,7 +63,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(team);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents dev_team
// conductor deploy --package examples/agents --agents dev_team
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(team);
Expand Down
4 changes: 2 additions & 2 deletions examples/agents/09-human-in-the-loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import * as readline from 'node:readline/promises';
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/09-structured-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(analyzerAgent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents article_analyzer
// conductor deploy --package examples/agents --agents article_analyzer
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(analyzerAgent);
Expand Down
4 changes: 2 additions & 2 deletions examples/agents/09b-hitl-with-feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import * as readline from 'node:readline/promises';
Expand Down
4 changes: 2 additions & 2 deletions examples/agents/09c-hitl-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import * as readline from 'node:readline/promises';
Expand Down
2 changes: 1 addition & 1 deletion examples/agents/10-code-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(codeAgent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents code_agent
// conductor deploy --package examples/agents --agents code_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(codeAgent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/10-guardrails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import {
Expand Down Expand Up @@ -189,7 +189,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents support_agent
// conductor deploy --package examples/agents --agents support_agent
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/11-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, EventTypes } from '@io-orkes/conductor-javascript/agents';
Expand All @@ -30,7 +30,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents haiku_writer
// conductor deploy --package examples/agents --agents haiku_writer
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/12-long-running.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -37,7 +37,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(agent);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents saas_analyst
// conductor deploy --package examples/agents --agents saas_analyst
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(agent);
Expand Down
6 changes: 3 additions & 3 deletions examples/agents/13-hierarchical-agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
* Requirements:
* - Conductor server with LLM support
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api as environment variable
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini as environment variable
* - CONDUCTOR_SERVER_URL=http://localhost:8080/api
* - CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o-mini
*/

import { Agent, AgentRuntime, OnTextMention } from '@io-orkes/conductor-javascript/agents';
Expand Down Expand Up @@ -114,7 +114,7 @@ async function main() {
// 1. Deploy once during CI/CD (optional -- serve() below also deploys):
// await runtime.deploy(ceo);
// CLI alternative:
// agentspan deploy --package sdk/typescript/examples --agents ceo
// conductor deploy --package examples/agents --agents ceo
//
// 2. In a separate long-lived worker process (deploys + registers workers + starts polling):
// await runtime.serve(ceo);
Expand Down
Loading
Loading