@squidcloud/backend
    Preparing search index...

    Interface AiFunctionCallContext<FunctionContextType, AgentContextType>

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

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

    Type Parameters

    • FunctionContextType = unknown
    • AgentContextType = unknown

    Hierarchy (View Summary)

    Index

    Properties

    agentContext: AgentContextType

    Persistent context of the AI agent that calls the function. Same for 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 or current function connection to the AI agent.