@squidcloud/backend
    Preparing search index...

    Interface AiFunctionContext<AgentContextType, FunctionContextType>

    Context object passed as a second parameter to every AI function call, providing both agent-specific and function-specific context.

    interface AiFunctionContext<
        AgentContextType = unknown,
        FunctionContextType = unknown,
    > {
        agentContext: AgentContextType;
        agentId?: string;
        functionContext: FunctionContextType;
    }

    Type Parameters

    • AgentContextType = unknown
    • FunctionContextType = unknown
    Index

    Properties

    agentContext: AgentContextType

    Persistent context for the specific AI agent. Remains constant across all AI functions used by this agent.

    agentId?: string

    Unique identifier for the AI agent making the call.

    functionContext: FunctionContextType

    Context specific to each individual AI function call. Can contain parameters or data unique to the current function invocation.