@cubie-ai/tiny-ai - v0.0.14
    Preparing search index...

    Class TinyAgent

    Index

    Constructors

    Properties

    clients: Record<string, TinyMCP> = {}

    MCP Clients the agent is connected to

    name: string

    The name of the agent.

    provider: TinyProvider<any, any, any>

    The provider

    settings: AgentSettings = ...

    The system prompt for the agent. Uses the default settings returned by defaultSettings if not provided.

    toolMap: Record<string, TinyTool>

    The tools available to the agent.

    Methods

    • Removes a tool from the agent

      Parameters

      • name: string

      Returns void

    • Returns a tool by name

      Parameters

      • name: string

      Returns Promise<Tool>

    • This will compile all agent tool sources into a single map. It will use all class tools, all mcp client tools, and any extra tools passed in as an argument to the function.

      Parameters

      Returns Promise<Record<string, Tool>>