import { GoogleAIAPI, GoogleAIAPIConfig, GoogleAIBaseLLMInput, GoogleAIModelRequestParams, GoogleConnectionParams, GoogleLLMResponse, GoogleModelParams, GooglePlatformType, GoogleRawResponse, GoogleResponse, VertexModelFamily } from "./types.cjs"; import { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleAbstractedClientOpsMethod } from "./auth.cjs"; import { AsyncCaller, AsyncCallerCallOptions } from "@langchain/core/utils/async_caller"; import { BaseLanguageModelCallOptions } from "@langchain/core/language_models/base"; import { BaseRunManager } from "@langchain/core/callbacks/manager"; import { BaseCallbackHandler } from "@langchain/core/callbacks/base"; //#region src/connection.d.ts declare abstract class GoogleConnection { caller: AsyncCaller; client: GoogleAbstractedClient; streaming: boolean; constructor(caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean); abstract buildUrl(): Promise; abstract buildMethod(): GoogleAbstractedClientOpsMethod; _clientInfoHeaders(): Promise>; _getClientInfo(): Promise<{ userAgent: string; clientLibraryVersion: string; }>; _moduleName(): Promise; additionalHeaders(): Promise>; _buildOpts(data: unknown | undefined, options: CallOptions, requestHeaders?: Record): Promise; _request(data: unknown | undefined, options: CallOptions, requestHeaders?: Record): Promise; } declare abstract class GoogleHostConnection extends GoogleConnection implements GoogleConnectionParams { platformType: GooglePlatformType | undefined; _endpoint: string | undefined; _location: string | undefined; _apiVersion: string | undefined; constructor(fields: GoogleConnectionParams | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean); fieldPlatformType(fields: GoogleConnectionParams | undefined): GooglePlatformType | undefined; get platform(): GooglePlatformType; get computedPlatformType(): GooglePlatformType; get computedApiVersion(): string; get apiVersion(): string; get location(): string; get computedLocation(): string; get endpoint(): string; get computedEndpoint(): string; buildMethod(): GoogleAbstractedClientOpsMethod; } declare abstract class GoogleRawConnection extends GoogleHostConnection { _buildOpts(data: unknown | undefined, _options: CallOptions, requestHeaders?: Record): Promise; } declare abstract class GoogleAIConnection extends GoogleHostConnection implements GoogleAIBaseLLMInput { model: string; modelName: string; client: GoogleAbstractedClient; _apiName?: string; apiConfig?: GoogleAIAPIConfig; constructor(fields: GoogleAIBaseLLMInput | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean); get modelFamily(): VertexModelFamily; get modelPublisher(): string; get computedAPIName(): string; get apiName(): string; get api(): GoogleAIAPI; get isApiKey(): boolean; fieldPlatformType(fields: GoogleConnectionParams | undefined): GooglePlatformType | undefined; get computedPlatformType(): GooglePlatformType; get computedApiVersion(): string; get computedLocation(): string; abstract buildUrlMethod(): Promise; buildUrlGenerativeLanguage(): Promise; buildUrlVertexExpress(): Promise; buildUrlVertexLocation(): Promise; buildUrlVertex(): Promise; buildUrl(): Promise; abstract formatData(input: InputType, parameters: GoogleModelParams): Promise; request(input: InputType, parameters: GoogleAIModelRequestParams, options: CallOptions, runManager?: BaseRunManager): Promise; } declare abstract class AbstractGoogleLLMConnection extends GoogleAIConnection { buildUrlMethodGemini(): Promise; buildUrlMethodClaude(): Promise; buildUrlMethod(): Promise; formatData(input: MessageType, parameters: GoogleAIModelRequestParams): Promise; } interface GoogleCustomEventInfo { subEvent: string; module: string; } declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler { customEventInfo(eventName: string): GoogleCustomEventInfo; abstract handleCustomRequestEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record): any; abstract handleCustomResponseEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record): any; abstract handleCustomChunkEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record): any; handleCustomEvent(eventName: string, data: any, runId: string, tags?: string[], metadata?: Record): any; } declare class GoogleRequestLogger extends GoogleRequestCallbackHandler { name: string; log(eventName: string, data: any, tags?: string[]): undefined; handleCustomRequestEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record): any; handleCustomResponseEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record): any; handleCustomChunkEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record): any; } declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler { name: string; request: any; response: any; chunk: any[]; handleCustomRequestEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record): any; handleCustomResponseEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record): any; handleCustomChunkEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record): any; } //#endregion export { AbstractGoogleLLMConnection, GoogleAIConnection, GoogleConnection, GoogleCustomEventInfo, GoogleHostConnection, GoogleRawConnection, GoogleRequestCallbackHandler, GoogleRequestLogger, GoogleRequestRecorder }; //# sourceMappingURL=connection.d.cts.map