unified-llm-client
    Preparing search index...

    Interface ConversationOptions

    Configuration for a new or restored Conversation.

    interface ConversationOptions {
        budgetExceededAction?: BudgetExceededAction;
        budgetUsd?: number;
        contextManager?: ContextManager;
        maxToolRounds?: number;
        maxContextTokens?: number;
        maxTokens?: number;
        messages?: CanonicalMessage[];
        model?: string;
        provider?: CanonicalProvider;
        providerOptions?: ProviderOptions;
        responseFormat?: ResponseFormat;
        sessionId?: string;
        store?: SessionStore<ConversationSnapshot>;
        system?: string;
        toolCallDispatcherMetadata?: Record<string, JsonValue>;
        tenantId?: string;
        toolExecutionTimeoutMs?: number;
        toolValidation?: ToolValidationMode;
        toolChoice?: CanonicalToolChoice;
        tools?: CanonicalTool<JsonObject>[];
        toolCallDispatcher?: ToolCallDispatcher;
        onWarning?: (message: string) => void;
        onCompaction?: (
            event: {
                afterCount: number;
                beforeCount: number;
                removedCount: number;
                toolRound: number;
            },
        ) => void;
    }
    Index

    Properties

    budgetExceededAction?: BudgetExceededAction
    budgetUsd?: number
    contextManager?: ContextManager
    maxToolRounds?: number
    maxContextTokens?: number
    maxTokens?: number
    messages?: CanonicalMessage[]
    model?: string
    providerOptions?: ProviderOptions
    responseFormat?: ResponseFormat
    sessionId?: string
    system?: string
    toolCallDispatcherMetadata?: Record<string, JsonValue>
    tenantId?: string
    toolExecutionTimeoutMs?: number
    toolValidation?: ToolValidationMode
    toolChoice?: CanonicalToolChoice
    toolCallDispatcher?: ToolCallDispatcher
    onWarning?: (message: string) => void
    onCompaction?: (
        event: {
            afterCount: number;
            beforeCount: number;
            removedCount: number;
            toolRound: number;
        },
    ) => void