@squidcloud/client
    Preparing search index...

    Interface AiAdvisorOptions

    Gives the answering model a tool that consults a stronger model mid-turn. The turn stays on its own model, so its prompt cache survives, and the advisor gets only what the answering model passes it. Models rarely consult it unprompted: name in the agent's instructions when they should.

    interface AiAdvisorOptions {
        instructions?: string;
        maxConsultations?: number;
        model: AiChatModelSelection;
        reasoningEffort?: AiReasoningEffort;
        shareFunctions?: boolean;
    }
    Index
    instructions?: string

    Added to the advisor's prompt, to steer what it answers and how.

    maxConsultations?: number

    Consultations allowed per turn, 1 to 10. Defaults to 3.

    The model that gives the advice.

    reasoningEffort?: AiReasoningEffort

    The effort the advisor runs at. A vendor model runs at the nearest level it accepts.

    shareFunctions?: boolean

    Lets the advisor call the turn's functions, including ones with side effects, and pays for its tool loop. Defaults to false: the advisor sees only what the answering model passes it.