Overview of agentspec TypeScript SDK examples
mainThe agentspec TypeScript SDK provides several patterns for building agentic systems. Key example files include:
- Basic Agent: Creating an agent with LLM configuration, system prompts, and template variables (
01-basic-agent.ts). - Tools: Implementing various tool types including
ServerTool,ClientTool,RemoteTool, andBuiltinTool(02-tools.ts). - Multi-Agent Systems: Implementing patterns like
Swarm,ManagerWorkers, andSpecializedAgent(03-multi-agent.ts). - Workflows: Using
FlowBuilderto create linear, branching, and data-flow workflows (04-flows.ts). - MCP Tools: Using Model Context Protocol (MCP) tools with
Stdio,SSE, andHTTPtransports (05-mcp-tools.ts). - Serialization: Handling JSON/YAML serialization,
camelCaseconversion, and disaggregated components (06-serialization.ts). - Agent-to-Agent (A2A): Implementing the A2A protocol and working with remote agents (
07-a2a-agent.ts). - Datastores: Using in-memory, Oracle DB, and PostgreSQL datastores (
08-datastores.ts).