Skip to main content

AI Agent Framework

AI Agent Framework is a TypeScript framework for building AI chains and tool-using agents from composable primitives.

Key Capabilities​

  • runnable composition for deterministic workflows
  • prompt templates and output parsers
  • model adapters for provider integration
  • agent runtime with tool execution
  • resumable Workflow primitive with step snapshots
  • typed building blocks for application code

When To Use It​

Use AI Agent Framework when you need to:

  • build structured prompt/model/parser pipelines
  • compose reusable AI workflow stages
  • add tool calling to an assistant
  • keep provider integration separate from application flow

Core Concepts​

ConceptMeaning
Runnableexecutable composable unit
Chainfixed sequence of runnables
Prompt templateformatter for prompt variables
Output parserconverter from model text to application output
Agentruntime that can call tools before returning a response

Current Scope​

The current MVP includes runnable composition, prompt templates, parsers, OpenAI provider integration, workflow snapshots/resume state, and a tool-capable agent runtime. Retriever primitives, richer memory support, and additional provider adapters remain planned work.

Documentation​

  1. Getting Started: install and run the first chain and agent.
  2. User Guide: choose primitives for common use cases.
  3. Examples: practical usage patterns.
  4. API Reference: public API surface.
  5. Architecture: runtime behavior.
  6. Production Readiness: hardening checklist and rollout guidance.

Source of Truth​