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