import type { IStreamLogger } from '../../../PSAgentLogger'; import type { IBackendEndpoints } from '../../endpoints.interface'; import type { IBackendContext } from '../../interfaces'; import type { ILLM, ILLMConfig, ILLMResponsesConfig, LLMModel } from '../../interfaces'; import { Auth } from './Auth'; export default class LLM implements ILLM { protected readonly auth: Auth; protected readonly baseUrl: string; protected readonly appToken?: string; protected readonly userIdentifier?: string; protected readonly log?: IStreamLogger; protected readonly endpoints: IBackendEndpoints; constructor(config: IBackendContext, auth?: Auth, endpoints?: IBackendEndpoints); private llmHeaders; getModels(): Promise; private prepareMessages; llm(prompt: string, model?: string, systemmsg?: string, llm_config?: ILLMConfig, transformCodexResponse?: boolean): Promise; llmStream(prompt: string, model?: string, systemmsg?: string, llm_config?: ILLMConfig, transformCodexStream?: boolean): Promise>; llmResponses(prompt: string, model?: string, systemmsg?: string, llm_config?: ILLMResponsesConfig): Promise; llmResponsesStream(prompt: string, model?: string, systemmsg?: string, llm_config?: ILLMResponsesConfig): Promise>; }