@mate-academy/llm-gateway 8.8.2 → 8.8.3
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/dist/LLMError.d.ts +12 -0
- package/dist/LLMError.js +36 -0
- package/dist/LLMError.js.map +1 -0
- package/dist/LLMGateway.d.ts +30 -0
- package/dist/LLMGateway.js +56 -0
- package/dist/LLMGateway.js.map +1 -0
- package/dist/LLMGateway.typedefs.d.ts +5 -0
- package/dist/LLMGateway.typedefs.js +3 -0
- package/dist/LLMGateway.typedefs.js.map +1 -0
- package/dist/LLMService.constants.d.ts +26309 -0
- package/dist/LLMService.constants.js +35 -0
- package/dist/LLMService.constants.js.map +1 -0
- package/dist/LLMService.factory.d.ts +71 -0
- package/dist/LLMService.factory.js +102 -0
- package/dist/LLMService.factory.js.map +1 -0
- package/dist/LLMService.typedefs.d.ts +655 -0
- package/dist/LLMService.typedefs.js +72 -0
- package/dist/LLMService.typedefs.js.map +1 -0
- package/dist/advanced.d.ts +11 -0
- package/dist/advanced.js +32 -0
- package/dist/advanced.js.map +1 -0
- package/dist/client/LLMAgent.d.ts +76 -0
- package/dist/client/LLMAgent.js +36 -0
- package/dist/client/LLMAgent.js.map +1 -0
- package/dist/client/LLMClientEngine.d.ts +110 -0
- package/dist/client/LLMClientEngine.js +406 -0
- package/dist/client/LLMClientEngine.js.map +1 -0
- package/dist/client/agentRun.typedefs.d.ts +200 -0
- package/dist/client/agentRun.typedefs.js +25 -0
- package/dist/client/agentRun.typedefs.js.map +1 -0
- package/dist/client/agentRunner.d.ts +161 -0
- package/dist/client/agentRunner.js +517 -0
- package/dist/client/agentRunner.js.map +1 -0
- package/dist/client/codegen/fetchPromptRecords.d.ts +14 -0
- package/dist/client/codegen/fetchPromptRecords.js +90 -0
- package/dist/client/codegen/fetchPromptRecords.js.map +1 -0
- package/dist/client/codegen/generateSnapshot.d.ts +19 -0
- package/dist/client/codegen/generateSnapshot.js +28 -0
- package/dist/client/codegen/generateSnapshot.js.map +1 -0
- package/dist/client/codegen/index.d.ts +6 -0
- package/dist/client/codegen/index.js +23 -0
- package/dist/client/codegen/index.js.map +1 -0
- package/dist/client/codegen/promptCatalog.typedefs.d.ts +51 -0
- package/dist/client/codegen/promptCatalog.typedefs.js +3 -0
- package/dist/client/codegen/promptCatalog.typedefs.js.map +1 -0
- package/dist/client/codegen/promptName.d.ts +8 -0
- package/dist/client/codegen/promptName.js +21 -0
- package/dist/client/codegen/promptName.js.map +1 -0
- package/dist/client/codegen/renderSnapshot.constants.d.ts +7 -0
- package/dist/client/codegen/renderSnapshot.constants.js +16 -0
- package/dist/client/codegen/renderSnapshot.constants.js.map +1 -0
- package/dist/client/codegen/renderSnapshot.d.ts +9 -0
- package/dist/client/codegen/renderSnapshot.js +109 -0
- package/dist/client/codegen/renderSnapshot.js.map +1 -0
- package/dist/client/codegen/renderSnapshot.typedefs.d.ts +19 -0
- package/dist/client/codegen/renderSnapshot.typedefs.js +3 -0
- package/dist/client/codegen/renderSnapshot.typedefs.js.map +1 -0
- package/dist/client/coerceToolResult.d.ts +10 -0
- package/dist/client/coerceToolResult.js +38 -0
- package/dist/client/coerceToolResult.js.map +1 -0
- package/dist/client/createLLMClient.d.ts +10 -0
- package/dist/client/createLLMClient.js +47 -0
- package/dist/client/createLLMClient.js.map +1 -0
- package/dist/client/defineLLMPrompts.d.ts +34 -0
- package/dist/client/defineLLMPrompts.js +13 -0
- package/dist/client/defineLLMPrompts.js.map +1 -0
- package/dist/client/errors.d.ts +57 -0
- package/dist/client/errors.js +70 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/index.d.ts +13 -0
- package/dist/client/index.js +30 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/llmClient.typedefs.d.ts +265 -0
- package/dist/client/llmClient.typedefs.js +11 -0
- package/dist/client/llmClient.typedefs.js.map +1 -0
- package/dist/client/llmConfig.schema.d.ts +53 -0
- package/dist/client/llmConfig.schema.js +49 -0
- package/dist/client/llmConfig.schema.js.map +1 -0
- package/dist/client/plainMessages.d.ts +12 -0
- package/dist/client/plainMessages.js +19 -0
- package/dist/client/plainMessages.js.map +1 -0
- package/dist/client/promptClientPort.typedefs.d.ts +60 -0
- package/dist/client/promptClientPort.typedefs.js +3 -0
- package/dist/client/promptClientPort.typedefs.js.map +1 -0
- package/dist/client/promptRegistry.runtime.d.ts +121 -0
- package/dist/client/promptRegistry.runtime.js +264 -0
- package/dist/client/promptRegistry.runtime.js.map +1 -0
- package/dist/client/promptSnapshot.typedefs.d.ts +55 -0
- package/dist/client/promptSnapshot.typedefs.js +3 -0
- package/dist/client/promptSnapshot.typedefs.js.map +1 -0
- package/dist/client/promptVariables.d.ts +7 -0
- package/dist/client/promptVariables.js +13 -0
- package/dist/client/promptVariables.js.map +1 -0
- package/dist/client/snapshotRuntime.d.ts +17 -0
- package/dist/client/snapshotRuntime.js +42 -0
- package/dist/client/snapshotRuntime.js.map +1 -0
- package/dist/client/snapshotRuntime.typedefs.d.ts +13 -0
- package/dist/client/snapshotRuntime.typedefs.js +3 -0
- package/dist/client/snapshotRuntime.typedefs.js.map +1 -0
- package/dist/client/validationGate.d.ts +24 -0
- package/dist/client/validationGate.js +54 -0
- package/dist/client/validationGate.js.map +1 -0
- package/dist/codegen.d.ts +6 -0
- package/dist/codegen.js +23 -0
- package/dist/codegen.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.d.ts +873 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.js +269 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.entity.d.ts +24 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.entity.js +210 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.entity.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.typedefs.d.ts +22 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.typedefs.js +20 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.typedefs.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAIService.factory.d.ts +6 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAIService.factory.js +18 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAIService.factory.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/index.d.ts +5 -0
- package/dist/providers/GoogleGenerativeAI/index.js +22 -0
- package/dist/providers/GoogleGenerativeAI/index.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/schemas/GoogleSchemaAdapter.d.ts +12 -0
- package/dist/providers/GoogleGenerativeAI/schemas/GoogleSchemaAdapter.js +72 -0
- package/dist/providers/GoogleGenerativeAI/schemas/GoogleSchemaAdapter.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.d.ts +71 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.js +876 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAICompletion.service.d.ts +25 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAICompletion.service.js +216 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAICompletion.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAISpeechToText.service.d.ts +10 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAISpeechToText.service.js +136 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAISpeechToText.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAITextToSpeech.service.d.ts +11 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAITextToSpeech.service.js +97 -0
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAITextToSpeech.service.js.map +1 -0
- package/dist/providers/GoogleGenerativeAI/services/index.d.ts +4 -0
- package/dist/providers/GoogleGenerativeAI/services/index.js +21 -0
- package/dist/providers/GoogleGenerativeAI/services/index.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.d.ts +35832 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.js +8601 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.d.ts +6 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.js +48 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.d.ts +516 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.js +564 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.voices.d.ts +376 -0
- package/dist/providers/LLMAPI/LLMAPI.voices.js +739 -0
- package/dist/providers/LLMAPI/LLMAPI.voices.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.d.ts +6 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.js +19 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.js.map +1 -0
- package/dist/providers/LLMAPI/index.d.ts +7 -0
- package/dist/providers/LLMAPI/index.js +24 -0
- package/dist/providers/LLMAPI/index.js.map +1 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.d.ts +3 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.js +8 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.d.ts +76 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.js +825 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.d.ts +25 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.js +177 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.d.ts +17 -0
- package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.js +34 -0
- package/dist/providers/LLMAPI/services/LLMAPISpeechToText.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPITextToSpeech.service.d.ts +20 -0
- package/dist/providers/LLMAPI/services/LLMAPITextToSpeech.service.js +36 -0
- package/dist/providers/LLMAPI/services/LLMAPITextToSpeech.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/index.d.ts +4 -0
- package/dist/providers/LLMAPI/services/index.js +21 -0
- package/dist/providers/LLMAPI/services/index.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/index.d.ts +4 -0
- package/dist/providers/LLMAPI/utilities/index.js +13 -0
- package/dist/providers/LLMAPI/utilities/index.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/parseXmlToolCalls.d.ts +7 -0
- package/dist/providers/LLMAPI/utilities/parseXmlToolCalls.js +35 -0
- package/dist/providers/LLMAPI/utilities/parseXmlToolCalls.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/stripThinkingTags.d.ts +1 -0
- package/dist/providers/LLMAPI/utilities/stripThinkingTags.js +7 -0
- package/dist/providers/LLMAPI/utilities/stripThinkingTags.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/structuredOutput.d.ts +13 -0
- package/dist/providers/LLMAPI/utilities/structuredOutput.js +29 -0
- package/dist/providers/LLMAPI/utilities/structuredOutput.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/validateStructuredResponse.d.ts +10 -0
- package/dist/providers/LLMAPI/utilities/validateStructuredResponse.js +21 -0
- package/dist/providers/LLMAPI/utilities/validateStructuredResponse.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.constants.d.ts +1664 -0
- package/dist/providers/OpenAI/OpenAI.constants.js +310 -0
- package/dist/providers/OpenAI/OpenAI.constants.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.entity.d.ts +15 -0
- package/dist/providers/OpenAI/OpenAI.entity.js +162 -0
- package/dist/providers/OpenAI/OpenAI.entity.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.d.ts +61 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.js +39 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.js.map +1 -0
- package/dist/providers/OpenAI/OpenAIService.factory.d.ts +6 -0
- package/dist/providers/OpenAI/OpenAIService.factory.js +18 -0
- package/dist/providers/OpenAI/OpenAIService.factory.js.map +1 -0
- package/dist/providers/OpenAI/index.d.ts +5 -0
- package/dist/providers/OpenAI/index.js +22 -0
- package/dist/providers/OpenAI/index.js.map +1 -0
- package/dist/providers/OpenAI/schemas/OpenAISchemaAdapter.d.ts +14 -0
- package/dist/providers/OpenAI/schemas/OpenAISchemaAdapter.js +87 -0
- package/dist/providers/OpenAI/schemas/OpenAISchemaAdapter.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.d.ts +42 -0
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.js +712 -0
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAICompletion.service.d.ts +7 -0
- package/dist/providers/OpenAI/services/OpenAICompletion.service.js +12 -0
- package/dist/providers/OpenAI/services/OpenAICompletion.service.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAISpeechToText.service.d.ts +17 -0
- package/dist/providers/OpenAI/services/OpenAISpeechToText.service.js +40 -0
- package/dist/providers/OpenAI/services/OpenAISpeechToText.service.js.map +1 -0
- package/dist/providers/OpenAI/services/OpenAITextToSpeech.service.d.ts +13 -0
- package/dist/providers/OpenAI/services/OpenAITextToSpeech.service.js +32 -0
- package/dist/providers/OpenAI/services/OpenAITextToSpeech.service.js.map +1 -0
- package/dist/providers/OpenAI/services/buildFunctionCallOutput.d.ts +3 -0
- package/dist/providers/OpenAI/services/buildFunctionCallOutput.js +19 -0
- package/dist/providers/OpenAI/services/buildFunctionCallOutput.js.map +1 -0
- package/dist/providers/OpenAI/services/index.d.ts +4 -0
- package/dist/providers/OpenAI/services/index.js +21 -0
- package/dist/providers/OpenAI/services/index.js.map +1 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.d.ts +30 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.js +233 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.js.map +1 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.d.ts +22 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.js +98 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleSpeechToText.service.js.map +1 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleTextToSpeech.service.d.ts +22 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleTextToSpeech.service.js +67 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleTextToSpeech.service.js.map +1 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.js +20 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/services/LLMAssistanceService.abstract.d.ts +39 -0
- package/dist/services/LLMAssistanceService.abstract.js +101 -0
- package/dist/services/LLMAssistanceService.abstract.js.map +1 -0
- package/dist/services/LLMBaseService.abstract.d.ts +161 -0
- package/dist/services/LLMBaseService.abstract.js +392 -0
- package/dist/services/LLMBaseService.abstract.js.map +1 -0
- package/dist/services/LLMCompletionService.abstract.d.ts +16 -0
- package/dist/services/LLMCompletionService.abstract.js +12 -0
- package/dist/services/LLMCompletionService.abstract.js.map +1 -0
- package/dist/services/LLMServicePurposeFactory.abstract.d.ts +12 -0
- package/dist/services/LLMServicePurposeFactory.abstract.js +7 -0
- package/dist/services/LLMServicePurposeFactory.abstract.js.map +1 -0
- package/dist/services/LLMSpeechToTextService.abstract.d.ts +8 -0
- package/dist/services/LLMSpeechToTextService.abstract.js +12 -0
- package/dist/services/LLMSpeechToTextService.abstract.js.map +1 -0
- package/dist/services/LLMTextToSpeechService.abstract.d.ts +8 -0
- package/dist/services/LLMTextToSpeechService.abstract.js +12 -0
- package/dist/services/LLMTextToSpeechService.abstract.js.map +1 -0
- package/dist/services/agentRounds/LLMAgentRounds.d.ts +32 -0
- package/dist/services/agentRounds/LLMAgentRounds.js +77 -0
- package/dist/services/agentRounds/LLMAgentRounds.js.map +1 -0
- package/dist/services/agentRounds/agentRounds.typedefs.d.ts +48 -0
- package/dist/services/agentRounds/agentRounds.typedefs.js +3 -0
- package/dist/services/agentRounds/agentRounds.typedefs.js.map +1 -0
- package/dist/services/agentRounds/index.d.ts +2 -0
- package/dist/services/agentRounds/index.js +19 -0
- package/dist/services/agentRounds/index.js.map +1 -0
- package/dist/services/chatState/CompletionsChatState.d.ts +35 -0
- package/dist/services/chatState/CompletionsChatState.js +118 -0
- package/dist/services/chatState/CompletionsChatState.js.map +1 -0
- package/dist/services/chatState/index.d.ts +1 -0
- package/dist/services/chatState/index.js +6 -0
- package/dist/services/chatState/index.js.map +1 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.d.ts +15 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.js +172 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.js.map +1 -0
- package/dist/services/fileStorage/InMemoryFileStorage.d.ts +20 -0
- package/dist/services/fileStorage/InMemoryFileStorage.js +67 -0
- package/dist/services/fileStorage/InMemoryFileStorage.js.map +1 -0
- package/dist/services/fileStorage/fileStorageTools.d.ts +26 -0
- package/dist/services/fileStorage/fileStorageTools.js +68 -0
- package/dist/services/fileStorage/fileStorageTools.js.map +1 -0
- package/dist/services/fileStorage/index.d.ts +4 -0
- package/dist/services/fileStorage/index.js +11 -0
- package/dist/services/fileStorage/index.js.map +1 -0
- package/dist/services/index.d.ts +7 -0
- package/dist/services/index.js +24 -0
- package/dist/services/index.js.map +1 -0
- package/dist/utilities/calculateCosts.d.ts +4 -0
- package/dist/utilities/calculateCosts.js +56 -0
- package/dist/utilities/calculateCosts.js.map +1 -0
- package/dist/utilities/functional.utils.d.ts +1 -0
- package/dist/utilities/functional.utils.js +9 -0
- package/dist/utilities/functional.utils.js.map +1 -0
- package/dist/utilities/index.d.ts +9 -0
- package/dist/utilities/index.js +26 -0
- package/dist/utilities/index.js.map +1 -0
- package/dist/utilities/llmTracing/index.d.ts +3 -0
- package/dist/utilities/llmTracing/index.js +20 -0
- package/dist/utilities/llmTracing/index.js.map +1 -0
- package/dist/utilities/llmTracing/llmTracing.constants.d.ts +7 -0
- package/dist/utilities/llmTracing/llmTracing.constants.js +11 -0
- package/dist/utilities/llmTracing/llmTracing.constants.js.map +1 -0
- package/dist/utilities/llmTracing/llmTracing.typedefs.d.ts +126 -0
- package/dist/utilities/llmTracing/llmTracing.typedefs.js +3 -0
- package/dist/utilities/llmTracing/llmTracing.typedefs.js.map +1 -0
- package/dist/utilities/llmTracing/noopLLMTracing.d.ts +3 -0
- package/dist/utilities/llmTracing/noopLLMTracing.js +36 -0
- package/dist/utilities/llmTracing/noopLLMTracing.js.map +1 -0
- package/dist/utilities/logger/LLMLoggerInterface.d.ts +36 -0
- package/dist/utilities/logger/LLMLoggerInterface.js +3 -0
- package/dist/utilities/logger/LLMLoggerInterface.js.map +1 -0
- package/dist/utilities/logger/index.d.ts +1 -0
- package/dist/utilities/logger/index.js +18 -0
- package/dist/utilities/logger/index.js.map +1 -0
- package/dist/utilities/promptBuilder.d.ts +58 -0
- package/dist/utilities/promptBuilder.js +92 -0
- package/dist/utilities/promptBuilder.js.map +1 -0
- package/dist/utilities/reporter/LLMReporterInterface.d.ts +46 -0
- package/dist/utilities/reporter/LLMReporterInterface.js +3 -0
- package/dist/utilities/reporter/LLMReporterInterface.js.map +1 -0
- package/dist/utilities/reporter/index.d.ts +1 -0
- package/dist/utilities/reporter/index.js +18 -0
- package/dist/utilities/reporter/index.js.map +1 -0
- package/dist/utilities/schema/LLMSchema.d.ts +112 -0
- package/dist/utilities/schema/LLMSchema.js +223 -0
- package/dist/utilities/schema/LLMSchema.js.map +1 -0
- package/dist/utilities/schema/LLMSchema.typedefs.d.ts +55 -0
- package/dist/utilities/schema/LLMSchema.typedefs.js +3 -0
- package/dist/utilities/schema/LLMSchema.typedefs.js.map +1 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.d.ts +26 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.js +32 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.js.map +1 -0
- package/dist/utilities/schema/index.d.ts +2 -0
- package/dist/utilities/schema/index.js +19 -0
- package/dist/utilities/schema/index.js.map +1 -0
- package/dist/utilities/serializeError.d.ts +9 -0
- package/dist/utilities/serializeError.js +69 -0
- package/dist/utilities/serializeError.js.map +1 -0
- package/dist/utilities/tokenizer.d.ts +4 -0
- package/dist/utilities/tokenizer.js +14 -0
- package/dist/utilities/tokenizer.js.map +1 -0
- package/dist/utilities/tools/LLMTool.d.ts +5 -0
- package/dist/utilities/tools/LLMTool.js +10 -0
- package/dist/utilities/tools/LLMTool.js.map +1 -0
- package/dist/utilities/tools/index.d.ts +2 -0
- package/dist/utilities/tools/index.js +8 -0
- package/dist/utilities/tools/index.js.map +1 -0
- package/dist/utilities/tools/normalizeToolResult.d.ts +15 -0
- package/dist/utilities/tools/normalizeToolResult.js +18 -0
- package/dist/utilities/tools/normalizeToolResult.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
import { type LLMReporterInterface } from '../../utilities/reporter';
|
|
2
|
+
import { GoogleGenerativeAIModelNames } from './GoogleGenerativeAI.typedefs';
|
|
3
|
+
import { ThinkingLevel } from '@google/genai';
|
|
4
|
+
import { GoogleGenerativeAIAssistanceService, GoogleGenerativeAICompletionService, GoogleGenerativeAISpeechToTextService, GoogleGenerativeAITextToSpeechService } from '../../providers/GoogleGenerativeAI/services';
|
|
5
|
+
export declare const MIN_CACHE_CONTENT_LENGTH = 32768;
|
|
6
|
+
export declare const GOOGLE_AI_MODELS: {
|
|
7
|
+
readonly completion: Pick<{
|
|
8
|
+
readonly "gemini-2.5-flash": {
|
|
9
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH;
|
|
10
|
+
readonly limits: {
|
|
11
|
+
readonly maxInputTokens: 1048576;
|
|
12
|
+
readonly maxOutputTokens: 65536;
|
|
13
|
+
};
|
|
14
|
+
readonly config: {
|
|
15
|
+
readonly temperature: 0.2;
|
|
16
|
+
};
|
|
17
|
+
readonly pricing: {
|
|
18
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
19
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
20
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
21
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
22
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
23
|
+
readonly getPriceForAudioOutput: () => number;
|
|
24
|
+
readonly currency: "USD";
|
|
25
|
+
};
|
|
26
|
+
readonly capabilities: {
|
|
27
|
+
readonly vision: true;
|
|
28
|
+
readonly tools: true;
|
|
29
|
+
readonly reasoning: true;
|
|
30
|
+
readonly webSearch: true;
|
|
31
|
+
readonly stt: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly "gemini-2.5-flash-lite": {
|
|
35
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE;
|
|
36
|
+
readonly limits: {
|
|
37
|
+
readonly maxInputTokens: 1048576;
|
|
38
|
+
readonly maxOutputTokens: 65536;
|
|
39
|
+
};
|
|
40
|
+
readonly config: {
|
|
41
|
+
readonly temperature: 0.2;
|
|
42
|
+
};
|
|
43
|
+
readonly pricing: {
|
|
44
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
45
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
46
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
47
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
48
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
49
|
+
readonly getPriceForAudioOutput: () => number;
|
|
50
|
+
readonly currency: "USD";
|
|
51
|
+
};
|
|
52
|
+
readonly capabilities: {
|
|
53
|
+
readonly vision: true;
|
|
54
|
+
readonly tools: true;
|
|
55
|
+
readonly reasoning: false;
|
|
56
|
+
readonly webSearch: false;
|
|
57
|
+
readonly stt: true;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly "gemini-2.5-pro": {
|
|
61
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO;
|
|
62
|
+
readonly limits: {
|
|
63
|
+
readonly maxInputTokens: 1048576;
|
|
64
|
+
readonly maxOutputTokens: 65536;
|
|
65
|
+
};
|
|
66
|
+
readonly config: {
|
|
67
|
+
readonly temperature: 0.2;
|
|
68
|
+
};
|
|
69
|
+
readonly pricing: {
|
|
70
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
71
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
72
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
73
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
74
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
75
|
+
readonly getPriceForAudioOutput: () => number;
|
|
76
|
+
readonly currency: "USD";
|
|
77
|
+
};
|
|
78
|
+
readonly capabilities: {
|
|
79
|
+
readonly vision: true;
|
|
80
|
+
readonly tools: true;
|
|
81
|
+
readonly reasoning: true;
|
|
82
|
+
readonly webSearch: true;
|
|
83
|
+
readonly stt: true;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly "gemini-2.5-flash-preview-tts": {
|
|
87
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_PREVIEW_TTS;
|
|
88
|
+
readonly limits: {
|
|
89
|
+
readonly maxInputTokens: 8000;
|
|
90
|
+
readonly maxOutputTokens: 16000;
|
|
91
|
+
};
|
|
92
|
+
readonly config: {
|
|
93
|
+
readonly temperature: 0.2;
|
|
94
|
+
};
|
|
95
|
+
readonly pricing: {
|
|
96
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
97
|
+
readonly getPriceForTextOutput: () => number;
|
|
98
|
+
readonly getPriceForAudioInput: () => number;
|
|
99
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
100
|
+
readonly currency: "USD";
|
|
101
|
+
};
|
|
102
|
+
readonly capabilities: {
|
|
103
|
+
readonly vision: false;
|
|
104
|
+
readonly tools: false;
|
|
105
|
+
readonly reasoning: false;
|
|
106
|
+
readonly webSearch: false;
|
|
107
|
+
readonly tts: true;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly "gemini-2.5-pro-preview-tts": {
|
|
111
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO_PREVIEW_TTS;
|
|
112
|
+
readonly limits: {
|
|
113
|
+
readonly maxInputTokens: 8000;
|
|
114
|
+
readonly maxOutputTokens: 16000;
|
|
115
|
+
};
|
|
116
|
+
readonly config: {
|
|
117
|
+
readonly temperature: 0.2;
|
|
118
|
+
};
|
|
119
|
+
readonly pricing: {
|
|
120
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
121
|
+
readonly getPriceForTextOutput: () => number;
|
|
122
|
+
readonly getPriceForAudioInput: () => number;
|
|
123
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
124
|
+
readonly currency: "USD";
|
|
125
|
+
};
|
|
126
|
+
readonly capabilities: {
|
|
127
|
+
readonly vision: false;
|
|
128
|
+
readonly tools: false;
|
|
129
|
+
readonly reasoning: false;
|
|
130
|
+
readonly webSearch: false;
|
|
131
|
+
readonly tts: true;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly "gemini-3-flash-preview": {
|
|
135
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW;
|
|
136
|
+
readonly limits: {
|
|
137
|
+
readonly maxInputTokens: 1048576;
|
|
138
|
+
readonly maxOutputTokens: 65536;
|
|
139
|
+
};
|
|
140
|
+
readonly config: {
|
|
141
|
+
readonly temperature: 1;
|
|
142
|
+
readonly thinkingConfig: {
|
|
143
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly pricing: {
|
|
147
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
148
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
149
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
150
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
151
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
152
|
+
readonly getPriceForAudioOutput: () => number;
|
|
153
|
+
readonly currency: "USD";
|
|
154
|
+
};
|
|
155
|
+
readonly capabilities: {
|
|
156
|
+
readonly vision: true;
|
|
157
|
+
readonly tools: true;
|
|
158
|
+
readonly reasoning: true;
|
|
159
|
+
readonly webSearch: true;
|
|
160
|
+
readonly stt: true;
|
|
161
|
+
readonly multimodalToolResults: true;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly "gemini-3.1-flash-lite-preview": {
|
|
165
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW;
|
|
166
|
+
readonly limits: {
|
|
167
|
+
readonly maxInputTokens: 1048576;
|
|
168
|
+
readonly maxOutputTokens: 65536;
|
|
169
|
+
};
|
|
170
|
+
readonly config: {
|
|
171
|
+
readonly temperature: 0.2;
|
|
172
|
+
};
|
|
173
|
+
readonly pricing: {
|
|
174
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
175
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
176
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
177
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
178
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
179
|
+
readonly getPriceForAudioOutput: () => number;
|
|
180
|
+
readonly currency: "USD";
|
|
181
|
+
};
|
|
182
|
+
readonly capabilities: {
|
|
183
|
+
readonly vision: true;
|
|
184
|
+
readonly tools: true;
|
|
185
|
+
readonly reasoning: false;
|
|
186
|
+
readonly webSearch: false;
|
|
187
|
+
readonly stt: true;
|
|
188
|
+
readonly multimodalToolResults: true;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly "gemini-3.1-pro-preview": {
|
|
192
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW;
|
|
193
|
+
readonly limits: {
|
|
194
|
+
readonly maxInputTokens: 1048576;
|
|
195
|
+
readonly maxOutputTokens: 65536;
|
|
196
|
+
};
|
|
197
|
+
readonly config: {
|
|
198
|
+
readonly temperature: 1;
|
|
199
|
+
readonly thinkingConfig: {
|
|
200
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly pricing: {
|
|
204
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
205
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
206
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
207
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
208
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
209
|
+
readonly getPriceForAudioOutput: () => number;
|
|
210
|
+
readonly currency: "USD";
|
|
211
|
+
};
|
|
212
|
+
readonly capabilities: {
|
|
213
|
+
readonly vision: true;
|
|
214
|
+
readonly tools: true;
|
|
215
|
+
readonly reasoning: true;
|
|
216
|
+
readonly webSearch: true;
|
|
217
|
+
readonly stt: true;
|
|
218
|
+
readonly multimodalToolResults: true;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
}, GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH | GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE | GoogleGenerativeAIModelNames.GEMINI_2_5_PRO | GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW | GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW | GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW>;
|
|
222
|
+
readonly assistance: Pick<{
|
|
223
|
+
readonly "gemini-2.5-flash": {
|
|
224
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH;
|
|
225
|
+
readonly limits: {
|
|
226
|
+
readonly maxInputTokens: 1048576;
|
|
227
|
+
readonly maxOutputTokens: 65536;
|
|
228
|
+
};
|
|
229
|
+
readonly config: {
|
|
230
|
+
readonly temperature: 0.2;
|
|
231
|
+
};
|
|
232
|
+
readonly pricing: {
|
|
233
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
234
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
235
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
236
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
237
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
238
|
+
readonly getPriceForAudioOutput: () => number;
|
|
239
|
+
readonly currency: "USD";
|
|
240
|
+
};
|
|
241
|
+
readonly capabilities: {
|
|
242
|
+
readonly vision: true;
|
|
243
|
+
readonly tools: true;
|
|
244
|
+
readonly reasoning: true;
|
|
245
|
+
readonly webSearch: true;
|
|
246
|
+
readonly stt: true;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly "gemini-2.5-flash-lite": {
|
|
250
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE;
|
|
251
|
+
readonly limits: {
|
|
252
|
+
readonly maxInputTokens: 1048576;
|
|
253
|
+
readonly maxOutputTokens: 65536;
|
|
254
|
+
};
|
|
255
|
+
readonly config: {
|
|
256
|
+
readonly temperature: 0.2;
|
|
257
|
+
};
|
|
258
|
+
readonly pricing: {
|
|
259
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
260
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
261
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
262
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
263
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
264
|
+
readonly getPriceForAudioOutput: () => number;
|
|
265
|
+
readonly currency: "USD";
|
|
266
|
+
};
|
|
267
|
+
readonly capabilities: {
|
|
268
|
+
readonly vision: true;
|
|
269
|
+
readonly tools: true;
|
|
270
|
+
readonly reasoning: false;
|
|
271
|
+
readonly webSearch: false;
|
|
272
|
+
readonly stt: true;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
readonly "gemini-2.5-pro": {
|
|
276
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO;
|
|
277
|
+
readonly limits: {
|
|
278
|
+
readonly maxInputTokens: 1048576;
|
|
279
|
+
readonly maxOutputTokens: 65536;
|
|
280
|
+
};
|
|
281
|
+
readonly config: {
|
|
282
|
+
readonly temperature: 0.2;
|
|
283
|
+
};
|
|
284
|
+
readonly pricing: {
|
|
285
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
286
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
287
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
288
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
289
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
290
|
+
readonly getPriceForAudioOutput: () => number;
|
|
291
|
+
readonly currency: "USD";
|
|
292
|
+
};
|
|
293
|
+
readonly capabilities: {
|
|
294
|
+
readonly vision: true;
|
|
295
|
+
readonly tools: true;
|
|
296
|
+
readonly reasoning: true;
|
|
297
|
+
readonly webSearch: true;
|
|
298
|
+
readonly stt: true;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
readonly "gemini-2.5-flash-preview-tts": {
|
|
302
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_PREVIEW_TTS;
|
|
303
|
+
readonly limits: {
|
|
304
|
+
readonly maxInputTokens: 8000;
|
|
305
|
+
readonly maxOutputTokens: 16000;
|
|
306
|
+
};
|
|
307
|
+
readonly config: {
|
|
308
|
+
readonly temperature: 0.2;
|
|
309
|
+
};
|
|
310
|
+
readonly pricing: {
|
|
311
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
312
|
+
readonly getPriceForTextOutput: () => number;
|
|
313
|
+
readonly getPriceForAudioInput: () => number;
|
|
314
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
315
|
+
readonly currency: "USD";
|
|
316
|
+
};
|
|
317
|
+
readonly capabilities: {
|
|
318
|
+
readonly vision: false;
|
|
319
|
+
readonly tools: false;
|
|
320
|
+
readonly reasoning: false;
|
|
321
|
+
readonly webSearch: false;
|
|
322
|
+
readonly tts: true;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly "gemini-2.5-pro-preview-tts": {
|
|
326
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO_PREVIEW_TTS;
|
|
327
|
+
readonly limits: {
|
|
328
|
+
readonly maxInputTokens: 8000;
|
|
329
|
+
readonly maxOutputTokens: 16000;
|
|
330
|
+
};
|
|
331
|
+
readonly config: {
|
|
332
|
+
readonly temperature: 0.2;
|
|
333
|
+
};
|
|
334
|
+
readonly pricing: {
|
|
335
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
336
|
+
readonly getPriceForTextOutput: () => number;
|
|
337
|
+
readonly getPriceForAudioInput: () => number;
|
|
338
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
339
|
+
readonly currency: "USD";
|
|
340
|
+
};
|
|
341
|
+
readonly capabilities: {
|
|
342
|
+
readonly vision: false;
|
|
343
|
+
readonly tools: false;
|
|
344
|
+
readonly reasoning: false;
|
|
345
|
+
readonly webSearch: false;
|
|
346
|
+
readonly tts: true;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
readonly "gemini-3-flash-preview": {
|
|
350
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW;
|
|
351
|
+
readonly limits: {
|
|
352
|
+
readonly maxInputTokens: 1048576;
|
|
353
|
+
readonly maxOutputTokens: 65536;
|
|
354
|
+
};
|
|
355
|
+
readonly config: {
|
|
356
|
+
readonly temperature: 1;
|
|
357
|
+
readonly thinkingConfig: {
|
|
358
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
readonly pricing: {
|
|
362
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
363
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
364
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
365
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
366
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
367
|
+
readonly getPriceForAudioOutput: () => number;
|
|
368
|
+
readonly currency: "USD";
|
|
369
|
+
};
|
|
370
|
+
readonly capabilities: {
|
|
371
|
+
readonly vision: true;
|
|
372
|
+
readonly tools: true;
|
|
373
|
+
readonly reasoning: true;
|
|
374
|
+
readonly webSearch: true;
|
|
375
|
+
readonly stt: true;
|
|
376
|
+
readonly multimodalToolResults: true;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
readonly "gemini-3.1-flash-lite-preview": {
|
|
380
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW;
|
|
381
|
+
readonly limits: {
|
|
382
|
+
readonly maxInputTokens: 1048576;
|
|
383
|
+
readonly maxOutputTokens: 65536;
|
|
384
|
+
};
|
|
385
|
+
readonly config: {
|
|
386
|
+
readonly temperature: 0.2;
|
|
387
|
+
};
|
|
388
|
+
readonly pricing: {
|
|
389
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
390
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
391
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
392
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
393
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
394
|
+
readonly getPriceForAudioOutput: () => number;
|
|
395
|
+
readonly currency: "USD";
|
|
396
|
+
};
|
|
397
|
+
readonly capabilities: {
|
|
398
|
+
readonly vision: true;
|
|
399
|
+
readonly tools: true;
|
|
400
|
+
readonly reasoning: false;
|
|
401
|
+
readonly webSearch: false;
|
|
402
|
+
readonly stt: true;
|
|
403
|
+
readonly multimodalToolResults: true;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
readonly "gemini-3.1-pro-preview": {
|
|
407
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW;
|
|
408
|
+
readonly limits: {
|
|
409
|
+
readonly maxInputTokens: 1048576;
|
|
410
|
+
readonly maxOutputTokens: 65536;
|
|
411
|
+
};
|
|
412
|
+
readonly config: {
|
|
413
|
+
readonly temperature: 1;
|
|
414
|
+
readonly thinkingConfig: {
|
|
415
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
readonly pricing: {
|
|
419
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
420
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
421
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
422
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
423
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
424
|
+
readonly getPriceForAudioOutput: () => number;
|
|
425
|
+
readonly currency: "USD";
|
|
426
|
+
};
|
|
427
|
+
readonly capabilities: {
|
|
428
|
+
readonly vision: true;
|
|
429
|
+
readonly tools: true;
|
|
430
|
+
readonly reasoning: true;
|
|
431
|
+
readonly webSearch: true;
|
|
432
|
+
readonly stt: true;
|
|
433
|
+
readonly multimodalToolResults: true;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
}, GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH | GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE | GoogleGenerativeAIModelNames.GEMINI_2_5_PRO | GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW | GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW | GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW>;
|
|
437
|
+
readonly speech_to_text: Pick<{
|
|
438
|
+
readonly "gemini-2.5-flash": {
|
|
439
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH;
|
|
440
|
+
readonly limits: {
|
|
441
|
+
readonly maxInputTokens: 1048576;
|
|
442
|
+
readonly maxOutputTokens: 65536;
|
|
443
|
+
};
|
|
444
|
+
readonly config: {
|
|
445
|
+
readonly temperature: 0.2;
|
|
446
|
+
};
|
|
447
|
+
readonly pricing: {
|
|
448
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
449
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
450
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
451
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
452
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
453
|
+
readonly getPriceForAudioOutput: () => number;
|
|
454
|
+
readonly currency: "USD";
|
|
455
|
+
};
|
|
456
|
+
readonly capabilities: {
|
|
457
|
+
readonly vision: true;
|
|
458
|
+
readonly tools: true;
|
|
459
|
+
readonly reasoning: true;
|
|
460
|
+
readonly webSearch: true;
|
|
461
|
+
readonly stt: true;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
readonly "gemini-2.5-flash-lite": {
|
|
465
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE;
|
|
466
|
+
readonly limits: {
|
|
467
|
+
readonly maxInputTokens: 1048576;
|
|
468
|
+
readonly maxOutputTokens: 65536;
|
|
469
|
+
};
|
|
470
|
+
readonly config: {
|
|
471
|
+
readonly temperature: 0.2;
|
|
472
|
+
};
|
|
473
|
+
readonly pricing: {
|
|
474
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
475
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
476
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
477
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
478
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
479
|
+
readonly getPriceForAudioOutput: () => number;
|
|
480
|
+
readonly currency: "USD";
|
|
481
|
+
};
|
|
482
|
+
readonly capabilities: {
|
|
483
|
+
readonly vision: true;
|
|
484
|
+
readonly tools: true;
|
|
485
|
+
readonly reasoning: false;
|
|
486
|
+
readonly webSearch: false;
|
|
487
|
+
readonly stt: true;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
readonly "gemini-2.5-pro": {
|
|
491
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO;
|
|
492
|
+
readonly limits: {
|
|
493
|
+
readonly maxInputTokens: 1048576;
|
|
494
|
+
readonly maxOutputTokens: 65536;
|
|
495
|
+
};
|
|
496
|
+
readonly config: {
|
|
497
|
+
readonly temperature: 0.2;
|
|
498
|
+
};
|
|
499
|
+
readonly pricing: {
|
|
500
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
501
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
502
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
503
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
504
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
505
|
+
readonly getPriceForAudioOutput: () => number;
|
|
506
|
+
readonly currency: "USD";
|
|
507
|
+
};
|
|
508
|
+
readonly capabilities: {
|
|
509
|
+
readonly vision: true;
|
|
510
|
+
readonly tools: true;
|
|
511
|
+
readonly reasoning: true;
|
|
512
|
+
readonly webSearch: true;
|
|
513
|
+
readonly stt: true;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly "gemini-2.5-flash-preview-tts": {
|
|
517
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_PREVIEW_TTS;
|
|
518
|
+
readonly limits: {
|
|
519
|
+
readonly maxInputTokens: 8000;
|
|
520
|
+
readonly maxOutputTokens: 16000;
|
|
521
|
+
};
|
|
522
|
+
readonly config: {
|
|
523
|
+
readonly temperature: 0.2;
|
|
524
|
+
};
|
|
525
|
+
readonly pricing: {
|
|
526
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
527
|
+
readonly getPriceForTextOutput: () => number;
|
|
528
|
+
readonly getPriceForAudioInput: () => number;
|
|
529
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
530
|
+
readonly currency: "USD";
|
|
531
|
+
};
|
|
532
|
+
readonly capabilities: {
|
|
533
|
+
readonly vision: false;
|
|
534
|
+
readonly tools: false;
|
|
535
|
+
readonly reasoning: false;
|
|
536
|
+
readonly webSearch: false;
|
|
537
|
+
readonly tts: true;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
readonly "gemini-2.5-pro-preview-tts": {
|
|
541
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO_PREVIEW_TTS;
|
|
542
|
+
readonly limits: {
|
|
543
|
+
readonly maxInputTokens: 8000;
|
|
544
|
+
readonly maxOutputTokens: 16000;
|
|
545
|
+
};
|
|
546
|
+
readonly config: {
|
|
547
|
+
readonly temperature: 0.2;
|
|
548
|
+
};
|
|
549
|
+
readonly pricing: {
|
|
550
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
551
|
+
readonly getPriceForTextOutput: () => number;
|
|
552
|
+
readonly getPriceForAudioInput: () => number;
|
|
553
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
554
|
+
readonly currency: "USD";
|
|
555
|
+
};
|
|
556
|
+
readonly capabilities: {
|
|
557
|
+
readonly vision: false;
|
|
558
|
+
readonly tools: false;
|
|
559
|
+
readonly reasoning: false;
|
|
560
|
+
readonly webSearch: false;
|
|
561
|
+
readonly tts: true;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
readonly "gemini-3-flash-preview": {
|
|
565
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW;
|
|
566
|
+
readonly limits: {
|
|
567
|
+
readonly maxInputTokens: 1048576;
|
|
568
|
+
readonly maxOutputTokens: 65536;
|
|
569
|
+
};
|
|
570
|
+
readonly config: {
|
|
571
|
+
readonly temperature: 1;
|
|
572
|
+
readonly thinkingConfig: {
|
|
573
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
readonly pricing: {
|
|
577
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
578
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
579
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
580
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
581
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
582
|
+
readonly getPriceForAudioOutput: () => number;
|
|
583
|
+
readonly currency: "USD";
|
|
584
|
+
};
|
|
585
|
+
readonly capabilities: {
|
|
586
|
+
readonly vision: true;
|
|
587
|
+
readonly tools: true;
|
|
588
|
+
readonly reasoning: true;
|
|
589
|
+
readonly webSearch: true;
|
|
590
|
+
readonly stt: true;
|
|
591
|
+
readonly multimodalToolResults: true;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
readonly "gemini-3.1-flash-lite-preview": {
|
|
595
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW;
|
|
596
|
+
readonly limits: {
|
|
597
|
+
readonly maxInputTokens: 1048576;
|
|
598
|
+
readonly maxOutputTokens: 65536;
|
|
599
|
+
};
|
|
600
|
+
readonly config: {
|
|
601
|
+
readonly temperature: 0.2;
|
|
602
|
+
};
|
|
603
|
+
readonly pricing: {
|
|
604
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
605
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
606
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
607
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
608
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
609
|
+
readonly getPriceForAudioOutput: () => number;
|
|
610
|
+
readonly currency: "USD";
|
|
611
|
+
};
|
|
612
|
+
readonly capabilities: {
|
|
613
|
+
readonly vision: true;
|
|
614
|
+
readonly tools: true;
|
|
615
|
+
readonly reasoning: false;
|
|
616
|
+
readonly webSearch: false;
|
|
617
|
+
readonly stt: true;
|
|
618
|
+
readonly multimodalToolResults: true;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
readonly "gemini-3.1-pro-preview": {
|
|
622
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW;
|
|
623
|
+
readonly limits: {
|
|
624
|
+
readonly maxInputTokens: 1048576;
|
|
625
|
+
readonly maxOutputTokens: 65536;
|
|
626
|
+
};
|
|
627
|
+
readonly config: {
|
|
628
|
+
readonly temperature: 1;
|
|
629
|
+
readonly thinkingConfig: {
|
|
630
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
readonly pricing: {
|
|
634
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
635
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
636
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
637
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
638
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
639
|
+
readonly getPriceForAudioOutput: () => number;
|
|
640
|
+
readonly currency: "USD";
|
|
641
|
+
};
|
|
642
|
+
readonly capabilities: {
|
|
643
|
+
readonly vision: true;
|
|
644
|
+
readonly tools: true;
|
|
645
|
+
readonly reasoning: true;
|
|
646
|
+
readonly webSearch: true;
|
|
647
|
+
readonly stt: true;
|
|
648
|
+
readonly multimodalToolResults: true;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
}, GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH | GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE | GoogleGenerativeAIModelNames.GEMINI_2_5_PRO | GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW | GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW | GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW>;
|
|
652
|
+
readonly text_to_speech: Pick<{
|
|
653
|
+
readonly "gemini-2.5-flash": {
|
|
654
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH;
|
|
655
|
+
readonly limits: {
|
|
656
|
+
readonly maxInputTokens: 1048576;
|
|
657
|
+
readonly maxOutputTokens: 65536;
|
|
658
|
+
};
|
|
659
|
+
readonly config: {
|
|
660
|
+
readonly temperature: 0.2;
|
|
661
|
+
};
|
|
662
|
+
readonly pricing: {
|
|
663
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
664
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
665
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
666
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
667
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
668
|
+
readonly getPriceForAudioOutput: () => number;
|
|
669
|
+
readonly currency: "USD";
|
|
670
|
+
};
|
|
671
|
+
readonly capabilities: {
|
|
672
|
+
readonly vision: true;
|
|
673
|
+
readonly tools: true;
|
|
674
|
+
readonly reasoning: true;
|
|
675
|
+
readonly webSearch: true;
|
|
676
|
+
readonly stt: true;
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
readonly "gemini-2.5-flash-lite": {
|
|
680
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_LITE;
|
|
681
|
+
readonly limits: {
|
|
682
|
+
readonly maxInputTokens: 1048576;
|
|
683
|
+
readonly maxOutputTokens: 65536;
|
|
684
|
+
};
|
|
685
|
+
readonly config: {
|
|
686
|
+
readonly temperature: 0.2;
|
|
687
|
+
};
|
|
688
|
+
readonly pricing: {
|
|
689
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
690
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
691
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
692
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
693
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
694
|
+
readonly getPriceForAudioOutput: () => number;
|
|
695
|
+
readonly currency: "USD";
|
|
696
|
+
};
|
|
697
|
+
readonly capabilities: {
|
|
698
|
+
readonly vision: true;
|
|
699
|
+
readonly tools: true;
|
|
700
|
+
readonly reasoning: false;
|
|
701
|
+
readonly webSearch: false;
|
|
702
|
+
readonly stt: true;
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
readonly "gemini-2.5-pro": {
|
|
706
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO;
|
|
707
|
+
readonly limits: {
|
|
708
|
+
readonly maxInputTokens: 1048576;
|
|
709
|
+
readonly maxOutputTokens: 65536;
|
|
710
|
+
};
|
|
711
|
+
readonly config: {
|
|
712
|
+
readonly temperature: 0.2;
|
|
713
|
+
};
|
|
714
|
+
readonly pricing: {
|
|
715
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
716
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
717
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
718
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
719
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
720
|
+
readonly getPriceForAudioOutput: () => number;
|
|
721
|
+
readonly currency: "USD";
|
|
722
|
+
};
|
|
723
|
+
readonly capabilities: {
|
|
724
|
+
readonly vision: true;
|
|
725
|
+
readonly tools: true;
|
|
726
|
+
readonly reasoning: true;
|
|
727
|
+
readonly webSearch: true;
|
|
728
|
+
readonly stt: true;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly "gemini-2.5-flash-preview-tts": {
|
|
732
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_PREVIEW_TTS;
|
|
733
|
+
readonly limits: {
|
|
734
|
+
readonly maxInputTokens: 8000;
|
|
735
|
+
readonly maxOutputTokens: 16000;
|
|
736
|
+
};
|
|
737
|
+
readonly config: {
|
|
738
|
+
readonly temperature: 0.2;
|
|
739
|
+
};
|
|
740
|
+
readonly pricing: {
|
|
741
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
742
|
+
readonly getPriceForTextOutput: () => number;
|
|
743
|
+
readonly getPriceForAudioInput: () => number;
|
|
744
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
745
|
+
readonly currency: "USD";
|
|
746
|
+
};
|
|
747
|
+
readonly capabilities: {
|
|
748
|
+
readonly vision: false;
|
|
749
|
+
readonly tools: false;
|
|
750
|
+
readonly reasoning: false;
|
|
751
|
+
readonly webSearch: false;
|
|
752
|
+
readonly tts: true;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
readonly "gemini-2.5-pro-preview-tts": {
|
|
756
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_2_5_PRO_PREVIEW_TTS;
|
|
757
|
+
readonly limits: {
|
|
758
|
+
readonly maxInputTokens: 8000;
|
|
759
|
+
readonly maxOutputTokens: 16000;
|
|
760
|
+
};
|
|
761
|
+
readonly config: {
|
|
762
|
+
readonly temperature: 0.2;
|
|
763
|
+
};
|
|
764
|
+
readonly pricing: {
|
|
765
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
766
|
+
readonly getPriceForTextOutput: () => number;
|
|
767
|
+
readonly getPriceForAudioInput: () => number;
|
|
768
|
+
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
769
|
+
readonly currency: "USD";
|
|
770
|
+
};
|
|
771
|
+
readonly capabilities: {
|
|
772
|
+
readonly vision: false;
|
|
773
|
+
readonly tools: false;
|
|
774
|
+
readonly reasoning: false;
|
|
775
|
+
readonly webSearch: false;
|
|
776
|
+
readonly tts: true;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
readonly "gemini-3-flash-preview": {
|
|
780
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_FLASH_PREVIEW;
|
|
781
|
+
readonly limits: {
|
|
782
|
+
readonly maxInputTokens: 1048576;
|
|
783
|
+
readonly maxOutputTokens: 65536;
|
|
784
|
+
};
|
|
785
|
+
readonly config: {
|
|
786
|
+
readonly temperature: 1;
|
|
787
|
+
readonly thinkingConfig: {
|
|
788
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
readonly pricing: {
|
|
792
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
793
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
794
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
795
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
796
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
797
|
+
readonly getPriceForAudioOutput: () => number;
|
|
798
|
+
readonly currency: "USD";
|
|
799
|
+
};
|
|
800
|
+
readonly capabilities: {
|
|
801
|
+
readonly vision: true;
|
|
802
|
+
readonly tools: true;
|
|
803
|
+
readonly reasoning: true;
|
|
804
|
+
readonly webSearch: true;
|
|
805
|
+
readonly stt: true;
|
|
806
|
+
readonly multimodalToolResults: true;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
readonly "gemini-3.1-flash-lite-preview": {
|
|
810
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_FLASH_LITE_PREVIEW;
|
|
811
|
+
readonly limits: {
|
|
812
|
+
readonly maxInputTokens: 1048576;
|
|
813
|
+
readonly maxOutputTokens: 65536;
|
|
814
|
+
};
|
|
815
|
+
readonly config: {
|
|
816
|
+
readonly temperature: 0.2;
|
|
817
|
+
};
|
|
818
|
+
readonly pricing: {
|
|
819
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
820
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
821
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
822
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
823
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
824
|
+
readonly getPriceForAudioOutput: () => number;
|
|
825
|
+
readonly currency: "USD";
|
|
826
|
+
};
|
|
827
|
+
readonly capabilities: {
|
|
828
|
+
readonly vision: true;
|
|
829
|
+
readonly tools: true;
|
|
830
|
+
readonly reasoning: false;
|
|
831
|
+
readonly webSearch: false;
|
|
832
|
+
readonly stt: true;
|
|
833
|
+
readonly multimodalToolResults: true;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
readonly "gemini-3.1-pro-preview": {
|
|
837
|
+
readonly name: GoogleGenerativeAIModelNames.GEMINI_3_1_PRO_PREVIEW;
|
|
838
|
+
readonly limits: {
|
|
839
|
+
readonly maxInputTokens: 1048576;
|
|
840
|
+
readonly maxOutputTokens: 65536;
|
|
841
|
+
};
|
|
842
|
+
readonly config: {
|
|
843
|
+
readonly temperature: 1;
|
|
844
|
+
readonly thinkingConfig: {
|
|
845
|
+
readonly thinkingLevel: ThinkingLevel.LOW;
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
readonly pricing: {
|
|
849
|
+
readonly getPriceForTextInput: (tokens: number) => number;
|
|
850
|
+
readonly getPriceForTextOutput: (tokens: number) => number;
|
|
851
|
+
readonly getPriceForCachedTextInput: (tokens: number) => number;
|
|
852
|
+
readonly getPriceForAudioInput: (audio_tokens: number) => number;
|
|
853
|
+
readonly getPriceForCachedAudioInput: (audio_tokens: number) => number;
|
|
854
|
+
readonly getPriceForAudioOutput: () => number;
|
|
855
|
+
readonly currency: "USD";
|
|
856
|
+
};
|
|
857
|
+
readonly capabilities: {
|
|
858
|
+
readonly vision: true;
|
|
859
|
+
readonly tools: true;
|
|
860
|
+
readonly reasoning: true;
|
|
861
|
+
readonly webSearch: true;
|
|
862
|
+
readonly stt: true;
|
|
863
|
+
readonly multimodalToolResults: true;
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
}, GoogleGenerativeAIModelNames.GEMINI_2_5_FLASH_PREVIEW_TTS | GoogleGenerativeAIModelNames.GEMINI_2_5_PRO_PREVIEW_TTS>;
|
|
867
|
+
};
|
|
868
|
+
export declare const GOOGLE_AI_SERVICE_BUILDERS: {
|
|
869
|
+
readonly completion: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("@google/genai").GoogleGenAIOptions | undefined) => GoogleGenerativeAICompletionService<LLMReporterInterface<any> | undefined>;
|
|
870
|
+
readonly assistance: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("@google/genai").GoogleGenAIOptions | undefined) => GoogleGenerativeAIAssistanceService<LLMReporterInterface<any> | undefined>;
|
|
871
|
+
readonly speech_to_text: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("@google/genai").GoogleGenAIOptions | undefined) => GoogleGenerativeAISpeechToTextService<LLMReporterInterface<any> | undefined>;
|
|
872
|
+
readonly text_to_speech: (logger: import("../..").LLMLoggerInterface | undefined, reporter: LLMReporterInterface<any> | undefined, options: import("@google/genai").GoogleGenAIOptions | undefined) => GoogleGenerativeAITextToSpeechService<LLMReporterInterface<any> | undefined>;
|
|
873
|
+
};
|