Member Junction
    Preparing search index...

    Base class and contract types for artifact type-specific tool libraries. Each artifact type can register a subclass that provides tools for agents to explore artifacts of that type.

    Tool libraries are instantiated by the ArtifactToolManager when an agent run includes input artifacts of the corresponding type.

    get_full is provided as a default tool by this base class — it returns the raw artifact content (utf-8 string passthrough, or base64 for Buffer). Subclasses inherit it for free; they can override getFull() (and optionally getFullToolDefinition()) when "the full content" needs domain-specific transformation (e.g. PDF extracts text instead of returning binary bytes).

    These types live in ai-core-plus so they can be referenced from both server and client code paths (e.g. future in-browser inference).

    interface ArtifactToolDefinition {
        description: string;
        inputSchema: Record<string, unknown>;
        name: string;
    }
    Index

    Properties

    description: string
    inputSchema: Record<string, unknown>
    name: string