{"version":3,"file":"raycast.d.cts","names":["AI","LLM","BaseLLMParams","RaycastAIInput","Model","RaycastAI","Promise"],"sources":["../../src/llms/raycast.d.ts"],"sourcesContent":["import { AI } from \"@raycast/api\";\nimport { LLM, type BaseLLMParams } from \"@langchain/core/language_models/llms\";\n/**\n * The input parameters for the RaycastAI class, which extends the BaseLLMParams interface.\n */\nexport interface RaycastAIInput extends BaseLLMParams {\n    model?: AI.Model;\n    creativity?: number;\n    rateLimitPerMinute?: number;\n}\n/**\n * The RaycastAI class, which extends the LLM class and implements the RaycastAIInput interface.\n */\nexport declare class RaycastAI extends LLM implements RaycastAIInput {\n    lc_serializable: boolean;\n    /**\n     * The model to use for generating text.\n     */\n    model: AI.Model;\n    /**\n     * The creativity parameter, also known as the \"temperature\".\n     */\n    creativity: number;\n    /**\n     * The rate limit for API calls, in requests per minute.\n     */\n    rateLimitPerMinute: number;\n    /**\n     * The timestamp of the last API call, used to enforce the rate limit.\n     */\n    private lastCallTimestamp;\n    /**\n     * Creates a new instance of the RaycastAI class.\n     * @param {RaycastAIInput} fields The input parameters for the RaycastAI class.\n     * @throws {Error} If the Raycast AI environment is not accessible.\n     */\n    constructor(fields: RaycastAIInput);\n    /**\n     * Returns the type of the LLM, which is \"raycast_ai\".\n     * @return {string} The type of the LLM.\n     * @ignore\n     */\n    _llmType(): string;\n    /**\n     * Calls AI.ask with the given prompt and returns the generated text.\n     * @param {string} prompt The prompt to generate text from.\n     * @return {Promise<string>} A Promise that resolves to the generated text.\n     * @ignore\n     */\n    _call(prompt: string, options: this[\"ParsedCallOptions\"]): Promise<string>;\n}\n//# sourceMappingURL=raycast.d.ts.map"],"mappings":";;;;;;;AAKA;AAQqBK,UARJF,cAAAA,SAAuBD,aAQV,CAAA;EAKhBE,KAAAA,CAAAA,EAZFJ,EAAAA,CAAGI,KAYDA;EAkBUD,UAAAA,CAAAA,EAAAA,MAAAA;EAauCG,kBAAAA,CAAAA,EAAAA,MAAAA;;;AApCK;;cAA/CD,SAAAA,SAAkBJ,GAAAA,YAAeE;;;;;SAK3CH,EAAAA,CAAGI;;;;;;;;;;;;;;;;;;sBAkBUD;;;;;;;;;;;;;6DAauCG"}