@deskcreate/agentcraft
    Preparing search index...

    Interface AgentAdapter

    interface AgentAdapter {
        declaredToolNames?: string[];
        dependsOn?: readonly unknown[];
        metadata?: {
            auth?:
                | "none"
                | "custom"
                | "api-key"
                | "oauth"
                | "aws"
                | "connection-string";
            kind?: "custom"
            | "placeholder"
            | "mcp-backed"
            | "native-sdk";
            readOnly?: boolean;
            requiredSecrets?: string[];
            scopes?: string[];
            sideEffects?: ("none" | "read" | "write" | "external")[];
            trustLevel?: "trusted" | "review-required" | "untrusted";
        };
        name: string;
        requires: ("audio" | "tools" | "video" | "files" | "vision")[];
        cleanup?(): Promise<void>;
        getTools?(): ToolDefinition[] | Promise<ToolDefinition[]>;
        init?(): Promise<void>;
        onAfterRun?(
            response: AgentResponse,
        ): AgentResponse | Promise<AgentResponse>;
        onAfterStream?(
            chunks: StreamChunk[],
            response: AgentResponse,
        ): AgentResponse | Promise<AgentResponse>;
        onBeforeRun?(
            params: AgentRunParams,
        ): AgentRunParams | Promise<AgentRunParams>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    declaredToolNames?: string[]
    dependsOn?: readonly unknown[]
    metadata?: {
        auth?:
            | "none"
            | "custom"
            | "api-key"
            | "oauth"
            | "aws"
            | "connection-string";
        kind?: "custom"
        | "placeholder"
        | "mcp-backed"
        | "native-sdk";
        readOnly?: boolean;
        requiredSecrets?: string[];
        scopes?: string[];
        sideEffects?: ("none" | "read" | "write" | "external")[];
        trustLevel?: "trusted" | "review-required" | "untrusted";
    }
    name: string
    requires: ("audio" | "tools" | "video" | "files" | "vision")[]

    Methods

    • Returns Promise<void>

    • Returns Promise<void>