@gicm/ptc-coordinator
v1.0.1
Published
Programmatic Tool Calling (PTC) Coordinator - Orchestrate gICM agents via generated code pipelines
Maintainers
Readme
@gicm/ptc-coordinator
Programmatic Tool Calling (PTC) Coordinator - Orchestrate gICM agents via generated code pipelines.
Installation
npm install @gicm/ptc-coordinator
# or
pnpm add @gicm/ptc-coordinatorFeatures
- Pipeline Generation - LLM generates executable pipelines
- Tool Orchestration - Coordinate multiple agents
- Template Library - Pre-built pipeline templates
- Type-Safe - Full TypeScript support with Zod validation
Usage
import { PTCCoordinator } from "@gicm/ptc-coordinator";
const coordinator = new PTCCoordinator();
// Execute a natural language request
const result = await coordinator.execute(
"Analyze SOL/USDC, check wallet balance, and suggest entry points"
);
// The coordinator:
// 1. Generates a pipeline from the request
// 2. Executes each step with appropriate agents
// 3. Returns structured resultsUsing Templates
import { templates } from "@gicm/ptc-coordinator/templates";
// Use a pre-built template
const pipeline = templates.tradingAnalysis({
pair: "SOL/USDC",
timeframe: "4h",
});
const result = await coordinator.runPipeline(pipeline);How It Works
- Parse Request - Natural language to structured intent
- Generate Pipeline - Create executable code steps
- Validate - Type-check with Zod schemas
- Execute - Run agents in sequence/parallel
- Aggregate - Combine results and return
License
MIT
