Core Concepts
Core Concepts
Connector-First Architecture
The library uses a Connector-First Architecture where Connectors are the single source of truth for authentication.
User Code → Connector Registry → Agent → Provider → LLM
Key Benefits:
- One auth system for both AI providers AND external APIs
- Multiple keys per vendor (e.g.,
openai-main,openai-backup) - Named connectors for easy reference
- No API key management in agent code
The Core Building Blocks
- Connector - Manages authentication
- Agent - Orchestrates LLM interactions
- Vendor - Const object identifying AI providers (e.g.,
Vendor.OpenAI,Vendor.Anthropic). - AgentContextNextGen - Plugin composition, conversation, preparation, and one shared ToolManager.
- MemorySystem - Standalone long-term entity/fact knowledge.
- AgentRuntime - Complete harness definitions, execution bindings, sessions, and observable runs.
Use Agent Runtime for whole harnesses. Model adapters implement individual calls; harness drivers retain their own loops and state.