/ src / data / models / completeQueryRequest.ts
completeQueryRequest.ts
 1  /**
 2   * Generated by orval v7.9.0 🍺
 3   * Do not edit manually.
 4   * Cogni API
 5   * A minimal FastAPI that directly passes user queries to OpenAI, augmented with Cogni memory.
 6   * OpenAPI spec version: 0.1.0
 7   */
 8  import type { CompleteQueryRequestSystemMessage } from './completeQueryRequestSystemMessage';
 9  import type { CompleteQueryRequestMessageHistory } from './completeQueryRequestMessageHistory';
10  
11  /**
12   * Extended schema for a chat request with additional parameters.
13  This can be used for more advanced chat endpoints.
14   */
15  export interface CompleteQueryRequest {
16    /** The message content to send to the AI */
17    message: string;
18    /** The AI model to use for generation */
19    model?: string;
20    /**
21     * Controls randomness in the response. Lower is more deterministic.
22     * @minimum 0
23     * @maximum 1
24     */
25    temperature?: number;
26    /** Instructions for the AI assistant's behavior */
27    system_message?: CompleteQueryRequestSystemMessage;
28    /** Optional list of previous messages in the conversation */
29    message_history?: CompleteQueryRequestMessageHistory;
30  }