@librechat/agents-types 1.8.8 → 1.9.0

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.
Files changed (2) hide show
  1. package/llm.ts +6 -1
  2. package/package.json +1 -1
package/llm.ts CHANGED
@@ -6,12 +6,14 @@ import { ChatMistralAI } from '@langchain/mistralai';
6
6
  import { ChatBedrockConverse } from '@langchain/aws';
7
7
  import { ChatVertexAI } from '@langchain/google-vertexai';
8
8
  import { BedrockChat } from '@langchain/community/chat_models/bedrock/web';
9
+ import { ChatGoogleGenerativeAI } from '@langchain/google-genai';
9
10
  import type { Runnable } from '@langchain/core/runnables';
10
11
  import type { StructuredTool } from '@langchain/core/tools';
11
12
  import type { BindToolsInput } from '@langchain/core/language_models/chat_models';
12
13
  import type { BedrockChatFields } from '@langchain/community/chat_models/bedrock/web';
13
14
  import type { ChatOpenAIFields } from '@langchain/openai';
14
15
  import type { OpenAI as OpenAIClient } from 'openai';
16
+ import type { GoogleGenerativeAIChatInput } from '@langchain/google-genai';
15
17
  import type { ChatVertexAIInput } from '@langchain/google-vertexai';
16
18
  import type { ChatBedrockConverseInput } from '@langchain/aws';
17
19
  import type { ChatMistralAIInput } from '@langchain/mistralai';
@@ -29,8 +31,9 @@ export type MistralAIClientOptions = ChatMistralAIInput;
29
31
  export type VertexAIClientOptions = ChatVertexAIInput;
30
32
  export type BedrockClientOptions = BedrockChatFields;
31
33
  export type BedrockConverseClientOptions = ChatBedrockConverseInput;
34
+ export type GoogleClientOptions = GoogleGenerativeAIChatInput;
32
35
 
33
- export type ClientOptions = OpenAIClientOptions | OllamaClientOptions | AnthropicClientOptions | MistralAIClientOptions | VertexAIClientOptions | BedrockClientOptions | BedrockConverseClientOptions;
36
+ export type ClientOptions = OpenAIClientOptions | OllamaClientOptions | AnthropicClientOptions | MistralAIClientOptions | VertexAIClientOptions | BedrockClientOptions | BedrockConverseClientOptions | GoogleClientOptions;
34
37
 
35
38
  export type LLMConfig = {
36
39
  provider: Providers;
@@ -44,6 +47,7 @@ export type ProviderOptionsMap = {
44
47
  [Providers.VERTEXAI]: VertexAIClientOptions;
45
48
  [Providers.BEDROCK_LEGACY]: BedrockClientOptions;
46
49
  [Providers.BEDROCK]: BedrockConverseClientOptions;
50
+ [Providers.GOOGLE]: GoogleClientOptions;
47
51
  };
48
52
 
49
53
  export type ChatModelMap = {
@@ -54,6 +58,7 @@ export type ChatModelMap = {
54
58
  [Providers.VERTEXAI]: ChatVertexAI;
55
59
  [Providers.BEDROCK_LEGACY]: BedrockChat;
56
60
  [Providers.BEDROCK]: ChatBedrockConverse;
61
+ [Providers.GOOGLE]: ChatGoogleGenerativeAI;
57
62
  };
58
63
 
59
64
  export type ChatModelConstructorMap = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/agents-types",
3
- "version": "1.8.8",
3
+ "version": "1.9.0",
4
4
  "description": "Type definitions for @librechat/agents",
5
5
  "types": "index.d.ts",
6
6
  "scripts": {