Sanity Library Reference Docs
    Preparing search index...

    Type Alias StudioAgentOptions

    Options for createStudioAgent.

    type StudioAgentOptions = {
        fetch?: typeof __type;
        providerOptions?: Omit<
            ContentAgentProviderSettings,
            "organizationId"
            | "baseURL"
            | "application",
        >;
    }
    Index

    Properties

    fetch?: typeof __type

    Custom fetch implementation. Useful for testing.

    providerOptions?: Omit<
        ContentAgentProviderSettings,
        "organizationId"
        | "baseURL"
        | "application",
    >

    Additional provider settings forwarded to createContentAgent. organizationId, baseURL, and application are derived automatically.