@langchain/google-common 2.0.3 → 2.0.5-dev-1765431816670
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/auth.d.cts.map +1 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/chat_models.d.cts.map +1 -0
- package/dist/chat_models.d.ts.map +1 -0
- package/dist/connection.d.cts.map +1 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/embeddings.d.cts.map +1 -0
- package/dist/embeddings.d.ts.map +1 -0
- package/dist/experimental/media.d.cts.map +1 -0
- package/dist/experimental/media.d.ts.map +1 -0
- package/dist/experimental/utils/media_core.d.cts.map +1 -0
- package/dist/experimental/utils/media_core.d.ts.map +1 -0
- package/dist/llms.d.cts.map +1 -0
- package/dist/llms.d.ts.map +1 -0
- package/dist/output_parsers.d.cts.map +1 -0
- package/dist/output_parsers.d.ts.map +1 -0
- package/dist/types-anthropic.d.cts.map +1 -0
- package/dist/types-anthropic.d.ts.map +1 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/common.d.cts.map +1 -0
- package/dist/utils/common.d.ts.map +1 -0
- package/dist/utils/failed_handler.d.cts.map +1 -0
- package/dist/utils/failed_handler.d.ts.map +1 -0
- package/dist/utils/gemini.d.cts.map +1 -0
- package/dist/utils/gemini.d.ts.map +1 -0
- package/dist/utils/palm.d.cts.map +1 -0
- package/dist/utils/palm.d.ts.map +1 -0
- package/dist/utils/safety.d.cts.map +1 -0
- package/dist/utils/safety.d.ts.map +1 -0
- package/dist/utils/stream.d.cts.map +1 -0
- package/dist/utils/stream.d.ts.map +1 -0
- package/dist/utils/zod_to_gemini_parameters.d.cts.map +1 -0
- package/dist/utils/zod_to_gemini_parameters.d.ts.map +1 -0
- package/package.json +17 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @langchain/google-common
|
|
2
2
|
|
|
3
|
+
## 2.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`0bade90`](https://github.com/langchain-ai/langchainjs/commit/0bade90ed47c7988ed86f1e695a28273c7b3df50), [`6c40d00`](https://github.com/langchain-ai/langchainjs/commit/6c40d00e926f377d249c2919549381522eac8ed1)]:
|
|
8
|
+
- @langchain/core@1.1.4
|
|
9
|
+
|
|
3
10
|
## 2.0.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.cts","names":["GooglePlatformType","GoogleAbstractedClientOpsMethod","GoogleAbstractedClientOpsResponseType","GoogleAbstractedClientOps","Record","GoogleAbstractedClient","Promise","GoogleAbstractedFetchClient","fetch","Response","Headers","ApiKeyGoogleAuth","aiPlatformScope","ensureAuthOptionScopes","AuthOptions"],"sources":["../src/auth.d.ts"],"sourcesContent":["import { GooglePlatformType } from \"./types.js\";\nexport type GoogleAbstractedClientOpsMethod = \"GET\" | \"POST\" | \"DELETE\";\nexport type GoogleAbstractedClientOpsResponseType = \"json\" | \"stream\" | \"blob\";\nexport type GoogleAbstractedClientOps = {\n url?: string;\n method?: GoogleAbstractedClientOpsMethod;\n headers?: Record<string, string>;\n data?: unknown;\n responseType?: GoogleAbstractedClientOpsResponseType;\n};\nexport interface GoogleAbstractedClient {\n request: (opts: GoogleAbstractedClientOps) => unknown;\n getProjectId: () => Promise<string>;\n get clientType(): string;\n}\nexport declare abstract class GoogleAbstractedFetchClient implements GoogleAbstractedClient {\n abstract get clientType(): string;\n abstract getProjectId(): Promise<string>;\n abstract request(opts: GoogleAbstractedClientOps): unknown;\n _fetch: typeof fetch;\n _buildData(res: Response, opts: GoogleAbstractedClientOps): Promise<any>;\n _request(url: string | undefined, opts: GoogleAbstractedClientOps, additionalHeaders: Record<string, string>): Promise<{\n data: any;\n config: {};\n status: number;\n statusText: string;\n headers: Headers;\n request: {\n responseURL: string;\n };\n }>;\n}\nexport declare class ApiKeyGoogleAuth extends GoogleAbstractedFetchClient {\n apiKey: string;\n constructor(apiKey: string);\n get clientType(): string;\n getProjectId(): Promise<string>;\n request(opts: GoogleAbstractedClientOps): unknown;\n}\nexport declare function aiPlatformScope(platform: GooglePlatformType): string[];\nexport declare function ensureAuthOptionScopes<AuthOptions>(authOption: AuthOptions | undefined, scopeProperty: string, scopesOrPlatform: string[] | GooglePlatformType | undefined): AuthOptions;\n//# sourceMappingURL=auth.d.ts.map"],"mappings":";;;KACYC,+BAAAA;KACAC,qCAAAA;AADAD,KAEAE,yBAAAA,GAF+B;EAC/BD,GAAAA,CAAAA,EAAAA,MAAAA;EACAC,MAAAA,CAAAA,EAECF,+BAFwB;EAExBA,OAAAA,CAAAA,EACCG,MADDH,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA;EACCG,IAAAA,CAAAA,EAAAA,OAAAA;EAEKF,YAAAA,CAAAA,EAAAA,qCAAAA;AAAqC,CAAA;AAEvCG,UAAAA,sBAAAA,CAAsB;EAKTE,OAAAA,EAAAA,CAAAA,IAAAA,EAJVJ,yBAIqC,EAAA,GAAA,OAAA;EAE5BG,YAAAA,EAAAA,GAAAA,GALLA,OAKKA,CAAAA,MAAAA,CAAAA;EACFH,IAAAA,UAAAA,EAAAA,EAAAA,MAAAA;;AAEPM,uBALUF,2BAAAA,YAAuCF,sBAKjDI,CAAAA;EAAgBN,aAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA4BG,SAAAA,YAAAA,CAAAA,CAAAA,EAHnCA,OAGmCA,CAAAA,MAAAA,CAAAA;EACpBH,SAAAA,OAAAA,CAAAA,IAAAA,EAHjBA,yBAGiBA,CAAAA,EAAAA,OAAAA;EAA8CC,MAAAA,EAAAA,OAFvEI,KAEuEJ;EAKzEM,UAAAA,CAAAA,GAAAA,EANGD,QAMHC,EAAAA,IAAAA,EANmBP,yBAMnBO,CAAAA,EAN+CJ,OAM/CI,CAAAA,GAAAA,CAAAA;EALkGJ,QAAAA,CAAAA,GAAAA,EAAAA,MAAAA,GAAAA,SAAAA,EAAAA,IAAAA,EAAvEH,yBAAuEG,EAAAA,iBAAAA,EAAzBF,MAAyBE,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,CAAAA,EAAAA,OAAAA,CAAAA;IAN9CD,IAAAA,EAAAA,GAAAA;IAAsB,MAAA,EAAA,CAAA,CAAA;IAiBtEM,MAAAA,EAAAA,MAAAA;IAIDL,UAAAA,EAAAA,MAAAA;IACFH,OAAAA,EAXDO,OAWCP;IAL4BI,OAAAA,EAAAA;MAA2B,WAAA,EAAA,MAAA;IAOjDK,CAAAA;EACAC,CAAAA,CAAAA;;AAA6Hb,cARhIW,gBAAAA,SAAyBJ,2BAAAA,CAQuGP;EAAiCc,MAAAA,EAAAA,MAAAA;EAAW,WAAA,CAAA,MAAA,EAAA,MAAA;;kBAJ7KR;gBACFH;;iBAEMS,eAAAA,WAA0BZ;iBAC1Ba,gDAAgDC,6EAA6Ed,iCAAiCc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","names":["GooglePlatformType","GoogleAbstractedClientOpsMethod","GoogleAbstractedClientOpsResponseType","GoogleAbstractedClientOps","Record","GoogleAbstractedClient","Promise","GoogleAbstractedFetchClient","fetch","Response","Headers","ApiKeyGoogleAuth","aiPlatformScope","ensureAuthOptionScopes","AuthOptions"],"sources":["../src/auth.d.ts"],"sourcesContent":["import { GooglePlatformType } from \"./types.js\";\nexport type GoogleAbstractedClientOpsMethod = \"GET\" | \"POST\" | \"DELETE\";\nexport type GoogleAbstractedClientOpsResponseType = \"json\" | \"stream\" | \"blob\";\nexport type GoogleAbstractedClientOps = {\n url?: string;\n method?: GoogleAbstractedClientOpsMethod;\n headers?: Record<string, string>;\n data?: unknown;\n responseType?: GoogleAbstractedClientOpsResponseType;\n};\nexport interface GoogleAbstractedClient {\n request: (opts: GoogleAbstractedClientOps) => unknown;\n getProjectId: () => Promise<string>;\n get clientType(): string;\n}\nexport declare abstract class GoogleAbstractedFetchClient implements GoogleAbstractedClient {\n abstract get clientType(): string;\n abstract getProjectId(): Promise<string>;\n abstract request(opts: GoogleAbstractedClientOps): unknown;\n _fetch: typeof fetch;\n _buildData(res: Response, opts: GoogleAbstractedClientOps): Promise<any>;\n _request(url: string | undefined, opts: GoogleAbstractedClientOps, additionalHeaders: Record<string, string>): Promise<{\n data: any;\n config: {};\n status: number;\n statusText: string;\n headers: Headers;\n request: {\n responseURL: string;\n };\n }>;\n}\nexport declare class ApiKeyGoogleAuth extends GoogleAbstractedFetchClient {\n apiKey: string;\n constructor(apiKey: string);\n get clientType(): string;\n getProjectId(): Promise<string>;\n request(opts: GoogleAbstractedClientOps): unknown;\n}\nexport declare function aiPlatformScope(platform: GooglePlatformType): string[];\nexport declare function ensureAuthOptionScopes<AuthOptions>(authOption: AuthOptions | undefined, scopeProperty: string, scopesOrPlatform: string[] | GooglePlatformType | undefined): AuthOptions;\n//# sourceMappingURL=auth.d.ts.map"],"mappings":";;;KACYC,+BAAAA;KACAC,qCAAAA;AADAD,KAEAE,yBAAAA,GAF+B;EAC/BD,GAAAA,CAAAA,EAAAA,MAAAA;EACAC,MAAAA,CAAAA,EAECF,+BAFwB;EAExBA,OAAAA,CAAAA,EACCG,MADDH,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA;EACCG,IAAAA,CAAAA,EAAAA,OAAAA;EAEKF,YAAAA,CAAAA,EAAAA,qCAAAA;AAAqC,CAAA;AAEvCG,UAAAA,sBAAAA,CAAsB;EAKTE,OAAAA,EAAAA,CAAAA,IAAAA,EAJVJ,yBAIqC,EAAA,GAAA,OAAA;EAE5BG,YAAAA,EAAAA,GAAAA,GALLA,OAKKA,CAAAA,MAAAA,CAAAA;EACFH,IAAAA,UAAAA,EAAAA,EAAAA,MAAAA;;AAEPM,uBALUF,2BAAAA,YAAuCF,sBAKjDI,CAAAA;EAAgBN,aAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA4BG,SAAAA,YAAAA,CAAAA,CAAAA,EAHnCA,OAGmCA,CAAAA,MAAAA,CAAAA;EACpBH,SAAAA,OAAAA,CAAAA,IAAAA,EAHjBA,yBAGiBA,CAAAA,EAAAA,OAAAA;EAA8CC,MAAAA,EAAAA,OAFvEI,KAEuEJ;EAKzEM,UAAAA,CAAAA,GAAAA,EANGD,QAMHC,EAAAA,IAAAA,EANmBP,yBAMnBO,CAAAA,EAN+CJ,OAM/CI,CAAAA,GAAAA,CAAAA;EALkGJ,QAAAA,CAAAA,GAAAA,EAAAA,MAAAA,GAAAA,SAAAA,EAAAA,IAAAA,EAAvEH,yBAAuEG,EAAAA,iBAAAA,EAAzBF,MAAyBE,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,CAAAA,EAAAA,OAAAA,CAAAA;IAN9CD,IAAAA,EAAAA,GAAAA;IAAsB,MAAA,EAAA,CAAA,CAAA;IAiBtEM,MAAAA,EAAAA,MAAAA;IAIDL,UAAAA,EAAAA,MAAAA;IACFH,OAAAA,EAXDO,OAWCP;IAL4BI,OAAAA,EAAAA;MAA2B,WAAA,EAAA,MAAA;IAOjDK,CAAAA;EACAC,CAAAA,CAAAA;;AAA6Hb,cARhIW,gBAAAA,SAAyBJ,2BAAAA,CAQuGP;EAAiCc,MAAAA,EAAAA,MAAAA;EAAW,WAAA,CAAA,MAAA,EAAA,MAAA;;kBAJ7KR;gBACFH;;iBAEMS,eAAAA,WAA0BZ;iBAC1Ba,gDAAgDC,6EAA6Ed,iCAAiCc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat_models.d.cts","names":["BaseMessage","CallbackManagerForLLMRun","BaseChatModel","LangSmithParams","BaseChatModelParams","ChatGenerationChunk","ChatResult","AIMessageChunk","BaseLanguageModelInput","StructuredOutputMethodOptions","ModelProfile","Runnable","AsyncCaller","InteropZodType","GoogleAIBaseLLMInput","GoogleAIModelParams","GoogleAISafetySetting","GoogleConnectionParams","GooglePlatformType","GoogleAIBaseLanguageModelCallOptions","GoogleAIAPI","GoogleAIAPIParams","GoogleSearchToolSetting","GoogleSpeechConfig","AbstractGoogleLLMConnection","GoogleAbstractedClient","GoogleBaseLLMInput","GoogleAISafetyHandler","GoogleAISafetyParams","GoogleAIToolType","GeminiAPIConfig","GoogleAIModelModality","ChatConnection","AuthOptions","Exclude","ChatGoogleBaseInput","Pick","ChatGoogleBase","RunOutput","Record","Partial","__types_js0","GoogleAIModelRequestParams","Promise","AsyncGenerator"],"sources":["../src/chat_models.d.ts"],"sourcesContent":["import { type BaseMessage } from \"@langchain/core/messages\";\nimport { CallbackManagerForLLMRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChatModel, LangSmithParams, type BaseChatModelParams } from \"@langchain/core/language_models/chat_models\";\nimport { ChatGenerationChunk, ChatResult } from \"@langchain/core/outputs\";\nimport { AIMessageChunk } from \"@langchain/core/messages\";\nimport { BaseLanguageModelInput, StructuredOutputMethodOptions } from \"@langchain/core/language_models/base\";\nimport { type ModelProfile } from \"@langchain/core/language_models/profile\";\nimport { Runnable } from \"@langchain/core/runnables\";\nimport { AsyncCaller } from \"@langchain/core/utils/async_caller\";\nimport { InteropZodType } from \"@langchain/core/utils/types\";\nimport { GoogleAIBaseLLMInput, GoogleAIModelParams, GoogleAISafetySetting, GoogleConnectionParams, GooglePlatformType, GoogleAIBaseLanguageModelCallOptions, GoogleAIAPI, GoogleAIAPIParams, GoogleSearchToolSetting, GoogleSpeechConfig } from \"./types.js\";\nimport { AbstractGoogleLLMConnection } from \"./connection.js\";\nimport { GoogleAbstractedClient } from \"./auth.js\";\nimport type { GoogleBaseLLMInput, GoogleAISafetyHandler, GoogleAISafetyParams, GoogleAIToolType, GeminiAPIConfig, GoogleAIModelModality } from \"./types.js\";\nexport declare class ChatConnection<AuthOptions> extends AbstractGoogleLLMConnection<BaseMessage[], AuthOptions> {\n convertSystemMessageToHumanContent: boolean | undefined;\n constructor(fields: GoogleAIBaseLLMInput<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming: boolean);\n get useSystemInstruction(): boolean;\n get computeUseSystemInstruction(): boolean;\n computeGoogleSearchToolAdjustmentFromModel(): Exclude<GoogleSearchToolSetting, boolean>;\n computeGoogleSearchToolAdjustment(apiConfig: GeminiAPIConfig): Exclude<GoogleSearchToolSetting, true>;\n buildGeminiAPI(): GoogleAIAPI;\n get api(): GoogleAIAPI;\n}\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleBaseInput<AuthOptions> extends BaseChatModelParams, GoogleConnectionParams<AuthOptions>, GoogleAIModelParams, GoogleAISafetyParams, GoogleAIAPIParams, Pick<GoogleAIBaseLanguageModelCallOptions, \"streamUsage\"> {\n}\n/**\n * Integration with a Google chat model.\n */\nexport declare abstract class ChatGoogleBase<AuthOptions> extends BaseChatModel<GoogleAIBaseLanguageModelCallOptions, AIMessageChunk> implements ChatGoogleBaseInput<AuthOptions> {\n static lc_name(): string;\n get lc_secrets(): {\n [key: string]: string;\n } | undefined;\n lc_serializable: boolean;\n model: string;\n modelName: string;\n temperature: number;\n maxOutputTokens: number;\n maxReasoningTokens: number;\n topP: number;\n topK: number;\n seed: number;\n presencePenalty: number;\n frequencyPenalty: number;\n stopSequences: string[];\n logprobs: boolean;\n topLogprobs: number;\n safetySettings: GoogleAISafetySetting[];\n responseModalities?: GoogleAIModelModality[];\n convertSystemMessageToHumanContent: boolean | undefined;\n safetyHandler: GoogleAISafetyHandler;\n speechConfig: GoogleSpeechConfig;\n streamUsage: boolean;\n streaming: boolean;\n labels?: Record<string, string>;\n protected connection: ChatConnection<AuthOptions>;\n protected streamedConnection: ChatConnection<AuthOptions>;\n constructor(fields?: ChatGoogleBaseInput<AuthOptions>);\n getLsParams(options: this[\"ParsedCallOptions\"]): LangSmithParams;\n abstract buildAbstractedClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: GoogleAIBaseLLMInput<AuthOptions>): string | undefined;\n buildClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildConnection(fields: GoogleBaseLLMInput<AuthOptions>, client: GoogleAbstractedClient): void;\n get platform(): GooglePlatformType;\n bindTools(tools: GoogleAIToolType[], kwargs?: Partial<GoogleAIBaseLanguageModelCallOptions>): Runnable<BaseLanguageModelInput, AIMessageChunk, GoogleAIBaseLanguageModelCallOptions>;\n _llmType(): string;\n /**\n * Get the parameters used to invoke the model\n */\n invocationParams(options?: this[\"ParsedCallOptions\"]): import(\"./types.js\").GoogleAIModelRequestParams;\n _generate(messages: BaseMessage[], options: this[\"ParsedCallOptions\"], runManager: CallbackManagerForLLMRun | undefined): Promise<ChatResult>;\n _streamResponseChunks(_messages: BaseMessage[], options: this[\"ParsedCallOptions\"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<ChatGenerationChunk>;\n /** @ignore */\n _combineLLMOutput(): never[];\n /**\n * Return profiling information for the model.\n *\n * Provides information about the model's capabilities and constraints,\n * including token limits, multimodal support, and advanced features like\n * tool calling and structured output.\n *\n * @returns {ModelProfile} An object describing the model's capabilities and constraints\n */\n get profile(): ModelProfile;\n withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<false>): Runnable<BaseLanguageModelInput, RunOutput>;\n withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<true>): Runnable<BaseLanguageModelInput, {\n raw: BaseMessage;\n parsed: RunOutput;\n }>;\n}\n//# sourceMappingURL=chat_models.d.ts.map"],"mappings":";;;;;;;;;;;;;;AAcqBgC,cAAAA,cAAcC,CAAAA,WAAA,CAAA,SAAsBT,2BAAtB,CAAkDxB,WAAlD,EAAA,EAAiEiC,WAAjE,CAAA,CAAA;EAAkDjC,kCAAAA,EAAAA,O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AAeyB,SAAfzB,CAAAA,GAA4B0B,MAA5B1B,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAA0DJ,6BAA1DI,CAAAA,KAAAA,CAAAA,CAAAA,EAAiGF,QAAjGE,CAA0GL,sBAA1GK,EAAkIyB,SAAlIzB,CAAAA;EAA4B0B,oBAAAA,CAAAA,kBACrFA,MADqFA,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,GAC/DA,MAD+DA,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,CAAAA,YAAAA,EAC5B1B,cAD4B0B,CACbD,SADaC,CAAAA,GACAA,MADAA,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAC8B9B,6BAD9B8B,CAAAA,IAAAA,CAAAA,CAAAA,EACoE5B,QADpE4B,CAC6E/B,sBAD7E+B,EAAAA;IAA8B9B,GAAAA,EAEjJT,WAFiJS;IAAgDD,MAAAA,EAG9L8B,SAH8L9B;EAAwB8B,CAAAA,CAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat_models.d.ts","names":["BaseMessage","CallbackManagerForLLMRun","BaseChatModel","LangSmithParams","BaseChatModelParams","ChatGenerationChunk","ChatResult","AIMessageChunk","BaseLanguageModelInput","StructuredOutputMethodOptions","ModelProfile","Runnable","AsyncCaller","InteropZodType","GoogleAIBaseLLMInput","GoogleAIModelParams","GoogleAISafetySetting","GoogleConnectionParams","GooglePlatformType","GoogleAIBaseLanguageModelCallOptions","GoogleAIAPI","GoogleAIAPIParams","GoogleSearchToolSetting","GoogleSpeechConfig","AbstractGoogleLLMConnection","GoogleAbstractedClient","GoogleBaseLLMInput","GoogleAISafetyHandler","GoogleAISafetyParams","GoogleAIToolType","GeminiAPIConfig","GoogleAIModelModality","ChatConnection","AuthOptions","Exclude","ChatGoogleBaseInput","Pick","ChatGoogleBase","RunOutput","Record","Partial","__types_js0","GoogleAIModelRequestParams","Promise","AsyncGenerator"],"sources":["../src/chat_models.d.ts"],"sourcesContent":["import { type BaseMessage } from \"@langchain/core/messages\";\nimport { CallbackManagerForLLMRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChatModel, LangSmithParams, type BaseChatModelParams } from \"@langchain/core/language_models/chat_models\";\nimport { ChatGenerationChunk, ChatResult } from \"@langchain/core/outputs\";\nimport { AIMessageChunk } from \"@langchain/core/messages\";\nimport { BaseLanguageModelInput, StructuredOutputMethodOptions } from \"@langchain/core/language_models/base\";\nimport { type ModelProfile } from \"@langchain/core/language_models/profile\";\nimport { Runnable } from \"@langchain/core/runnables\";\nimport { AsyncCaller } from \"@langchain/core/utils/async_caller\";\nimport { InteropZodType } from \"@langchain/core/utils/types\";\nimport { GoogleAIBaseLLMInput, GoogleAIModelParams, GoogleAISafetySetting, GoogleConnectionParams, GooglePlatformType, GoogleAIBaseLanguageModelCallOptions, GoogleAIAPI, GoogleAIAPIParams, GoogleSearchToolSetting, GoogleSpeechConfig } from \"./types.js\";\nimport { AbstractGoogleLLMConnection } from \"./connection.js\";\nimport { GoogleAbstractedClient } from \"./auth.js\";\nimport type { GoogleBaseLLMInput, GoogleAISafetyHandler, GoogleAISafetyParams, GoogleAIToolType, GeminiAPIConfig, GoogleAIModelModality } from \"./types.js\";\nexport declare class ChatConnection<AuthOptions> extends AbstractGoogleLLMConnection<BaseMessage[], AuthOptions> {\n convertSystemMessageToHumanContent: boolean | undefined;\n constructor(fields: GoogleAIBaseLLMInput<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming: boolean);\n get useSystemInstruction(): boolean;\n get computeUseSystemInstruction(): boolean;\n computeGoogleSearchToolAdjustmentFromModel(): Exclude<GoogleSearchToolSetting, boolean>;\n computeGoogleSearchToolAdjustment(apiConfig: GeminiAPIConfig): Exclude<GoogleSearchToolSetting, true>;\n buildGeminiAPI(): GoogleAIAPI;\n get api(): GoogleAIAPI;\n}\n/**\n * Input to chat model class.\n */\nexport interface ChatGoogleBaseInput<AuthOptions> extends BaseChatModelParams, GoogleConnectionParams<AuthOptions>, GoogleAIModelParams, GoogleAISafetyParams, GoogleAIAPIParams, Pick<GoogleAIBaseLanguageModelCallOptions, \"streamUsage\"> {\n}\n/**\n * Integration with a Google chat model.\n */\nexport declare abstract class ChatGoogleBase<AuthOptions> extends BaseChatModel<GoogleAIBaseLanguageModelCallOptions, AIMessageChunk> implements ChatGoogleBaseInput<AuthOptions> {\n static lc_name(): string;\n get lc_secrets(): {\n [key: string]: string;\n } | undefined;\n lc_serializable: boolean;\n model: string;\n modelName: string;\n temperature: number;\n maxOutputTokens: number;\n maxReasoningTokens: number;\n topP: number;\n topK: number;\n seed: number;\n presencePenalty: number;\n frequencyPenalty: number;\n stopSequences: string[];\n logprobs: boolean;\n topLogprobs: number;\n safetySettings: GoogleAISafetySetting[];\n responseModalities?: GoogleAIModelModality[];\n convertSystemMessageToHumanContent: boolean | undefined;\n safetyHandler: GoogleAISafetyHandler;\n speechConfig: GoogleSpeechConfig;\n streamUsage: boolean;\n streaming: boolean;\n labels?: Record<string, string>;\n protected connection: ChatConnection<AuthOptions>;\n protected streamedConnection: ChatConnection<AuthOptions>;\n constructor(fields?: ChatGoogleBaseInput<AuthOptions>);\n getLsParams(options: this[\"ParsedCallOptions\"]): LangSmithParams;\n abstract buildAbstractedClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: GoogleAIBaseLLMInput<AuthOptions>): string | undefined;\n buildClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildConnection(fields: GoogleBaseLLMInput<AuthOptions>, client: GoogleAbstractedClient): void;\n get platform(): GooglePlatformType;\n bindTools(tools: GoogleAIToolType[], kwargs?: Partial<GoogleAIBaseLanguageModelCallOptions>): Runnable<BaseLanguageModelInput, AIMessageChunk, GoogleAIBaseLanguageModelCallOptions>;\n _llmType(): string;\n /**\n * Get the parameters used to invoke the model\n */\n invocationParams(options?: this[\"ParsedCallOptions\"]): import(\"./types.js\").GoogleAIModelRequestParams;\n _generate(messages: BaseMessage[], options: this[\"ParsedCallOptions\"], runManager: CallbackManagerForLLMRun | undefined): Promise<ChatResult>;\n _streamResponseChunks(_messages: BaseMessage[], options: this[\"ParsedCallOptions\"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<ChatGenerationChunk>;\n /** @ignore */\n _combineLLMOutput(): never[];\n /**\n * Return profiling information for the model.\n *\n * Provides information about the model's capabilities and constraints,\n * including token limits, multimodal support, and advanced features like\n * tool calling and structured output.\n *\n * @returns {ModelProfile} An object describing the model's capabilities and constraints\n */\n get profile(): ModelProfile;\n withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<false>): Runnable<BaseLanguageModelInput, RunOutput>;\n withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<true>): Runnable<BaseLanguageModelInput, {\n raw: BaseMessage;\n parsed: RunOutput;\n }>;\n}\n//# sourceMappingURL=chat_models.d.ts.map"],"mappings":";;;;;;;;;;;;;;AAcqBgC,cAAAA,cAAcC,CAAAA,WAAA,CAAA,SAAsBT,2BAAtB,CAAkDxB,WAAlD,EAAA,EAAiEiC,WAAjE,CAAA,CAAA;EAAkDjC,kCAAAA,EAAAA,OAAAA,GAAAA,SAAAA;EAAeiC,WAAAA,CAAAA,MAAAA,EAE5EnB,oBAF4EmB,CAEvDA,WAFuDA,CAAAA,GAAAA,SAAAA,EAAAA,MAAAA,EAErBrB,WAFqBqB,EAAAA,MAAAA,EAEAR,sBAFAQ,EAAAA,SAAAA,EAAAA,OAAAA;EAEvDA,IAAAA,oBAAAA,CAAAA,CAAAA,EAAAA,OAAAA;EAArBnB,IAAAA,2BAAAA,CAAAA,CAAAA,EAAAA,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A,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,CAAAA,YAAAA,EAC5B1B,cAD4B0B,CACbD,SADaC,CAAAA,GACAA,MADAA,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAC8B9B,6BAD9B8B,CAAAA,IAAAA,CAAAA,CAAAA,EACoE5B,QADpE4B,CAC6E/B,sBAD7E+B,EAAAA;IAA8B9B,GAAAA,EAEjJT,WAFiJS;IAAgDD,MAAAA,EAG9L8B,SAH8L9B;EAAwB8B,CAAAA,CAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.d.cts","names":["BaseLanguageModelCallOptions","AsyncCaller","AsyncCallerCallOptions","BaseRunManager","BaseCallbackHandler","GoogleAIBaseLLMInput","GoogleConnectionParams","GooglePlatformType","GoogleResponse","GoogleLLMResponse","GoogleAIModelRequestParams","GoogleRawResponse","GoogleAIAPI","VertexModelFamily","GoogleAIAPIConfig","GoogleModelParams","GoogleAbstractedClient","GoogleAbstractedClientOps","GoogleAbstractedClientOpsMethod","GoogleConnection","CallOptions","ResponseType","Promise","Record","GoogleHostConnection","AuthOptions","GoogleRawConnection","GoogleAIConnection","InputType","AbstractGoogleLLMConnection","MessageType","GoogleCustomEventInfo","GoogleRequestCallbackHandler","GoogleRequestLogger","GoogleRequestRecorder"],"sources":["../src/connection.d.ts"],"sourcesContent":["import { BaseLanguageModelCallOptions } from \"@langchain/core/language_models/base\";\nimport { AsyncCaller, AsyncCallerCallOptions } from \"@langchain/core/utils/async_caller\";\nimport { BaseRunManager } from \"@langchain/core/callbacks/manager\";\nimport { BaseCallbackHandler } from \"@langchain/core/callbacks/base\";\nimport type { GoogleAIBaseLLMInput, GoogleConnectionParams, GooglePlatformType, GoogleResponse, GoogleLLMResponse, GoogleAIModelRequestParams, GoogleRawResponse, GoogleAIAPI, VertexModelFamily, GoogleAIAPIConfig, GoogleModelParams } from \"./types.js\";\nimport { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleAbstractedClientOpsMethod } from \"./auth.js\";\nexport declare abstract class GoogleConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse> {\n caller: AsyncCaller;\n client: GoogleAbstractedClient;\n streaming: boolean;\n constructor(caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean);\n abstract buildUrl(): Promise<string>;\n abstract buildMethod(): GoogleAbstractedClientOpsMethod;\n _clientInfoHeaders(): Promise<Record<string, string>>;\n _getClientInfo(): Promise<{\n userAgent: string;\n clientLibraryVersion: string;\n }>;\n _moduleName(): Promise<string>;\n additionalHeaders(): Promise<Record<string, string>>;\n _buildOpts(data: unknown | undefined, _options: CallOptions, requestHeaders?: Record<string, string>): Promise<GoogleAbstractedClientOps>;\n _request(data: unknown | undefined, options: CallOptions, requestHeaders?: Record<string, string>): Promise<ResponseType>;\n}\nexport declare abstract class GoogleHostConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse, AuthOptions> extends GoogleConnection<CallOptions, ResponseType> implements GoogleConnectionParams<AuthOptions> {\n platformType: GooglePlatformType | undefined;\n _endpoint: string | undefined;\n _location: string | undefined;\n _apiVersion: string | undefined;\n constructor(fields: GoogleConnectionParams<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean);\n fieldPlatformType(fields: GoogleConnectionParams<any> | undefined): GooglePlatformType | undefined;\n get platform(): GooglePlatformType;\n get computedPlatformType(): GooglePlatformType;\n get computedApiVersion(): string;\n get apiVersion(): string;\n get location(): string;\n get computedLocation(): string;\n get endpoint(): string;\n get computedEndpoint(): string;\n buildMethod(): GoogleAbstractedClientOpsMethod;\n}\nexport declare abstract class GoogleRawConnection<CallOptions extends AsyncCallerCallOptions, AuthOptions> extends GoogleHostConnection<CallOptions, GoogleRawResponse, AuthOptions> {\n _buildOpts(data: unknown | undefined, _options: CallOptions, requestHeaders?: Record<string, string>): Promise<GoogleAbstractedClientOps>;\n}\nexport declare abstract class GoogleAIConnection<CallOptions extends AsyncCallerCallOptions, InputType, AuthOptions, ResponseType extends GoogleResponse> extends GoogleHostConnection<CallOptions, ResponseType, AuthOptions> implements GoogleAIBaseLLMInput<AuthOptions> {\n model: string;\n modelName: string;\n client: GoogleAbstractedClient;\n _apiName?: string;\n apiConfig?: GoogleAIAPIConfig;\n constructor(fields: GoogleAIBaseLLMInput<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean);\n get modelFamily(): VertexModelFamily;\n get modelPublisher(): string;\n get computedAPIName(): string;\n get apiName(): string;\n get api(): GoogleAIAPI;\n get isApiKey(): boolean;\n fieldPlatformType(fields: GoogleConnectionParams<any> | undefined): GooglePlatformType | undefined;\n get computedPlatformType(): GooglePlatformType;\n get computedApiVersion(): string;\n get computedLocation(): string;\n abstract buildUrlMethod(): Promise<string>;\n buildUrlGenerativeLanguage(): Promise<string>;\n buildUrlVertexExpress(): Promise<string>;\n buildUrlVertexLocation(): Promise<string>;\n buildUrlVertex(): Promise<string>;\n buildUrl(): Promise<string>;\n abstract formatData(input: InputType, parameters: GoogleModelParams): Promise<unknown>;\n request(input: InputType, parameters: GoogleAIModelRequestParams, options: CallOptions, runManager?: BaseRunManager): Promise<ResponseType>;\n}\nexport declare abstract class AbstractGoogleLLMConnection<MessageType, AuthOptions> extends GoogleAIConnection<BaseLanguageModelCallOptions, MessageType, AuthOptions, GoogleLLMResponse> {\n buildUrlMethodGemini(): Promise<string>;\n buildUrlMethodClaude(): Promise<string>;\n buildUrlMethod(): Promise<string>;\n formatData(input: MessageType, parameters: GoogleAIModelRequestParams): Promise<unknown>;\n}\nexport interface GoogleCustomEventInfo {\n subEvent: string;\n module: string;\n}\nexport declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler {\n customEventInfo(eventName: string): GoogleCustomEventInfo;\n abstract handleCustomRequestEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n abstract handleCustomResponseEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n abstract handleCustomChunkEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n handleCustomEvent(eventName: string, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n}\nexport declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {\n name: string;\n log(eventName: string, data: any, tags?: string[]): undefined;\n handleCustomRequestEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomResponseEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomChunkEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;\n}\nexport declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {\n name: string;\n request: any;\n response: any;\n chunk: any[];\n handleCustomRequestEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomResponseEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomChunkEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;\n}\n//# sourceMappingURL=connection.d.ts.map"],"mappings":";;;;;;;;uBAM8BmB,qCAAqCjB,6CAA6CM;UACpGP;EADkBkB,MAAAA,EAElBH,sBAFkCI;EAAqBlB,SAAAA,EAAAA,OAAAA;EAA6CM,WAAAA,CAAAA,MAAAA,EAIxFP,WAJwFO,EAAAA,MAAAA,EAInEQ,sBAJmER,EAAAA,SAAAA,CAAAA,EAAAA,OAAAA;EACpGP,SAAAA,QAAAA,CAAAA,CAAAA,EAIaqB,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X;EAARC,IAAAA,EAAAA,MAAAA;EAxBwCE,OAAAA,EAAAA,GAAAA;EAAwEnB,QAAAA,EAAAA,GAAAA;EAAoB,KAAA,EAAA,GAAA,EAAA;EA0BhOwB,wBAAAA,CAAAA,UAA2B,EAAAC,MAAAA,EAAAA,UAAAL,EA6BIM,qBA7BJ,EAAA,IAAA,EAAA,GAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,CAAA,EAAA,MAAA,EAAA,EAAA,SAAA,CAAA,EA6BoFR,MA7BpF,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,EAAA,GAAA;EAAsDvB,yBAAAA,CAAAA,UAAAA,EAAAA,MAAAA,EAAAA,UAAAA,EA8BjD+B,qBA9BiD/B,EAAAA,IAAAA,EAAAA,GAAAA,EAAAA,MAAAA,EAAAA,MAAAA,EAAAA,KAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,SAAAA,CAAAA,EA8B+BuB,MA9B/BvB,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAAAA,GAAAA;EAA8B8B,sBAAAA,CAAAA,UAAAA,EAAAA,MAAAA,EAAAA,UAAAA,EA+BlFC,qBA/BkFD,EAAAA,IAAAA,EAAAA,GAAAA,EAAAA,MAAAA,EAAAA,MAAAA,EAAAA,KAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,SAAAA,CAAAA,EA+BFP,MA/BEO,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAAAA,GAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.d.ts","names":["BaseLanguageModelCallOptions","AsyncCaller","AsyncCallerCallOptions","BaseRunManager","BaseCallbackHandler","GoogleAIBaseLLMInput","GoogleConnectionParams","GooglePlatformType","GoogleResponse","GoogleLLMResponse","GoogleAIModelRequestParams","GoogleRawResponse","GoogleAIAPI","VertexModelFamily","GoogleAIAPIConfig","GoogleModelParams","GoogleAbstractedClient","GoogleAbstractedClientOps","GoogleAbstractedClientOpsMethod","GoogleConnection","CallOptions","ResponseType","Promise","Record","GoogleHostConnection","AuthOptions","GoogleRawConnection","GoogleAIConnection","InputType","AbstractGoogleLLMConnection","MessageType","GoogleCustomEventInfo","GoogleRequestCallbackHandler","GoogleRequestLogger","GoogleRequestRecorder"],"sources":["../src/connection.d.ts"],"sourcesContent":["import { BaseLanguageModelCallOptions } from \"@langchain/core/language_models/base\";\nimport { AsyncCaller, AsyncCallerCallOptions } from \"@langchain/core/utils/async_caller\";\nimport { BaseRunManager } from \"@langchain/core/callbacks/manager\";\nimport { BaseCallbackHandler } from \"@langchain/core/callbacks/base\";\nimport type { GoogleAIBaseLLMInput, GoogleConnectionParams, GooglePlatformType, GoogleResponse, GoogleLLMResponse, GoogleAIModelRequestParams, GoogleRawResponse, GoogleAIAPI, VertexModelFamily, GoogleAIAPIConfig, GoogleModelParams } from \"./types.js\";\nimport { GoogleAbstractedClient, GoogleAbstractedClientOps, GoogleAbstractedClientOpsMethod } from \"./auth.js\";\nexport declare abstract class GoogleConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse> {\n caller: AsyncCaller;\n client: GoogleAbstractedClient;\n streaming: boolean;\n constructor(caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean);\n abstract buildUrl(): Promise<string>;\n abstract buildMethod(): GoogleAbstractedClientOpsMethod;\n _clientInfoHeaders(): Promise<Record<string, string>>;\n _getClientInfo(): Promise<{\n userAgent: string;\n clientLibraryVersion: string;\n }>;\n _moduleName(): Promise<string>;\n additionalHeaders(): Promise<Record<string, string>>;\n _buildOpts(data: unknown | undefined, _options: CallOptions, requestHeaders?: Record<string, string>): Promise<GoogleAbstractedClientOps>;\n _request(data: unknown | undefined, options: CallOptions, requestHeaders?: Record<string, string>): Promise<ResponseType>;\n}\nexport declare abstract class GoogleHostConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse, AuthOptions> extends GoogleConnection<CallOptions, ResponseType> implements GoogleConnectionParams<AuthOptions> {\n platformType: GooglePlatformType | undefined;\n _endpoint: string | undefined;\n _location: string | undefined;\n _apiVersion: string | undefined;\n constructor(fields: GoogleConnectionParams<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean);\n fieldPlatformType(fields: GoogleConnectionParams<any> | undefined): GooglePlatformType | undefined;\n get platform(): GooglePlatformType;\n get computedPlatformType(): GooglePlatformType;\n get computedApiVersion(): string;\n get apiVersion(): string;\n get location(): string;\n get computedLocation(): string;\n get endpoint(): string;\n get computedEndpoint(): string;\n buildMethod(): GoogleAbstractedClientOpsMethod;\n}\nexport declare abstract class GoogleRawConnection<CallOptions extends AsyncCallerCallOptions, AuthOptions> extends GoogleHostConnection<CallOptions, GoogleRawResponse, AuthOptions> {\n _buildOpts(data: unknown | undefined, _options: CallOptions, requestHeaders?: Record<string, string>): Promise<GoogleAbstractedClientOps>;\n}\nexport declare abstract class GoogleAIConnection<CallOptions extends AsyncCallerCallOptions, InputType, AuthOptions, ResponseType extends GoogleResponse> extends GoogleHostConnection<CallOptions, ResponseType, AuthOptions> implements GoogleAIBaseLLMInput<AuthOptions> {\n model: string;\n modelName: string;\n client: GoogleAbstractedClient;\n _apiName?: string;\n apiConfig?: GoogleAIAPIConfig;\n constructor(fields: GoogleAIBaseLLMInput<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient, streaming?: boolean);\n get modelFamily(): VertexModelFamily;\n get modelPublisher(): string;\n get computedAPIName(): string;\n get apiName(): string;\n get api(): GoogleAIAPI;\n get isApiKey(): boolean;\n fieldPlatformType(fields: GoogleConnectionParams<any> | undefined): GooglePlatformType | undefined;\n get computedPlatformType(): GooglePlatformType;\n get computedApiVersion(): string;\n get computedLocation(): string;\n abstract buildUrlMethod(): Promise<string>;\n buildUrlGenerativeLanguage(): Promise<string>;\n buildUrlVertexExpress(): Promise<string>;\n buildUrlVertexLocation(): Promise<string>;\n buildUrlVertex(): Promise<string>;\n buildUrl(): Promise<string>;\n abstract formatData(input: InputType, parameters: GoogleModelParams): Promise<unknown>;\n request(input: InputType, parameters: GoogleAIModelRequestParams, options: CallOptions, runManager?: BaseRunManager): Promise<ResponseType>;\n}\nexport declare abstract class AbstractGoogleLLMConnection<MessageType, AuthOptions> extends GoogleAIConnection<BaseLanguageModelCallOptions, MessageType, AuthOptions, GoogleLLMResponse> {\n buildUrlMethodGemini(): Promise<string>;\n buildUrlMethodClaude(): Promise<string>;\n buildUrlMethod(): Promise<string>;\n formatData(input: MessageType, parameters: GoogleAIModelRequestParams): Promise<unknown>;\n}\nexport interface GoogleCustomEventInfo {\n subEvent: string;\n module: string;\n}\nexport declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler {\n customEventInfo(eventName: string): GoogleCustomEventInfo;\n abstract handleCustomRequestEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n abstract handleCustomResponseEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n abstract handleCustomChunkEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n handleCustomEvent(eventName: string, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;\n}\nexport declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {\n name: string;\n log(eventName: string, data: any, tags?: string[]): undefined;\n handleCustomRequestEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomResponseEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomChunkEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;\n}\nexport declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {\n name: string;\n request: any;\n response: any;\n chunk: any[];\n handleCustomRequestEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomResponseEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;\n handleCustomChunkEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;\n}\n//# sourceMappingURL=connection.d.ts.map"],"mappings":";;;;;;;;uBAM8BmB,qCAAqCjB,6CAA6CM;UACpGP;EADkBkB,MAAAA,EAElBH,sBAFkCI;EAAqBlB,SAAAA,EAAAA,OAAAA;EAA6CM,WAAAA,CAAAA,MAAAA,EAIxFP,WAJwFO,EAAAA,MAAAA,EAInEQ,sBAJmER,EAAAA,SAAAA,CAAAA,EAAAA,OAAAA;EACpGP,SAAAA,QAAAA,CAAAA,CAAAA,EAIaqB,OAJbrB,CAAAA,MAAAA,CAAAA;EACAe,SAAAA,WAAAA,CAAAA,CAAAA,EAIgBE,+BAJhBF;EAEYf,kBAAAA,CAAAA,CAAAA,EAGEqB,OAHFrB,CAGUsB,MAHVtB,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,CAAAA;EAAqBe,cAAAA,CAAAA,CAAAA,EAIvBM,OAJuBN,CAAAA;IACpBM,SAAAA,EAAAA,MAAAA;IACGJ,oBAAAA,EAAAA,MAAAA;EACMK,CAAAA,CAAAA;EAARD,WAAAA,CAAAA,CAAAA,EAKPA,OALOA,CAAAA,MAAAA,CAAAA;EACJA,iBAAAA,CAAAA,CAAAA,EAKGA,OALHA,CAKWC,MALXD,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,CAAAA;EAIHA,UAAAA,CAAAA,IAAAA,EAAAA,OAAAA,GAAAA,SAAAA,EAAAA,QAAAA,EAEiCF,WAFjCE,EAAAA,cAAAA,CAAAA,EAE+DC,MAF/DD,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,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AA,GAAAA;EAA8B8B,sBAAAA,CAAAA,UAAAA,EAAAA,MAAAA,EAAAA,UAAAA,EA+BlFC,qBA/BkFD,EAAAA,IAAAA,EAAAA,GAAAA,EAAAA,MAAAA,EAAAA,MAAAA,EAAAA,KAAAA,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA,SAAAA,CAAAA,EA+BFP,MA/BEO,CAAAA,MAAAA,EAAAA,GAAAA,CAAAA,CAAAA,EAAAA,GAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.d.cts","names":["Embeddings","GoogleAbstractedClient","BaseGoogleEmbeddingsParams","GoogleConnectionParams","GoogleEmbeddingsResponse","VertexEmbeddingsParameters","VertexEmbeddingsResponse","AIStudioEmbeddingsResponse","BaseGoogleEmbeddings","AuthOptions","Promise"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { Embeddings } from \"@langchain/core/embeddings\";\nimport { GoogleAbstractedClient } from \"./auth.js\";\nimport { BaseGoogleEmbeddingsParams, GoogleConnectionParams, GoogleEmbeddingsResponse, VertexEmbeddingsParameters, VertexEmbeddingsResponse, AIStudioEmbeddingsResponse } from \"./types.js\";\n/**\n * Enables calls to Google APIs for generating\n * text embeddings.\n */\nexport declare abstract class BaseGoogleEmbeddings<AuthOptions> extends Embeddings implements BaseGoogleEmbeddingsParams<AuthOptions> {\n model: string;\n dimensions?: number;\n private connection;\n constructor(fields: BaseGoogleEmbeddingsParams<AuthOptions>);\n abstract buildAbstractedClient(fields?: GoogleConnectionParams<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: GoogleConnectionParams<AuthOptions>): string | undefined;\n buildClient(fields?: GoogleConnectionParams<AuthOptions>): GoogleAbstractedClient;\n buildParameters(): VertexEmbeddingsParameters;\n vertexResponseToValues(response: VertexEmbeddingsResponse): number[][];\n aiStudioResponseToValues(response: AIStudioEmbeddingsResponse): number[][];\n responseToValues(response: GoogleEmbeddingsResponse): number[][];\n /**\n * Takes an array of documents as input and returns a promise that\n * resolves to a 2D array of embeddings for each document. It splits the\n * documents into chunks and makes requests to the Google Vertex AI API to\n * generate embeddings.\n * @param documents An array of documents to be embedded.\n * @returns A promise that resolves to a 2D array of embeddings for each document.\n */\n embedDocuments(documents: string[]): Promise<number[][]>;\n /**\n * Takes a document as input and returns a promise that resolves to an\n * embedding for the document. It calls the embedDocuments method with the\n * document as the input.\n * @param document A document to be embedded.\n * @returns A promise that resolves to an embedding for the document.\n */\n embedQuery(document: string): Promise<number[]>;\n}\n//# sourceMappingURL=embeddings.d.ts.map"],"mappings":";;;;;;;;AAOA;;AAImDS,uBAJrBD,oBAIqBC,CAAAA,WAAAA,CAAAA,SAJqBT,UAAAA,YAAsBE,0BAI3CO,CAJsEA,WAItEA,CAAAA,CAAAA;EAA3BP,KAAAA,EAAAA,MAAAA;EAC2CO,UAAAA,CAAAA,EAAAA,MAAAA;EAAvBN,QAAAA,UAAAA;EAAsCF,WAAAA,CAAAA,MAAAA,EAD1DC,0BAC0DD,CAD/BQ,WAC+BR,CAAAA;EAC3CA,SAAAA,qBAAAA,CAAAA,MAAAA,CAAAA,EADKE,sBACLF,CAD4BQ,WAC5BR,CAAAA,CAAAA,EAD2CA,sBAC3CA;EACSQ,iBAAAA,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,EADTR,sBACSQ;EAAvBN,WAAAA,CAAAA,MAAAA,CAAAA,EAAAA,sBAAAA,CAAuBM,WAAvBN,CAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EACuBM,WAAAA,CAAAA,MAAAA,CAAAA,EAAvBN,sBAAuBM,CAAAA,WAAAA,CAAAA,CAAAA,EAAeR,sBAAfQ;EAAvBN,eAAAA,CAAAA,CAAAA,EACFE,0BADEF;EAAsCF,sBAAAA,CAAAA,QAAAA,EAE1BK,wBAF0BL,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA;EACxCI,wBAAAA,CAAAA,QAAAA,EAEgBE,0BAFhBF,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA;EACcC,gBAAAA,CAAAA,QAAAA,EAENF,wBAFME,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA;EACEC;;;;;;AAXiF;;uCAqB/EG;;;;;;;;gCAQPA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embeddings.d.ts","names":["Embeddings","GoogleAbstractedClient","BaseGoogleEmbeddingsParams","GoogleConnectionParams","GoogleEmbeddingsResponse","VertexEmbeddingsParameters","VertexEmbeddingsResponse","AIStudioEmbeddingsResponse","BaseGoogleEmbeddings","AuthOptions","Promise"],"sources":["../src/embeddings.d.ts"],"sourcesContent":["import { Embeddings } from \"@langchain/core/embeddings\";\nimport { GoogleAbstractedClient } from \"./auth.js\";\nimport { BaseGoogleEmbeddingsParams, GoogleConnectionParams, GoogleEmbeddingsResponse, VertexEmbeddingsParameters, VertexEmbeddingsResponse, AIStudioEmbeddingsResponse } from \"./types.js\";\n/**\n * Enables calls to Google APIs for generating\n * text embeddings.\n */\nexport declare abstract class BaseGoogleEmbeddings<AuthOptions> extends Embeddings implements BaseGoogleEmbeddingsParams<AuthOptions> {\n model: string;\n dimensions?: number;\n private connection;\n constructor(fields: BaseGoogleEmbeddingsParams<AuthOptions>);\n abstract buildAbstractedClient(fields?: GoogleConnectionParams<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: GoogleConnectionParams<AuthOptions>): string | undefined;\n buildClient(fields?: GoogleConnectionParams<AuthOptions>): GoogleAbstractedClient;\n buildParameters(): VertexEmbeddingsParameters;\n vertexResponseToValues(response: VertexEmbeddingsResponse): number[][];\n aiStudioResponseToValues(response: AIStudioEmbeddingsResponse): number[][];\n responseToValues(response: GoogleEmbeddingsResponse): number[][];\n /**\n * Takes an array of documents as input and returns a promise that\n * resolves to a 2D array of embeddings for each document. It splits the\n * documents into chunks and makes requests to the Google Vertex AI API to\n * generate embeddings.\n * @param documents An array of documents to be embedded.\n * @returns A promise that resolves to a 2D array of embeddings for each document.\n */\n embedDocuments(documents: string[]): Promise<number[][]>;\n /**\n * Takes a document as input and returns a promise that resolves to an\n * embedding for the document. It calls the embedDocuments method with the\n * document as the input.\n * @param document A document to be embedded.\n * @returns A promise that resolves to an embedding for the document.\n */\n embedQuery(document: string): Promise<number[]>;\n}\n//# sourceMappingURL=embeddings.d.ts.map"],"mappings":";;;;;;;;AAOA;;AAImDS,uBAJrBD,oBAIqBC,CAAAA,WAAAA,CAAAA,SAJqBT,UAAAA,YAAsBE,0BAI3CO,CAJsEA,WAItEA,CAAAA,CAAAA;EAA3BP,KAAAA,EAAAA,MAAAA;EAC2CO,UAAAA,CAAAA,EAAAA,MAAAA;EAAvBN,QAAAA,UAAAA;EAAsCF,WAAAA,CAAAA,MAAAA,EAD1DC,0BAC0DD,CAD/BQ,WAC+BR,CAAAA;EAC3CA,SAAAA,qBAAAA,CAAAA,MAAAA,CAAAA,EADKE,sBACLF,CAD4BQ,WAC5BR,CAAAA,CAAAA,EAD2CA,sBAC3CA;EACSQ,iBAAAA,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,EADTR,sBACSQ;EAAvBN,WAAAA,CAAAA,MAAAA,CAAAA,EAAAA,sBAAAA,CAAuBM,WAAvBN,CAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EACuBM,WAAAA,CAAAA,MAAAA,CAAAA,EAAvBN,sBAAuBM,CAAAA,WAAAA,CAAAA,CAAAA,EAAeR,sBAAfQ;EAAvBN,eAAAA,CAAAA,CAAAA,EACFE,0BADEF;EAAsCF,sBAAAA,CAAAA,QAAAA,EAE1BK,wBAF0BL,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA;EACxCI,wBAAAA,CAAAA,QAAAA,EAEgBE,0BAFhBF,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA;EACcC,gBAAAA,CAAAA,QAAAA,EAENF,wBAFME,CAAAA,EAAAA,MAAAA,EAAAA,EAAAA;EACEC;;;;;;AAXiF;;uCAqB/EG;;;;;;;;gCAQPA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.cts","names":["AsyncCaller","AsyncCallerCallOptions","AsyncCallerParams","MediaBlob","BlobStore","BlobStoreOptions","GoogleConnectionParams","GoogleRawResponse","GoogleResponse","GoogleHostConnection","GoogleRawConnection","GoogleAbstractedClient","GoogleAbstractedClientOpsMethod","GoogleUploadConnectionParams","AuthOptions","GoogleMultipartUploadConnection","CallOptions","ResponseType","Record","Promise","GoogleDownloadConnection","GoogleDownloadRawConnection","BlobStoreGoogleParams","BlobStoreGoogle","Blob","AsyncGenerator","GoogleCloudStorageObject","GoogleCloudStorageResponse","BucketAndPath","GoogleCloudStorageUri","RegExp","GoogleCloudStorageConnectionParams","GoogleCloudStorageUploadConnectionParams","GoogleCloudStorageUploadConnection","GoogleCloudStorageDownloadConnectionParams","GoogleCloudStorageDownloadConnection","GoogleCloudStorageRawConnectionParams","GoogleCloudStorageRawConnection","BlobStoreGoogleCloudStorageBaseParams","BlobStoreGoogleCloudStorageBase","AIStudioFileState","AIStudioFileVideoMetadata","AIStudioFileMetadata","AIStudioFileObject","AIStudioMediaBlob","Date","AIStudioFileGetResponse","AIStudioFileSaveResponse","AIStudioFileListResponse","AIStudioFileResponse","AIStudioFileConnectionParams","AIStudioFileUploadConnectionParams","AIStudioFileUploadConnection","AIStudioFileDownloadConnectionParams","AIStudioFileDownloadConnection","BlobStoreAIStudioFileBaseParams","BlobStoreAIStudioFileBase"],"sources":["../../src/experimental/media.d.ts"],"sourcesContent":["import { AsyncCaller, AsyncCallerCallOptions, AsyncCallerParams } from \"@langchain/core/utils/async_caller\";\nimport { MediaBlob, BlobStore, BlobStoreOptions } from \"./utils/media_core.js\";\nimport { GoogleConnectionParams, GoogleRawResponse, GoogleResponse } from \"../types.js\";\nimport { GoogleHostConnection, GoogleRawConnection } from \"../connection.js\";\nimport { GoogleAbstractedClient, GoogleAbstractedClientOpsMethod } from \"../auth.js\";\nexport interface GoogleUploadConnectionParams<AuthOptions> extends GoogleConnectionParams<AuthOptions> {\n}\nexport declare abstract class GoogleMultipartUploadConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse, AuthOptions> extends GoogleHostConnection<CallOptions, ResponseType, AuthOptions> {\n constructor(fields: GoogleConnectionParams<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient);\n _body(separator: string, data: MediaBlob, metadata: Record<string, unknown>): Promise<string>;\n request(data: MediaBlob, metadata: Record<string, unknown>, options: CallOptions): Promise<ResponseType>;\n}\nexport declare abstract class GoogleDownloadConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse, AuthOptions> extends GoogleHostConnection<CallOptions, ResponseType, AuthOptions> {\n request(options: CallOptions): Promise<ResponseType>;\n}\nexport declare abstract class GoogleDownloadRawConnection<CallOptions extends AsyncCallerCallOptions, AuthOptions> extends GoogleRawConnection<CallOptions, AuthOptions> {\n buildMethod(): GoogleAbstractedClientOpsMethod;\n request(options: CallOptions): Promise<GoogleRawResponse>;\n}\nexport interface BlobStoreGoogleParams<AuthOptions> extends GoogleConnectionParams<AuthOptions>, AsyncCallerParams, BlobStoreOptions {\n}\nexport declare abstract class BlobStoreGoogle<ResponseType extends GoogleResponse, AuthOptions> extends BlobStore {\n caller: AsyncCaller;\n client: GoogleAbstractedClient;\n constructor(fields?: BlobStoreGoogleParams<AuthOptions>);\n abstract buildClient(fields?: BlobStoreGoogleParams<AuthOptions>): GoogleAbstractedClient;\n abstract buildSetMetadata([key, blob]: [string, MediaBlob]): Record<string, unknown>;\n abstract buildSetConnection([key, blob]: [\n string,\n MediaBlob\n ]): GoogleMultipartUploadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions>;\n _set(keyValuePair: [string, MediaBlob]): Promise<ResponseType>;\n mset(keyValuePairs: [string, MediaBlob][]): Promise<void>;\n abstract buildGetMetadataConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions>;\n _getMetadata(key: string): Promise<Record<string, unknown>>;\n abstract buildGetDataConnection(key: string): GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions>;\n _getData(key: string): Promise<Blob>;\n _getMimetypeFromMetadata(metadata: Record<string, unknown>): string;\n _get(key: string): Promise<MediaBlob | undefined>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n abstract buildDeleteConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, GoogleResponse, AuthOptions>;\n _del(key: string): Promise<void>;\n mdelete(keys: string[]): Promise<void>;\n yieldKeys(_prefix: string | undefined): AsyncGenerator<string>;\n}\n/**\n * Based on https://cloud.google.com/storage/docs/json_api/v1/objects#resource\n */\nexport interface GoogleCloudStorageObject extends Record<string, unknown> {\n id?: string;\n name?: string;\n contentType?: string;\n metadata?: Record<string, unknown>;\n}\nexport interface GoogleCloudStorageResponse extends GoogleResponse {\n data: GoogleCloudStorageObject;\n}\nexport type BucketAndPath = {\n bucket: string;\n path: string;\n};\nexport declare class GoogleCloudStorageUri {\n static uriRegexp: RegExp;\n bucket: string;\n path: string;\n constructor(uri: string);\n get uri(): string;\n get isValid(): boolean;\n static uriToBucketAndPath(uri: string): BucketAndPath;\n static isValidUri(uri: string): boolean;\n}\nexport interface GoogleCloudStorageConnectionParams {\n uri: string;\n}\nexport interface GoogleCloudStorageUploadConnectionParams<AuthOptions> extends GoogleUploadConnectionParams<AuthOptions>, GoogleCloudStorageConnectionParams {\n}\nexport declare class GoogleCloudStorageUploadConnection<AuthOptions> extends GoogleMultipartUploadConnection<AsyncCallerCallOptions, GoogleCloudStorageResponse, AuthOptions> {\n uri: GoogleCloudStorageUri;\n constructor(fields: GoogleCloudStorageUploadConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n buildUrl(): Promise<string>;\n}\nexport interface GoogleCloudStorageDownloadConnectionParams<AuthOptions> extends GoogleCloudStorageConnectionParams, GoogleConnectionParams<AuthOptions> {\n method: GoogleAbstractedClientOpsMethod;\n alt: \"media\" | undefined;\n}\nexport declare class GoogleCloudStorageDownloadConnection<ResponseType extends GoogleResponse, AuthOptions> extends GoogleDownloadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions> {\n uri: GoogleCloudStorageUri;\n method: GoogleAbstractedClientOpsMethod;\n alt: \"media\" | undefined;\n constructor(fields: GoogleCloudStorageDownloadConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n buildMethod(): GoogleAbstractedClientOpsMethod;\n buildUrl(): Promise<string>;\n}\nexport interface GoogleCloudStorageRawConnectionParams<AuthOptions> extends GoogleCloudStorageConnectionParams, GoogleConnectionParams<AuthOptions> {\n}\nexport declare class GoogleCloudStorageRawConnection<AuthOptions> extends GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions> {\n uri: GoogleCloudStorageUri;\n constructor(fields: GoogleCloudStorageRawConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n buildUrl(): Promise<string>;\n}\nexport interface BlobStoreGoogleCloudStorageBaseParams<AuthOptions> extends BlobStoreGoogleParams<AuthOptions> {\n uriPrefix: GoogleCloudStorageUri;\n}\nexport declare abstract class BlobStoreGoogleCloudStorageBase<AuthOptions> extends BlobStoreGoogle<GoogleCloudStorageResponse, AuthOptions> {\n params: BlobStoreGoogleCloudStorageBaseParams<AuthOptions>;\n constructor(fields: BlobStoreGoogleCloudStorageBaseParams<AuthOptions>);\n buildSetConnection([key, _blob]: [\n string,\n MediaBlob\n ]): GoogleMultipartUploadConnection<AsyncCallerCallOptions, GoogleCloudStorageResponse, AuthOptions>;\n buildSetMetadata([key, blob]: [string, MediaBlob]): Record<string, unknown>;\n buildGetMetadataConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, GoogleCloudStorageResponse, AuthOptions>;\n buildGetDataConnection(key: string): GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions>;\n buildDeleteConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, GoogleResponse, AuthOptions>;\n}\nexport type AIStudioFileState = \"PROCESSING\" | \"ACTIVE\" | \"FAILED\" | \"STATE_UNSPECIFIED\";\nexport type AIStudioFileVideoMetadata = {\n videoMetadata: {\n videoDuration: string;\n };\n};\nexport type AIStudioFileMetadata = AIStudioFileVideoMetadata;\nexport interface AIStudioFileObject {\n name?: string;\n displayName?: string;\n mimeType?: string;\n sizeBytes?: string;\n createTime?: string;\n updateTime?: string;\n expirationTime?: string;\n sha256Hash?: string;\n uri?: string;\n state?: AIStudioFileState;\n error?: {\n code: number;\n message: string;\n details: Record<string, unknown>[];\n };\n metadata?: AIStudioFileMetadata;\n}\nexport declare class AIStudioMediaBlob extends MediaBlob {\n _valueAsDate(value: string): Date;\n _metadataFieldAsDate(field: string): Date;\n get createDate(): Date;\n get updateDate(): Date;\n get expirationDate(): Date;\n get isExpired(): boolean;\n}\nexport interface AIStudioFileGetResponse extends GoogleResponse {\n data: AIStudioFileObject;\n}\nexport interface AIStudioFileSaveResponse extends GoogleResponse {\n data: {\n file: AIStudioFileObject;\n };\n}\nexport interface AIStudioFileListResponse extends GoogleResponse {\n data: {\n files: AIStudioFileObject[];\n nextPageToken: string;\n };\n}\nexport type AIStudioFileResponse = AIStudioFileGetResponse | AIStudioFileSaveResponse | AIStudioFileListResponse;\nexport interface AIStudioFileConnectionParams {\n}\nexport interface AIStudioFileUploadConnectionParams<AuthOptions> extends GoogleUploadConnectionParams<AuthOptions>, AIStudioFileConnectionParams {\n}\nexport declare class AIStudioFileUploadConnection<AuthOptions> extends GoogleMultipartUploadConnection<AsyncCallerCallOptions, AIStudioFileSaveResponse, AuthOptions> {\n get computedApiVersion(): string;\n buildUrl(): Promise<string>;\n}\nexport interface AIStudioFileDownloadConnectionParams<AuthOptions> extends AIStudioFileConnectionParams, GoogleConnectionParams<AuthOptions> {\n method: GoogleAbstractedClientOpsMethod;\n name: string;\n}\nexport declare class AIStudioFileDownloadConnection<ResponseType extends GoogleResponse, AuthOptions> extends GoogleDownloadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions> {\n method: GoogleAbstractedClientOpsMethod;\n name: string;\n constructor(fields: AIStudioFileDownloadConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n get computedApiVersion(): string;\n buildMethod(): GoogleAbstractedClientOpsMethod;\n buildUrl(): Promise<string>;\n}\nexport interface BlobStoreAIStudioFileBaseParams<AuthOptions> extends BlobStoreGoogleParams<AuthOptions> {\n retryTime?: number;\n}\nexport declare abstract class BlobStoreAIStudioFileBase<AuthOptions> extends BlobStoreGoogle<AIStudioFileResponse, AuthOptions> {\n params?: BlobStoreAIStudioFileBaseParams<AuthOptions>;\n retryTime: number;\n constructor(fields?: BlobStoreAIStudioFileBaseParams<AuthOptions>);\n _pathToName(path: string): string;\n abstract buildAbstractedClient(fields?: BlobStoreGoogleParams<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: BlobStoreGoogleParams<AuthOptions>): string | undefined;\n buildClient(fields?: BlobStoreGoogleParams<AuthOptions>): GoogleAbstractedClient;\n _regetMetadata(key: string): Promise<AIStudioFileObject>;\n _set([key, blob]: [\n string,\n MediaBlob\n ]): Promise<AIStudioFileSaveResponse>;\n buildSetConnection([_key, _blob]: [\n string,\n MediaBlob\n ]): GoogleMultipartUploadConnection<AsyncCallerCallOptions, AIStudioFileResponse, AuthOptions>;\n buildSetMetadata([_key, _blob]: [string, MediaBlob]): Record<string, unknown>;\n buildGetMetadataConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, AIStudioFileResponse, AuthOptions>;\n buildGetDataConnection(_key: string): GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions>;\n _get(key: string): Promise<MediaBlob | undefined>;\n buildDeleteConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, AIStudioFileResponse, AuthOptions>;\n}\n//# sourceM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2BAlEKlB,CAkEuBF,sBAlEvBE,EAkE+CW,WAlE/CX,CAAAA;EAAS,IAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAmEjCgB,OAnEiC,CAmEzBhB,SAnEyB,GAAA,SAAA,CAAA;EAQvC2C,qBAAAA,CAAAA,GAAAA,EAAuB,MAAA,CAAA,EA4DA1B,wBA5DSZ,CA4DgBP,sBA5DF,EA4D0BgD,oBA5D1B,EA4DgDnC,WA5DhD,CAAA;AAG/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","names":["AsyncCaller","AsyncCallerCallOptions","AsyncCallerParams","MediaBlob","BlobStore","BlobStoreOptions","GoogleConnectionParams","GoogleRawResponse","GoogleResponse","GoogleHostConnection","GoogleRawConnection","GoogleAbstractedClient","GoogleAbstractedClientOpsMethod","GoogleUploadConnectionParams","AuthOptions","GoogleMultipartUploadConnection","CallOptions","ResponseType","Record","Promise","GoogleDownloadConnection","GoogleDownloadRawConnection","BlobStoreGoogleParams","BlobStoreGoogle","Blob","AsyncGenerator","GoogleCloudStorageObject","GoogleCloudStorageResponse","BucketAndPath","GoogleCloudStorageUri","RegExp","GoogleCloudStorageConnectionParams","GoogleCloudStorageUploadConnectionParams","GoogleCloudStorageUploadConnection","GoogleCloudStorageDownloadConnectionParams","GoogleCloudStorageDownloadConnection","GoogleCloudStorageRawConnectionParams","GoogleCloudStorageRawConnection","BlobStoreGoogleCloudStorageBaseParams","BlobStoreGoogleCloudStorageBase","AIStudioFileState","AIStudioFileVideoMetadata","AIStudioFileMetadata","AIStudioFileObject","AIStudioMediaBlob","Date","AIStudioFileGetResponse","AIStudioFileSaveResponse","AIStudioFileListResponse","AIStudioFileResponse","AIStudioFileConnectionParams","AIStudioFileUploadConnectionParams","AIStudioFileUploadConnection","AIStudioFileDownloadConnectionParams","AIStudioFileDownloadConnection","BlobStoreAIStudioFileBaseParams","BlobStoreAIStudioFileBase"],"sources":["../../src/experimental/media.d.ts"],"sourcesContent":["import { AsyncCaller, AsyncCallerCallOptions, AsyncCallerParams } from \"@langchain/core/utils/async_caller\";\nimport { MediaBlob, BlobStore, BlobStoreOptions } from \"./utils/media_core.js\";\nimport { GoogleConnectionParams, GoogleRawResponse, GoogleResponse } from \"../types.js\";\nimport { GoogleHostConnection, GoogleRawConnection } from \"../connection.js\";\nimport { GoogleAbstractedClient, GoogleAbstractedClientOpsMethod } from \"../auth.js\";\nexport interface GoogleUploadConnectionParams<AuthOptions> extends GoogleConnectionParams<AuthOptions> {\n}\nexport declare abstract class GoogleMultipartUploadConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse, AuthOptions> extends GoogleHostConnection<CallOptions, ResponseType, AuthOptions> {\n constructor(fields: GoogleConnectionParams<AuthOptions> | undefined, caller: AsyncCaller, client: GoogleAbstractedClient);\n _body(separator: string, data: MediaBlob, metadata: Record<string, unknown>): Promise<string>;\n request(data: MediaBlob, metadata: Record<string, unknown>, options: CallOptions): Promise<ResponseType>;\n}\nexport declare abstract class GoogleDownloadConnection<CallOptions extends AsyncCallerCallOptions, ResponseType extends GoogleResponse, AuthOptions> extends GoogleHostConnection<CallOptions, ResponseType, AuthOptions> {\n request(options: CallOptions): Promise<ResponseType>;\n}\nexport declare abstract class GoogleDownloadRawConnection<CallOptions extends AsyncCallerCallOptions, AuthOptions> extends GoogleRawConnection<CallOptions, AuthOptions> {\n buildMethod(): GoogleAbstractedClientOpsMethod;\n request(options: CallOptions): Promise<GoogleRawResponse>;\n}\nexport interface BlobStoreGoogleParams<AuthOptions> extends GoogleConnectionParams<AuthOptions>, AsyncCallerParams, BlobStoreOptions {\n}\nexport declare abstract class BlobStoreGoogle<ResponseType extends GoogleResponse, AuthOptions> extends BlobStore {\n caller: AsyncCaller;\n client: GoogleAbstractedClient;\n constructor(fields?: BlobStoreGoogleParams<AuthOptions>);\n abstract buildClient(fields?: BlobStoreGoogleParams<AuthOptions>): GoogleAbstractedClient;\n abstract buildSetMetadata([key, blob]: [string, MediaBlob]): Record<string, unknown>;\n abstract buildSetConnection([key, blob]: [\n string,\n MediaBlob\n ]): GoogleMultipartUploadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions>;\n _set(keyValuePair: [string, MediaBlob]): Promise<ResponseType>;\n mset(keyValuePairs: [string, MediaBlob][]): Promise<void>;\n abstract buildGetMetadataConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions>;\n _getMetadata(key: string): Promise<Record<string, unknown>>;\n abstract buildGetDataConnection(key: string): GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions>;\n _getData(key: string): Promise<Blob>;\n _getMimetypeFromMetadata(metadata: Record<string, unknown>): string;\n _get(key: string): Promise<MediaBlob | undefined>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n abstract buildDeleteConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, GoogleResponse, AuthOptions>;\n _del(key: string): Promise<void>;\n mdelete(keys: string[]): Promise<void>;\n yieldKeys(_prefix: string | undefined): AsyncGenerator<string>;\n}\n/**\n * Based on https://cloud.google.com/storage/docs/json_api/v1/objects#resource\n */\nexport interface GoogleCloudStorageObject extends Record<string, unknown> {\n id?: string;\n name?: string;\n contentType?: string;\n metadata?: Record<string, unknown>;\n}\nexport interface GoogleCloudStorageResponse extends GoogleResponse {\n data: GoogleCloudStorageObject;\n}\nexport type BucketAndPath = {\n bucket: string;\n path: string;\n};\nexport declare class GoogleCloudStorageUri {\n static uriRegexp: RegExp;\n bucket: string;\n path: string;\n constructor(uri: string);\n get uri(): string;\n get isValid(): boolean;\n static uriToBucketAndPath(uri: string): BucketAndPath;\n static isValidUri(uri: string): boolean;\n}\nexport interface GoogleCloudStorageConnectionParams {\n uri: string;\n}\nexport interface GoogleCloudStorageUploadConnectionParams<AuthOptions> extends GoogleUploadConnectionParams<AuthOptions>, GoogleCloudStorageConnectionParams {\n}\nexport declare class GoogleCloudStorageUploadConnection<AuthOptions> extends GoogleMultipartUploadConnection<AsyncCallerCallOptions, GoogleCloudStorageResponse, AuthOptions> {\n uri: GoogleCloudStorageUri;\n constructor(fields: GoogleCloudStorageUploadConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n buildUrl(): Promise<string>;\n}\nexport interface GoogleCloudStorageDownloadConnectionParams<AuthOptions> extends GoogleCloudStorageConnectionParams, GoogleConnectionParams<AuthOptions> {\n method: GoogleAbstractedClientOpsMethod;\n alt: \"media\" | undefined;\n}\nexport declare class GoogleCloudStorageDownloadConnection<ResponseType extends GoogleResponse, AuthOptions> extends GoogleDownloadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions> {\n uri: GoogleCloudStorageUri;\n method: GoogleAbstractedClientOpsMethod;\n alt: \"media\" | undefined;\n constructor(fields: GoogleCloudStorageDownloadConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n buildMethod(): GoogleAbstractedClientOpsMethod;\n buildUrl(): Promise<string>;\n}\nexport interface GoogleCloudStorageRawConnectionParams<AuthOptions> extends GoogleCloudStorageConnectionParams, GoogleConnectionParams<AuthOptions> {\n}\nexport declare class GoogleCloudStorageRawConnection<AuthOptions> extends GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions> {\n uri: GoogleCloudStorageUri;\n constructor(fields: GoogleCloudStorageRawConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n buildUrl(): Promise<string>;\n}\nexport interface BlobStoreGoogleCloudStorageBaseParams<AuthOptions> extends BlobStoreGoogleParams<AuthOptions> {\n uriPrefix: GoogleCloudStorageUri;\n}\nexport declare abstract class BlobStoreGoogleCloudStorageBase<AuthOptions> extends BlobStoreGoogle<GoogleCloudStorageResponse, AuthOptions> {\n params: BlobStoreGoogleCloudStorageBaseParams<AuthOptions>;\n constructor(fields: BlobStoreGoogleCloudStorageBaseParams<AuthOptions>);\n buildSetConnection([key, _blob]: [\n string,\n MediaBlob\n ]): GoogleMultipartUploadConnection<AsyncCallerCallOptions, GoogleCloudStorageResponse, AuthOptions>;\n buildSetMetadata([key, blob]: [string, MediaBlob]): Record<string, unknown>;\n buildGetMetadataConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, GoogleCloudStorageResponse, AuthOptions>;\n buildGetDataConnection(key: string): GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions>;\n buildDeleteConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, GoogleResponse, AuthOptions>;\n}\nexport type AIStudioFileState = \"PROCESSING\" | \"ACTIVE\" | \"FAILED\" | \"STATE_UNSPECIFIED\";\nexport type AIStudioFileVideoMetadata = {\n videoMetadata: {\n videoDuration: string;\n };\n};\nexport type AIStudioFileMetadata = AIStudioFileVideoMetadata;\nexport interface AIStudioFileObject {\n name?: string;\n displayName?: string;\n mimeType?: string;\n sizeBytes?: string;\n createTime?: string;\n updateTime?: string;\n expirationTime?: string;\n sha256Hash?: string;\n uri?: string;\n state?: AIStudioFileState;\n error?: {\n code: number;\n message: string;\n details: Record<string, unknown>[];\n };\n metadata?: AIStudioFileMetadata;\n}\nexport declare class AIStudioMediaBlob extends MediaBlob {\n _valueAsDate(value: string): Date;\n _metadataFieldAsDate(field: string): Date;\n get createDate(): Date;\n get updateDate(): Date;\n get expirationDate(): Date;\n get isExpired(): boolean;\n}\nexport interface AIStudioFileGetResponse extends GoogleResponse {\n data: AIStudioFileObject;\n}\nexport interface AIStudioFileSaveResponse extends GoogleResponse {\n data: {\n file: AIStudioFileObject;\n };\n}\nexport interface AIStudioFileListResponse extends GoogleResponse {\n data: {\n files: AIStudioFileObject[];\n nextPageToken: string;\n };\n}\nexport type AIStudioFileResponse = AIStudioFileGetResponse | AIStudioFileSaveResponse | AIStudioFileListResponse;\nexport interface AIStudioFileConnectionParams {\n}\nexport interface AIStudioFileUploadConnectionParams<AuthOptions> extends GoogleUploadConnectionParams<AuthOptions>, AIStudioFileConnectionParams {\n}\nexport declare class AIStudioFileUploadConnection<AuthOptions> extends GoogleMultipartUploadConnection<AsyncCallerCallOptions, AIStudioFileSaveResponse, AuthOptions> {\n get computedApiVersion(): string;\n buildUrl(): Promise<string>;\n}\nexport interface AIStudioFileDownloadConnectionParams<AuthOptions> extends AIStudioFileConnectionParams, GoogleConnectionParams<AuthOptions> {\n method: GoogleAbstractedClientOpsMethod;\n name: string;\n}\nexport declare class AIStudioFileDownloadConnection<ResponseType extends GoogleResponse, AuthOptions> extends GoogleDownloadConnection<AsyncCallerCallOptions, ResponseType, AuthOptions> {\n method: GoogleAbstractedClientOpsMethod;\n name: string;\n constructor(fields: AIStudioFileDownloadConnectionParams<AuthOptions>, caller: AsyncCaller, client: GoogleAbstractedClient);\n get computedApiVersion(): string;\n buildMethod(): GoogleAbstractedClientOpsMethod;\n buildUrl(): Promise<string>;\n}\nexport interface BlobStoreAIStudioFileBaseParams<AuthOptions> extends BlobStoreGoogleParams<AuthOptions> {\n retryTime?: number;\n}\nexport declare abstract class BlobStoreAIStudioFileBase<AuthOptions> extends BlobStoreGoogle<AIStudioFileResponse, AuthOptions> {\n params?: BlobStoreAIStudioFileBaseParams<AuthOptions>;\n retryTime: number;\n constructor(fields?: BlobStoreAIStudioFileBaseParams<AuthOptions>);\n _pathToName(path: string): string;\n abstract buildAbstractedClient(fields?: BlobStoreGoogleParams<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: BlobStoreGoogleParams<AuthOptions>): string | undefined;\n buildClient(fields?: BlobStoreGoogleParams<AuthOptions>): GoogleAbstractedClient;\n _regetMetadata(key: string): Promise<AIStudioFileObject>;\n _set([key, blob]: [\n string,\n MediaBlob\n ]): Promise<AIStudioFileSaveResponse>;\n buildSetConnection([_key, _blob]: [\n string,\n MediaBlob\n ]): GoogleMultipartUploadConnection<AsyncCallerCallOptions, AIStudioFileResponse, AuthOptions>;\n buildSetMetadata([_key, _blob]: [string, MediaBlob]): Record<string, unknown>;\n buildGetMetadataConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, AIStudioFileResponse, AuthOptions>;\n buildGetDataConnection(_key: string): GoogleDownloadRawConnection<AsyncCallerCallOptions, AuthOptions>;\n _get(key: string): Promise<MediaBlob | undefined>;\n buildDeleteConnection(key: string): GoogleDownloadConnection<AsyncCallerCallOptions, AIStudioFileResponse, AuthOptions>;\n}\n//# sourceMappingURL=media.d.ts.map"],"mappings":";;;;;;;UAKiBa,kDAAkDP,uBAAuBQ;AAAzED,uBAEaE,+BAF4DD,CAAAA,oBAERb,sBAFO,EAAA,qBAEsCO,cAFtC,EAAA,WAAA,CAAA,SAE2EC,oBAF3E,CAEgGO,WAFhG,EAE6GC,YAF7G,EAE2HH,WAF3H,CAAA,CAAA;EAE3DC,WAAAA,CAAAA,MAAAA,EACNT,sBADqCU,CACdF,WADcG,CAAAA,GAAAA,SAAAH,EAAAA,MAAAA,EACoBd,WADpB,EAAA,MAAA,EACyCW,sBADzC;EAAqBV,KAAAA,CAAAA,SAAAA,EAAAA,MAAAA,EAAAA,IAAAA,EAE/CE,SAF+CF,EAAAA,QAAAA,EAE1BiB,MAF0BjB,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA,CAAAA,EAEAkB,OAFAlB,CAAAA,MAAAA,CAAAA;EAA6CO,OAAAA,CAAAA,IAAAA,EAG7GL,SAH6GK,EAAAA,QAAAA,EAGxFU,MAHwFV,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA,EAAAA,OAAAA,EAGtDQ,WAHsDR,CAAAA,EAGxCW,OAHwCX,CAGhCS,YAHgCT,CAAAA;;AAAuES,uBAKxKG,wBALwKH,CAAAA,oBAK3HhB,sBAL2HgB,EAAAA,qBAK9ET,cAL8ES,EAAAA,WAAAA,CAAAA,SAKzCR,oBALyCQ,CAKpBD,WALoBC,EAKPA,YALOA,EAKOH,WALPG,CAAAA,CAAAA;EAAcH,OAAAA,CAAAA,OAAAA,EAM/LE,WAN+LF,CAAAA,EAMjLK,OANiLL,CAMzKG,YANyKH,CAAAA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OAAAA,CAAAA;EACIA,0BAAAA,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EA4DmBzB,wBA5DnByB,CA4D4C5C,sBA5D5C4C,EA4DoEI,oBA5DpEJ,EA4D0F/B,WA5D1F+B,CAAAA;EALqB1C,sBAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EAkELkB,2BAlEKlB,CAkEuBF,sBAlEvBE,EAkE+CW,WAlE/CX,CAAAA;EAAS,IAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAmEjCgB,OAnEiC,CAmEzBhB,SAnEyB,GAAA,SAAA,CAAA;EAQvC2C,qBAAAA,CAAAA,GAAAA,EAAuB,MAAA,CAAA,EA4DA1B,wBA5DSZ,CA4DgBP,sBA5DF,EA4D0BgD,oBA5D1B,EA4DgDnC,WA5DhD,CAAA;AAG/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media_core.d.cts","names":["BaseStore","Serializable","MediaBlobData","MediaBlobParameters","Record","MediaBlob","Uint8Array","Promise","Blob","Omit","ActionIfInvalidAction","BlobStoreStoreOptions","ActionIfBlobMissingAction","BlobStoreFetchOptions","BlobStoreOptions","BlobStore","BackedBlobStoreOptions","BackedBlobStore","AsyncGenerator","ReadThroughBlobStoreOptions","ReadThroughBlobStore","SimpleWebBlobStore","DataBlobStore","MediaManagerConfiguration","MediaManager"],"sources":["../../../src/experimental/utils/media_core.d.ts"],"sourcesContent":["import { BaseStore } from \"@langchain/core/stores\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nexport type MediaBlobData = {\n value: string;\n type: string;\n};\nexport interface MediaBlobParameters {\n data?: MediaBlobData;\n metadata?: Record<string, unknown>;\n path?: string;\n}\n/**\n * Represents a chunk of data that can be identified by the path where the\n * data is (or will be) located, along with optional metadata about the data.\n */\nexport declare class MediaBlob extends Serializable implements MediaBlobParameters {\n lc_serializable: boolean;\n lc_namespace: string[];\n data: MediaBlobData;\n metadata?: Record<string, any>;\n path?: string;\n constructor(params: MediaBlobParameters);\n get size(): number;\n get dataType(): string;\n get encoding(): string;\n get mimetype(): string;\n get asBytes(): Uint8Array;\n asString(): Promise<string>;\n asBase64(): Promise<string>;\n asDataUrl(): Promise<string>;\n asUri(): Promise<string>;\n encode(): Promise<{\n encoded: string;\n encoding: string;\n }>;\n static fromDataUrl(url: string): MediaBlob;\n static fromBlob(blob: Blob, other?: Omit<MediaBlobParameters, \"data\">): Promise<MediaBlob>;\n}\nexport type ActionIfInvalidAction = \"ignore\" | \"prefixPath\" | \"prefixUuid1\" | \"prefixUuid4\" | \"prefixUuid6\" | \"prefixUuid7\" | \"removePath\";\nexport interface BlobStoreStoreOptions {\n /**\n * If the path is missing or invalid in the blob, how should we create\n * a new path?\n * Subclasses may define their own methods, but the following are supported\n * by default:\n * - Undefined or an emtpy string: Reject the blob\n * - \"ignore\": Attempt to store it anyway (but this may fail)\n * - \"prefixPath\": Use the default prefix for the BlobStore and get the\n * unique portion from the URL. The original path is stored in the metadata\n * - \"prefixUuid\": Use the default prefix for the BlobStore and get the\n * unique portion from a generated UUID. The original path is stored\n * in the metadata\n */\n actionIfInvalid?: ActionIfInvalidAction;\n /**\n * The expected prefix for URIs that are stored.\n * This may be used to test if a MediaBlob is valid and used to create a new\n * path if \"prefixPath\" or \"prefixUuid\" is set for actionIfInvalid.\n */\n pathPrefix?: string;\n}\nexport type ActionIfBlobMissingAction = \"emptyBlob\";\nexport interface BlobStoreFetchOptions {\n /**\n * If the blob is not found when fetching, what should we do?\n * Subclasses may define their own methods, but the following are supported\n * by default:\n * - Undefined or an empty string: return undefined\n * - \"emptyBlob\": return a new MediaBlob that has the path set, but nothing else.\n */\n actionIfBlobMissing?: ActionIfBlobMissingAction;\n}\nexport interface BlobStoreOptions {\n defaultStoreOptions?: BlobStoreStoreOptions;\n defaultFetchOptions?: BlobStoreFetchOptions;\n}\n/**\n * A specialized Store that is designed to handle MediaBlobs and use the\n * key that is included in the blob to determine exactly how it is stored.\n *\n * The full details of a MediaBlob may be changed when it is stored.\n * For example, it may get additional or different Metadata. This should be\n * what is returned when the store() method is called.\n *\n * Although BlobStore extends BaseStore, not all of the methods from\n * BaseStore may be implemented (or even possible). Those that are not\n * implemented should be documented and throw an Error if called.\n */\nexport declare abstract class BlobStore extends BaseStore<string, MediaBlob> {\n lc_namespace: string[];\n defaultStoreOptions: BlobStoreStoreOptions;\n defaultFetchOptions: BlobStoreFetchOptions;\n constructor(opts?: BlobStoreOptions);\n protected _realKey(key: string | MediaBlob): Promise<string>;\n /**\n * Is the path supported by this BlobStore?\n *\n * Although this is async, this is expected to be a relatively fast operation\n * (ie - you shouldn't make network calls).\n *\n * @param path The path to check\n * @param opts Any options (if needed) that may be used to determine if it is valid\n * @return If the path is supported\n */\n hasValidPath(path: string | undefined, opts?: BlobStoreStoreOptions): Promise<boolean>;\n protected _blobPathSuffix(blob: MediaBlob): string;\n protected _newBlob(oldBlob: MediaBlob, newPath?: string): Promise<MediaBlob>;\n protected _validBlobPrefixPath(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob>;\n protected _validBlobPrefixUuidFunction(name: ActionIfInvalidAction | string): string;\n protected _validBlobPrefixUuid(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob>;\n protected _validBlobRemovePath(blob: MediaBlob, _opts?: BlobStoreStoreOptions): Promise<MediaBlob>;\n /**\n * Based on the blob and options, return a blob that has a valid path\n * that can be saved.\n * @param blob\n * @param opts\n */\n protected _validStoreBlob(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob | undefined>;\n store(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob | undefined>;\n protected _missingFetchBlobEmpty(path: string, _opts?: BlobStoreFetchOptions): Promise<MediaBlob>;\n protected _missingFetchBlob(path: string, opts?: BlobStoreFetchOptions): Promise<MediaBlob | undefined>;\n fetch(key: string | MediaBlob, opts?: BlobStoreFetchOptions): Promise<MediaBlob | undefined>;\n}\nexport interface BackedBlobStoreOptions extends BlobStoreOptions {\n backingStore: BaseStore<string, MediaBlob>;\n}\nexport declare class BackedBlobStore extends BlobStore {\n backingStore: BaseStore<string, MediaBlob>;\n constructor(opts: BackedBlobStoreOptions);\n mdelete(keys: string[]): Promise<void>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mset(keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(prefix: string | undefined): AsyncGenerator<string>;\n}\nexport interface ReadThroughBlobStoreOptions extends BlobStoreOptions {\n baseStore: BlobStore;\n backingStore: BlobStore;\n}\nexport declare class ReadThroughBlobStore extends BlobStore {\n baseStore: BlobStore;\n backingStore: BlobStore;\n constructor(opts: ReadThroughBlobStoreOptions);\n store(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob | undefined>;\n mdelete(keys: string[]): Promise<void>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mset(_keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(prefix: string | undefined): AsyncGenerator<string>;\n}\nexport declare class SimpleWebBlobStore extends BlobStore {\n _notImplementedException(): void;\n hasValidPath(path: string | undefined, _opts?: BlobStoreStoreOptions): Promise<boolean>;\n _fetch(url: string): Promise<MediaBlob | undefined>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mdelete(_keys: string[]): Promise<void>;\n mset(_keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(_prefix: string | undefined): AsyncGenerator<string>;\n}\n/**\n * A blob \"store\" that works with data: URLs that will turn the URL into\n * a blob.\n */\nexport declare class DataBlobStore extends BlobStore {\n _notImplementedException(): void;\n hasValidPath(path: string, _opts?: BlobStoreStoreOptions): Promise<boolean>;\n _fetch(url: string): MediaBlob;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mdelete(_keys: string[]): Promise<void>;\n mset(_keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(_prefix: string | undefined): AsyncGenerator<string>;\n}\nexport interface MediaManagerConfiguration {\n /**\n * A store that, given a common URI, returns the corresponding MediaBlob.\n * The returned MediaBlob may have a different URI.\n * In many cases, this will be a ReadThroughStore or something similar\n * that has a cached version of the MediaBlob, but also a way to get\n * a new (or refreshed) version.\n */\n store: BlobStore;\n /**\n * BlobStores that can resolve a URL into the MediaBlob to save\n * in the canonical store. This list is evaluated in order.\n * If not provided, a default list (which involves a DataBlobStore\n * and a SimpleWebBlobStore) will be used.\n */\n resolvers?: BlobStore[];\n}\n/**\n * Responsible for converting a URI (typically a web URL) into a MediaBlob.\n * Allows for aliasing / caching of the requested URI and what it resolves to.\n * This MediaBlob is expected to be usable to provide to an LLM, either\n * through the Base64 of the media or through a canonical URI that the LLM\n * supports.\n */\nexport declare class MediaManager {\n store: BlobStore;\n resolvers: BlobStore[] | undefined;\n constructor(config: MediaManagerConfiguration);\n defaultResolvers(): BlobStore[];\n _isInvalid(blob: MediaBlob | undefined): Promise<boolean>;\n /**\n * Given the public URI, load what is at this URI and save it\n * in the store.\n * @param uri The URI to resolve using the resolver\n * @return A canonical MediaBlob for this URI\n */\n _resolveAndSave(uri: string): Promise<MediaBlob | undefined>;\n getMediaBlob(uri: string): Promise<MediaBlob | undefined>;\n}\n//# sourceMappingURL=media_core.d.ts.map"],"mappings":";;;;KAEYE,aAAAA;;EAAAA,IAAAA,EAAAA,MAAAA;AAIZ,CAAA;AASqBG,UATJF,mBAAAA,CASa;EAGpBD,IAAAA,CAAAA,EAXCA,aAWDA;EACKE,QAAAA,CAAAA,EAXAA,MAWAA,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA;EAESD,IAAAA,CAAAA,EAAAA,MAAAA;;;;;;AAUVI,cAhBOF,SAAAA,SAAkBJ,YAAAA,YAAwBE,mBAgBjDI,CAAAA;EAIuBF,eAAAA,EAAAA,OAAAA;EACXG,YAAAA,EAAAA,MAAAA,EAAAA;EAAmBL,IAAAA,EAlBnCD,aAkBmCC;EAALM,QAAAA,CAAAA,EAjBzBL,MA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EAAAA,CAAAA,EAtDKhB,OAsDLgB,CAAAA,IAAAA,CAAAA;EACAR,IAAAA,CAAAA,IAAAA,EAAAA,MAAAA,EAAAA,CAAAA,EAtDER,OAsDFQ,CAAAA,CAtDWV,SAsDXU,GAAAA,SAAAA,CAAAA,EAAAA,CAAAA;EACHV,IAAAA,CAAAA,cAAAA,EAAAA,CAAAA,MAAAA,EAtDaA,SAsDbA,CAAAA,EAAAA,CAAAA,EAtD4BE,OAsD5BF,CAAAA,IAAAA,CAAAA;EAAwBE,SAAAA,CAAAA,MAAAA,EAAAA,MAAAA,GAAAA,SAAAA,CAAAA,EArDFW,cAqDEX,CAAAA,MAAAA,CAAAA;;AAOXA,cA1Dbc,kBAAAA,SAA2BN,SAAAA,CA0DdR;EACKF,wBAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAARE,YAAAA,CAAAA,IAAAA,EAAAA,MAAAA,GAAAA,SAAAA,EAAAA,KAAAA,CAAAA,EAzDoBI,qBAyDpBJ,CAAAA,EAzD4CA,OAyD5CA,CAAAA,OAAAA,CAAAA;EAAO,MAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAxDbA,OAwDa,CAxDLF,SAwDK,GAAA,SAAA,CAAA;wBAvDZE,SAASF;4BACLE;gCACIF,eAAeE;0CACLW;;;;;;cAMvBI,aAAAA,SAAsBP,SAAAA;;qCAEJJ,wBAAwBJ;uBACtCF;wBACCE,SAASF;4BACLE;gCACIF,eAAeE;0CACLW;;UAE3BK,yBAAAA;;;;;;;;SAQNR;;;;;;;cAOKA;;;;;;;;;cASKS,YAAAA;SACVT;aACIA;sBACSQ;sBACAR;mBACHV,wBAAwBE;;;;;;;gCAOXA,QAAQF;6BACXE,QAAQF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media_core.d.ts","names":["BaseStore","Serializable","MediaBlobData","MediaBlobParameters","Record","MediaBlob","Uint8Array","Promise","Blob","Omit","ActionIfInvalidAction","BlobStoreStoreOptions","ActionIfBlobMissingAction","BlobStoreFetchOptions","BlobStoreOptions","BlobStore","BackedBlobStoreOptions","BackedBlobStore","AsyncGenerator","ReadThroughBlobStoreOptions","ReadThroughBlobStore","SimpleWebBlobStore","DataBlobStore","MediaManagerConfiguration","MediaManager"],"sources":["../../../src/experimental/utils/media_core.d.ts"],"sourcesContent":["import { BaseStore } from \"@langchain/core/stores\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nexport type MediaBlobData = {\n value: string;\n type: string;\n};\nexport interface MediaBlobParameters {\n data?: MediaBlobData;\n metadata?: Record<string, unknown>;\n path?: string;\n}\n/**\n * Represents a chunk of data that can be identified by the path where the\n * data is (or will be) located, along with optional metadata about the data.\n */\nexport declare class MediaBlob extends Serializable implements MediaBlobParameters {\n lc_serializable: boolean;\n lc_namespace: string[];\n data: MediaBlobData;\n metadata?: Record<string, any>;\n path?: string;\n constructor(params: MediaBlobParameters);\n get size(): number;\n get dataType(): string;\n get encoding(): string;\n get mimetype(): string;\n get asBytes(): Uint8Array;\n asString(): Promise<string>;\n asBase64(): Promise<string>;\n asDataUrl(): Promise<string>;\n asUri(): Promise<string>;\n encode(): Promise<{\n encoded: string;\n encoding: string;\n }>;\n static fromDataUrl(url: string): MediaBlob;\n static fromBlob(blob: Blob, other?: Omit<MediaBlobParameters, \"data\">): Promise<MediaBlob>;\n}\nexport type ActionIfInvalidAction = \"ignore\" | \"prefixPath\" | \"prefixUuid1\" | \"prefixUuid4\" | \"prefixUuid6\" | \"prefixUuid7\" | \"removePath\";\nexport interface BlobStoreStoreOptions {\n /**\n * If the path is missing or invalid in the blob, how should we create\n * a new path?\n * Subclasses may define their own methods, but the following are supported\n * by default:\n * - Undefined or an emtpy string: Reject the blob\n * - \"ignore\": Attempt to store it anyway (but this may fail)\n * - \"prefixPath\": Use the default prefix for the BlobStore and get the\n * unique portion from the URL. The original path is stored in the metadata\n * - \"prefixUuid\": Use the default prefix for the BlobStore and get the\n * unique portion from a generated UUID. The original path is stored\n * in the metadata\n */\n actionIfInvalid?: ActionIfInvalidAction;\n /**\n * The expected prefix for URIs that are stored.\n * This may be used to test if a MediaBlob is valid and used to create a new\n * path if \"prefixPath\" or \"prefixUuid\" is set for actionIfInvalid.\n */\n pathPrefix?: string;\n}\nexport type ActionIfBlobMissingAction = \"emptyBlob\";\nexport interface BlobStoreFetchOptions {\n /**\n * If the blob is not found when fetching, what should we do?\n * Subclasses may define their own methods, but the following are supported\n * by default:\n * - Undefined or an empty string: return undefined\n * - \"emptyBlob\": return a new MediaBlob that has the path set, but nothing else.\n */\n actionIfBlobMissing?: ActionIfBlobMissingAction;\n}\nexport interface BlobStoreOptions {\n defaultStoreOptions?: BlobStoreStoreOptions;\n defaultFetchOptions?: BlobStoreFetchOptions;\n}\n/**\n * A specialized Store that is designed to handle MediaBlobs and use the\n * key that is included in the blob to determine exactly how it is stored.\n *\n * The full details of a MediaBlob may be changed when it is stored.\n * For example, it may get additional or different Metadata. This should be\n * what is returned when the store() method is called.\n *\n * Although BlobStore extends BaseStore, not all of the methods from\n * BaseStore may be implemented (or even possible). Those that are not\n * implemented should be documented and throw an Error if called.\n */\nexport declare abstract class BlobStore extends BaseStore<string, MediaBlob> {\n lc_namespace: string[];\n defaultStoreOptions: BlobStoreStoreOptions;\n defaultFetchOptions: BlobStoreFetchOptions;\n constructor(opts?: BlobStoreOptions);\n protected _realKey(key: string | MediaBlob): Promise<string>;\n /**\n * Is the path supported by this BlobStore?\n *\n * Although this is async, this is expected to be a relatively fast operation\n * (ie - you shouldn't make network calls).\n *\n * @param path The path to check\n * @param opts Any options (if needed) that may be used to determine if it is valid\n * @return If the path is supported\n */\n hasValidPath(path: string | undefined, opts?: BlobStoreStoreOptions): Promise<boolean>;\n protected _blobPathSuffix(blob: MediaBlob): string;\n protected _newBlob(oldBlob: MediaBlob, newPath?: string): Promise<MediaBlob>;\n protected _validBlobPrefixPath(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob>;\n protected _validBlobPrefixUuidFunction(name: ActionIfInvalidAction | string): string;\n protected _validBlobPrefixUuid(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob>;\n protected _validBlobRemovePath(blob: MediaBlob, _opts?: BlobStoreStoreOptions): Promise<MediaBlob>;\n /**\n * Based on the blob and options, return a blob that has a valid path\n * that can be saved.\n * @param blob\n * @param opts\n */\n protected _validStoreBlob(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob | undefined>;\n store(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob | undefined>;\n protected _missingFetchBlobEmpty(path: string, _opts?: BlobStoreFetchOptions): Promise<MediaBlob>;\n protected _missingFetchBlob(path: string, opts?: BlobStoreFetchOptions): Promise<MediaBlob | undefined>;\n fetch(key: string | MediaBlob, opts?: BlobStoreFetchOptions): Promise<MediaBlob | undefined>;\n}\nexport interface BackedBlobStoreOptions extends BlobStoreOptions {\n backingStore: BaseStore<string, MediaBlob>;\n}\nexport declare class BackedBlobStore extends BlobStore {\n backingStore: BaseStore<string, MediaBlob>;\n constructor(opts: BackedBlobStoreOptions);\n mdelete(keys: string[]): Promise<void>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mset(keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(prefix: string | undefined): AsyncGenerator<string>;\n}\nexport interface ReadThroughBlobStoreOptions extends BlobStoreOptions {\n baseStore: BlobStore;\n backingStore: BlobStore;\n}\nexport declare class ReadThroughBlobStore extends BlobStore {\n baseStore: BlobStore;\n backingStore: BlobStore;\n constructor(opts: ReadThroughBlobStoreOptions);\n store(blob: MediaBlob, opts?: BlobStoreStoreOptions): Promise<MediaBlob | undefined>;\n mdelete(keys: string[]): Promise<void>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mset(_keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(prefix: string | undefined): AsyncGenerator<string>;\n}\nexport declare class SimpleWebBlobStore extends BlobStore {\n _notImplementedException(): void;\n hasValidPath(path: string | undefined, _opts?: BlobStoreStoreOptions): Promise<boolean>;\n _fetch(url: string): Promise<MediaBlob | undefined>;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mdelete(_keys: string[]): Promise<void>;\n mset(_keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(_prefix: string | undefined): AsyncGenerator<string>;\n}\n/**\n * A blob \"store\" that works with data: URLs that will turn the URL into\n * a blob.\n */\nexport declare class DataBlobStore extends BlobStore {\n _notImplementedException(): void;\n hasValidPath(path: string, _opts?: BlobStoreStoreOptions): Promise<boolean>;\n _fetch(url: string): MediaBlob;\n mget(keys: string[]): Promise<(MediaBlob | undefined)[]>;\n mdelete(_keys: string[]): Promise<void>;\n mset(_keyValuePairs: [string, MediaBlob][]): Promise<void>;\n yieldKeys(_prefix: string | undefined): AsyncGenerator<string>;\n}\nexport interface MediaManagerConfiguration {\n /**\n * A store that, given a common URI, returns the corresponding MediaBlob.\n * The returned MediaBlob may have a different URI.\n * In many cases, this will be a ReadThroughStore or something similar\n * that has a cached version of the MediaBlob, but also a way to get\n * a new (or refreshed) version.\n */\n store: BlobStore;\n /**\n * BlobStores that can resolve a URL into the MediaBlob to save\n * in the canonical store. This list is evaluated in order.\n * If not provided, a default list (which involves a DataBlobStore\n * and a SimpleWebBlobStore) will be used.\n */\n resolvers?: BlobStore[];\n}\n/**\n * Responsible for converting a URI (typically a web URL) into a MediaBlob.\n * Allows for aliasing / caching of the requested URI and what it resolves to.\n * This MediaBlob is expected to be usable to provide to an LLM, either\n * through the Base64 of the media or through a canonical URI that the LLM\n * supports.\n */\nexport declare class MediaManager {\n store: BlobStore;\n resolvers: BlobStore[] | undefined;\n constructor(config: MediaManagerConfiguration);\n defaultResolvers(): BlobStore[];\n _isInvalid(blob: MediaBlob | undefined): Promise<boolean>;\n /**\n * Given the public URI, load what is at this URI and save it\n * in the store.\n * @param uri The URI to resolve using the resolver\n * @return A canonical MediaBlob for this URI\n */\n _resolveAndSave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,MAAA,CAAA,EAxDbA,OAwDa,CAxDLF,SAwDK,GAAA,SAAA,CAAA;wBAvDZE,SAASF;4BACLE;gCACIF,eAAeE;0CACLW;;;;;;cAMvBI,aAAAA,SAAsBP,SAAAA;;qCAEJJ,wBAAwBJ;uBACtCF;wBACCE,SAASF;4BACLE;gCACIF,eAAeE;0CACLW;;UAE3BK,yBAAAA;;;;;;;;SAQNR;;;;;;;cAOKA;;;;;;;;;cASKS,YAAAA;SACVT;aACIA;sBACSQ;sBACAR;mBACHV,wBAAwBE;;;;;;;gCAOXA,QAAQF;6BACXE,QAAQF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.cts","names":["Callbacks","LLM","BaseLanguageModelCallOptions","BaseLanguageModelInput","BaseMessage","MessageContent","AbstractGoogleLLMConnection","GoogleAIBaseLLMInput","GoogleAIModelParams","GoogleAISafetySetting","GooglePlatformType","GeminiContent","GoogleAIResponseMimeType","GoogleAbstractedClient","ChatGoogleBase","GoogleBaseLLMInput","GoogleAISafetyHandler","GoogleLLMConnection","AuthOptions","Promise","GoogleBaseLLM","AsyncGenerator"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { LLM } from \"@langchain/core/language_models/llms\";\nimport { type BaseLanguageModelCallOptions, BaseLanguageModelInput } from \"@langchain/core/language_models/base\";\nimport { BaseMessage, MessageContent } from \"@langchain/core/messages\";\nimport { AbstractGoogleLLMConnection } from \"./connection.js\";\nimport { GoogleAIBaseLLMInput, GoogleAIModelParams, GoogleAISafetySetting, GooglePlatformType, GeminiContent, GoogleAIResponseMimeType } from \"./types.js\";\nimport { GoogleAbstractedClient } from \"./auth.js\";\nimport { ChatGoogleBase } from \"./chat_models.js\";\nimport type { GoogleBaseLLMInput, GoogleAISafetyHandler } from \"./types.js\";\nexport { GoogleBaseLLMInput };\ndeclare class GoogleLLMConnection<AuthOptions> extends AbstractGoogleLLMConnection<MessageContent, AuthOptions> {\n formatContents(input: MessageContent, _parameters: GoogleAIModelParams): Promise<GeminiContent[]>;\n}\n/**\n * Integration with an LLM.\n */\nexport declare abstract class GoogleBaseLLM<AuthOptions> extends LLM<BaseLanguageModelCallOptions> implements GoogleBaseLLMInput<AuthOptions> {\n static lc_name(): string;\n get lc_secrets(): {\n [key: string]: string;\n } | undefined;\n originalFields?: GoogleBaseLLMInput<AuthOptions>;\n lc_serializable: boolean;\n modelName: string;\n model: string;\n temperature: number;\n maxOutputTokens: number;\n topP: number;\n topK: number;\n stopSequences: string[];\n safetySettings: GoogleAISafetySetting[];\n safetyHandler: GoogleAISafetyHandler;\n responseMimeType: GoogleAIResponseMimeType;\n protected connection: GoogleLLMConnection<AuthOptions>;\n protected streamedConnection: GoogleLLMConnection<AuthOptions>;\n constructor(fields?: GoogleBaseLLMInput<AuthOptions>);\n abstract buildAbstractedClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: GoogleAIBaseLLMInput<AuthOptions>): string | undefined;\n buildClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildConnection(fields: GoogleBaseLLMInput<AuthOptions>, client: GoogleAbstractedClient): void;\n get platform(): GooglePlatformType;\n _llmType(): string;\n formatPrompt(prompt: string): MessageContent;\n /**\n * For some given input string and options, return a string output.\n *\n * Despite the fact that `invoke` is overridden below, we still need this\n * in order to handle public APi calls to `generate()`.\n */\n _call(prompt: string, options: this[\"ParsedCallOptions\"]): Promise<string>;\n _streamIterator(input: BaseLanguageModelInput, options?: BaseLanguageModelCallOptions): AsyncGenerator<string>;\n predictMessages(messages: BaseMessage[], options?: string[] | BaseLanguageModelCallOptions, _callbacks?: Callbacks): Promise<BaseMessage>;\n /**\n * Internal implementation detail to allow Google LLMs to support\n * multimodal input by delegating to the chat model implementation.\n *\n * TODO: Replace with something less hacky.\n */\n protected createProxyChat(): ChatGoogleBase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A,EADnBY,cACmBZ,CADJgB,WACIhB,CAAAA;EAA+BiB,MAAAA,CAAAA,KAAAA,EAAjEhB,sBAAiEgB,EAAAA,OAAAA,CAAAA,EAA/BjB,4BAA+BiB,CAAAA,EAAAA,OAAAA,CAAAA,MAAAA,CAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.ts","names":["Callbacks","LLM","BaseLanguageModelCallOptions","BaseLanguageModelInput","BaseMessage","MessageContent","AbstractGoogleLLMConnection","GoogleAIBaseLLMInput","GoogleAIModelParams","GoogleAISafetySetting","GooglePlatformType","GeminiContent","GoogleAIResponseMimeType","GoogleAbstractedClient","ChatGoogleBase","GoogleBaseLLMInput","GoogleAISafetyHandler","GoogleLLMConnection","AuthOptions","Promise","GoogleBaseLLM","AsyncGenerator"],"sources":["../src/llms.d.ts"],"sourcesContent":["import { Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { LLM } from \"@langchain/core/language_models/llms\";\nimport { type BaseLanguageModelCallOptions, BaseLanguageModelInput } from \"@langchain/core/language_models/base\";\nimport { BaseMessage, MessageContent } from \"@langchain/core/messages\";\nimport { AbstractGoogleLLMConnection } from \"./connection.js\";\nimport { GoogleAIBaseLLMInput, GoogleAIModelParams, GoogleAISafetySetting, GooglePlatformType, GeminiContent, GoogleAIResponseMimeType } from \"./types.js\";\nimport { GoogleAbstractedClient } from \"./auth.js\";\nimport { ChatGoogleBase } from \"./chat_models.js\";\nimport type { GoogleBaseLLMInput, GoogleAISafetyHandler } from \"./types.js\";\nexport { GoogleBaseLLMInput };\ndeclare class GoogleLLMConnection<AuthOptions> extends AbstractGoogleLLMConnection<MessageContent, AuthOptions> {\n formatContents(input: MessageContent, _parameters: GoogleAIModelParams): Promise<GeminiContent[]>;\n}\n/**\n * Integration with an LLM.\n */\nexport declare abstract class GoogleBaseLLM<AuthOptions> extends LLM<BaseLanguageModelCallOptions> implements GoogleBaseLLMInput<AuthOptions> {\n static lc_name(): string;\n get lc_secrets(): {\n [key: string]: string;\n } | undefined;\n originalFields?: GoogleBaseLLMInput<AuthOptions>;\n lc_serializable: boolean;\n modelName: string;\n model: string;\n temperature: number;\n maxOutputTokens: number;\n topP: number;\n topK: number;\n stopSequences: string[];\n safetySettings: GoogleAISafetySetting[];\n safetyHandler: GoogleAISafetyHandler;\n responseMimeType: GoogleAIResponseMimeType;\n protected connection: GoogleLLMConnection<AuthOptions>;\n protected streamedConnection: GoogleLLMConnection<AuthOptions>;\n constructor(fields?: GoogleBaseLLMInput<AuthOptions>);\n abstract buildAbstractedClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildApiKeyClient(apiKey: string): GoogleAbstractedClient;\n buildApiKey(fields?: GoogleAIBaseLLMInput<AuthOptions>): string | undefined;\n buildClient(fields?: GoogleAIBaseLLMInput<AuthOptions>): GoogleAbstractedClient;\n buildConnection(fields: GoogleBaseLLMInput<AuthOptions>, client: GoogleAbstractedClient): void;\n get platform(): GooglePlatformType;\n _llmType(): string;\n formatPrompt(prompt: string): MessageContent;\n /**\n * For some given input string and options, return a string output.\n *\n * Despite the fact that `invoke` is overridden below, we still need this\n * in order to handle public APi calls to `generate()`.\n */\n _call(prompt: string, options: this[\"ParsedCallOptions\"]): Promise<string>;\n _streamIterator(input: BaseLanguageModelInput, options?: BaseLanguageModelCallOptions): AsyncGenerator<string>;\n predictMessages(messages: BaseMessage[], options?: string[] | BaseLanguageModelCallOptions, _callbacks?: Callbacks): Promise<BaseMessage>;\n /**\n * Internal implementation detail to allow Google LLMs to support\n * multimodal input by delegating to the chat model implementation.\n *\n * TODO: Replace with something less hacky.\n */\n protected createProxyChat(): ChatGoogleBase<AuthOptions>;\n invoke(input: BaseLanguageModelInput, options?: BaseLanguageModelCallOptions): Promise<string>;\n}\n//# sourceMappingURL=llms.d.ts.map"],"mappings":";;;;;;;;;;AAS8B,cAChBiB,mBAAmBC,CAAAA,WAAAA,CAAAA,SAAsBZ,2BAAtB,CAAkDD,cAA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 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output_parsers.d.cts","names":["BaseLLMOutputParser","Callbacks","ChatGeneration","Generation","GeminiGroundingChunk","GeminiGroundingMetadata","GeminiGroundingSupport","Generations","GroundingInfo","BaseGoogleSearchOutputParser","Promise","SimpleGoogleSearchOutputParser","MarkdownGoogleSearchOutputParser"],"sources":["../src/output_parsers.d.ts"],"sourcesContent":["import { BaseLLMOutputParser } from \"@langchain/core/output_parsers\";\nimport { Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { ChatGeneration, Generation } from \"@langchain/core/outputs\";\nimport { GeminiGroundingChunk, GeminiGroundingMetadata, GeminiGroundingSupport } from \"./types.js\";\ntype Generations = Generation[] | ChatGeneration[];\ntype GroundingInfo = {\n metadata: GeminiGroundingMetadata;\n supports: GeminiGroundingSupport[];\n};\nexport declare abstract class BaseGoogleSearchOutputParser extends BaseLLMOutputParser<string> {\n lc_namespace: string[];\n protected generationToGroundingInfo(generation: Generation | ChatGeneration): GroundingInfo | undefined;\n protected generationsToGroundingInfo(generations: Generations): GroundingInfo | undefined;\n protected generationToString(generation: Generation | ChatGeneration): string;\n protected generationsToString(generations: Generations): string;\n protected abstract segmentPrefix(grounding: GroundingInfo, support: GeminiGroundingSupport, index: number): string | undefined;\n protected abstract segmentSuffix(grounding: GroundingInfo, support: GeminiGroundingSupport, index: number): string | undefined;\n protected annotateSegment(text: string, grounding: GroundingInfo, support: GeminiGroundingSupport, index: number): string;\n protected annotateTextSegments(text: string, grounding: GroundingInfo): string;\n protected abstract textPrefix(text: string, grounding: GroundingInfo): string | undefined;\n protected abstract textSuffix(text: string, grounding: GroundingInfo): string | undefined;\n /**\n * Google requires us to\n * \"Display the Search Suggestion exactly as provided without any modifications\"\n * So this will typically be called from the textSuffix() method to get\n * a string that renders HTML.\n * See https://ai.google.dev/gemini-api/docs/grounding/search-suggestions\n * @param grounding\n */\n protected searchSuggestion(grounding: GroundingInfo): string;\n protected annotateText(text: string, grounding: GroundingInfo): string;\n parseResult(generations: Generations, _callbacks?: Callbacks): Promise<string>;\n}\nexport declare class SimpleGoogleSearchOutputParser extends BaseGoogleSearchOutputParser {\n protected segmentPrefix(_grounding: GroundingInfo, _support: GeminiGroundingSupport, _index: number): string | undefined;\n protected segmentSuffix(_grounding: GroundingInfo, support: GeminiGroundingSupport, _index: number): string | undefined;\n protected textPrefix(_text: string, _grounding: GroundingInfo): string;\n protected chunkToString(chunk: GeminiGroundingChunk, index: number): string;\n protected textSuffix(_text: string, grounding: GroundingInfo): string;\n}\nexport declare class MarkdownGoogleSearchOutputParser extends BaseGoogleSearchOutputParser {\n protected segmentPrefix(_grounding: GroundingInfo, _support: GeminiGroundingSupport, _index: number): string | undefined;\n protected chunkLink(grounding: GroundingInfo, index: number): string;\n protected segmentSuffix(grounding: GroundingInfo, support: GeminiGroundingSupport, _index: number): string | undefined;\n protected textPrefix(_text: string, _grounding: GroundingInfo): string | undefined;\n protected chunkSuffixLink(chunk: GeminiGroundingChunk, index: number): string;\n protected textSuffix(_text: string, grounding: GroundingInfo): string | undefined;\n}\nexport {};\n//# sourceMappingURL=output_parsers.d.ts.map"],"mappings":";;;;;;KAIKO,WAAAA,GAAcJ,eAAeD;KAC7BM,aAAAA;EADAD,QAAAA,EAESF,uBAFKF;EACdK,QAAAA,EAESF,sBADAD,EAAAA;AAGd,CAAA;AAEoDF,uBAFtBM,4BAAAA,SAAqCT,mBAEfG,CAAAA,MAAAA,CAAAA,CAAAA;EAAaD,YAAAA,EAAAA,MAAAA,EAAAA;EAAiBM,UAAAA,yBAAAA,CAAAA,UAAAA,EAA9BL,UAA8BK,GAAjBN,cAAiBM,CAAAA,EAAAA,aAAAA,GAAAA,SAAAA;EAC5BD,UAAAA,0BAAAA,CAAAA,WAAAA,EAAAA,WAAAA,CAAAA,EAAcC,aAAdD,GAAAA,SAAAA;EAAcC,UAAAA,kBAAAA,CAAAA,UAAAA,EACvBL,UADuBK,GACVN,cADUM,CAAAA,EAAAA,MAAAA;EACvBL,U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;EAC9BE,UAAAA,UAAAA,CAAAA,KAAAA,EAAAA,MAAAA,EAAAA,SAAAA,EAIgBA,aAJhBA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output_parsers.d.ts","names":["BaseLLMOutputParser","Callbacks","ChatGeneration","Generation","GeminiGroundingChunk","GeminiGroundingMetadata","GeminiGroundingSupport","Generations","GroundingInfo","BaseGoogleSearchOutputParser","Promise","SimpleGoogleSearchOutputParser","MarkdownGoogleSearchOutputParser"],"sources":["../src/output_parsers.d.ts"],"sourcesContent":["import { BaseLLMOutputParser } from \"@langchain/core/output_parsers\";\nimport { Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { ChatGeneration, Generation } from \"@langchain/core/outputs\";\nimport { GeminiGroundingChunk, GeminiGroundingMetadata, GeminiGroundingSupport } from \"./types.js\";\ntype Generations = Generation[] | ChatGeneration[];\ntype GroundingInfo = {\n metadata: GeminiGroundingMetadata;\n supports: GeminiGroundingSupport[];\n};\nexport declare abstract class BaseGoogleSearchOutputParser extends BaseLLMOutputParser<string> {\n lc_namespace: string[];\n protected generationToGroundingInfo(generation: Generation | ChatGeneration): GroundingInfo | undefined;\n protected generationsToGroundingInfo(generations: Generations): GroundingInfo | undefined;\n protected generationToString(generation: Generation | ChatGeneration): string;\n protected generationsToString(generations: Generations): string;\n protected abstract segmentPrefix(grounding: GroundingInfo, support: GeminiGroundingSupport, index: number): string | undefined;\n protected abstract segmentSuffix(grounding: GroundingInfo, support: GeminiGroundingSupport, index: number): string | undefined;\n protected annotateSegment(text: string, grounding: GroundingInfo, support: GeminiGroundingSupport, index: number): string;\n protected annotateTextSegments(text: string, grounding: GroundingInfo): string;\n protected abstract textPrefix(text: string, grounding: GroundingInfo): string | undefined;\n protected abstract textSuffix(text: string, grounding: GroundingInfo): string | undefined;\n /**\n * Google requires us to\n * \"Display the Search Suggestion exactly as provided without any modifications\"\n * So this will typically be called from the textSuffix() method to get\n * a string that renders HTML.\n * See https://ai.google.dev/gemini-api/docs/grounding/search-suggestions\n * @param grounding\n */\n protected searchSuggestion(grounding: GroundingInfo): string;\n protected annotateText(text: string, grounding: GroundingInfo): string;\n parseResult(generations: Generations, _callbacks?: Callbacks): Promise<string>;\n}\nexport declare class SimpleGoogleSearchOutputParser extends BaseGoogleSearchOutputParser {\n protected segmentPrefix(_grounding: GroundingInfo, _support: GeminiGroundingSupport, _index: number): string | undefined;\n protected segmentSuffix(_grounding: GroundingInfo, support: GeminiGroundingSupport, _index: number): string | undefined;\n protected textPrefix(_text: string, _grounding: GroundingInfo): string;\n protected chunkToString(chunk: GeminiGroundingChunk, index: number): string;\n protected textSuffix(_text: string, grounding: GroundingInfo): string;\n}\nexport declare class MarkdownGoogleSearchOutputParser extends BaseGoogleSearchOutputParser {\n protected segmentPrefix(_grounding: GroundingInfo, _support: GeminiGroundingSupport, _index: number): string | undefined;\n protected chunkLink(grounding: GroundingInfo, index: number): string;\n protected segmentSuffix(grounding: GroundingInfo, support: GeminiGroundingSupport, _index: number): string | undefined;\n protected textPrefix(_text: string, _grounding: GroundingInfo): string | undefined;\n protected chunkSuffixLink(chunk: GeminiGroundingChunk, index: number): string;\n protected textSuffix(_text: string, grounding: GroundingInfo): string | undefined;\n}\nexport {};\n//# sourceMappingURL=output_parsers.d.ts.map"],"mappings":";;;;;;KAIKO,WAAAA,GAAcJ,eAAeD;KAC7BM,aAAAA;EADAD,QAAAA,EAESF,uBAFKF;EACdK,QAAAA,EAESF,sBADAD,EAAAA;AAGd,CAAA;AAEoDF,uBAFtBM,4BAAAA,SAAqCT,mBAEfG,CAAAA,MAAAA,CAAAA,CAAAA;EAAaD,YAAAA,EAAAA,MAAAA,EAAAA;EAAiBM,UAAAA,yBAAAA,CAAAA,UAAAA,EAA9BL,UAA8BK,GAAjBN,cAAiBM,CAAAA,EAAAA,aAAAA,GAAAA,SAAAA;EAC5BD,UAAAA,0BAAAA,CAAAA,WAAAA,EAAAA,W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,EAAAA,MAAAA,GAAAA,SAAAA;EAAyBF,UAAAA,eAAAA,CAAAA,KAAAA,EAI5BF,oBAJ4BE,EAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EAC9BE,UAAAA,UAAAA,CAAAA,KAAAA,EAAAA,MAAAA,EAAAA,SAAAA,EAIgBA,aAJhBA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-anthropic.d.cts","names":["AnthropicCacheControl","AnthropicMessageContentBase","AnthropicMessageContentText","AnthropicMessageContentImage","AnthropicMessageContentThinking","AnthropicMessageContentDocument","AnthropicMessageContentRedactedThinking","AnthropicMessageContentToolUseInput","AnthropicMessageContentToolUse","AnthropicMessageContentToolResultContent","AnthropicMessageContentToolResult","AnthropicMessageContent","AnthropicMessage","AnthropicMetadata","AnthropicToolChoiceBase","AnthropicToolChoiceAuto","AnthropicToolChoiceAny","AnthropicToolChoiceTool","AnthropicToolChoice","AnthropicToolInputSchema","AnthropicTool","AnthropicThinkingEnabled","AnthropicThinkingDisabled","AnthropicThinking","AnthropicRequest","AnthropicRequestSettings","Pick","AnthropicContentText","AnthropicContentToolUse","AnthropicContentThinking","AnthropicContentRedactedThinking","AnthropicContent","AnthropicUsage","AnthropicResponseData","AnthropicResponseMessage","AnthropicStreamBaseEvent","AnthropicAPIConfig","AnthropicStreamEventType","AnthropicStreamDeltaType","AnthropicStreamMessageStartEvent","AnthropicStreamContentBlockStartEvent","AnthropicStreamBaseDelta","AnthropicStreamTextDelta","AnthropicStreamInputJsonDelta","AnthropicStreamDelta","AnthropicStreamContentBlockDeltaEvent","AnthropicStreamContentBlockStopEvent","AnthropicStreamMessageDeltaEvent","Partial","AnthropicStreamMessageStopEvent","AnthropicStreamPingEvent","AnthropicStreamErrorEvent"],"sources":["../src/types-anthropic.d.ts"],"sourcesContent":["export interface AnthropicCacheControl {\n type: \"ephemeral\" | string;\n}\ninterface AnthropicMessageContentBase {\n type: string;\n cache_control?: AnthropicCacheControl | null;\n}\nexport interface AnthropicMessageContentText extends AnthropicMessageContentBase {\n type: \"text\";\n text: string;\n}\nexport interface AnthropicMessageContentImage extends AnthropicMessageContentBase {\n type: \"image\";\n source: {\n type: \"base64\" | string;\n media_type?: string;\n data: string;\n } | {\n type: \"url\" | string;\n url: string;\n };\n}\nexport interface AnthropicMessageContentThinking extends AnthropicMessageContentBase {\n type: \"thinking\";\n thinking: string;\n signature: string;\n}\nexport interface AnthropicMessageContentDocument extends AnthropicMessageContentBase {\n type: \"document\";\n source: {\n type: \"base64\" | \"text\" | string;\n media_type?: \"application/pdf\" | \"text/plain\" | string;\n data: string;\n } | {\n type: \"url\" | string;\n url: string;\n } | {\n type: \"content\" | string;\n content: {\n type: \"image\" | string;\n source: {\n type: \"base64\" | string;\n data: string;\n media_type?: \"image/jpeg\" | \"image/png\" | \"image/gif\" | \"image/webp\" | string;\n } | {\n type: \"url\" | string;\n url: string;\n } | {\n type: \"text\" | string;\n text: string;\n };\n }[];\n };\n citations?: {\n enabled?: boolean;\n };\n context?: string;\n title?: string;\n}\nexport interface AnthropicMessageContentRedactedThinking extends AnthropicMessageContentBase {\n type: \"redacted_thinking\";\n data: string;\n}\nexport type AnthropicMessageContentToolUseInput = object;\nexport interface AnthropicMessageContentToolUse extends AnthropicMessageContentBase {\n type: \"tool_use\";\n id: string;\n name: string;\n input: AnthropicMessageContentToolUseInput;\n}\nexport type AnthropicMessageContentToolResultContent = AnthropicMessageContentText | AnthropicMessageContentImage;\nexport interface AnthropicMessageContentToolResult extends AnthropicMessageContentBase {\n type: \"tool_result\";\n tool_use_id: string;\n is_error?: boolean;\n content: string | AnthropicMessageContentToolResultContent[];\n}\nexport type AnthropicMessageContent = AnthropicMessageContentText | AnthropicMessageContentImage | AnthropicMessageContentToolUse | AnthropicMessageContentToolResult | AnthropicMessageContentThinking | AnthropicMessageContentRedactedThinking;\nexport interface AnthropicMessage {\n role: string;\n content: string | AnthropicMessageContent[];\n}\nexport interface AnthropicMetadata {\n user_id?: string | null;\n}\ninterface AnthropicToolChoiceBase {\n type: string;\n}\nexport interface AnthropicToolChoiceAuto extends AnthropicToolChoiceBase {\n type: \"auto\";\n}\nexport interface AnthropicToolChoiceAny extends AnthropicToolChoiceBase {\n type: \"any\";\n}\nexport interface AnthropicToolChoiceTool extends AnthropicToolChoiceBase {\n type: \"tool\";\n name: string;\n}\nexport type AnthropicToolChoice = AnthropicToolChoiceAuto | AnthropicToolChoiceAny | AnthropicToolChoiceTool;\nexport type AnthropicToolInputSchema = object;\nexport interface AnthropicTool {\n type?: string;\n name: string;\n description?: string;\n cache_control?: AnthropicCacheControl;\n input_schema: AnthropicToolInputSchema;\n}\nexport interface AnthropicThinkingEnabled {\n type: \"enabled\";\n budget_tokens: number;\n}\nexport interface AnthropicThinkingDisabled {\n type: \"disabled\";\n}\nexport type AnthropicThinking = AnthropicThinkingEnabled | AnthropicThinkingDisabled;\nexport interface AnthropicRequest {\n anthropic_version: string;\n messages: AnthropicMessage[];\n system?: string;\n stream?: boolean;\n max_tokens: number;\n temperature?: number;\n top_k?: number;\n top_p?: number;\n stop_sequences?: string[];\n metadata?: AnthropicMetadata;\n tool_choice?: AnthropicToolChoice;\n tools?: AnthropicTool[];\n thinking?: AnthropicThinking;\n}\nexport type AnthropicRequestSettings = Pick<AnthropicRequest, \"max_tokens\" | \"temperature\" | \"top_k\" | \"top_p\" | \"stop_sequences\" | \"stream\">;\nexport interface AnthropicContentText {\n type: \"text\";\n text: string;\n}\nexport interface AnthropicContentToolUse {\n type: \"tool_use\";\n id: string;\n name: string;\n input: object;\n}\nexport interface AnthropicContentThinking {\n type: \"thinking\";\n thinking: string;\n signature: string;\n}\nexport interface AnthropicContentRedactedThinking {\n type: \"redacted_thinking\";\n data: string;\n}\nexport type AnthropicContent = AnthropicContentText | AnthropicContentToolUse | AnthropicContentThinking | AnthropicContentRedactedThinking;\nexport interface AnthropicUsage {\n input_tokens: number;\n output_tokens: number;\n cache_creation_input_tokens: number | null;\n cache_creation_output_tokens: number | null;\n cache_read_input_tokens: number | null;\n}\nexport type AnthropicResponseData = AnthropicResponseMessage | AnthropicStreamBaseEvent;\nexport interface AnthropicResponseMessage {\n id: string;\n type: string;\n role: string;\n content: AnthropicContent[];\n model: string;\n stop_reason: string | null;\n stop_sequence: string | null;\n usage: AnthropicUsage;\n}\nexport interface AnthropicAPIConfig {\n version?: string;\n thinking?: AnthropicThinking;\n}\nexport type AnthropicStreamEventType = \"message_start\" | \"content_block_start\" | \"content_block_delta\" | \"content_block_stop\" | \"message_delta\" | \"message_stop\" | \"ping\" | \"error\";\nexport type AnthropicStreamDeltaType = \"text_delta\" | \"input_json_delta\";\nexport interface AnthropicStreamBaseEvent {\n type: AnthropicStreamEventType;\n}\nexport interface AnthropicStreamMessageStartEvent extends AnthropicStreamBaseEvent {\n type: \"message_start\";\n message: AnthropicResponseMessage;\n}\nexport interface AnthropicStreamContentBlockStartEvent extends AnthropicStreamBaseEvent {\n type: \"content_block_start\";\n index: number;\n content_block: AnthropicContent;\n}\nexport interface AnthropicStreamBaseDelta {\n type: AnthropicStreamDeltaType;\n}\nexport interface AnthropicStreamTextDelta extends AnthropicStreamBaseDelta {\n type: \"text_delta\";\n text: string;\n}\nexport interface AnthropicStreamInputJsonDelta extends AnthropicStreamBaseDelta {\n type: \"input_json_delta\";\n partial_json: string;\n}\nexport type AnthropicStreamDelta = AnthropicStreamTextDelta | AnthropicStreamInputJsonDelta;\nexport interface AnthropicStreamContentBlockDeltaEvent extends AnthropicStreamBaseEvent {\n type: \"content_block_delta\";\n index: number;\n delta: AnthropicStreamDelta;\n}\nexport interface AnthropicStreamContentBlockStopEvent extends AnthropicStreamBaseEvent {\n type: \"content_block_stop\";\n index: number;\n}\nexport interface AnthropicStreamMessageDeltaEvent extends AnthropicStreamBaseEvent {\n type: \"message_delta\";\n delta: Partial<AnthropicResponseMessage>;\n}\nexport interface AnthropicStreamMessageStopEvent extends AnthropicStreamBaseEvent {\n type: \"message_stop\";\n}\nexport interface AnthropicStreamPingEvent extends AnthropicStreamBaseEvent {\n type: \"ping\";\n}\nexport interface AnthropicStreamErrorEvent extends AnthropicStreamBaseEvent {\n type: \"error\";\n error: any;\n}\nexport {};\n//# sourceMappingURL=types-anthropic.d.ts.map"],"mappings":";UAAiBA,qBAAAA;EAAAA,IAAAA,EAAAA,WAAAA,GAAAA,MAAqB;AAErC;AAKD,UAJUC,2BAAAA,CAIkC;EAI3BE,IAAAA,EAAAA,MAAAA;EAWAC,aAAAA,CAAAA,EAjBGJ,qBAiB4B,GAAA,IAAA;AAKhD;AAgCiBM,UApDAJ,2BAAAA,SAAoCD,2BAoDYA,CAAAA;EAIrDM,IAAAA,EAAAA,MAAAA;EACKC,IAAAA,EAAAA,MAAAA;AAMjB;AACiBE,UA5DAP,4BAAAA,SAAqCF,2BAgEhCQ,CAAAA;EAEVE,IAAAA,EAAAA,OAAAA;EAA0BT,MAAAA,EAAAA;IAA8BC,IAAAA,EAAAA,QAAAA,GAAAA,MAAAA;IAA+BK,UAAAA,CAAAA,EAAAA,MAAAA;IAAiCE,IAAAA,EAAAA,MAAAA;EAAoCN,CAAAA,GAAAA;IAAkCE,IAAAA,EAAAA,KAAAA,GAAAA,MAAAA;IAAuC,GAAA,EAAA,MAAA;EAChOM,CAAAA;AAIjB;AAGUE,UA/DOV,+BAAAA,SAAwCH,2BA+DxB,CAAA;EAGhBc,IAAAA,EAAAA,UAAAA;EAGAC,QAAAA,EAAAA,MAAAA;EAGAC,SAAAA,EAAAA,MAAAA;AAIjB;AAAkCF,UAvEjBV,+BAAAA,SAAwCJ,2BAuEvBc,CAAAA;EAA0BC,IAAAA,EAAAA,UAAAA;EAAyBC,MAAAA,EAAAA;IAAuB,IAAA,EAAA,QAAA,GAAA,MAAA,GAAA,MAAA;IAChGE,UAAAA,CAAAA,EAAAA,iBAAwB,GAAA,YAAA,GAAA,MAAA;IACnBC,IAAAA,EAAAA,MAAa;EAObC,CAAAA,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;SAE/Ca,QAAQd;;UAEFe,+BAAAA,SAAwCd;;;UAGxCe,wBAAAA,SAAiCf;;;UAGjCgB,yBAAAA,SAAkChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-anthropic.d.ts","names":["AnthropicCacheControl","AnthropicMessageContentBase","AnthropicMessageContentText","AnthropicMessageContentImage","AnthropicMessageContentThinking","AnthropicMessageContentDocument","AnthropicMessageContentRedactedThinking","AnthropicMessageContentToolUseInput","AnthropicMessageContentToolUse","AnthropicMessageContentToolResultContent","AnthropicMessageContentToolResult","AnthropicMessageContent","AnthropicMessage","AnthropicMetadata","AnthropicToolChoiceBase","AnthropicToolChoiceAuto","AnthropicToolChoiceAny","AnthropicToolChoiceTool","AnthropicToolChoice","AnthropicToolInputSchema","AnthropicTool","AnthropicThinkingEnabled","AnthropicThinkingDisabled","AnthropicThinking","AnthropicRequest","AnthropicRequestSettings","Pick","AnthropicContentText","AnthropicContentToolUse","AnthropicContentThinking","AnthropicContentRedactedThinking","AnthropicContent","AnthropicUsage","AnthropicResponseData","AnthropicResponseMessage","AnthropicStreamBaseEvent","AnthropicAPIConfig","AnthropicStreamEventType","AnthropicStreamDeltaType","AnthropicStreamMessageStartEvent","AnthropicStreamContentBlockStartEvent","AnthropicStreamBaseDelta","AnthropicStreamTextDelta","AnthropicStreamInputJsonDelta","AnthropicStreamDelta","AnthropicStreamContentBlockDeltaEvent","AnthropicStreamContentBlockStopEvent","AnthropicStreamMessageDeltaEvent","Partial","AnthropicStreamMessageStopEvent","AnthropicStreamPingEvent","AnthropicStreamErrorEvent"],"sources":["../src/types-anthropic.d.ts"],"sourcesContent":["export interface AnthropicCacheControl {\n type: \"ephemeral\" | string;\n}\ninterface AnthropicMessageContentBase {\n type: string;\n cache_control?: AnthropicCacheControl | null;\n}\nexport interface AnthropicMessageContentText extends AnthropicMessageContentBase {\n type: \"text\";\n text: string;\n}\nexport interface AnthropicMessageContentImage extends AnthropicMessageContentBase {\n type: \"image\";\n source: {\n type: \"base64\" | string;\n media_type?: string;\n data: string;\n } | {\n type: \"url\" | string;\n url: string;\n };\n}\nexport interface AnthropicMessageContentThinking extends AnthropicMessageContentBase {\n type: \"thinking\";\n thinking: string;\n signature: string;\n}\nexport interface AnthropicMessageContentDocument extends AnthropicMessageContentBase {\n type: \"document\";\n source: {\n type: \"base64\" | \"text\" | string;\n media_type?: \"application/pdf\" | \"text/plain\" | string;\n data: string;\n } | {\n type: \"url\" | string;\n url: string;\n } | {\n type: \"content\" | string;\n content: {\n type: \"image\" | string;\n source: {\n type: \"base64\" | string;\n data: string;\n media_type?: \"image/jpeg\" | \"image/png\" | \"image/gif\" | \"image/webp\" | string;\n } | {\n type: \"url\" | string;\n url: string;\n } | {\n type: \"text\" | string;\n text: string;\n };\n }[];\n };\n citations?: {\n enabled?: boolean;\n };\n context?: string;\n title?: string;\n}\nexport interface AnthropicMessageContentRedactedThinking extends AnthropicMessageContentBase {\n type: \"redacted_thinking\";\n data: string;\n}\nexport type AnthropicMessageContentToolUseInput = object;\nexport interface AnthropicMessageContentToolUse extends AnthropicMessageContentBase {\n type: \"tool_use\";\n id: string;\n name: string;\n input: AnthropicMessageContentToolUseInput;\n}\nexport type AnthropicMessageContentToolResultContent = AnthropicMessageContentText | AnthropicMessageContentImage;\nexport interface AnthropicMessageContentToolResult extends AnthropicMessageContentBase {\n type: \"tool_result\";\n tool_use_id: string;\n is_error?: boolean;\n content: string | AnthropicMessageContentToolResultContent[];\n}\nexport type AnthropicMessageContent = AnthropicMessageContentText | AnthropicMessageContentImage | AnthropicMessageContentToolUse | AnthropicMessageContentToolResult | AnthropicMessageContentThinking | AnthropicMessageContentRedactedThinking;\nexport interface AnthropicMessage {\n role: string;\n content: string | AnthropicMessageContent[];\n}\nexport interface AnthropicMetadata {\n user_id?: string | null;\n}\ninterface AnthropicToolChoiceBase {\n type: string;\n}\nexport interface AnthropicToolChoiceAuto extends AnthropicToolChoiceBase {\n type: \"auto\";\n}\nexport interface AnthropicToolChoiceAny extends AnthropicToolChoiceBase {\n type: \"any\";\n}\nexport interface AnthropicToolChoiceTool extends AnthropicToolChoiceBase {\n type: \"tool\";\n name: string;\n}\nexport type AnthropicToolChoice = AnthropicToolChoiceAuto | AnthropicToolChoiceAny | AnthropicToolChoiceTool;\nexport type AnthropicToolInputSchema = object;\nexport interface AnthropicTool {\n type?: string;\n name: string;\n description?: string;\n cache_control?: AnthropicCacheControl;\n input_schema: AnthropicToolInputSchema;\n}\nexport interface AnthropicThinkingEnabled {\n type: \"enabled\";\n budget_tokens: number;\n}\nexport interface AnthropicThinkingDisabled {\n type: \"disabled\";\n}\nexport type AnthropicThinking = AnthropicThinkingEnabled | AnthropicThinkingDisabled;\nexport interface AnthropicRequest {\n anthropic_version: string;\n messages: AnthropicMessage[];\n system?: string;\n stream?: boolean;\n max_tokens: number;\n temperature?: number;\n top_k?: number;\n top_p?: number;\n stop_sequences?: string[];\n metadata?: AnthropicMetadata;\n tool_choice?: AnthropicToolChoice;\n tools?: AnthropicTool[];\n thinking?: AnthropicThinking;\n}\nexport type AnthropicRequestSettings = Pick<AnthropicRequest, \"max_tokens\" | \"temperature\" | \"top_k\" | \"top_p\" | \"stop_sequences\" | \"stream\">;\nexport interface AnthropicContentText {\n type: \"text\";\n text: string;\n}\nexport interface AnthropicContentToolUse {\n type: \"tool_use\";\n id: string;\n name: string;\n input: object;\n}\nexport interface AnthropicContentThinking {\n type: \"thinking\";\n thinking: string;\n signature: string;\n}\nexport interface AnthropicContentRedactedThinking {\n type: \"redacted_thinking\";\n data: string;\n}\nexport type AnthropicContent = AnthropicContentText | AnthropicContentToolUse | AnthropicContentThinking | AnthropicContentRedactedThinking;\nexport interface AnthropicUsage {\n input_tokens: number;\n output_tokens: number;\n cache_creation_input_tokens: number | null;\n cache_creation_output_tokens: number | null;\n cache_read_input_tokens: number | null;\n}\nexport type AnthropicResponseData = AnthropicResponseMessage | AnthropicStreamBaseEvent;\nexport interface AnthropicResponseMessage {\n id: string;\n type: string;\n role: string;\n content: AnthropicContent[];\n model: string;\n stop_reason: string | null;\n stop_sequence: string | null;\n usage: AnthropicUsage;\n}\nexport interface AnthropicAPIConfig {\n version?: string;\n thinking?: AnthropicThinking;\n}\nexport type AnthropicStreamEventType = \"message_start\" | \"content_block_start\" | \"content_block_delta\" | \"content_block_stop\" | \"message_delta\" | \"message_stop\" | \"ping\" | \"error\";\nexport type AnthropicStreamDeltaType = \"text_delta\" | \"input_json_delta\";\nexport interface AnthropicStreamBaseEvent {\n type: AnthropicStreamEventType;\n}\nexport interface AnthropicStreamMessageStartEvent extends AnthropicStreamBaseEvent {\n type: \"message_start\";\n message: AnthropicResponseMessage;\n}\nexport interface AnthropicStreamContentBlockStartEvent extends AnthropicStreamBaseEvent {\n type: \"content_block_start\";\n index: number;\n content_block: AnthropicContent;\n}\nexport interface AnthropicStreamBaseDelta {\n type: AnthropicStreamDeltaType;\n}\nexport interface AnthropicStreamTextDelta extends AnthropicStreamBaseDelta {\n type: \"text_delta\";\n text: string;\n}\nexport interface AnthropicStreamInputJsonDelta extends AnthropicStreamBaseDelta {\n type: \"input_json_delta\";\n partial_json: string;\n}\nexport type AnthropicStreamDelta = AnthropicStreamTextDelta | AnthropicStreamInputJsonDelta;\nexport interface AnthropicStreamContentBlockDeltaEvent extends AnthropicStreamBaseEvent {\n type: \"content_block_delta\";\n index: number;\n delta: AnthropicStreamDelta;\n}\nexport interface AnthropicStreamContentBlockStopEvent extends AnthropicStreamBaseEvent {\n type: \"content_block_stop\";\n index: number;\n}\nexport interface AnthropicStreamMessageDeltaEvent extends AnthropicStreamBaseEvent {\n type: \"message_delta\";\n delta: Partial<AnthropicResponseMessage>;\n}\nexport interface AnthropicStreamMessageStopEvent extends AnthropicStreamBaseEvent {\n type: \"message_stop\";\n}\nexport interface AnthropicStreamPingEvent extends AnthropicStreamBaseEvent {\n type: \"ping\";\n}\nexport interface AnthropicStreamErrorEvent extends AnthropicStreamBaseEvent {\n type: \"error\";\n error: any;\n}\nexport {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ts","names":["BaseLLMParams","BaseChatModelCallOptions","BindToolsInput","BaseMessage","BaseMessageChunk","MessageContent","ChatGenerationChunk","ChatResult","EmbeddingsParams","AsyncCallerCallOptions","JsonStream","MediaManager","AnthropicResponseData","AnthropicAPIConfig","GoogleClientParams","AuthOptions","GooglePlatformType","GoogleConnectionParams","GoogleAISafetyCategory","GoogleAISafetyThreshold","GoogleAISafetyMethod","GoogleAISafetySetting","GoogleAIResponseMimeType","GoogleAIModelModality","GoogleThinkingConfig","GooglePrebuiltVoiceName","GooglePrebuiltVoiceConfig","GoogleVoiceConfig","GoogleSpeakerVoiceConfig","GoogleMultiSpeakerVoiceConfig","GoogleSpeechConfigSingle","GoogleSpeechConfigMulti","GoogleSpeechConfig","GoogleSpeechSpeakerName","GoogleSpeechVoice","GoogleSpeechVoiceLanguage","GoogleSpeechVoicesLanguage","GoogleSpeechSimplifiedLanguage","GoogleSpeechConfigSimplified","GoogleModelParams","GoogleAIModelParams","Record","GoogleAIToolType","GeminiTool","GoogleAIModelRequestParams","GoogleAIBaseLLMInput","GoogleAISafetyParams","GoogleAIAPIParams","GoogleAIBaseLanguageModelCallOptions","GoogleBaseLLMInput","GoogleResponse","GoogleRawResponse","Blob","GeminiPartBase","GeminiVideoMetadata","GeminiPartBaseFile","GeminiPartText","GeminiPartInlineData","GeminiPartFileData","GeminiPartFunctionCall","GeminiPartFunctionResponse","GeminiPart","GeminiSafetySetting","GeminiSafetyRating","GeminiCitationMetadata","GeminiCitation","GoogleTypeDate","GeminiGroundingMetadata","GeminiSearchEntryPoint","GeminiGroundingChunk","GeminiGroundingSupport","GeminiRetrievalMetadata","GeminiGroundingChunkWeb","GeminiGroundingChunkRetrievedContext","GeminiSegment","GeminiUrlRetrievalStatus","GeminiUrlRetrievalContext","GeminiUrlRetrievalMetadata","GeminiUrlMetadata","GeminiUrlContextMetadata","GeminiLogprobsResult","GeminiLogprobsTopCandidate","GeminiLogprobsResultCandidate","GeminiRole","GeminiContent","GeminiFunctionDeclaration","GoogleSearchRetrieval","GoogleSearch","UrlContext","VertexAIRetrieval","GoogleSearchToolSetting","GeminiSearchToolAttributes","GeminiToolAttributes","GeminiFunctionSchema","GeminiFunctionSchemaType","GeminiGenerationConfig","GeminiRequest","GeminiResponseCandidate","GeminiResponsePromptFeedback","ModalityEnum","ModalityTokenCount","GenerateContentResponseUsageMetadata","GenerateContentResponseData","GoogleLLMModelFamily","VertexModelFamily","GoogleLLMResponseData","GoogleLLMResponse","GoogleAISafetyHandler","GeminiJsonSchema","GeminiJsonSchemaDirty","GoogleAIAPI","Promise","GeminiAPIConfig","GoogleAIAPIConfig","BaseGoogleEmbeddingsParams","BaseGoogleEmbeddingsOptions","GoogleEmbeddingsTaskType","VertexEmbeddingsInstance","VertexEmbeddingsParameters","VertexEmbeddingsRequest","AIStudioEmbeddingsRequest","GoogleEmbeddingsRequest","VertexEmbeddingsResponsePrediction","VertexEmbeddingsResponse","AIStudioEmbeddingsResponse","GoogleEmbeddingsResponse"],"sources":["../src/types.d.ts"],"sourcesContent":["import type { BaseLLMParams } from \"@langchain/core/language_models/llms\";\nimport type { BaseChatModelCallOptions, BindToolsInput } from \"@langchain/core/language_models/chat_models\";\nimport { BaseMessage, BaseMessageChunk, MessageContent } from \"@langchain/core/messages\";\nimport { ChatGenerationChunk, ChatResult } from \"@langchain/core/outputs\";\nimport { EmbeddingsParams } from \"@langchain/core/embeddings\";\nimport { AsyncCallerCallOptions } from \"@langchain/core/utils/async_caller\";\nimport type { JsonStream } from \"./utils/stream.js\";\nimport { MediaManager } from \"./experimental/utils/media_core.js\";\nimport { AnthropicResponseData, AnthropicAPIConfig } from \"./types-anthropic.js\";\nexport * from \"./types-anthropic.js\";\n/**\n * Parameters needed to setup the client connection.\n * AuthOptions are something like GoogleAuthOptions (from google-auth-library)\n * or WebGoogleAuthOptions.\n */\nexport interface GoogleClientParams<AuthOptions> {\n authOptions?: AuthOptions;\n /** Some APIs allow an API key instead */\n apiKey?: string;\n}\n/**\n * What platform is this running on?\n * gai - Google AI Studio / MakerSuite / Generative AI platform\n * gcp - Google Cloud Platform\n */\nexport type GooglePlatformType = \"gai\" | \"gcp\";\nexport interface GoogleConnectionParams<AuthOptions> extends GoogleClientParams<AuthOptions> {\n /** Hostname for the API call (if this is running on GCP) */\n endpoint?: string;\n /** Region where the LLM is stored (if this is running on GCP) */\n location?: string;\n /** The version of the API functions. Part of the path. */\n apiVersion?: string;\n /**\n * What platform to run the service on.\n * If not specified, the class should determine this from other\n * means. Either way, the platform actually used will be in\n * the \"platform\" getter.\n */\n platformType?: GooglePlatformType;\n /**\n * For compatibility with Google's libraries, should this use Vertex?\n * The \"platformType\" parmeter takes precedence.\n */\n vertexai?: boolean;\n}\nexport declare const GoogleAISafetyCategory: {\n readonly Harassment: \"HARM_CATEGORY_HARASSMENT\";\n readonly HARASSMENT: \"HARM_CATEGORY_HARASSMENT\";\n readonly HARM_CATEGORY_HARASSMENT: \"HARM_CATEGORY_HARASSMENT\";\n readonly HateSpeech: \"HARM_CATEGORY_HATE_SPEECH\";\n readonly HATE_SPEECH: \"HARM_CATEGORY_HATE_SPEECH\";\n readonly HARM_CATEGORY_HATE_SPEECH: \"HARM_CATEGORY_HATE_SPEECH\";\n readonly SexuallyExplicit: \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n readonly SEXUALLY_EXPLICIT: \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n readonly HARM_CATEGORY_SEXUALLY_EXPLICIT: \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n readonly Dangerous: \"HARM_CATEGORY_DANGEROUS\";\n readonly DANGEROUS: \"HARM_CATEGORY_DANGEROUS\";\n readonly HARM_CATEGORY_DANGEROUS: \"HARM_CATEGORY_DANGEROUS\";\n readonly CivicIntegrity: \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n readonly CIVIC_INTEGRITY: \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n readonly HARM_CATEGORY_CIVIC_INTEGRITY: \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n};\nexport type GoogleAISafetyCategory = (typeof GoogleAISafetyCategory)[keyof typeof GoogleAISafetyCategory];\nexport declare const GoogleAISafetyThreshold: {\n readonly None: \"BLOCK_NONE\";\n readonly NONE: \"BLOCK_NONE\";\n readonly BLOCK_NONE: \"BLOCK_NONE\";\n readonly Few: \"BLOCK_ONLY_HIGH\";\n readonly FEW: \"BLOCK_ONLY_HIGH\";\n readonly BLOCK_ONLY_HIGH: \"BLOCK_ONLY_HIGH\";\n readonly Some: \"BLOCK_MEDIUM_AND_ABOVE\";\n readonly SOME: \"BLOCK_MEDIUM_AND_ABOVE\";\n readonly BLOCK_MEDIUM_AND_ABOVE: \"BLOCK_MEDIUM_AND_ABOVE\";\n readonly Most: \"BLOCK_LOW_AND_ABOVE\";\n readonly MOST: \"BLOCK_LOW_AND_ABOVE\";\n readonly BLOCK_LOW_AND_ABOVE: \"BLOCK_LOW_AND_ABOVE\";\n readonly Off: \"OFF\";\n readonly OFF: \"OFF\";\n readonly BLOCK_OFF: \"OFF\";\n};\nexport type GoogleAISafetyThreshold = (typeof GoogleAISafetyThreshold)[keyof typeof GoogleAISafetyThreshold];\nexport declare const GoogleAISafetyMethod: {\n readonly Severity: \"SEVERITY\";\n readonly Probability: \"PROBABILITY\";\n};\nexport type GoogleAISafetyMethod = (typeof GoogleAISafetyMethod)[keyof typeof GoogleAISafetyMethod];\nexport interface GoogleAISafetySetting {\n category: GoogleAISafetyCategory | string;\n threshold: GoogleAISafetyThreshold | string;\n method?: GoogleAISafetyMethod | string;\n}\nexport type GoogleAIResponseMimeType = \"text/plain\" | \"application/json\";\nexport type GoogleAIModelModality = \"TEXT\" | \"IMAGE\" | \"AUDIO\" | string;\nexport interface GoogleThinkingConfig {\n thinkingBudget?: number;\n includeThoughts?: boolean;\n}\nexport type GooglePrebuiltVoiceName = string;\nexport interface GooglePrebuiltVoiceConfig {\n voiceName: GooglePrebuiltVoiceName;\n}\nexport interface GoogleVoiceConfig {\n prebuiltVoiceConfig: GooglePrebuiltVoiceConfig;\n}\nexport interface GoogleSpeakerVoiceConfig {\n speaker: string;\n voiceConfig: GoogleVoiceConfig;\n}\nexport interface GoogleMultiSpeakerVoiceConfig {\n speakerVoiceConfigs: GoogleSpeakerVoiceConfig[];\n}\nexport interface GoogleSpeechConfigSingle {\n voiceConfig: GoogleVoiceConfig;\n languageCode?: string;\n}\nexport interface GoogleSpeechConfigMulti {\n multiSpeakerVoiceConfig: GoogleMultiSpeakerVoiceConfig;\n languageCode?: string;\n}\nexport type GoogleSpeechConfig = GoogleSpeechConfigSingle | GoogleSpeechConfigMulti;\n/**\n * A simplified version of the GoogleSpeakerVoiceConfig\n */\nexport interface GoogleSpeechSpeakerName {\n speaker: string;\n name: GooglePrebuiltVoiceName;\n}\nexport type GoogleSpeechVoice = GooglePrebuiltVoiceName | GoogleSpeechSpeakerName | GoogleSpeechSpeakerName[];\nexport interface GoogleSpeechVoiceLanguage {\n voice: GoogleSpeechVoice;\n languageCode: string;\n}\nexport interface GoogleSpeechVoicesLanguage {\n voices: GoogleSpeechVoice;\n languageCode: string;\n}\n/**\n * A simplified way to represent the voice (or voices) and language code.\n * \"voice\" and \"voices\" are semantically the same, we're not enforcing\n * that one is an array and one isn't.\n */\nexport type GoogleSpeechSimplifiedLanguage = GoogleSpeechVoiceLanguage | GoogleSpeechVoicesLanguage;\n/**\n * A simplified way to represent the voices.\n * It can either be the voice (or voices), or the voice or voices with language configuration\n */\nexport type GoogleSpeechConfigSimplified = GoogleSpeechVoice | GoogleSpeechSimplifiedLanguage;\nexport interface GoogleModelParams {\n /** Model to use */\n model?: string;\n /**\n * Model to use\n * Alias for `model`\n */\n modelName?: string;\n}\nexport interface GoogleAIModelParams extends GoogleModelParams {\n /** Sampling temperature to use */\n temperature?: number;\n /**\n * Maximum number of tokens to generate in the completion.\n * This may include reasoning tokens (for backwards compatibility).\n */\n maxOutputTokens?: number;\n /**\n * The maximum number of the output tokens that will be used\n * for the \"thinking\" or \"reasoning\" stages.\n */\n maxReasoningTokens?: number;\n /**\n * An alias for \"maxReasoningTokens\"\n */\n thinkingBudget?: number;\n /**\n * An OpenAI compatible parameter that will map to \"maxReasoningTokens\"\n */\n reasoningEffort?: \"low\" | \"medium\" | \"high\";\n /**\n * Top-p changes how the model selects tokens for output.\n *\n * Tokens are selected from most probable to least until the sum\n * of their probabilities equals the top-p value.\n *\n * For example, if tokens A, B, and C have a probability of\n * .3, .2, and .1 and the top-p value is .5, then the model will\n * select either A or B as the next token (using temperature).\n */\n topP?: number;\n /**\n * Top-k changes how the model selects tokens for output.\n *\n * A top-k of 1 means the selected token is the most probable among\n * all tokens in the model’s vocabulary (also called greedy decoding),\n * while a top-k of 3 means that the next token is selected from\n * among the 3 most probable tokens (using temperature).\n */\n topK?: number;\n /**\n * Seed used in decoding. If not set, the request uses a randomly generated seed.\n */\n seed?: number;\n /**\n * Presence penalty applied to the next token's logprobs\n * if the token has already been seen in the response.\n * This penalty is binary on/off and not dependant on the\n * number of times the token is used (after the first).\n * Use frequencyPenalty for a penalty that increases with each use.\n * A positive penalty will discourage the use of tokens that have\n * already been used in the response, increasing the vocabulary.\n * A negative penalty will encourage the use of tokens that have\n * already been used in the response, decreasing the vocabulary.\n */\n presencePenalty?: number;\n /**\n * Frequency penalty applied to the next token's logprobs,\n * multiplied by the number of times each token has been seen\n * in the respponse so far.\n * A positive penalty will discourage the use of tokens that\n * have already been used, proportional to the number of times\n * the token has been used:\n * The more a token is used, the more dificult it is for the model\n * to use that token again increasing the vocabulary of responses.\n * Caution: A _negative_ penalty will encourage the model to reuse\n * tokens proportional to the number of times the token has been used.\n * Small negative values will reduce the vocabulary of a response.\n * Larger negative values will cause the model to start repeating\n * a common token until it hits the maxOutputTokens limit.\n */\n frequencyPenalty?: number;\n stopSequences?: string[];\n safetySettings?: GoogleAISafetySetting[];\n convertSystemMessageToHumanContent?: boolean;\n /**\n * Available for `gemini-1.5-pro`.\n * The output format of the generated candidate text.\n * Supported MIME types:\n * - `text/plain`: Text output.\n * - `application/json`: JSON response in the candidates.\n *\n * @default \"text/plain\"\n */\n responseMimeType?: GoogleAIResponseMimeType;\n /**\n * Whether or not to stream.\n * @default false\n */\n streaming?: boolean;\n /**\n * Whether to return log probabilities of the output tokens or not.\n * If true, returns the log probabilities of each output token\n * returned in the content of message.\n */\n logprobs?: boolean;\n /**\n * An integer between 0 and 5 specifying the number of\n * most likely tokens to return at each token position,\n * each with an associated log probability.\n * logprobs must be set to true if this parameter is used.\n */\n topLogprobs?: number;\n /**\n * The modalities of the response.\n */\n responseModalities?: GoogleAIModelModality[];\n /**\n * Custom metadata labels to associate with the request.\n * Only supported on Vertex AI (Google Cloud Platform).\n * Labels are key-value pairs where both keys and values must be strings.\n *\n * Example:\n * ```typescript\n * {\n * labels: {\n * \"team\": \"research\",\n * \"component\": \"frontend\",\n * \"environment\": \"production\"\n * }\n * }\n * ```\n */\n labels?: Record<string, string>;\n /**\n * Speech generation configuration.\n * You can use either Google's definition of the speech configuration,\n * or a simplified version we've defined (which can be as simple\n * as the name of a pre-defined voice).\n */\n speechConfig?: GoogleSpeechConfig | GoogleSpeechConfigSimplified;\n}\nexport type GoogleAIToolType = BindToolsInput | GeminiTool;\n/**\n * The params which can be passed to the API at request time.\n */\nexport interface GoogleAIModelRequestParams extends GoogleAIModelParams {\n tools?: GoogleAIToolType[];\n /**\n * Force the model to use tools in a specific way.\n *\n * | Mode |\tDescription |\n * |----------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n * | \"auto\"\t | The default model behavior. The model decides whether to predict a function call or a natural language response. |\n * | \"any\"\t | The model must predict only function calls. To limit the model to a subset of functions, define the allowed function names in `allowed_function_names`. |\n * | \"none\"\t | The model must not predict function calls. This behavior is equivalent to a model request without any associated function declarations. |\n * | string | The string value must be one of the function names. This will force the model to predict the specified function call. |\n *\n * The tool configuration's \"any\" mode (\"forced function calling\") is supported for Gemini 1.5 Pro models only.\n */\n tool_choice?: string | \"auto\" | \"any\" | \"none\" | Record<string, any>;\n /**\n * Allowed functions to call when the mode is \"any\".\n * If empty, any one of the provided functions are called.\n */\n allowed_function_names?: string[];\n /**\n * Used to specify a previously created context cache to use with generation.\n * For Vertex, this should be of the form:\n * \"projects/PROJECT_NUMBER/locations/LOCATION/cachedContents/CACHE_ID\",\n *\n * See these guides for more information on how to use context caching:\n * https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-create\n * https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-use\n */\n cachedContent?: string;\n}\nexport interface GoogleAIBaseLLMInput<AuthOptions> extends BaseLLMParams, GoogleConnectionParams<AuthOptions>, GoogleAIModelParams, GoogleAISafetyParams, GoogleAIAPIParams {\n}\nexport interface GoogleAIBaseLanguageModelCallOptions extends BaseChatModelCallOptions, GoogleAIModelRequestParams, GoogleAISafetyParams {\n /**\n * Whether or not to include usage data, like token counts\n * in the streamed response chunks.\n * @default true\n */\n streamUsage?: boolean;\n}\n/**\n * Input to LLM class.\n */\nexport interface GoogleBaseLLMInput<AuthOptions> extends GoogleAIBaseLLMInput<AuthOptions> {\n}\nexport interface GoogleResponse {\n data: any;\n}\nexport interface GoogleRawResponse extends GoogleResponse {\n data: Blob;\n}\nexport interface GeminiPartBase {\n thought?: boolean;\n thoughtSignature?: string;\n}\nexport interface GeminiVideoMetadata {\n fps?: number;\n startOffset?: string;\n endOffset?: string;\n}\nexport interface GeminiPartBaseFile extends GeminiPartBase {\n videoMetadata?: GeminiVideoMetadata;\n}\nexport interface GeminiPartText extends GeminiPartBase {\n text: string;\n}\nexport interface GeminiPartInlineData extends GeminiPartBaseFile {\n inlineData: {\n mimeType: string;\n data: string;\n };\n}\nexport interface GeminiPartFileData extends GeminiPartBaseFile {\n fileData: {\n mimeType: string;\n fileUri: string;\n };\n}\nexport interface GeminiPartFunctionCall extends GeminiPartBase {\n functionCall: {\n name: string;\n args?: object;\n };\n}\nexport interface GeminiPartFunctionResponse extends GeminiPartBase {\n functionResponse: {\n name: string;\n response: object;\n };\n}\nexport type GeminiPart = GeminiPartText | GeminiPartInlineData | GeminiPartFileData | GeminiPartFunctionCall | GeminiPartFunctionResponse;\nexport interface GeminiSafetySetting {\n category: string;\n threshold: string;\n}\nexport type GeminiSafetyRating = {\n category: string;\n probability: string;\n} & Record<string, unknown>;\nexport interface GeminiCitationMetadata {\n citations: GeminiCitation[];\n}\nexport interface GeminiCitation {\n startIndex: number;\n endIndex: number;\n uri: string;\n title: string;\n license: string;\n publicationDate: GoogleTypeDate;\n}\nexport interface GoogleTypeDate {\n year: number;\n month: number;\n day: number;\n}\nexport interface GeminiGroundingMetadata {\n webSearchQueries?: string[];\n searchEntryPoint?: GeminiSearchEntryPoint;\n groundingChunks: GeminiGroundingChunk[];\n groundingSupports?: GeminiGroundingSupport[];\n retrievalMetadata?: GeminiRetrievalMetadata;\n}\nexport interface GeminiSearchEntryPoint {\n renderedContent?: string;\n sdkBlob?: string;\n}\nexport interface GeminiGroundingChunk {\n web: GeminiGroundingChunkWeb;\n retrievedContext: GeminiGroundingChunkRetrievedContext;\n}\nexport interface GeminiGroundingChunkWeb {\n uri: string;\n title: string;\n}\nexport interface GeminiGroundingChunkRetrievedContext {\n uri: string;\n title: string;\n text: string;\n}\nexport interface GeminiGroundingSupport {\n segment: GeminiSegment;\n groundingChunkIndices: number[];\n confidenceScores: number[];\n}\nexport interface GeminiSegment {\n partIndex: number;\n startIndex: number;\n endIndex: number;\n text: string;\n}\nexport interface GeminiRetrievalMetadata {\n googleSearchDynamicRetrievalScore: number;\n}\nexport type GeminiUrlRetrievalStatus = \"URL_RETRIEVAL_STATUS_SUCCESS\" | \"URL_RETRIEVAL_STATUS_ERROR\";\nexport interface GeminiUrlRetrievalContext {\n retrievedUrl: string;\n urlRetrievalStatus: GeminiUrlRetrievalStatus;\n}\nexport interface GeminiUrlRetrievalMetadata {\n urlRetrievalContexts: GeminiUrlRetrievalContext[];\n}\nexport type GeminiUrlMetadata = GeminiUrlRetrievalContext;\nexport interface GeminiUrlContextMetadata {\n urlMetadata: GeminiUrlMetadata[];\n}\nexport interface GeminiLogprobsResult {\n topCandidates: GeminiLogprobsTopCandidate[];\n chosenCandidates: GeminiLogprobsResultCandidate[];\n}\nexport interface GeminiLogprobsTopCandidate {\n candidates: GeminiLogprobsResultCandidate[];\n}\nexport interface GeminiLogprobsResultCandidate {\n token: string;\n tokenId: number;\n logProbability: number;\n}\nexport type GeminiRole = \"system\" | \"user\" | \"model\" | \"function\";\nexport interface GeminiContent {\n parts: GeminiPart[];\n role: GeminiRole;\n}\nexport interface GeminiTool {\n functionDeclarations?: GeminiFunctionDeclaration[];\n googleSearchRetrieval?: GoogleSearchRetrieval;\n googleSearch?: GoogleSearch;\n urlContext?: UrlContext;\n retrieval?: VertexAIRetrieval;\n}\nexport type GoogleSearchToolSetting = boolean | \"googleSearchRetrieval\" | \"googleSearch\" | string;\nexport declare const GeminiSearchToolAttributes: string[];\nexport declare const GeminiToolAttributes: string[];\nexport interface GoogleSearchRetrieval {\n dynamicRetrievalConfig?: {\n mode?: string;\n dynamicThreshold?: number;\n };\n}\nexport interface GoogleSearch {\n}\nexport interface UrlContext {\n}\nexport interface VertexAIRetrieval {\n vertexAiSearch: {\n datastore: string;\n };\n disableAttribution?: boolean;\n}\nexport interface GeminiFunctionDeclaration {\n name: string;\n description: string;\n parameters?: GeminiFunctionSchema;\n}\nexport interface GeminiFunctionSchema {\n type: GeminiFunctionSchemaType;\n format?: string;\n description?: string;\n nullable?: boolean;\n enum?: string[];\n properties?: Record<string, GeminiFunctionSchema>;\n required?: string[];\n items?: GeminiFunctionSchema;\n}\nexport type GeminiFunctionSchemaType = \"string\" | \"number\" | \"integer\" | \"boolean\" | \"array\" | \"object\";\nexport interface GeminiGenerationConfig {\n stopSequences?: string[];\n candidateCount?: number;\n maxOutputTokens?: number;\n temperature?: number;\n topP?: number;\n topK?: number;\n seed?: number;\n presencePenalty?: number;\n frequencyPenalty?: number;\n responseMimeType?: GoogleAIResponseMimeType;\n responseLogprobs?: boolean;\n logprobs?: number;\n responseModalities?: GoogleAIModelModality[];\n thinkingConfig?: GoogleThinkingConfig;\n speechConfig?: GoogleSpeechConfig;\n}\nexport interface GeminiRequest {\n contents?: GeminiContent[];\n systemInstruction?: GeminiContent;\n tools?: GeminiTool[];\n toolConfig?: {\n functionCallingConfig: {\n mode: \"auto\" | \"any\" | \"none\";\n allowedFunctionNames?: string[];\n };\n };\n safetySettings?: GeminiSafetySetting[];\n generationConfig?: GeminiGenerationConfig;\n cachedContent?: string;\n /**\n * Custom metadata labels to associate with the API call.\n */\n labels?: Record<string, string>;\n}\nexport interface GeminiResponseCandidate {\n content: {\n parts: GeminiPart[];\n role: string;\n };\n finishReason: string;\n index: number;\n tokenCount?: number;\n safetyRatings: GeminiSafetyRating[];\n citationMetadata?: GeminiCitationMetadata;\n groundingMetadata?: GeminiGroundingMetadata;\n urlRetrievalMetadata?: GeminiUrlRetrievalMetadata;\n urlContextMetadata?: GeminiUrlContextMetadata;\n avgLogprobs?: number;\n logprobsResult: GeminiLogprobsResult;\n finishMessage?: string;\n}\ninterface GeminiResponsePromptFeedback {\n blockReason?: string;\n safetyRatings: GeminiSafetyRating[];\n}\nexport type ModalityEnum = \"TEXT\" | \"IMAGE\" | \"VIDEO\" | \"AUDIO\" | \"DOCUMENT\" | string;\nexport interface ModalityTokenCount {\n modality: ModalityEnum;\n tokenCount: number;\n}\nexport interface GenerateContentResponseUsageMetadata {\n promptTokenCount: number;\n toolUsePromptTokenCount: number;\n cachedContentTokenCount: number;\n thoughtsTokenCount: number;\n candidatesTokenCount: number;\n totalTokenCount: number;\n promptTokensDetails: ModalityTokenCount[];\n toolUsePromptTokensDetails: ModalityTokenCount[];\n cacheTokensDetails: ModalityTokenCount[];\n candidatesTokensDetails: ModalityTokenCount[];\n [key: string]: unknown;\n}\nexport interface GenerateContentResponseData {\n candidates: GeminiResponseCandidate[];\n promptFeedback: GeminiResponsePromptFeedback;\n usageMetadata: GenerateContentResponseUsageMetadata;\n}\nexport type GoogleLLMModelFamily = null | \"palm\" | \"gemini\" | \"gemma\";\nexport type VertexModelFamily = GoogleLLMModelFamily | \"claude\";\nexport type GoogleLLMResponseData = JsonStream | GenerateContentResponseData | GenerateContentResponseData[];\nexport interface GoogleLLMResponse extends GoogleResponse {\n data: GoogleLLMResponseData | AnthropicResponseData;\n}\nexport interface GoogleAISafetyHandler {\n /**\n * A function that will take a response and return the, possibly modified,\n * response or throw an exception if there are safety issues.\n *\n * @throws GoogleAISafetyError\n */\n handle(response: GoogleLLMResponse): GoogleLLMResponse;\n}\nexport interface GoogleAISafetyParams {\n safetyHandler?: GoogleAISafetyHandler;\n}\nexport type GeminiJsonSchema = Record<string, unknown> & {\n properties?: Record<string, GeminiJsonSchema>;\n type: GeminiFunctionSchemaType;\n nullable?: boolean;\n};\nexport interface GeminiJsonSchemaDirty extends GeminiJsonSchema {\n items?: GeminiJsonSchemaDirty;\n properties?: Record<string, GeminiJsonSchemaDirty>;\n additionalProperties?: boolean;\n}\nexport type GoogleAIAPI = {\n messageContentToParts?: (content: MessageContent) => Promise<GeminiPart[]>;\n baseMessageToContent?: (message: BaseMessage, prevMessage: BaseMessage | undefined, useSystemInstruction: boolean) => Promise<GeminiContent[]>;\n responseToString: (response: GoogleLLMResponse) => string;\n responseToChatGeneration: (response: GoogleLLMResponse) => ChatGenerationChunk | null;\n chunkToString: (chunk: BaseMessageChunk) => string;\n responseToBaseMessage: (response: GoogleLLMResponse) => BaseMessage;\n responseToChatResult: (response: GoogleLLMResponse) => ChatResult;\n formatData: (input: unknown, parameters: GoogleAIModelRequestParams) => Promise<unknown>;\n};\nexport interface GeminiAPIConfig {\n safetyHandler?: GoogleAISafetyHandler;\n mediaManager?: MediaManager;\n useSystemInstruction?: boolean;\n /**\n * How to handle the Google Search tool, since the name (and format)\n * of the tool changes between Gemini 1.5 and Gemini 2.0.\n * true - Change based on the model version. (Default)\n * false - Do not change the tool name provided\n * string value - Use this as the attribute name for the search\n * tool, adapting any tool attributes if possible.\n * When the model is created, a \"true\" or default setting\n * will be changed to a string based on the model.\n */\n googleSearchToolAdjustment?: GoogleSearchToolSetting;\n}\nexport type GoogleAIAPIConfig = GeminiAPIConfig | AnthropicAPIConfig;\nexport interface GoogleAIAPIParams {\n apiName?: string;\n apiConfig?: GoogleAIAPIConfig;\n}\n/**\n * Defines the parameters required to initialize a\n * GoogleEmbeddings instance. It extends EmbeddingsParams and\n * GoogleConnectionParams.\n */\nexport interface BaseGoogleEmbeddingsParams<AuthOptions> extends EmbeddingsParams, GoogleConnectionParams<AuthOptions> {\n model: string;\n /**\n * Used to specify output embedding size.\n * If set, output embeddings will be truncated to the size specified.\n */\n dimensions?: number;\n /**\n * An alias for \"dimensions\"\n */\n outputDimensionality?: number;\n}\n/**\n * Defines additional options specific to the\n * GoogleEmbeddingsInstance. It extends AsyncCallerCallOptions.\n */\nexport interface BaseGoogleEmbeddingsOptions extends AsyncCallerCallOptions {\n}\nexport type GoogleEmbeddingsTaskType = \"RETRIEVAL_QUERY\" | \"RETRIEVAL_DOCUMENT\" | \"SEMANTIC_SIMILARITY\" | \"CLASSIFICATION\" | \"CLUSTERING\" | \"QUESTION_ANSWERING\" | \"FACT_VERIFICATION\" | \"CODE_RETRIEVAL_QUERY\" | string;\n/**\n * Represents an instance for generating embeddings using the Google\n * Vertex AI API. It contains the content to be embedded.\n */\nexport interface VertexEmbeddingsInstance {\n content: string;\n taskType?: GoogleEmbeddingsTaskType;\n title?: string;\n}\nexport interface VertexEmbeddingsParameters extends GoogleModelParams {\n autoTruncate?: boolean;\n outputDimensionality?: number;\n}\nexport interface VertexEmbeddingsRequest {\n instances: VertexEmbeddingsInstance[];\n parameters?: VertexEmbeddingsParameters;\n}\nexport interface AIStudioEmbeddingsRequest {\n content: {\n parts: GeminiPartText[];\n };\n model?: string;\n taskType?: GoogleEmbeddingsTaskType;\n title?: string;\n outputDimensionality?: number;\n}\nexport type GoogleEmbeddingsRequest = VertexEmbeddingsRequest | AIStudioEmbeddingsRequest;\nexport interface VertexEmbeddingsResponsePrediction {\n embeddings: {\n statistics: {\n token_count: number;\n truncated: boolean;\n };\n values: number[];\n };\n}\n/**\n * Defines the structure of the embeddings results returned by the Google\n * Vertex AI API. It extends GoogleBasePrediction and contains the\n * embeddings and their statistics.\n */\nexport interface VertexEmbeddingsResponse extends GoogleResponse {\n data: {\n predictions: VertexEmbeddingsResponsePrediction[];\n };\n}\nexport interface AIStudioEmbeddingsResponse extends GoogleResponse {\n data: {\n embedding: {\n values: number[];\n };\n };\n}\nexport type GoogleEmbeddingsResponse = VertexEmbeddingsResponse | AIStudioEmbeddingsResponse;\n//# sourceMappingURL=types.d.ts.map"],"mappings":";;;;;;;;;;;;;AAeA;AAUA;AACA;;AAamBgB,UAxBFF,kBAwBEE,CAAAA,WAAAA,CAAAA,CAAAA;EAb0CF,WAAAA,CAAAA,EAV3CC,WAU2CD;EAAkB;EAoB1DI,MAAAA,CAAAA,EAAAA,MAAAA;AAiBrB;AACA;AAiBA;AACA;AAIA;AACA;AACcA,KA/DFF,kBAAAA,GA+DEE,KAAAA,GAAAA,KAAAA;AACCC,UA/DEF,sBA+DFE,CAAAA,WAAAA,CAAAA,SA/D8CL,kBA+D9CK,CA/DiEJ,WA+DjEI,CAAAA,CAAAA;EACFC;EAAoB,QAAA,CAAA,EAAA,MAAA;EAErBE;EACAC,QAAAA,CAAAA,EAAAA,MAAAA;EACKC;EAILC,UAAAA,CAAAA,EAAAA,MAAAA;EACKC;AAGjB;AAGA;AAIA;AAGA;AAIA;EAIYM,YAAAA,CAAAA,EAjFOhB,kBAiFcc;EAIhBG;AAIjB;;;EAAoFA,QAAAA,CAAAA,EAAAA,OAAAA;AAAuB;AAC1FE,cAnFIjB,sBAmFqB,EAC/BgB;EAGME,SAAAA,UAAAA,EAAAA,0BACLF;EAQAG,SAAAA,UAAAA,EAAAA,0BAAiCF;EAKjCG,SAAAA,wBAA4B,EAAA,0BAAGJ;EAC1BK,SAAAA,UAAAA,EAAiB,2BAAA;EASjBC,SAAAA,W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,oBAAAA;KACAC,iBAAAA,GAAoBD;KACpBE,qBAAAA,GAAwB/F,aAAa4F,8BAA8BA;UAC9DI,iBAAAA,SAA0BxD;QACjCuD,wBAAwB7F;;UAEjB+F,qBAAAA;;;;;;;mBAOID,oBAAoBA;;UAExB5D,oBAAAA;kBACG6D;;KAERC,gBAAAA,GAAmBnE;eACdA,eAAemE;QACtBd;;;UAGOe,qBAAAA,SAA8BD;UACnCC;eACKpE,eAAeoE;;;KAGpBC,WAAAA;oCAC0BzG,mBAAmB0G,QAAQlD;mCAC5B1D,0BAA0BA,2DAA2D4G,QAAQ3B;+BACjGsB;uCACQA,sBAAsBpG;yBACpCF;oCACWsG,sBAAsBvG;mCACvBuG,sBAAsBnG;2CACdqC,+BAA+BmE;;UAE3DC,eAAAA;kBACGL;iBACDhG;;;;;;;;;;;;+BAYc+E;;KAErBuB,iBAAAA,GAAoBD,kBAAkBnG;UACjCkC,iBAAAA;;cAEDkE;;;;;;;UAOCC,gDAAgD1G,kBAAkBS,uBAAuBF;;;;;;;;;;;;;;;;UAgBzFoG,2BAAAA,SAAoC1G;KAEzC2G,wBAAAA;;;;;UAKKC,wBAAAA;;aAEFD;;;UAGEE,0BAAAA,SAAmC/E;;;;UAInCgF,uBAAAA;aACFF;eACEC;;UAEAE,yBAAAA;;WAEFhE;;;aAGA4D;;;;KAIHK,uBAAAA,GAA0BF,0BAA0BC;UAC/CE,kCAAAA;;;;;;;;;;;;;;UAcAC,wBAAAA,SAAiCzE;;iBAE7BwE;;;UAGJE,0BAAAA,SAAmC1E;;;;;;;KAOxC2E,wBAAAA,GAA2BF,2BAA2BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":["BaseLLMParams","BaseChatModelCallOptions","BindToolsInput","BaseMessage","BaseMessageChunk","MessageContent","ChatGenerationChunk","ChatResult","EmbeddingsParams","AsyncCallerCallOptions","JsonStream","MediaManager","AnthropicResponseData","AnthropicAPIConfig","GoogleClientParams","AuthOptions","GooglePlatformType","GoogleConnectionParams","GoogleAISafetyCategory","GoogleAISafetyThreshold","GoogleAISafetyMethod","GoogleAISafetySetting","GoogleAIResponseMimeType","GoogleAIModelModality","GoogleThinkingConfig","GooglePrebuiltVoiceName","GooglePrebuiltVoiceConfig","GoogleVoiceConfig","GoogleSpeakerVoiceConfig","GoogleMultiSpeakerVoiceConfig","GoogleSpeechConfigSingle","GoogleSpeechConfigMulti","GoogleSpeechConfig","GoogleSpeechSpeakerName","GoogleSpeechVoice","GoogleSpeechVoiceLanguage","GoogleSpeechVoicesLanguage","GoogleSpeechSimplifiedLanguage","GoogleSpeechConfigSimplified","GoogleModelParams","GoogleAIModelParams","Record","GoogleAIToolType","GeminiTool","GoogleAIModelRequestParams","GoogleAIBaseLLMInput","GoogleAISafetyParams","GoogleAIAPIParams","GoogleAIBaseLanguageModelCallOptions","GoogleBaseLLMInput","GoogleResponse","GoogleRawResponse","Blob","GeminiPartBase","GeminiVideoMetadata","GeminiPartBaseFile","GeminiPartText","GeminiPartInlineData","GeminiPartFileData","GeminiPartFunctionCall","GeminiPartFunctionResponse","GeminiPart","GeminiSafetySetting","GeminiSafetyRating","GeminiCitationMetadata","GeminiCitation","GoogleTypeDate","GeminiGroundingMetadata","GeminiSearchEntryPoint","GeminiGroundingChunk","GeminiGroundingSupport","GeminiRetrievalMetadata","GeminiGroundingChunkWeb","GeminiGroundingChunkRetrievedContext","GeminiSegment","GeminiUrlRetrievalStatus","GeminiUrlRetrievalContext","GeminiUrlRetrievalMetadata","GeminiUrlMetadata","GeminiUrlContextMetadata","GeminiLogprobsResult","GeminiLogprobsTopCandidate","GeminiLogprobsResultCandidate","GeminiRole","GeminiContent","GeminiFunctionDeclaration","GoogleSearchRetrieval","GoogleSearch","UrlContext","VertexAIRetrieval","GoogleSearchToolSetting","GeminiSearchToolAttributes","GeminiToolAttributes","GeminiFunctionSchema","GeminiFunctionSchemaType","GeminiGenerationConfig","GeminiRequest","GeminiResponseCandidate","GeminiResponsePromptFeedback","ModalityEnum","ModalityTokenCount","GenerateContentResponseUsageMetadata","GenerateContentResponseData","GoogleLLMModelFamily","VertexModelFamily","GoogleLLMResponseData","GoogleLLMResponse","GoogleAISafetyHandler","GeminiJsonSchema","GeminiJsonSchemaDirty","GoogleAIAPI","Promise","GeminiAPIConfig","GoogleAIAPIConfig","BaseGoogleEmbeddingsParams","BaseGoogleEmbeddingsOptions","GoogleEmbeddingsTaskType","VertexEmbeddingsInstance","VertexEmbeddingsParameters","VertexEmbeddingsRequest","AIStudioEmbeddingsRequest","GoogleEmbeddingsRequest","VertexEmbeddingsResponsePrediction","VertexEmbeddingsResponse","AIStudioEmbeddingsResponse","GoogleEmbeddingsResponse"],"sources":["../src/types.d.ts"],"sourcesContent":["import type { BaseLLMParams } from \"@langchain/core/language_models/llms\";\nimport type { BaseChatModelCallOptions, BindToolsInput } from \"@langchain/core/language_models/chat_models\";\nimport { BaseMessage, BaseMessageChunk, MessageContent } from \"@langchain/core/messages\";\nimport { ChatGenerationChunk, ChatResult } from \"@langchain/core/outputs\";\nimport { EmbeddingsParams } from \"@langchain/core/embeddings\";\nimport { AsyncCallerCallOptions } from \"@langchain/core/utils/async_caller\";\nimport type { JsonStream } from \"./utils/stream.js\";\nimport { MediaManager } from \"./experimental/utils/media_core.js\";\nimport { AnthropicResponseData, AnthropicAPIConfig } from \"./types-anthropic.js\";\nexport * from \"./types-anthropic.js\";\n/**\n * Parameters needed to setup the client connection.\n * AuthOptions are something like GoogleAuthOptions (from google-auth-library)\n * or WebGoogleAuthOptions.\n */\nexport interface GoogleClientParams<AuthOptions> {\n authOptions?: AuthOptions;\n /** Some APIs allow an API key instead */\n apiKey?: string;\n}\n/**\n * What platform is this running on?\n * gai - Google AI Studio / MakerSuite / Generative AI platform\n * gcp - Google Cloud Platform\n */\nexport type GooglePlatformType = \"gai\" | \"gcp\";\nexport interface GoogleConnectionParams<AuthOptions> extends GoogleClientParams<AuthOptions> {\n /** Hostname for the API call (if this is running on GCP) */\n endpoint?: string;\n /** Region where the LLM is stored (if this is running on GCP) */\n location?: string;\n /** The version of the API functions. Part of the path. */\n apiVersion?: string;\n /**\n * What platform to run the service on.\n * If not specified, the class should determine this from other\n * means. Either way, the platform actually used will be in\n * the \"platform\" getter.\n */\n platformType?: GooglePlatformType;\n /**\n * For compatibility with Google's libraries, should this use Vertex?\n * The \"platformType\" parmeter takes precedence.\n */\n vertexai?: boolean;\n}\nexport declare const GoogleAISafetyCategory: {\n readonly Harassment: \"HARM_CATEGORY_HARASSMENT\";\n readonly HARASSMENT: \"HARM_CATEGORY_HARASSMENT\";\n readonly HARM_CATEGORY_HARASSMENT: \"HARM_CATEGORY_HARASSMENT\";\n readonly HateSpeech: \"HARM_CATEGORY_HATE_SPEECH\";\n readonly HATE_SPEECH: \"HARM_CATEGORY_HATE_SPEECH\";\n readonly HARM_CATEGORY_HATE_SPEECH: \"HARM_CATEGORY_HATE_SPEECH\";\n readonly SexuallyExplicit: \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n readonly SEXUALLY_EXPLICIT: \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n readonly HARM_CATEGORY_SEXUALLY_EXPLICIT: \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n readonly Dangerous: \"HARM_CATEGORY_DANGEROUS\";\n readonly DANGEROUS: \"HARM_CATEGORY_DANGEROUS\";\n readonly HARM_CATEGORY_DANGEROUS: \"HARM_CATEGORY_DANGEROUS\";\n readonly CivicIntegrity: \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n readonly CIVIC_INTEGRITY: \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n readonly HARM_CATEGORY_CIVIC_INTEGRITY: \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n};\nexport type GoogleAISafetyCategory = (typeof GoogleAISafetyCategory)[keyof typeof GoogleAISafetyCategory];\nexport declare const GoogleAISafetyThreshold: {\n readonly None: \"BLOCK_NONE\";\n readonly NONE: \"BLOCK_NONE\";\n readonly BLOCK_NONE: \"BLOCK_NONE\";\n readonly Few: \"BLOCK_ONLY_HIGH\";\n readonly FEW: \"BLOCK_ONLY_HIGH\";\n readonly BLOCK_ONLY_HIGH: \"BLOCK_ONLY_HIGH\";\n readonly Some: \"BLOCK_MEDIUM_AND_ABOVE\";\n readonly SOME: \"BLOCK_MEDIUM_AND_ABOVE\";\n readonly BLOCK_MEDIUM_AND_ABOVE: \"BLOCK_MEDIUM_AND_ABOVE\";\n readonly Most: \"BLOCK_LOW_AND_ABOVE\";\n readonly MOST: \"BLOCK_LOW_AND_ABOVE\";\n readonly BLOCK_LOW_AND_ABOVE: \"BLOCK_LOW_AND_ABOVE\";\n readonly Off: \"OFF\";\n readonly OFF: \"OFF\";\n readonly BLOCK_OFF: \"OFF\";\n};\nexport type GoogleAISafetyThreshold = (typeof GoogleAISafetyThreshold)[keyof typeof GoogleAISafetyThreshold];\nexport declare const GoogleAISafetyMethod: {\n readonly Severity: \"SEVERITY\";\n readonly Probability: \"PROBABILITY\";\n};\nexport type GoogleAISafetyMethod = (typeof GoogleAISafetyMethod)[keyof typeof GoogleAISafetyMethod];\nexport interface GoogleAISafetySetting {\n category: GoogleAISafetyCategory | string;\n threshold: GoogleAISafetyThreshold | string;\n method?: GoogleAISafetyMethod | string;\n}\nexport type GoogleAIResponseMimeType = \"text/plain\" | \"application/json\";\nexport type GoogleAIModelModality = \"TEXT\" | \"IMAGE\" | \"AUDIO\" | string;\nexport interface GoogleThinkingConfig {\n thinkingBudget?: number;\n includeThoughts?: boolean;\n}\nexport type GooglePrebuiltVoiceName = string;\nexport interface GooglePrebuiltVoiceConfig {\n voiceName: GooglePrebuiltVoiceName;\n}\nexport interface GoogleVoiceConfig {\n prebuiltVoiceConfig: GooglePrebuiltVoiceConfig;\n}\nexport interface GoogleSpeakerVoiceConfig {\n speaker: string;\n voiceConfig: GoogleVoiceConfig;\n}\nexport interface GoogleMultiSpeakerVoiceConfig {\n speakerVoiceConfigs: GoogleSpeakerVoiceConfig[];\n}\nexport interface GoogleSpeechConfigSingle {\n voiceConfig: GoogleVoiceConfig;\n languageCode?: string;\n}\nexport interface GoogleSpeechConfigMulti {\n multiSpeakerVoiceConfig: GoogleMultiSpeakerVoiceConfig;\n languageCode?: string;\n}\nexport type GoogleSpeechConfig = GoogleSpeechConfigSingle | GoogleSpeechConfigMulti;\n/**\n * A simplified version of the GoogleSpeakerVoiceConfig\n */\nexport interface GoogleSpeechSpeakerName {\n speaker: string;\n name: GooglePrebuiltVoiceName;\n}\nexport type GoogleSpeechVoice = GooglePrebuiltVoiceName | GoogleSpeechSpeakerName | GoogleSpeechSpeakerName[];\nexport interface GoogleSpeechVoiceLanguage {\n voice: GoogleSpeechVoice;\n languageCode: string;\n}\nexport interface GoogleSpeechVoicesLanguage {\n voices: GoogleSpeechVoice;\n languageCode: string;\n}\n/**\n * A simplified way to represent the voice (or voices) and language code.\n * \"voice\" and \"voices\" are semantically the same, we're not enforcing\n * that one is an array and one isn't.\n */\nexport type GoogleSpeechSimplifiedLanguage = GoogleSpeechVoiceLanguage | GoogleSpeechVoicesLanguage;\n/**\n * A simplified way to represent the voices.\n * It can either be the voice (or voices), or the voice or voices with language configuration\n */\nexport type GoogleSpeechConfigSimplified = GoogleSpeechVoice | GoogleSpeechSimplifiedLanguage;\nexport interface GoogleModelParams {\n /** Model to use */\n model?: string;\n /**\n * Model to use\n * Alias for `model`\n */\n modelName?: string;\n}\nexport interface GoogleAIModelParams extends GoogleModelParams {\n /** Sampling temperature to use */\n temperature?: number;\n /**\n * Maximum number of tokens to generate in the completion.\n * This may include reasoning tokens (for backwards compatibility).\n */\n maxOutputTokens?: number;\n /**\n * The maximum number of the output tokens that will be used\n * for the \"thinking\" or \"reasoning\" stages.\n */\n maxReasoningTokens?: number;\n /**\n * An alias for \"maxReasoningTokens\"\n */\n thinkingBudget?: number;\n /**\n * An OpenAI compatible parameter that will map to \"maxReasoningTokens\"\n */\n reasoningEffort?: \"low\" | \"medium\" | \"high\";\n /**\n * Top-p changes how the model selects tokens for output.\n *\n * Tokens are selected from most probable to least until the sum\n * of their probabilities equals the top-p value.\n *\n * For example, if tokens A, B, and C have a probability of\n * .3, .2, and .1 and the top-p value is .5, then the model will\n * select either A or B as the next token (using temperature).\n */\n topP?: number;\n /**\n * Top-k changes how the model selects tokens for output.\n *\n * A top-k of 1 means the selected token is the most probable among\n * all tokens in the model’s vocabulary (also called greedy decoding),\n * while a top-k of 3 means that the next token is selected from\n * among the 3 most probable tokens (using temperature).\n */\n topK?: number;\n /**\n * Seed used in decoding. If not set, the request uses a randomly generated seed.\n */\n seed?: number;\n /**\n * Presence penalty applied to the next token's logprobs\n * if the token has already been seen in the response.\n * This penalty is binary on/off and not dependant on the\n * number of times the token is used (after the first).\n * Use frequencyPenalty for a penalty that increases with each use.\n * A positive penalty will discourage the use of tokens that have\n * already been used in the response, increasing the vocabulary.\n * A negative penalty will encourage the use of tokens that have\n * already been used in the response, decreasing the vocabulary.\n */\n presencePenalty?: number;\n /**\n * Frequency penalty applied to the next token's logprobs,\n * multiplied by the number of times each token has been seen\n * in the respponse so far.\n * A positive penalty will discourage the use of tokens that\n * have already been used, proportional to the number of times\n * the token has been used:\n * The more a token is used, the more dificult it is for the model\n * to use that token again increasing the vocabulary of responses.\n * Caution: A _negative_ penalty will encourage the model to reuse\n * tokens proportional to the number of times the token has been used.\n * Small negative values will reduce the vocabulary of a response.\n * Larger negative values will cause the model to start repeating\n * a common token until it hits the maxOutputTokens limit.\n */\n frequencyPenalty?: number;\n stopSequences?: string[];\n safetySettings?: GoogleAISafetySetting[];\n convertSystemMessageToHumanContent?: boolean;\n /**\n * Available for `gemini-1.5-pro`.\n * The output format of the generated candidate text.\n * Supported MIME types:\n * - `text/plain`: Text output.\n * - `application/json`: JSON response in the candidates.\n *\n * @default \"text/plain\"\n */\n responseMimeType?: GoogleAIResponseMimeType;\n /**\n * Whether or not to stream.\n * @default false\n */\n streaming?: boolean;\n /**\n * Whether to return log probabilities of the output tokens or not.\n * If true, returns the log probabilities of each output token\n * returned in the content of message.\n */\n logprobs?: boolean;\n /**\n * An integer between 0 and 5 specifying the number of\n * most likely tokens to return at each token position,\n * each with an associated log probability.\n * logprobs must be set to true if this parameter is used.\n */\n topLogprobs?: number;\n /**\n * The modalities of the response.\n */\n responseModalities?: GoogleAIModelModality[];\n /**\n * Custom metadata labels to associate with the request.\n * Only supported on Vertex AI (Google Cloud Platform).\n * Labels are key-value pairs where both keys and values must be strings.\n *\n * Example:\n * ```typescript\n * {\n * labels: {\n * \"team\": \"research\",\n * \"component\": \"frontend\",\n * \"environment\": \"production\"\n * }\n * }\n * ```\n */\n labels?: Record<string, string>;\n /**\n * Speech generation configuration.\n * You can use either Google's definition of the speech configuration,\n * or a simplified version we've defined (which can be as simple\n * as the name of a pre-defined voice).\n */\n speechConfig?: GoogleSpeechConfig | GoogleSpeechConfigSimplified;\n}\nexport type GoogleAIToolType = BindToolsInput | GeminiTool;\n/**\n * The params which can be passed to the API at request time.\n */\nexport interface GoogleAIModelRequestParams extends GoogleAIModelParams {\n tools?: GoogleAIToolType[];\n /**\n * Force the model to use tools in a specific way.\n *\n * | Mode |\tDescription |\n * |----------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n * | \"auto\"\t | The default model behavior. The model decides whether to predict a function call or a natural language response. |\n * | \"any\"\t | The model must predict only function calls. To limit the model to a subset of functions, define the allowed function names in `allowed_function_names`. |\n * | \"none\"\t | The model must not predict function calls. This behavior is equivalent to a model request without any associated function declarations. |\n * | string | The string value must be one of the function names. This will force the model to predict the specified function call. |\n *\n * The tool configuration's \"any\" mode (\"forced function calling\") is supported for Gemini 1.5 Pro models only.\n */\n tool_choice?: string | \"auto\" | \"any\" | \"none\" | Record<string, any>;\n /**\n * Allowed functions to call when the mode is \"any\".\n * If empty, any one of the provided functions are called.\n */\n allowed_function_names?: string[];\n /**\n * Used to specify a previously created context cache to use with generation.\n * For Vertex, this should be of the form:\n * \"projects/PROJECT_NUMBER/locations/LOCATION/cachedContents/CACHE_ID\",\n *\n * See these guides for more information on how to use context caching:\n * https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-create\n * https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-use\n */\n cachedContent?: string;\n}\nexport interface GoogleAIBaseLLMInput<AuthOptions> extends BaseLLMParams, GoogleConnectionParams<AuthOptions>, GoogleAIModelParams, GoogleAISafetyParams, GoogleAIAPIParams {\n}\nexport interface GoogleAIBaseLanguageModelCallOptions extends BaseChatModelCallOptions, GoogleAIModelRequestParams, GoogleAISafetyParams {\n /**\n * Whether or not to include usage data, like token counts\n * in the streamed response chunks.\n * @default true\n */\n streamUsage?: boolean;\n}\n/**\n * Input to LLM class.\n */\nexport interface GoogleBaseLLMInput<AuthOptions> extends GoogleAIBaseLLMInput<AuthOptions> {\n}\nexport interface GoogleResponse {\n data: any;\n}\nexport interface GoogleRawResponse extends GoogleResponse {\n data: Blob;\n}\nexport interface GeminiPartBase {\n thought?: boolean;\n thoughtSignature?: string;\n}\nexport interface GeminiVideoMetadata {\n fps?: number;\n startOffset?: string;\n endOffset?: string;\n}\nexport interface GeminiPartBaseFile extends GeminiPartBase {\n videoMetadata?: GeminiVideoMetadata;\n}\nexport interface GeminiPartText extends GeminiPartBase {\n text: string;\n}\nexport interface GeminiPartInlineData extends GeminiPartBaseFile {\n inlineData: {\n mimeType: string;\n data: string;\n };\n}\nexport interface GeminiPartFileData extends GeminiPartBaseFile {\n fileData: {\n mimeType: string;\n fileUri: string;\n };\n}\nexport interface GeminiPartFunctionCall extends GeminiPartBase {\n functionCall: {\n name: string;\n args?: object;\n };\n}\nexport interface GeminiPartFunctionResponse extends GeminiPartBase {\n functionResponse: {\n name: string;\n response: object;\n };\n}\nexport type GeminiPart = GeminiPartText | GeminiPartInlineData | GeminiPartFileData | GeminiPartFunctionCall | GeminiPartFunctionResponse;\nexport interface GeminiSafetySetting {\n category: string;\n threshold: string;\n}\nexport type GeminiSafetyRating = {\n category: string;\n probability: string;\n} & Record<string, unknown>;\nexport interface GeminiCitationMetadata {\n citations: GeminiCitation[];\n}\nexport interface GeminiCitation {\n startIndex: number;\n endIndex: number;\n uri: string;\n title: string;\n license: string;\n publicationDate: GoogleTypeDate;\n}\nexport interface GoogleTypeDate {\n year: number;\n month: number;\n day: number;\n}\nexport interface GeminiGroundingMetadata {\n webSearchQueries?: string[];\n searchEntryPoint?: GeminiSearchEntryPoint;\n groundingChunks: GeminiGroundingChunk[];\n groundingSupports?: GeminiGroundingSupport[];\n retrievalMetadata?: GeminiRetrievalMetadata;\n}\nexport interface GeminiSearchEntryPoint {\n renderedContent?: string;\n sdkBlob?: string;\n}\nexport interface GeminiGroundingChunk {\n web: GeminiGroundingChunkWeb;\n retrievedContext: GeminiGroundingChunkRetrievedContext;\n}\nexport interface GeminiGroundingChunkWeb {\n uri: string;\n title: string;\n}\nexport interface GeminiGroundingChunkRetrievedContext {\n uri: string;\n title: string;\n text: string;\n}\nexport interface GeminiGroundingSupport {\n segment: GeminiSegment;\n groundingChunkIndices: number[];\n confidenceScores: number[];\n}\nexport interface GeminiSegment {\n partIndex: number;\n startIndex: number;\n endIndex: number;\n text: string;\n}\nexport interface GeminiRetrievalMetadata {\n googleSearchDynamicRetrievalScore: number;\n}\nexport type GeminiUrlRetrievalStatus = \"URL_RETRIEVAL_STATUS_SUCCESS\" | \"URL_RETRIEVAL_STATUS_ERROR\";\nexport interface GeminiUrlRetrievalContext {\n retrievedUrl: string;\n urlRetrievalStatus: GeminiUrlRetrievalStatus;\n}\nexport interface GeminiUrlRetrievalMetadata {\n urlRetrievalContexts: GeminiUrlRetrievalContext[];\n}\nexport type GeminiUrlMetadata = GeminiUrlRetrievalContext;\nexport interface GeminiUrlContextMetadata {\n urlMetadata: GeminiUrlMetadata[];\n}\nexport interface GeminiLogprobsResult {\n topCandidates: GeminiLogprobsTopCandidate[];\n chosenCandidates: GeminiLogprobsResultCandidate[];\n}\nexport interface GeminiLogprobsTopCandidate {\n candidates: GeminiLogprobsResultCandidate[];\n}\nexport interface GeminiLogprobsResultCandidate {\n token: string;\n tokenId: number;\n logProbability: number;\n}\nexport type GeminiRole = \"system\" | \"user\" | \"model\" | \"function\";\nexport interface GeminiContent {\n parts: GeminiPart[];\n role: GeminiRole;\n}\nexport interface GeminiTool {\n functionDeclarations?: GeminiFunctionDeclaration[];\n googleSearchRetrieval?: GoogleSearchRetrieval;\n googleSearch?: GoogleSearch;\n urlContext?: UrlContext;\n retrieval?: VertexAIRetrieval;\n}\nexport type GoogleSearchToolSetting = boolean | \"googleSearchRetrieval\" | \"googleSearch\" | string;\nexport declare const GeminiSearchToolAttributes: string[];\nexport declare const GeminiToolAttributes: string[];\nexport interface GoogleSearchRetrieval {\n dynamicRetrievalConfig?: {\n mode?: string;\n dynamicThreshold?: number;\n };\n}\nexport interface GoogleSearch {\n}\nexport interface UrlContext {\n}\nexport interface VertexAIRetrieval {\n vertexAiSearch: {\n datastore: string;\n };\n disableAttribution?: boolean;\n}\nexport interface GeminiFunctionDeclaration {\n name: string;\n description: string;\n parameters?: GeminiFunctionSchema;\n}\nexport interface GeminiFunctionSchema {\n type: GeminiFunctionSchemaType;\n format?: string;\n description?: string;\n nullable?: boolean;\n enum?: string[];\n properties?: Record<string, GeminiFunctionSchema>;\n required?: string[];\n items?: GeminiFunctionSchema;\n}\nexport type GeminiFunctionSchemaType = \"string\" | \"number\" | \"integer\" | \"boolean\" | \"array\" | \"object\";\nexport interface GeminiGenerationConfig {\n stopSequences?: string[];\n candidateCount?: number;\n maxOutputTokens?: number;\n temperature?: number;\n topP?: number;\n topK?: number;\n seed?: number;\n presencePenalty?: number;\n frequencyPenalty?: number;\n responseMimeType?: GoogleAIResponseMimeType;\n responseLogprobs?: boolean;\n logprobs?: number;\n responseModalities?: GoogleAIModelModality[];\n thinkingConfig?: GoogleThinkingConfig;\n speechConfig?: GoogleSpeechConfig;\n}\nexport interface GeminiRequest {\n contents?: GeminiContent[];\n systemInstruction?: GeminiContent;\n tools?: GeminiTool[];\n toolConfig?: {\n functionCallingConfig: {\n mode: \"auto\" | \"any\" | \"none\";\n allowedFunctionNames?: string[];\n };\n };\n safetySettings?: GeminiSafetySetting[];\n generationConfig?: GeminiGenerationConfig;\n cachedContent?: string;\n /**\n * Custom metadata labels to associate with the API call.\n */\n labels?: Record<string, string>;\n}\nexport interface GeminiResponseCandidate {\n content: {\n parts: GeminiPart[];\n role: string;\n };\n finishReason: string;\n index: number;\n tokenCount?: number;\n safetyRatings: GeminiSafetyRating[];\n citationMetadata?: GeminiCitationMetadata;\n groundingMetadata?: GeminiGroundingMetadata;\n urlRetrievalMetadata?: GeminiUrlRetrievalMetadata;\n urlContextMetadata?: GeminiUrlContextMetadata;\n avgLogprobs?: number;\n logprobsResult: GeminiLogprobsResult;\n finishMessage?: string;\n}\ninterface GeminiResponsePromptFeedback {\n blockReason?: string;\n safetyRatings: GeminiSafetyRating[];\n}\nexport type ModalityEnum = \"TEXT\" | \"IMAGE\" | \"VIDEO\" | \"AUDIO\" | \"DOCUMENT\" | string;\nexport interface ModalityTokenCount {\n modality: ModalityEnum;\n tokenCount: number;\n}\nexport interface GenerateContentResponseUsageMetadata {\n promptTokenCount: number;\n toolUsePromptTokenCount: number;\n cachedContentTokenCount: number;\n thoughtsTokenCount: number;\n candidatesTokenCount: number;\n totalTokenCount: number;\n promptTokensDetails: ModalityTokenCount[];\n toolUsePromptTokensDetails: ModalityTokenCount[];\n cacheTokensDetails: ModalityTokenCount[];\n candidatesTokensDetails: ModalityTokenCount[];\n [key: string]: unknown;\n}\nexport interface GenerateContentResponseData {\n candidates: GeminiResponseCandidate[];\n promptFeedback: GeminiResponsePromptFeedback;\n usageMetadata: GenerateContentResponseUsageMetadata;\n}\nexport type GoogleLLMModelFamily = null | \"palm\" | \"gemini\" | \"gemma\";\nexport type VertexModelFamily = GoogleLLMModelFamily | \"claude\";\nexport type GoogleLLMResponseData = JsonStream | GenerateContentResponseData | GenerateContentResponseData[];\nexport interface GoogleLLMResponse extends GoogleResponse {\n data: GoogleLLMResponseData | AnthropicResponseData;\n}\nexport interface GoogleAISafetyHandler {\n /**\n * A function that will take a response and return the, possibly modified,\n * response or throw an exception if there are safety issues.\n *\n * @throws GoogleAISafetyError\n */\n handle(response: GoogleLLMResponse): GoogleLLMResponse;\n}\nexport interface GoogleAISafetyParams {\n safetyHandler?: GoogleAISafetyHandler;\n}\nexport type GeminiJsonSchema = Record<string, unknown> & {\n properties?: Record<string, GeminiJsonSchema>;\n type: GeminiFunctionSchemaType;\n nullable?: boolean;\n};\nexport interface GeminiJsonSchemaDirty extends GeminiJsonSchema {\n items?: GeminiJsonSchemaDirty;\n properties?: Record<string, GeminiJsonSchemaDirty>;\n additionalProperties?: boolean;\n}\nexport type GoogleAIAPI = {\n messageContentToParts?: (content: MessageContent) => Promise<GeminiPart[]>;\n baseMessageToContent?: (message: BaseMessage, prevMessage: BaseMessage | undefined, useSystemInstruction: boolean) => Promise<GeminiContent[]>;\n responseToString: (response: GoogleLLMResponse) => string;\n responseToChatGeneration: (response: GoogleLLMResponse) => ChatGenerationChunk | null;\n chunkToString: (chunk: BaseMessageChunk) => string;\n responseToBaseMessage: (response: GoogleLLMResponse) => BaseMessage;\n responseToChatResult: (response: GoogleLLMResponse) => ChatResult;\n formatData: (input: unknown, parameters: GoogleAIModelRequestParams) => Promise<unknown>;\n};\nexport interface GeminiAPIConfig {\n safetyHandler?: GoogleAISafetyHandler;\n mediaManager?: MediaManager;\n useSystemInstruction?: boolean;\n /**\n * How to handle the Google Search tool, since the name (and format)\n * of the tool changes between Gemini 1.5 and Gemini 2.0.\n * true - Change based on the model version. (Default)\n * false - Do not change the tool name provided\n * string value - Use this as the attribute name for the search\n * tool, adapting any tool attributes if possible.\n * When the model is created, a \"true\" or default setting\n * will be changed to a string based on the model.\n */\n googleSearchToolAdjustment?: GoogleSearchToolSetting;\n}\nexport type GoogleAIAPIConfig = GeminiAPIConfig | AnthropicAPIConfig;\nexport interface GoogleAIAPIParams {\n apiName?: string;\n apiConfig?: GoogleAIAPIConfig;\n}\n/**\n * Defines the parameters required to initialize a\n * GoogleEmbeddings instance. It extends EmbeddingsParams and\n * GoogleConnectionParams.\n */\nexport interface BaseGoogleEmbeddingsParams<AuthOptions> extends EmbeddingsParams, GoogleConnectionParams<AuthOptions> {\n model: string;\n /**\n * Used to specify output embedding size.\n * If set, output embeddings will be truncated to the size specified.\n */\n dimensions?: number;\n /**\n * An alias for \"dimensions\"\n */\n outputDimensionality?: number;\n}\n/**\n * Defines additional options specific to the\n * GoogleEmbeddingsInstance. It extends AsyncCallerCallOptions.\n */\nexport interface BaseGoogleEmbeddingsOptions extends AsyncCallerCallOptions {\n}\nexport type GoogleEmbeddingsTaskType = \"RETRIEVAL_QUERY\" | \"RETRIEVAL_DOCUMENT\" | \"SEMANTIC_SIMILARITY\" | \"CLASSIFICATION\" | \"CLUSTERING\" | \"QUESTION_ANSWERING\" | \"FACT_VERIFICATION\" | \"CODE_RETRIEVAL_QUERY\" | string;\n/**\n * Represents an instance for generating embeddings using the Google\n * Vertex AI API. It contains the content to be embedded.\n */\nexport interface VertexEmbeddingsInstance {\n content: string;\n taskType?: GoogleEmbeddingsTaskType;\n title?: string;\n}\nexport interface VertexEmbeddingsParameters extends GoogleModelParams {\n autoTruncate?: boolean;\n outputDimensionality?: number;\n}\nexport interface VertexEmbeddingsRequest {\n instances: VertexEmbeddingsInstance[];\n parameters?: VertexEmbeddingsParameters;\n}\nexport interface AIStudioEmbeddingsRequest {\n content: {\n parts: GeminiPartText[];\n };\n model?: string;\n taskType?: GoogleEmbeddingsTaskType;\n title?: string;\n outputDimensionality?: number;\n}\nexport type GoogleEmbeddingsRequest = VertexEmbeddingsRequest | AIStudioEmbeddingsRequest;\nexport interface VertexEmbeddingsResponsePrediction {\n embeddings: {\n statistics: {\n token_count: number;\n truncated: boolean;\n };\n values: number[];\n };\n}\n/**\n * Defines the structure of the embeddings results returned by the Google\n * Vertex AI API. It extends GoogleBasePrediction and contains the\n * embeddings and their statistics.\n */\nexport interface VertexEmbeddingsResponse extends GoogleResponse {\n data: {\n predictions: VertexEmbeddingsResponsePrediction[];\n };\n}\nexport interface AIStudioEmbeddingsResponse extends GoogleResponse {\n data: {\n embedding: {\n values: number[];\n };\n };\n}\nexport type GoogleEmbeddingsResponse = VertexEmbeddingsResponse | AIStudioEmbeddingsResponse;\n//# sourceMappingURL=types.d.ts.map"],"mappings":";;;;;;;;;;;;;AAeA;AAUA;AACA;;AAamBgB,UAxBFF,kBAwBEE,CAAAA,WAAAA,CAAAA,CAAAA;EAb0CF,WAAAA,CAAAA,EAV3CC,WAU2CD;EAAkB;EAoB1DI,MAAAA,CAAAA,EAAAA,MAAAA;AAiBrB;AACA;AAiBA;AACA;AAIA;AACA;AACcA,KA/DFF,kBAAAA,GA+DEE,KAAAA,GAAAA,KAAAA;AACCC,UA/DEF,sBA+DFE,CAAAA,WAAAA,CAAAA,SA/D8CL,kBA+D9CK,CA/DiEJ,WA+DjEI,CAAAA,CAAAA;EACFC;EAAoB,QAAA,CAAA,EAAA,MAAA;EAErBE;EACAC,QAAAA,CAAAA,EAAAA,MAAAA;EACKC;EAILC,UAAAA,CAAAA,EAAAA,MAAAA;EACKC;AAGjB;AAGA;AAIA;AAGA;AAIA;EAIYM,YAAAA,CAAAA,EAjFOhB,kBAiFcc;EAIhBG;AAIjB;;;EAAoFA,QAAAA,CAAAA,EAAAA,OAAAA;AAAuB;AAC1FE,cAnFIjB,sBAmFqB,EAC/BgB;EAGME,SAAAA,UAAAA,EAAAA,0BACLF;EAQAG,SAAAA,UAAAA,EAAAA,0BAAiCF;EAKjCG,SAAAA,wBAA4B,EAAA,0BAAGJ;EAC1BK,SAAAA,UAAAA,EAAiB,2BAAA;EASjBC,SAAAA,WAAAA,EAAmB,2BAAA;EA0EfnB,SAAAA,yBAAAA,EAAAA,2BAAAA;EAWEC,SAAAA,gBAAAA,EAAAA,iCAAAA;EAsBEC,SAAAA,iBAAAA,EAAAA,iCAAAA;EAiBZkB,SAAAA,+BAAAA,EAAAA,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D,oBAAAA;kBACG6D;;KAERC,gBAAAA,GAAmBnE;eACdA,eAAemE;QACtBd;;;UAGOe,qBAAAA,SAA8BD;UACnCC;eACKpE,eAAeoE;;;KAGpBC,WAAAA;oCAC0BzG,mBAAmB0G,QAAQlD;mCAC5B1D,0BAA0BA,2DAA2D4G,QAAQ3B;+BACjGsB;uCACQA,sBAAsBpG;yBACpCF;oCACWsG,sBAAsBvG;mCACvBuG,sBAAsBnG;2CACdqC,+BAA+BmE;;UAE3DC,eAAAA;kBACGL;iBACDhG;;;;;;;;;;;;+BAYc+E;;KAErBuB,iBAAAA,GAAoBD,kBAAkBnG;UACjCkC,iBAAAA;;cAEDkE;;;;;;;UAOCC,gDAAgD1G,kBAAkBS,uBAAuBF;;;;;;;;;;;;;;;;UAgBzFoG,2BAAAA,SAAoC1G;KAEzC2G,wBAAAA;;;;;UAKKC,wBAAAA;;aAEFD;;;UAGEE,0BAAAA,SAAmC/E;;;;UAInCgF,uBAAAA;aACFF;eACEC;;UAEAE,yBAAAA;;WAEFhE;;;aAGA4D;;;;KAIHK,uBAAAA,GAA0BF,0BAA0BC;UAC/CE,kCAAAA;;;;;;;;;;;;;;UAcAC,wBAAAA,SAAiCzE;;iBAE7BwE;;;UAGJE,0BAAAA,SAAmC1E;;;;;;;KAOxC2E,wBAAAA,GAA2BF,2BAA2BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.cts","names":["GeminiTool","GoogleAIBaseLanguageModelCallOptions","GoogleAIModelParams","GoogleAIModelRequestParams","GoogleAIToolType","VertexModelFamily","copyAIModelParams","convertToGeminiTools","copyAIModelParamsInto","modelToFamily","modelToPublisher","validateModelParams","copyAndValidateModelParamsInto"],"sources":["../../src/utils/common.d.ts"],"sourcesContent":["import { GeminiTool, GoogleAIBaseLanguageModelCallOptions, GoogleAIModelParams, GoogleAIModelRequestParams, GoogleAIToolType, VertexModelFamily } from \"../types.js\";\nexport declare function copyAIModelParams(params: GoogleAIModelParams | undefined, options: GoogleAIBaseLanguageModelCallOptions | undefined): GoogleAIModelRequestParams;\nexport declare function convertToGeminiTools(tools: GoogleAIToolType[]): GeminiTool[];\nexport declare function copyAIModelParamsInto(params: GoogleAIModelParams | undefined, options: GoogleAIBaseLanguageModelCallOptions | undefined, target: GoogleAIModelParams): GoogleAIModelRequestParams;\nexport declare function modelToFamily(modelName: string | undefined): VertexModelFamily;\nexport declare function modelToPublisher(modelName: string | undefined): string;\nexport declare function validateModelParams(params: GoogleAIModelParams | undefined): void;\nexport declare function copyAndValidateModelParamsInto(params: GoogleAIModelParams | undefined, target: GoogleAIModelParams): GoogleAIModelParams;\n//# sourceMappingURL=common.d.ts.map"],"mappings":";;;iBACwBM,iBAAAA,SAA0BJ,0CAA0CD,mDAAmDE;iBACvHI,oBAAAA,QAA4BH,qBAAqBJ;AADjDM,iBAEAE,qBAAAA,CAFiB,MAAA,EAEaN,mBAFb,GAAA,SAAA,EAAA,OAAA,EAEuDD,oCAFvD,GAAA,SAAA,EAAA,MAAA,EAEiHC,mBAFjH,CAAA,EAEuIC,0BAFvI;AAASD,iBAG1BO,aAAAA,CAH0BP,SAAAA,EAAAA,MAAAA,GAAAA,SAAAA,CAAAA,EAGoBG,iBAHpBH;AAA0CD,iBAIpES,gBAAAA,CAJoET,SAAAA,EAAAA,MAAAA,GAAAA,SAAAA,CAAAA,EAAAA,MAAAA;AAAmDE,iBAKvHQ,mBAAAA,CALuHR,MAAAA,EAK3FD,mBAL2FC,GAAAA,SAAAA,CAAAA,EAAAA,IAAAA;AAA0B,iBAMjJS,8BAAAA,CANiJ,MAAA,EAM1GV,mBAN0G,GAAA,SAAA,EAAA,MAAA,EAMjEA,mBANiE,CAAA,EAM3CA,mBAN2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","names":["GeminiTool","GoogleAIBaseLanguageModelCallOptions","GoogleAIModelParams","GoogleAIModelRequestParams","GoogleAIToolType","VertexModelFamily","copyAIModelParams","convertToGeminiTools","copyAIModelParamsInto","modelToFamily","modelToPublisher","validateModelParams","copyAndValidateModelParamsInto"],"sources":["../../src/utils/common.d.ts"],"sourcesContent":["import { GeminiTool, GoogleAIBaseLanguageModelCallOptions, GoogleAIModelParams, GoogleAIModelRequestParams, GoogleAIToolType, VertexModelFamily } from \"../types.js\";\nexport declare function copyAIModelParams(params: GoogleAIModelParams | undefined, options: GoogleAIBaseLanguageModelCallOptions | undefined): GoogleAIModelRequestParams;\nexport declare function convertToGeminiTools(tools: GoogleAIToolType[]): GeminiTool[];\nexport declare function copyAIModelParamsInto(params: GoogleAIModelParams | undefined, options: GoogleAIBaseLanguageModelCallOptions | undefined, target: GoogleAIModelParams): GoogleAIModelRequestParams;\nexport declare function modelToFamily(modelName: string | undefined): VertexModelFamily;\nexport declare function modelToPublisher(modelName: string | undefined): string;\nexport declare function validateModelParams(params: GoogleAIModelParams | undefined): void;\nexport declare function copyAndValidateModelParamsInto(params: GoogleAIModelParams | undefined, target: GoogleAIModelParams): GoogleAIModelParams;\n//# sourceMappingURL=common.d.ts.map"],"mappings":";;;iBACwBM,iBAAAA,SAA0BJ,0CAA0CD,mDAAmDE;iBACvHI,oBAAAA,QAA4BH,qBAAqBJ;AADjDM,iBAEAE,qBAAAA,CAFiB,MAAA,EAEaN,mBAFb,GAAA,SAAA,EAAA,OAAA,EAEuDD,oCAFvD,GAAA,SAAA,EAAA,MAAA,EAEiHC,mBAFjH,CAAA,EAEuIC,0BAFvI;AAASD,iBAG1BO,aAAAA,CAH0BP,SAAAA,EAAAA,MAAAA,GAAAA,SAAAA,CAAAA,EAGoBG,iBAHpBH;AAA0CD,iBAIpES,gBAAAA,CAJoET,SAAAA,EAAAA,MAAAA,GAAAA,SAAAA,CAAAA,EAAAA,MAAAA;AAAmDE,iBAKvHQ,mBAAAA,CALuHR,MAAAA,EAK3FD,mBAL2FC,GAAAA,SAAAA,CAAAA,EAAAA,IAAAA;AAA0B,iBAMjJS,8BAAAA,CANiJ,MAAA,EAM1GV,mBAN0G,GAAA,SAAA,EAAA,MAAA,EAMjEA,mBANiE,CAAA,EAM3CA,mBAN2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failed_handler.d.cts","names":["AsyncCallerParams","failedAttemptHandler","ensureParams"],"sources":["../../src/utils/failed_handler.d.ts"],"sourcesContent":["import { AsyncCallerParams } from \"@langchain/core/utils/async_caller\";\nexport declare function failedAttemptHandler(error: any): void;\nexport declare function ensureParams(params?: AsyncCallerParams): AsyncCallerParams;\n//# sourceMappingURL=failed_handler.d.ts.map"],"mappings":";;;iBACwBC,oBAAAA;iBACAC,YAAAA,UAAsBF,oBAAoBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failed_handler.d.ts","names":["AsyncCallerParams","failedAttemptHandler","ensureParams"],"sources":["../../src/utils/failed_handler.d.ts"],"sourcesContent":["import { AsyncCallerParams } from \"@langchain/core/utils/async_caller\";\nexport declare function failedAttemptHandler(error: any): void;\nexport declare function ensureParams(params?: AsyncCallerParams): AsyncCallerParams;\n//# sourceMappingURL=failed_handler.d.ts.map"],"mappings":";;;iBACwBC,oBAAAA;iBACAC,YAAAA,UAAsBF,oBAAoBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini.d.cts","names":["GoogleLLMResponse","GoogleAIModelParams","GenerateContentResponseData","GoogleAISafetyHandler","GoogleAIAPI","GeminiAPIConfig","GoogleSpeechConfig","GoogleSpeechConfigSimplified","FunctionCall","ToolCall","FunctionCallRaw","ToolCallRaw","DefaultGeminiSafetySettings","DefaultGeminiSafetyHandler","MessageGeminiSafetySettings","MessageGeminiSafetyHandler","normalizeSpeechConfig","getGeminiAPI","validateGeminiParams","isModelGemini","isModelGemma"],"sources":["../../src/utils/gemini.d.ts"],"sourcesContent":["import { GoogleLLMResponse, GoogleAIModelParams, GenerateContentResponseData, GoogleAISafetyHandler, GoogleAIAPI, GeminiAPIConfig, GoogleSpeechConfig, GoogleSpeechConfigSimplified } from \"../types.js\";\nexport interface FunctionCall {\n name: string;\n arguments: string;\n}\nexport interface ToolCall {\n id: string;\n type: \"function\";\n function: FunctionCall;\n}\nexport interface FunctionCallRaw {\n name: string;\n arguments: object;\n}\nexport interface ToolCallRaw {\n id: string;\n type: \"function\";\n function: FunctionCallRaw;\n}\nexport interface DefaultGeminiSafetySettings {\n errorFinish?: string[];\n}\nexport declare class DefaultGeminiSafetyHandler implements GoogleAISafetyHandler {\n errorFinish: string[];\n constructor(settings?: DefaultGeminiSafetySettings);\n handleDataPromptFeedback(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n handleDataFinishReason(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n handleData(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n handle(response: GoogleLLMResponse): GoogleLLMResponse;\n}\nexport interface MessageGeminiSafetySettings extends DefaultGeminiSafetySettings {\n msg?: string;\n forceNewMessage?: boolean;\n}\nexport declare class MessageGeminiSafetyHandler extends DefaultGeminiSafetyHandler {\n msg: string;\n forceNewMessage: boolean;\n constructor(settings?: MessageGeminiSafetySettings);\n setMessage(data: GenerateContentResponseData): GenerateContentResponseData;\n handleData(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n}\nexport declare function normalizeSpeechConfig(config: GoogleSpeechConfig | GoogleSpeechConfigSimplified | undefined): GoogleSpeechConfig | undefined;\nexport declare function getGeminiAPI(config?: GeminiAPIConfig): GoogleAIAPI;\nexport declare function validateGeminiParams(params: GoogleAIModelParams): void;\nexport declare function isModelGemini(modelName: string): boolean;\nexport declare function isModelGemma(modelName: string): boolean;\n//# sourceMappingURL=gemini.d.ts.map"],"mappings":";;;UACiBQ,YAAAA;;EAAAA,SAAAA,EAAAA,MAAY;AAI7B;AAKiBE,UALAD,QAAAA,CAKe;EAIfE,EAAAA,EAAAA,MAAAA;EAKAC,IAAAA,EAAAA,UAAAA;E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AJClB,iBAI4BC,EAAAA,IAAAA,EAJHC,2BAIsB,CAAA,EAJQA,2BAIR;AACxE;AACwBkB,iBAJAJ,qBAAAA,CAIY,MAAA,EAJkBV,kBAIlB,GAJuCC,4BAIvC,GAAA,SAAA,CAAA,EAJkFD,kBAIlF,GAAA,SAAA;iBAHZW,YAAAA,UAAsBZ,kBAAkBD;iBACxCc,oBAAAA,SAA6BjB;iBAC7BkB,aAAAA;iBACAC,YAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gemini.d.ts","names":["GoogleLLMResponse","GoogleAIModelParams","GenerateContentResponseData","GoogleAISafetyHandler","GoogleAIAPI","GeminiAPIConfig","GoogleSpeechConfig","GoogleSpeechConfigSimplified","FunctionCall","ToolCall","FunctionCallRaw","ToolCallRaw","DefaultGeminiSafetySettings","DefaultGeminiSafetyHandler","MessageGeminiSafetySettings","MessageGeminiSafetyHandler","normalizeSpeechConfig","getGeminiAPI","validateGeminiParams","isModelGemini","isModelGemma"],"sources":["../../src/utils/gemini.d.ts"],"sourcesContent":["import { GoogleLLMResponse, GoogleAIModelParams, GenerateContentResponseData, GoogleAISafetyHandler, GoogleAIAPI, GeminiAPIConfig, GoogleSpeechConfig, GoogleSpeechConfigSimplified } from \"../types.js\";\nexport interface FunctionCall {\n name: string;\n arguments: string;\n}\nexport interface ToolCall {\n id: string;\n type: \"function\";\n function: FunctionCall;\n}\nexport interface FunctionCallRaw {\n name: string;\n arguments: object;\n}\nexport interface ToolCallRaw {\n id: string;\n type: \"function\";\n function: FunctionCallRaw;\n}\nexport interface DefaultGeminiSafetySettings {\n errorFinish?: string[];\n}\nexport declare class DefaultGeminiSafetyHandler implements GoogleAISafetyHandler {\n errorFinish: string[];\n constructor(settings?: DefaultGeminiSafetySettings);\n handleDataPromptFeedback(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n handleDataFinishReason(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n handleData(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n handle(response: GoogleLLMResponse): GoogleLLMResponse;\n}\nexport interface MessageGeminiSafetySettings extends DefaultGeminiSafetySettings {\n msg?: string;\n forceNewMessage?: boolean;\n}\nexport declare class MessageGeminiSafetyHandler extends DefaultGeminiSafetyHandler {\n msg: string;\n forceNewMessage: boolean;\n constructor(settings?: MessageGeminiSafetySettings);\n setMessage(data: GenerateContentResponseData): GenerateContentResponseData;\n handleData(response: GoogleLLMResponse, data: GenerateContentResponseData): GenerateContentResponseData;\n}\nexport declare function normalizeSpeechConfig(config: GoogleSpeechConfig | GoogleSpeechConfigSimplified | undefined): GoogleSpeechConfig | undefined;\nexport declare function getGeminiAPI(config?: GeminiAPIConfig): GoogleAIAPI;\nexport declare function validateGeminiParams(params: GoogleAIModelParams): void;\nexport declare function isModelGemini(modelName: string): boolean;\nexport declare function isModelGemma(modelName: string): boolean;\n//# sourceMappingURL=gemini.d.ts.map"],"mappings":";;;UACiBQ,YAAAA;;EAAAA,SAAAA,EAAAA,MAAY;AAI7B;AAKiBE,UALAD,QAAAA,CAKe;EAIfE,EAAAA,EAAAA,MAAAA;EAKAC,IAAAA,EAAAA,UAAAA;EAGIC,QAAAA,EAdPL,YAcOK;;AAGkBb,UAftBU,eAAAA,CAesBV;EAAyBE,IAAAA,EAAAA,MAAAA;EAA8BA,SAAAA,EAAAA,MAAAA;;AAChCA,UAZ7CS,WAAAA,CAY6CT;EAA8BA,EAAAA,EAAAA,MAAAA;EACnEF,IAAAA,EAAAA,UAAAA;EAAyBE,QAAAA,EAVpCQ,eAUoCR;;AAC7BF,UATJY,2BAAAA,CASIZ;EAAoBA,WAAAA,CAAAA,EAAAA,MAAAA,EAAAA;;AANuC,cAA3Da,0BAAAA,YAAsCV,qBAAqB,CAAA;EAQ/DW,WAAAA,EAAAA,MAAAA,EAAAA;EAIIC,WAAAA,CAAAA,QAA0B,CAA1BA,EAVMH,2BAUoB;EAGpBE,wBAAAA,CAAAA,QAAAA,EAZYd,iBAYZc,EAAAA,IAAAA,EAZqCZ,2BAYrCY,CAAAA,EAZmEZ,2BAYnEY;EACNZ,sBAAAA,CAAAA,QAAAA,EAZgBF,iBAYhBE,EAAAA,IAAAA,EAZyCA,2BAYzCA,CAAAA,EAZuEA,2BAYvEA;EAA8BA,UAAAA,CAAAA,QAAAA,EAX1BF,iBAW0BE,EAAAA,IAAAA,EAXDA,2BAWCA,CAAAA,EAX6BA,2BAW7BA;EAC1BF,MAAAA,CAAAA,QAAAA,EAXJA,iBAWIA,CAAAA,EAXgBA,iBAWhBA;;AAAuDE,UAT/DY,2BAAAA,SAAoCF,2BAS2BV,CAAAA;EALxBW,GAAAA,CAAAA,EAAAA,MAAAA;EAA0B,eAAA,CAAA,EAAA,OAAA;AAOlF;AAAsDP,cAPjCS,0BAAAA,SAAmCF,0BAAAA,CAOFP;EAAqBC,GAAAA,EAAAA,MAAAA;EAA2CD,eAAAA,EAAAA,OAAAA;EAAkB,WAAA,CAAA,QAAA,CAAA,EAJ7GQ,2BAI6G;EAChHG,UAAAA,CAAAA,IAAY,EAJff,2BAIyBG,CAAkBD,EAJbF,2BAIwB;EACnDgB,UAAAA,CAAAA,QAAAA,EAJClB,iBAI4BC,EAAAA,IAAAA,EAJHC,2BAIsB,CAAA,EAJQA,2BAIR;AACxE;AACwBkB,iBAJAJ,qBAAAA,CAIY,MAAA,EAJkBV,kBAIlB,GAJuCC,4BAIvC,GAAA,SAAA,CAAA,EAJkFD,kBAIlF,GAAA,SAAA;iBAHZW,YAAAA,UAAsBZ,kBAAkBD;iBACxCc,oBAAAA,SAA6BjB;iBAC7BkB,aAAAA;iBACAC,YAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palm.d.cts","names":["GoogleVertexAIBasePrediction","GoogleVertexAILLMPredictions","PredictionType"],"sources":["../../src/utils/palm.d.ts"],"sourcesContent":["export interface GoogleVertexAIBasePrediction {\n safetyAttributes?: any;\n}\nexport interface GoogleVertexAILLMPredictions<PredictionType extends GoogleVertexAIBasePrediction> {\n predictions: PredictionType[];\n}\n//# sourceMappingURL=palm.d.ts.map"],"mappings":";UAAiBA,4BAAAA;EAAAA,gBAAAA,CAAAA,EAAAA,GAAAA;AAGjB;UAAiBC,oDAAoDD;eACpDE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palm.d.ts","names":["GoogleVertexAIBasePrediction","GoogleVertexAILLMPredictions","PredictionType"],"sources":["../../src/utils/palm.d.ts"],"sourcesContent":["export interface GoogleVertexAIBasePrediction {\n safetyAttributes?: any;\n}\nexport interface GoogleVertexAILLMPredictions<PredictionType extends GoogleVertexAIBasePrediction> {\n predictions: PredictionType[];\n}\n//# sourceMappingURL=palm.d.ts.map"],"mappings":";UAAiBA,4BAAAA;EAAAA,gBAAAA,CAAAA,EAAAA,GAAAA;AAGjB;UAAiBC,oDAAoDD;eACpDE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safety.d.cts","names":["GoogleLLMResponse","GoogleAISafetyError","Error"],"sources":["../../src/utils/safety.d.ts"],"sourcesContent":["import { GoogleLLMResponse } from \"../types.js\";\nexport declare class GoogleAISafetyError extends Error {\n response: GoogleLLMResponse;\n reply: any;\n constructor(response: GoogleLLMResponse, message?: string);\n}\n//# sourceMappingURL=safety.d.ts.map"],"mappings":";;;cACqBC,mBAAAA,SAA4BC,KAAAA;YACnCF;EADOC,KAAAA,EAAAA,GAAAA;EACPD,WAAAA,CAAAA,QAAAA,EAEYA,iBAFZA,EAAAA,OAAAA,CAAAA,EAAAA,MAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safety.d.ts","names":["GoogleLLMResponse","GoogleAISafetyError","Error"],"sources":["../../src/utils/safety.d.ts"],"sourcesContent":["import { GoogleLLMResponse } from \"../types.js\";\nexport declare class GoogleAISafetyError extends Error {\n response: GoogleLLMResponse;\n reply: any;\n constructor(response: GoogleLLMResponse, message?: string);\n}\n//# sourceMappingURL=safety.d.ts.map"],"mappings":";;;cACqBC,mBAAAA,SAA4BC,KAAAA;YACnCF;EADOC,KAAAA,EAAAA,GAAAA;EACPD,WAAAA,CAAAA,QAAAA,EAEYA,iBAFZA,EAAAA,OAAAA,CAAAA,EAAAA,MAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.cts","names":["AbstractStream","Promise","complexValue","simpleValue","JsonStream","ComplexJsonStream","ReadableAbstractStream","TextDecoder","ReadableStream","ReadableJsonStream","SseStream","Record","ReadableSseStream","SseJsonStream","ReadableSseJsonStream"],"sources":["../../src/utils/stream.d.ts"],"sourcesContent":["export interface AbstractStream {\n /**\n * Add more text to the buffer\n * @param data\n */\n appendBuffer(data: string): void;\n /**\n * Indicate that there is no more text to be added to the buffer\n * (ie - our source material is done)\n */\n closeBuffer(): void;\n /**\n * Get the next chunk that is coming from the stream.\n * This chunk may be null, usually indicating the last chunk in the stream.\n */\n nextChunk(): Promise<any>;\n /**\n * Is the stream done?\n * A stream is only done if all of the following are true:\n * - There is no more data to be added to the text buffer\n * - There is no more data in the text buffer\n * - There are no chunks that are waiting to be consumed\n */\n get streamDone(): boolean;\n}\nexport declare function complexValue(value: unknown): unknown;\nexport declare function simpleValue(val: unknown): unknown;\nexport declare class JsonStream implements AbstractStream {\n _buffer: string;\n _bufferOpen: boolean;\n _firstRun: boolean;\n /**\n * Add data to the buffer. This may cause chunks to be generated, if available.\n * @param data\n */\n appendBuffer(data: string): void;\n /**\n * Indicate there is no more data that will be added to the text buffer.\n * This should be called when all the data has been read and added to indicate\n * that we should process everything remaining in the buffer.\n */\n closeBuffer(): void;\n /**\n * Skip characters in the buffer till we get to the start of an object.\n * Then attempt to read a full object.\n * If we do read a full object, turn it into a chunk and send it to the chunk handler.\n * Repeat this for as much as we can.\n */\n _parseBuffer(): void;\n /**\n * If the string is present, move the start of the buffer to the first occurrence\n * of that string. This is useful for skipping over elements or parts that we're not\n * really interested in parsing. (ie - the opening characters, comma separators, etc.)\n * @param start The string to start the buffer with\n */\n _skipTo(start: string): void;\n /**\n * Given what is in the buffer, parse a single object out of it.\n * If a complete object isn't available, return null.\n * Assumes that we are at the start of an object to parse.\n */\n _getFullObject(): object | null;\n _simplifyObject(obj: unknown): object;\n _chunkResolution: (chunk: any) => void;\n _chunkPending: Promise<any> | null;\n _chunkQueue: any[];\n /**\n * Register that we have another chunk available for consumption.\n * If we are waiting for a chunk, resolve the promise waiting for it immediately.\n * If not, then add it to the queue.\n * @param chunk\n */\n _handleChunk(chunk: any): void;\n /**\n * Get the next chunk that is coming from the stream.\n * This chunk may be null, usually indicating the last chunk in the stream.\n */\n nextChunk(): Promise<any>;\n /**\n * Is the stream done?\n * A stream is only done if all of the following are true:\n * - There is no more data to be added to the text buffer\n * - There is no more data in the text buffer\n * - There are no chunks that are waiting to be consumed\n */\n get streamDone(): boolean;\n}\nexport declare class ComplexJsonStream extends JsonStream {\n _simplifyObject(obj: unknown): object;\n}\nexport declare class ReadableAbstractStream implements AbstractStream {\n private baseStream;\n decoder: TextDecoder;\n constructor(baseStream: AbstractStream, body: ReadableStream | null);\n appendBuffer(data: string): void;\n closeBuffer(): void;\n nextChunk(): Promise<any>;\n get streamDone(): boolean;\n run(body: any): Promise<void>;\n}\nexport declare class ReadableJsonStream extends ReadableAbstractStream {\n constructor(body: ReadableStream | null);\n}\nexport declare class SseStream implements AbstractStream {\n _buffer: string;\n _bufferOpen: boolean;\n appendBuffer(data: string): void;\n closeBuffer(): void;\n /**\n * Attempt to load an entire event.\n * For each entire event we load,\n * send them to be handled.\n */\n _parseBuffer(): void;\n /**\n * Given an event string, get all the fields\n * in the event. It is assumed there is one field\n * per line, but that field names can be duplicated,\n * indicating to append the new value to the previous value\n * @param event\n */\n _parseEvent(event: string | null): Record<string, string> | null;\n _chunkResolution: (chunk: any) => void;\n _chunkPending: Promise<any> | null;\n _chunkQueue: any[];\n _handleEvent(event: string | null): void;\n nextChunk(): Promise<any>;\n get streamDone(): boolean;\n}\nexport declare class ReadableSseStream extends ReadableAbstractStream {\n constructor(body: ReadableStream | null);\n}\nexport declare class SseJsonStream extends SseStream {\n _jsonAttribute: string;\n constructor(jsonAttribute?: string);\n nextChunk(): Promise<any>;\n}\nexport declare class ReadableSseJsonStream extends ReadableAbstractStream {\n constructor(body: ReadableStream | null);\n}\n//# sourceMappingURL=stream.d.ts.map"],"mappings":";UAAiBA,cAAAA;EAAAA;AAyBjB;AACA;AACA;EAqCmBC,YAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EAAAA,IAAAA;EAaFA;;AAlDwC;AA4DzD;EAGqBK,WAAAA,EAAAA,EAAAA,IAAAA;EAERC;;;;EAMON,SAAAA,EAAAA,EAnFHA,OAmFGA,CAAAA,GAAAA,CAAAA;EARmCD;AAAc;AAUrE;AAGA;;;;EAA0CA,IAAAA,UAAAA,EAAAA,EAAAA,OAAAA;AAAc;AA0BnCY,iBAxGGV,YAAAA,CAyGFM,KAAAA,EAAAA,OAAAA,CAAAA,EADyBF,OAAAA;AAG1BO,iBA1GGV,WAAAA,CA6GPF,GAAAA,EAAAA,OAH0BS,CAAAA,EAAS,OAAA;AAK/BI,cA9GAV,UAAAA,YAAsBJ,cA8GQM,CAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzEhCL;;;;;;;;;;;;;eAaFA;;;;;;;;;;cAUII,iBAAAA,SAA0BD,UAAU;;;cAGpCE,sBAAAA,YAAkCN;;WAE1CO;0BACeP,sBAAsBQ;;;eAGjCP;;kBAEGA;;cAECQ,kBAAAA,SAA2BH,sBAAsB;oBAChDE;;cAEDE,SAAAA,YAAqBV;;;;;;;;;;;;;;;;;;qCAkBHW;;iBAEpBV;;;eAGFA;;;cAGIW,iBAAAA,SAA0BN,sBAAsB;oBAC/CE;;cAEDK,aAAAA,SAAsBH,SAAS;;;eAGnCT;;cAEIa,qBAAAA,SAA8BR,sBAAsB;oBACnDE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.ts","names":["AbstractStream","Promise","complexValue","simpleValue","JsonStream","ComplexJsonStream","ReadableAbstractStream","TextDecoder","ReadableStream","ReadableJsonStream","SseStream","Record","ReadableSseStream","SseJsonStream","ReadableSseJsonStream"],"sources":["../../src/utils/stream.d.ts"],"sourcesContent":["export interface AbstractStream {\n /**\n * Add more text to the buffer\n * @param data\n */\n appendBuffer(data: string): void;\n /**\n * Indicate that there is no more text to be added to the buffer\n * (ie - our source material is done)\n */\n closeBuffer(): void;\n /**\n * Get the next chunk that is coming from the stream.\n * This chunk may be null, usually indicating the last chunk in the stream.\n */\n nextChunk(): Promise<any>;\n /**\n * Is the stream done?\n * A stream is only done if all of the following are true:\n * - There is no more data to be added to the text buffer\n * - There is no more data in the text buffer\n * - There are no chunks that are waiting to be consumed\n */\n get streamDone(): boolean;\n}\nexport declare function complexValue(value: unknown): unknown;\nexport declare function simpleValue(val: unknown): unknown;\nexport declare class JsonStream implements AbstractStream {\n _buffer: string;\n _bufferOpen: boolean;\n _firstRun: boolean;\n /**\n * Add data to the buffer. This may cause chunks to be generated, if available.\n * @param data\n */\n appendBuffer(data: string): void;\n /**\n * Indicate there is no more data that will be added to the text buffer.\n * This should be called when all the data has been read and added to indicate\n * that we should process everything remaining in the buffer.\n */\n closeBuffer(): void;\n /**\n * Skip characters in the buffer till we get to the start of an object.\n * Then attempt to read a full object.\n * If we do read a full object, turn it into a chunk and send it to the chunk handler.\n * Repeat this for as much as we can.\n */\n _parseBuffer(): void;\n /**\n * If the string is present, move the start of the buffer to the first occurrence\n * of that string. This is useful for skipping over elements or parts that we're not\n * really interested in parsing. (ie - the opening characters, comma separators, etc.)\n * @param start The string to start the buffer with\n */\n _skipTo(start: string): void;\n /**\n * Given what is in the buffer, parse a single object out of it.\n * If a complete object isn't available, return null.\n * Assumes that we are at the start of an object to parse.\n */\n _getFullObject(): object | null;\n _simplifyObject(obj: unknown): object;\n _chunkResolution: (chunk: any) => void;\n _chunkPending: Promise<any> | null;\n _chunkQueue: any[];\n /**\n * Register that we have another chunk available for consumption.\n * If we are waiting for a chunk, resolve the promise waiting for it immediately.\n * If not, then add it to the queue.\n * @param chunk\n */\n _handleChunk(chunk: any): void;\n /**\n * Get the next chunk that is coming from the stream.\n * This chunk may be null, usually indicating the last chunk in the stream.\n */\n nextChunk(): Promise<any>;\n /**\n * Is the stream done?\n * A stream is only done if all of the following are true:\n * - There is no more data to be added to the text buffer\n * - There is no more data in the text buffer\n * - There are no chunks that are waiting to be consumed\n */\n get streamDone(): boolean;\n}\nexport declare class ComplexJsonStream extends JsonStream {\n _simplifyObject(obj: unknown): object;\n}\nexport declare class ReadableAbstractStream implements AbstractStream {\n private baseStream;\n decoder: TextDecoder;\n constructor(baseStream: AbstractStream, body: ReadableStream | null);\n appendBuffer(data: string): void;\n closeBuffer(): void;\n nextChunk(): Promise<any>;\n get streamDone(): boolean;\n run(body: any): Promise<void>;\n}\nexport declare class ReadableJsonStream extends ReadableAbstractStream {\n constructor(body: ReadableStream | null);\n}\nexport declare class SseStream implements AbstractStream {\n _buffer: string;\n _bufferOpen: boolean;\n appendBuffer(data: string): void;\n closeBuffer(): void;\n /**\n * Attempt to load an entire event.\n * For each entire event we load,\n * send them to be handled.\n */\n _parseBuffer(): void;\n /**\n * Given an event string, get all the fields\n * in the event. It is assumed there is one field\n * per line, but that field names can be duplicated,\n * indicating to append the new value to the previous value\n * @param event\n */\n _parseEvent(event: string | null): Record<string, string> | null;\n _chunkResolution: (chunk: any) => void;\n _chunkPending: Promise<any> | null;\n _chunkQueue: any[];\n _handleEvent(event: string | null): void;\n nextChunk(): Promise<any>;\n get streamDone(): boolean;\n}\nexport declare class ReadableSseStream extends ReadableAbstractStream {\n constructor(body: ReadableStream | null);\n}\nexport declare class SseJsonStream extends SseStream {\n _jsonAttribute: string;\n constructor(jsonAttribute?: string);\n nextChunk(): Promise<any>;\n}\nexport declare class ReadableSseJsonStream extends ReadableAbstractStream {\n constructor(body: ReadableStream | null);\n}\n//# sourceMappingURL=stream.d.ts.map"],"mappings":";UAAiBA,cAAAA;EAAAA;AAyBjB;AACA;AACA;EAqCmBC,YAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EAAAA,IAAAA;EAaFA;;AAlDwC;AA4DzD;EAGqBK,WAAAA,EAAAA,EAAAA,IAAAA;EAERC;;;;EAMON,SAAAA,EAAAA,EAnFHA,OAmFGA,CAAAA,GAAAA,CAAAA;EARmCD;AAAc;AAUrE;AAGA;;;;EAA0CA,IAAAA,UAAAA,EAAAA,EAAAA,OAAAA;AAAc;AA0BnCY,iBAxGGV,YAAAA,CAyGFM,KAAAA,EAAAA,OAAAA,CAAAA,EADyBF,OAAAA;AAG1BO,iBA1GGV,WAAAA,CA6GPF,GAAAA,EAAAA,OAH0BS,CAAAA,EAAS,OAAA;AAK/BI,cA9GAV,UAAAA,YAAsBJ,cA8GQM,CAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzEhCL;;;;;;;;;;;;;eAaFA;;;;;;;;;;cAUII,iBAAAA,SAA0BD,UAAU;;;cAGpCE,sBAAAA,YAAkCN;;WAE1CO;0BACeP,sBAAsBQ;;;eAGjCP;;kBAEGA;;cAECQ,kBAAAA,SAA2BH,sBAAsB;oBAChDE;;cAEDE,SAAAA,YAAqBV;;;;;;;;;;;;;;;;;;qCAkBHW;;iBAEpBV;;;eAGFA;;;cAGIW,iBAAAA,SAA0BN,sBAAsB;oBAC/CE;;cAEDK,aAAAA,SAAsBH,SAAS;;;eAGnCT;;cAEIa,qBAAAA,SAA8BR,sBAAsB;oBACnDE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod_to_gemini_parameters.d.cts","names":["InteropZodType","JsonSchema7Type","GeminiFunctionSchema","GeminiJsonSchema","adjustObjectType","Record","removeAdditionalProperties","schemaToGeminiParameters","RunOutput","jsonSchemaToGeminiParameters"],"sources":["../../src/utils/zod_to_gemini_parameters.d.ts"],"sourcesContent":["import { InteropZodType } from \"@langchain/core/utils/types\";\nimport { type JsonSchema7Type } from \"@langchain/core/utils/json_schema\";\nimport { GeminiFunctionSchema, GeminiJsonSchema } from \"../types.js\";\nexport declare function adjustObjectType(obj: Record<string, any>): Record<string, any>;\nexport declare function removeAdditionalProperties(obj: Record<string, any>): GeminiJsonSchema;\nexport declare function schemaToGeminiParameters<RunOutput extends Record<string, any> = Record<string, any>>(schema: InteropZodType<RunOutput> | JsonSchema7Type): GeminiFunctionSchema;\nexport declare function jsonSchemaToGeminiParameters(schema: Record<string, any>): GeminiFunctionSchema;\n//# sourceMappingURL=zod_to_gemini_parameters.d.ts.map"],"mappings":";;;;;iBAGwBI,gBAAAA,MAAsBC,sBAAsBA;iBAC5CC,0BAAAA,MAAgCD,sBAAsBF;AADtDC,iBAEAG,wBAF4CF,CAAAA,kBAEDA,MAFO,CAAA,MAAA,EAAA,GAAA,CAAA,GAEeA,MAFf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,MAAA,EAE4CL,cAF5C,CAE2DQ,SAF3D,CAAA,GAEwEP,eAFxE,CAAA,EAE0FC,oBAF1F;AAClDI,iBAEAG,4BAAAA,CAFgCJ,MAAsBF,EAEjBE,MAFiBF,CAAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,EAEXD,oBAFW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod_to_gemini_parameters.d.ts","names":["InteropZodType","JsonSchema7Type","GeminiFunctionSchema","GeminiJsonSchema","adjustObjectType","Record","removeAdditionalProperties","schemaToGeminiParameters","RunOutput","jsonSchemaToGeminiParameters"],"sources":["../../src/utils/zod_to_gemini_parameters.d.ts"],"sourcesContent":["import { InteropZodType } from \"@langchain/core/utils/types\";\nimport { type JsonSchema7Type } from \"@langchain/core/utils/json_schema\";\nimport { GeminiFunctionSchema, GeminiJsonSchema } from \"../types.js\";\nexport declare function adjustObjectType(obj: Record<string, any>): Record<string, any>;\nexport declare function removeAdditionalProperties(obj: Record<string, any>): GeminiJsonSchema;\nexport declare function schemaToGeminiParameters<RunOutput extends Record<string, any> = Record<string, any>>(schema: InteropZodType<RunOutput> | JsonSchema7Type): GeminiFunctionSchema;\nexport declare function jsonSchemaToGeminiParameters(schema: Record<string, any>): GeminiFunctionSchema;\n//# sourceMappingURL=zod_to_gemini_parameters.d.ts.map"],"mappings":";;;;;iBAGwBI,gBAAAA,MAAsBC,sBAAsBA;iBAC5CC,0BAAAA,MAAgCD,sBAAsBF;AADtDC,iBAEAG,wBAF4CF,CAAAA,kBAEDA,MAFO,CAAA,MAAA,EAAA,GAAA,CAAA,GAEeA,MAFf,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,MAAA,EAE4CL,cAF5C,CAE2DQ,SAF3D,CAAA,GAEwEP,eAFxE,CAAA,EAE0FC,oBAF1F;AAClDI,iBAEAG,4BAAAA,CAFgCJ,MAAsBF,EAEjBE,MAFiBF,CAAAA,MAAgB,EAAA,GAAA,CAAA,CAAA,EAEXD,oBAFW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5-dev-1765431816670",
|
|
4
4
|
"description": "Core types and classes for Google services.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"uuid": "^10.0.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@langchain/core": "1.1.
|
|
20
|
+
"@langchain/core": "1.1.5-dev-1765431816670"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@jest/globals": "^29.5.0",
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
"ts-jest": "^29.1.0",
|
|
36
36
|
"typescript": "~5.8.3",
|
|
37
37
|
"zod": "^3.25.76",
|
|
38
|
-
"@langchain/core": "1.1.
|
|
39
|
-
"@langchain/eslint": "0.1.1"
|
|
38
|
+
"@langchain/core": "1.1.5-dev-1765431816670",
|
|
39
|
+
"@langchain/eslint": "0.1.1",
|
|
40
|
+
"@langchain/tsconfig": "0.0.1"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
@@ -105,7 +106,16 @@
|
|
|
105
106
|
"dist/",
|
|
106
107
|
"CHANGELOG.md",
|
|
107
108
|
"README.md",
|
|
108
|
-
"LICENSE"
|
|
109
|
+
"LICENSE",
|
|
110
|
+
"types.d.cts",
|
|
111
|
+
"types.cjs",
|
|
112
|
+
"types.d.ts",
|
|
113
|
+
"types.js",
|
|
114
|
+
"experimental",
|
|
115
|
+
"utils.d.cts",
|
|
116
|
+
"utils.cjs",
|
|
117
|
+
"utils.d.ts",
|
|
118
|
+
"utils.js"
|
|
109
119
|
],
|
|
110
120
|
"module": "./dist/index.js",
|
|
111
121
|
"scripts": {
|
|
@@ -120,8 +130,8 @@
|
|
|
120
130
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
|
|
121
131
|
"test:single": "NODE_OPTIONS=--experimental-vm-modules pnpm run jest --config jest.config.cjs --testTimeout 100000",
|
|
122
132
|
"test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
|
|
123
|
-
"format": "prettier --
|
|
124
|
-
"format:check": "prettier --
|
|
133
|
+
"format": "prettier --write \"src\"",
|
|
134
|
+
"format:check": "prettier --check \"src\"",
|
|
125
135
|
"typegen": "pnpm run typegen:profiles",
|
|
126
136
|
"typegen:profiles": "pnpm --filter @langchain/model-profiles make --config profiles.toml"
|
|
127
137
|
}
|