@ulifeai/agentb (Core Framework)
This section provides detailed API documentation for the core @ulifeai/agentb package.
Main Exports
The @ulifeai/agentb package exports a range of classes, interfaces, types, and utility functions. Key categories include:
Facades:
AgentB: High-level facade for easy setup and common interactions.
Managers:
ApiInteractionManager: Core orchestrator for agent interactions and modes.ToolsetOrchestrator: Manages creation and access toIToolSets.
Agent Core:
IAgent,BaseAgent,PlanningAgent: Agent interfaces and implementations.IAgentContext,AgentRunConfig: Context and configuration for agent runs.AgentEventtypes: Detailed event structures.
Tools:
ITool,IToolDefinition,IToolParameter,IToolResult,IToolProvider,IToolSet: Core tool interfaces.OpenAPIConnector: Tool provider for OpenAPI specs.GenericHttpApiTool,DelegateToSpecialistTool: Specialized tools.
LLM Integration:
ILLMClient,OpenAIAdapter: LLM client interface and OpenAI implementation.LLMMessage,LLMMessageChunk,LLMToolCall: Types for LLM communication.
Threads & Messages:
IThread,IMessage: Core conversation structures.IThreadStorage,IMessageStorage,IAgentRunStorage: Storage interfaces.MemoryStorage: Default in-memory storage.
Errors:
Custom error classes like
ApplicationError,LLMError,ToolNotFoundError, etc.
Utilities:
Prompt builders,
sanitizeIdForLLM, etc.
Navigate to the specific sub-pages for detailed API information on each component.
Last updated