@librechat/agents 3.1.66 → 3.1.67

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.
@@ -28,7 +28,18 @@ export type AzureClientOptions = Partial<OpenAIChatInput> & Partial<AzureOpenAII
28
28
  } & BaseChatModelParams & {
29
29
  configuration?: OAIClientOptions;
30
30
  };
31
- export type ThinkingConfig = AnthropicInput['thinking'];
31
+ /**
32
+ * Controls whether Claude's reasoning content is returned in adaptive
33
+ * thinking responses. Added for Claude Opus 4.7, which omits thinking by
34
+ * default unless the caller opts in with `'summarized'`.
35
+ * @see https://platform.claude.com/docs/en/about-claude/models/whats-new-claude-4-7#thinking-content-omitted-by-default
36
+ */
37
+ export type ThinkingDisplay = 'summarized' | 'omitted';
38
+ export type ThinkingConfigAdaptive = {
39
+ type: 'adaptive';
40
+ display?: ThinkingDisplay;
41
+ };
42
+ export type ThinkingConfig = NonNullable<AnthropicInput['thinking']> | ThinkingConfigAdaptive;
32
43
  export type ChatOpenAIToolType = BindToolsInput | OpenAIClient.ChatCompletionTool;
33
44
  export type CommonToolType = StructuredTool | ChatOpenAIToolType;
34
45
  export type AnthropicReasoning = {
@@ -41,7 +52,8 @@ export type GoogleThinkingConfig = {
41
52
  thinkingLevel?: string;
42
53
  };
43
54
  export type OpenAIClientOptions = ChatOpenAIFields;
44
- export type AnthropicClientOptions = AnthropicInput & {
55
+ export type AnthropicClientOptions = Omit<AnthropicInput, 'thinking'> & {
56
+ thinking?: ThinkingConfig;
45
57
  promptCache?: boolean;
46
58
  };
47
59
  export type MistralAIClientOptions = ChatMistralAIInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/agents",
3
- "version": "3.1.66",
3
+ "version": "3.1.67",
4
4
  "main": "./dist/cjs/main.cjs",
5
5
  "module": "./dist/esm/main.mjs",
6
6
  "types": "./dist/types/index.d.ts",
package/src/types/llm.ts CHANGED
@@ -45,7 +45,20 @@ export type AzureClientOptions = Partial<OpenAIChatInput> &
45
45
  } & BaseChatModelParams & {
46
46
  configuration?: OAIClientOptions;
47
47
  };
48
- export type ThinkingConfig = AnthropicInput['thinking'];
48
+ /**
49
+ * Controls whether Claude's reasoning content is returned in adaptive
50
+ * thinking responses. Added for Claude Opus 4.7, which omits thinking by
51
+ * default unless the caller opts in with `'summarized'`.
52
+ * @see https://platform.claude.com/docs/en/about-claude/models/whats-new-claude-4-7#thinking-content-omitted-by-default
53
+ */
54
+ export type ThinkingDisplay = 'summarized' | 'omitted';
55
+ export type ThinkingConfigAdaptive = {
56
+ type: 'adaptive';
57
+ display?: ThinkingDisplay;
58
+ };
59
+ export type ThinkingConfig =
60
+ | NonNullable<AnthropicInput['thinking']>
61
+ | ThinkingConfigAdaptive;
49
62
  export type ChatOpenAIToolType =
50
63
  | BindToolsInput
51
64
  | OpenAIClient.ChatCompletionTool;
@@ -60,7 +73,8 @@ export type GoogleThinkingConfig = {
60
73
  thinkingLevel?: string;
61
74
  };
62
75
  export type OpenAIClientOptions = ChatOpenAIFields;
63
- export type AnthropicClientOptions = AnthropicInput & {
76
+ export type AnthropicClientOptions = Omit<AnthropicInput, 'thinking'> & {
77
+ thinking?: ThinkingConfig;
64
78
  promptCache?: boolean;
65
79
  };
66
80
  export type MistralAIClientOptions = ChatMistralAIInput;