@squidcloud/client
    Preparing search index...

    Interface AiAgent<T>

    A definition of an AI agent with its properties and default chat options.

    interface AiAgent<T extends AiChatModelSelection | undefined = undefined> {
        apiKey?: string;
        auditLog?: boolean;
        auditLogFullContext?: boolean;
        createdAt: Date;
        description?: string;
        id: string;
        isPublic?: boolean;
        mcpServer?: AiAgentMcpServerConfig;
        options: AiChatOptions<T>;
        updatedAt: Date;
    }

    Type Parameters

    Index
    apiKey?: string

    Optional api key used specifically for operations on this agent

    auditLog?: boolean

    Enables audit logging for the agent's activities if true; defaults to false.

    auditLogFullContext?: boolean

    Records the full agent context in the audit log — assembled system instructions on the chat-start entry and retrieved knowledge-base content in KB tool-call updates; requires auditLog; defaults to false.

    createdAt: Date

    The date and time the agent was created.

    description?: string

    An optional description of the agent's purpose or capabilities.

    id: string

    The unique identifier of the AI agent.

    isPublic?: boolean

    Indicates whether the agent is publicly accessible; defaults to false. A caller of a public agent without the app API key can narrow its stored knowledge bases and metadata filters per request, not widen them.

    Optional configuration for exposing the agent as an MCP server.

    options: AiChatOptions<T>

    The default chat options for the agent, overridable by the user during use.

    updatedAt: Date

    The date and time the agent was last updated.