@squidcloud/backend
    Preparing search index...

    Interface AiFunctionContext<FunctionContextType, AgentContextType>

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

    interface AiFunctionContext<
        FunctionContextType = unknown,
        AgentContextType = unknown,
    > {
        agentContext: AgentContextType;
        agentId: string;
        functionContext: FunctionContextType;
        integrationId: string;
        integrationType:
            | "ai_agents"
            | "active_directory"
            | "ai_chatbot"
            | "algolia"
            | "alloydb"
            | "api"
            | "auth0"
            | "azure_cosmosdb"
            | "azure_postgresql"
            | "azure_sql"
            | "bigquery"
            | "built_in_db"
            | "built_in_gcs"
            | "built_in_queue"
            | "built_in_s3"
            | "cassandra"
            | "clickhouse"
            | "cloudsql"
            | "cockroach"
            | "cognito"
            | "confluence"
            | "confluent"
            | "datadog"
            | "db2"
            | "descope"
            | "documentdb"
            | "dynamodb"
            | "elastic_enterprise_search"
            | "elastic_observability"
            | "elastic_search"
            | "firebase_auth"
            | "firestore"
            | "gcs"
            | "google_docs"
            | "google_drive"
            | "graphql"
            | "hubspot"
            | "jira"
            | "jwt_hmac"
            | "jwt_rsa"
            | "kafka"
            | "linear"
            | "mariadb"
            | "monday"
            | "mongo"
            | "mssql"
            | "mysql"
            | "newrelic"
            | "okta"
            | "onedrive"
            | "oracledb"
            | "pinecone"
            | "postgres"
            | "redis"
            | "s3"
            | "salesforce_crm"
            | "sap_hana"
            | "sentry"
            | "servicenow"
            | "snowflake"
            | "spanner"
            | "xata"
            | "zendesk"
            | "mail"
            | "slack";
    }

    Type Parameters

    • FunctionContextType = unknown
    • AgentContextType = unknown
    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.

    integrationId: string

    Unique ID of the integration instance. Defined only for functions with an integration type specified.

    integrationType:
        | "ai_agents"
        | "active_directory"
        | "ai_chatbot"
        | "algolia"
        | "alloydb"
        | "api"
        | "auth0"
        | "azure_cosmosdb"
        | "azure_postgresql"
        | "azure_sql"
        | "bigquery"
        | "built_in_db"
        | "built_in_gcs"
        | "built_in_queue"
        | "built_in_s3"
        | "cassandra"
        | "clickhouse"
        | "cloudsql"
        | "cockroach"
        | "cognito"
        | "confluence"
        | "confluent"
        | "datadog"
        | "db2"
        | "descope"
        | "documentdb"
        | "dynamodb"
        | "elastic_enterprise_search"
        | "elastic_observability"
        | "elastic_search"
        | "firebase_auth"
        | "firestore"
        | "gcs"
        | "google_docs"
        | "google_drive"
        | "graphql"
        | "hubspot"
        | "jira"
        | "jwt_hmac"
        | "jwt_rsa"
        | "kafka"
        | "linear"
        | "mariadb"
        | "monday"
        | "mongo"
        | "mssql"
        | "mysql"
        | "newrelic"
        | "okta"
        | "onedrive"
        | "oracledb"
        | "pinecone"
        | "postgres"
        | "redis"
        | "s3"
        | "salesforce_crm"
        | "sap_hana"
        | "sentry"
        | "servicenow"
        | "snowflake"
        | "spanner"
        | "xata"
        | "zendesk"
        | "mail"
        | "slack"

    Type of the integration, such as 'mysql', 'mail', etc... Defined only for functions with an integration type specified.