@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 to IToolSets.

  • Agent Core:

  • 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