/** * Mistral client types. */ import type { BaseIntegrationClient } from "../../types.js"; import type { SupportsApiRequest } from "../base/index.js"; /** * Mistral client for API interactions. * * Provides generic API request method for interacting with Mistral's API. * Use apiRequest() to make calls to any Mistral API endpoint. * * @example * ```typescript * // Declare in api(): integrations: { mistral: mistral(INTEGRATION_ID) } * // In run(), access via ctx.integrations.mistral * * // Make API requests * const ResponseSchema = z.object({ * // Define your response schema * }); * * const result = await mistral.apiRequest( * { * method: 'POST', * path: '/chat/completions', * }, * { response: ResponseSchema } * ); * ``` */ export interface MistralClient extends BaseIntegrationClient, SupportsApiRequest { // apiRequest() method inherited from SupportsApiRequest }