beeai-framework 0.1.24 → 0.1.26
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/adapters/a2a/serve/agent_executor.d.cts +1 -1
- package/dist/adapters/a2a/serve/agent_executor.d.ts +1 -1
- package/dist/adapters/amazon-bedrock/backend/chat.d.cts +1 -1
- package/dist/adapters/amazon-bedrock/backend/chat.d.ts +1 -1
- package/dist/adapters/amazon-bedrock/backend/embedding.d.cts +1 -1
- package/dist/adapters/amazon-bedrock/backend/embedding.d.ts +1 -1
- package/dist/adapters/anthropic/backend/chat.d.cts +2 -2
- package/dist/adapters/anthropic/backend/chat.d.ts +2 -2
- package/dist/adapters/anthropic/backend/embedding.d.cts +1 -1
- package/dist/adapters/anthropic/backend/embedding.d.ts +1 -1
- package/dist/adapters/azure-openai/backend/chat.d.cts +1 -1
- package/dist/adapters/azure-openai/backend/chat.d.ts +1 -1
- package/dist/adapters/azure-openai/backend/embedding.d.cts +1 -1
- package/dist/adapters/azure-openai/backend/embedding.d.ts +1 -1
- package/dist/adapters/dummy/backend/chat.d.cts +3 -1
- package/dist/adapters/dummy/backend/chat.d.ts +3 -1
- package/dist/adapters/dummy/backend/embedding.d.cts +1 -1
- package/dist/adapters/dummy/backend/embedding.d.ts +1 -1
- package/dist/adapters/google-vertex/backend/chat.d.cts +2 -2
- package/dist/adapters/google-vertex/backend/chat.d.ts +2 -2
- package/dist/adapters/google-vertex/backend/embedding.d.cts +1 -1
- package/dist/adapters/google-vertex/backend/embedding.d.ts +1 -1
- package/dist/adapters/groq/backend/chat.d.cts +1 -1
- package/dist/adapters/groq/backend/chat.d.ts +1 -1
- package/dist/adapters/groq/backend/embedding.d.cts +1 -1
- package/dist/adapters/groq/backend/embedding.d.ts +1 -1
- package/dist/adapters/langchain/backend/chat.d.cts +3 -1
- package/dist/adapters/langchain/backend/chat.d.ts +3 -1
- package/dist/adapters/langchain/backend/embedding.d.cts +1 -1
- package/dist/adapters/langchain/backend/embedding.d.ts +1 -1
- package/dist/adapters/ollama/backend/chat.d.cts +1 -1
- package/dist/adapters/ollama/backend/chat.d.ts +1 -1
- package/dist/adapters/ollama/backend/embedding.d.cts +1 -1
- package/dist/adapters/ollama/backend/embedding.d.ts +1 -1
- package/dist/adapters/openai/backend/chat.d.cts +1 -1
- package/dist/adapters/openai/backend/chat.d.ts +1 -1
- package/dist/adapters/openai/backend/embedding.d.cts +1 -1
- package/dist/adapters/openai/backend/embedding.d.ts +1 -1
- package/dist/adapters/vercel/backend/chat.d.cts +3 -1
- package/dist/adapters/vercel/backend/chat.d.ts +3 -1
- package/dist/adapters/vercel/backend/embedding.d.cts +1 -1
- package/dist/adapters/vercel/backend/embedding.d.ts +1 -1
- package/dist/adapters/vercel/backend/utils.d.cts +1 -1
- package/dist/adapters/vercel/backend/utils.d.ts +1 -1
- package/dist/adapters/watsonx/backend/chat.cjs +11 -0
- package/dist/adapters/watsonx/backend/chat.cjs.map +1 -1
- package/dist/adapters/watsonx/backend/chat.d.cts +3 -1
- package/dist/adapters/watsonx/backend/chat.d.ts +3 -1
- package/dist/adapters/watsonx/backend/chat.js +11 -0
- package/dist/adapters/watsonx/backend/chat.js.map +1 -1
- package/dist/adapters/watsonx/backend/embedding.d.cts +1 -1
- package/dist/adapters/watsonx/backend/embedding.d.ts +1 -1
- package/dist/adapters/xai/backend/chat.d.cts +1 -1
- package/dist/adapters/xai/backend/chat.d.ts +1 -1
- package/dist/{agent-DHLEPXEA.d.ts → agent-CZGWXO-X.d.ts} +1 -1
- package/dist/{agent-Cy4QtsN8.d.cts → agent-PRlGoawI.d.cts} +1 -1
- package/dist/agents/experimental/replan/agent.d.cts +1 -1
- package/dist/agents/experimental/replan/agent.d.ts +1 -1
- package/dist/agents/experimental/streamlit/agent.d.cts +1 -1
- package/dist/agents/experimental/streamlit/agent.d.ts +1 -1
- package/dist/agents/react/agent.d.cts +2 -2
- package/dist/agents/react/agent.d.ts +2 -2
- package/dist/agents/react/prompts.d.cts +1 -1
- package/dist/agents/react/prompts.d.ts +1 -1
- package/dist/agents/react/runners/base.d.cts +2 -2
- package/dist/agents/react/runners/base.d.ts +2 -2
- package/dist/agents/react/runners/deep-think/prompts.d.cts +1 -1
- package/dist/agents/react/runners/deep-think/prompts.d.ts +1 -1
- package/dist/agents/react/runners/deep-think/runner.d.cts +3 -3
- package/dist/agents/react/runners/deep-think/runner.d.ts +3 -3
- package/dist/agents/react/runners/default/runner.d.cts +3 -3
- package/dist/agents/react/runners/default/runner.d.ts +3 -3
- package/dist/agents/react/runners/granite/prompts.d.cts +1 -1
- package/dist/agents/react/runners/granite/prompts.d.ts +1 -1
- package/dist/agents/react/runners/granite/runner.d.cts +3 -3
- package/dist/agents/react/runners/granite/runner.d.ts +3 -3
- package/dist/agents/react/types.d.cts +1 -1
- package/dist/agents/react/types.d.ts +1 -1
- package/dist/agents/requirement/agent.d.cts +2 -2
- package/dist/agents/requirement/agent.d.ts +2 -2
- package/dist/agents/requirement/requirements/conditional.d.cts +2 -2
- package/dist/agents/requirement/requirements/conditional.d.ts +2 -2
- package/dist/agents/requirement/requirements/requirement.d.cts +2 -2
- package/dist/agents/requirement/requirements/requirement.d.ts +2 -2
- package/dist/agents/requirement/runner.cjs +33 -14
- package/dist/agents/requirement/runner.cjs.map +1 -1
- package/dist/agents/requirement/runner.d.cts +2 -2
- package/dist/agents/requirement/runner.d.ts +2 -2
- package/dist/agents/requirement/runner.js +33 -14
- package/dist/agents/requirement/runner.js.map +1 -1
- package/dist/agents/requirement/types.d.cts +2 -2
- package/dist/agents/requirement/types.d.ts +2 -2
- package/dist/agents/requirement/utils/llm.d.cts +2 -2
- package/dist/agents/requirement/utils/llm.d.ts +2 -2
- package/dist/agents/requirement/utils/tool.cjs +13 -2
- package/dist/agents/requirement/utils/tool.cjs.map +1 -1
- package/dist/agents/requirement/utils/tool.d.cts +2 -2
- package/dist/agents/requirement/utils/tool.d.ts +2 -2
- package/dist/agents/requirement/utils/tool.js +11 -0
- package/dist/agents/requirement/utils/tool.js.map +1 -1
- package/dist/agents/toolCalling/agent.d.cts +1 -1
- package/dist/agents/toolCalling/agent.d.ts +1 -1
- package/dist/backend/backend.d.cts +1 -1
- package/dist/backend/backend.d.ts +1 -1
- package/dist/backend/chat.cjs +124 -45
- package/dist/backend/chat.cjs.map +1 -1
- package/dist/backend/chat.d.cts +1 -1
- package/dist/backend/chat.d.ts +1 -1
- package/dist/backend/chat.js +127 -48
- package/dist/backend/chat.js.map +1 -1
- package/dist/backend/core.d.cts +2 -2
- package/dist/backend/core.d.ts +2 -2
- package/dist/backend/embedding.d.cts +1 -1
- package/dist/backend/embedding.d.ts +1 -1
- package/dist/backend/errors.cjs +25 -0
- package/dist/backend/errors.cjs.map +1 -1
- package/dist/backend/errors.d.cts +34 -1
- package/dist/backend/errors.d.ts +34 -1
- package/dist/backend/errors.js +24 -1
- package/dist/backend/errors.js.map +1 -1
- package/dist/backend/utils.d.cts +1 -1
- package/dist/backend/utils.d.ts +1 -1
- package/dist/{chat-CC0s8z23.d.cts → chat-BFl85cqt.d.cts} +6 -0
- package/dist/{chat-D8SVtw5Q.d.ts → chat-BRuyDeKR.d.ts} +6 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/memory/summarizeMemory.d.cts +1 -1
- package/dist/memory/summarizeMemory.d.ts +1 -1
- package/dist/middleware/streamToolCall.cjs +9 -0
- package/dist/middleware/streamToolCall.cjs.map +1 -1
- package/dist/middleware/streamToolCall.d.cts +10 -2
- package/dist/middleware/streamToolCall.d.ts +10 -2
- package/dist/middleware/streamToolCall.js +9 -0
- package/dist/middleware/streamToolCall.js.map +1 -1
- package/dist/tools/custom.d.cts +1 -1
- package/dist/tools/custom.d.ts +1 -1
- package/dist/tools/llm.d.cts +1 -1
- package/dist/tools/llm.d.ts +1 -1
- package/dist/tools/python/python.d.cts +1 -1
- package/dist/tools/python/python.d.ts +1 -1
- package/dist/{types-Dyd4e1G6.d.ts → types-BQ-3LdkE.d.ts} +9 -9
- package/dist/{types-D9pn62yF.d.cts → types-CkEtV8R9.d.cts} +9 -9
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/workflows/agent.d.cts +1 -1
- package/dist/workflows/agent.d.ts +1 -1
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ import '../../../parsers/field.cjs';
|
|
|
28
28
|
import '@streamparser/json';
|
|
29
29
|
import 'jsonrepair/stream';
|
|
30
30
|
import '../../../parsers/errors.cjs';
|
|
31
|
-
import '../../../chat-
|
|
31
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
32
32
|
import '../../../backend/constants.cjs';
|
|
33
33
|
import '../../../logger/logger.cjs';
|
|
34
34
|
import 'pino';
|
|
@@ -28,7 +28,7 @@ import '../../../parsers/field.js';
|
|
|
28
28
|
import '@streamparser/json';
|
|
29
29
|
import 'jsonrepair/stream';
|
|
30
30
|
import '../../../parsers/errors.js';
|
|
31
|
-
import '../../../chat-
|
|
31
|
+
import '../../../chat-BRuyDeKR.js';
|
|
32
32
|
import '../../../backend/constants.js';
|
|
33
33
|
import '../../../logger/logger.js';
|
|
34
34
|
import 'pino';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AmazonBedrockClient, AmazonBedrockClientSettings } from './client.cjs';
|
|
2
2
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
3
3
|
import { AmazonBedrockProvider } from '@ai-sdk/amazon-bedrock';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../backend/client.cjs';
|
|
6
6
|
import '../../../internals/serializable.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AmazonBedrockClient, AmazonBedrockClientSettings } from './client.js';
|
|
2
2
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
3
3
|
import { AmazonBedrockProvider } from '@ai-sdk/amazon-bedrock';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../backend/client.js';
|
|
6
6
|
import '../../../internals/serializable.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BRuyDeKR.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
2
2
|
import { AnthropicClientSettings, AnthropicClient } from './client.cjs';
|
|
3
3
|
import { AnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../logger/logger.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.cjs';
|
|
@@ -13,7 +13,6 @@ import '../../../emitter-jN55XZZq.cjs';
|
|
|
13
13
|
import '../../../internals/helpers/promise.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.cjs';
|
|
16
|
-
import '../../../backend/client.cjs';
|
|
17
16
|
import 'promise-based-task';
|
|
18
17
|
import '../../../cache/base.cjs';
|
|
19
18
|
import '../../../backend/constants.cjs';
|
|
@@ -23,6 +22,7 @@ import '../../../internals/helpers/schema.cjs';
|
|
|
23
22
|
import 'zod';
|
|
24
23
|
import 'zod-to-json-schema';
|
|
25
24
|
import '../../../template.cjs';
|
|
25
|
+
import '../../../backend/client.cjs';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Copyright 2025 © BeeAI a Series of LF Projects, LLC
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
2
2
|
import { AnthropicClientSettings, AnthropicClient } from './client.js';
|
|
3
3
|
import { AnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../logger/logger.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.js';
|
|
@@ -13,7 +13,6 @@ import '../../../emitter-36-9MnvA.js';
|
|
|
13
13
|
import '../../../internals/helpers/promise.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.js';
|
|
16
|
-
import '../../../backend/client.js';
|
|
17
16
|
import 'promise-based-task';
|
|
18
17
|
import '../../../cache/base.js';
|
|
19
18
|
import '../../../backend/constants.js';
|
|
@@ -23,6 +22,7 @@ import '../../../internals/helpers/schema.js';
|
|
|
23
22
|
import 'zod';
|
|
24
23
|
import 'zod-to-json-schema';
|
|
25
24
|
import '../../../template.js';
|
|
25
|
+
import '../../../backend/client.js';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Copyright 2025 © BeeAI a Series of LF Projects, LLC
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BRuyDeKR.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
2
2
|
import { AzureOpenAIProvider, AzureOpenAIProviderSettings } from '@ai-sdk/azure';
|
|
3
3
|
import { AzureOpenAIClient } from './client.cjs';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../logger/logger.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
2
2
|
import { AzureOpenAIProvider, AzureOpenAIProviderSettings } from '@ai-sdk/azure';
|
|
3
3
|
import { AzureOpenAIClient } from './client.js';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../logger/logger.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.js';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BRuyDeKR.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
2
|
import { GetRunContext, MiddlewareType } from '../../../context.cjs';
|
|
3
|
-
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
3
|
+
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-BFl85cqt.cjs';
|
|
4
4
|
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import '../../../errors.cjs';
|
|
@@ -38,6 +38,8 @@ declare class DummyChatModel extends ChatModel {
|
|
|
38
38
|
toolChoiceSupport: ChatModelToolChoiceSupport[];
|
|
39
39
|
toolCallFallbackViaResponseFormat: boolean;
|
|
40
40
|
modelSupportsToolCalling: boolean;
|
|
41
|
+
retryOnEmptyResponse: boolean;
|
|
42
|
+
fixInvalidToolCalls: boolean;
|
|
41
43
|
};
|
|
42
44
|
loadSnapshot(snapshot: ReturnType<typeof this.createSnapshot>): void;
|
|
43
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
2
|
import { GetRunContext, MiddlewareType } from '../../../context.js';
|
|
3
|
-
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
3
|
+
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-BRuyDeKR.js';
|
|
4
4
|
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import '../../../errors.js';
|
|
@@ -38,6 +38,8 @@ declare class DummyChatModel extends ChatModel {
|
|
|
38
38
|
toolChoiceSupport: ChatModelToolChoiceSupport[];
|
|
39
39
|
toolCallFallbackViaResponseFormat: boolean;
|
|
40
40
|
modelSupportsToolCalling: boolean;
|
|
41
|
+
retryOnEmptyResponse: boolean;
|
|
42
|
+
fixInvalidToolCalls: boolean;
|
|
41
43
|
};
|
|
42
44
|
loadSnapshot(snapshot: ReturnType<typeof this.createSnapshot>): void;
|
|
43
45
|
}
|
|
@@ -6,7 +6,7 @@ import '../../../internals/types.cjs';
|
|
|
6
6
|
import '../../../internals/helpers/guards.cjs';
|
|
7
7
|
import '../../../internals/helpers/promise.cjs';
|
|
8
8
|
import '../../../errors.cjs';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
10
10
|
import '../../../backend/message.cjs';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -6,7 +6,7 @@ import '../../../internals/types.js';
|
|
|
6
6
|
import '../../../internals/helpers/guards.js';
|
|
7
7
|
import '../../../internals/helpers/promise.js';
|
|
8
8
|
import '../../../errors.js';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BRuyDeKR.js';
|
|
10
10
|
import '../../../backend/message.js';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GoogleVertexProvider } from '@ai-sdk/google-vertex';
|
|
2
2
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
3
3
|
import { GoogleVertexClientSettings, GoogleVertexClient } from './client.cjs';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../logger/logger.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.cjs';
|
|
@@ -13,6 +13,7 @@ import '../../../emitter-jN55XZZq.cjs';
|
|
|
13
13
|
import '../../../internals/helpers/promise.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.cjs';
|
|
16
|
+
import '../../../backend/client.cjs';
|
|
16
17
|
import 'promise-based-task';
|
|
17
18
|
import '../../../cache/base.cjs';
|
|
18
19
|
import '../../../backend/constants.cjs';
|
|
@@ -22,7 +23,6 @@ import '../../../internals/helpers/schema.cjs';
|
|
|
22
23
|
import 'zod';
|
|
23
24
|
import 'zod-to-json-schema';
|
|
24
25
|
import '../../../template.cjs';
|
|
25
|
-
import '../../../backend/client.cjs';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Copyright 2025 © BeeAI a Series of LF Projects, LLC
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GoogleVertexProvider } from '@ai-sdk/google-vertex';
|
|
2
2
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
3
3
|
import { GoogleVertexClientSettings, GoogleVertexClient } from './client.js';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../logger/logger.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.js';
|
|
@@ -13,6 +13,7 @@ import '../../../emitter-36-9MnvA.js';
|
|
|
13
13
|
import '../../../internals/helpers/promise.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.js';
|
|
16
|
+
import '../../../backend/client.js';
|
|
16
17
|
import 'promise-based-task';
|
|
17
18
|
import '../../../cache/base.js';
|
|
18
19
|
import '../../../backend/constants.js';
|
|
@@ -22,7 +23,6 @@ import '../../../internals/helpers/schema.js';
|
|
|
22
23
|
import 'zod';
|
|
23
24
|
import 'zod-to-json-schema';
|
|
24
25
|
import '../../../template.js';
|
|
25
|
-
import '../../../backend/client.js';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Copyright 2025 © BeeAI a Series of LF Projects, LLC
|
|
@@ -10,7 +10,7 @@ import '../../../context.cjs';
|
|
|
10
10
|
import '../../../emitter-jN55XZZq.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import '../../../errors.cjs';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
14
14
|
import '../../../backend/message.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -10,7 +10,7 @@ import '../../../context.js';
|
|
|
10
10
|
import '../../../emitter-36-9MnvA.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import '../../../errors.js';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BRuyDeKR.js';
|
|
14
14
|
import '../../../backend/message.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
2
2
|
import { GroqClientSettings, GroqClient } from './client.cjs';
|
|
3
3
|
import { GroqProvider } from '@ai-sdk/groq';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../logger/logger.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
2
2
|
import { GroqClientSettings, GroqClient } from './client.js';
|
|
3
3
|
import { GroqProvider } from '@ai-sdk/groq';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../logger/logger.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.js';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BRuyDeKR.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
2
|
import { RunContext, MiddlewareType } from '../../../context.cjs';
|
|
3
|
-
import { m as ChatModel, C as ChatModelParameters, h as ChatModelEmitter, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
3
|
+
import { m as ChatModel, C as ChatModelParameters, h as ChatModelEmitter, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-BFl85cqt.cjs';
|
|
4
4
|
import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
|
|
5
5
|
import { BaseMessageLike, AIMessageChunk } from '@langchain/core/messages';
|
|
6
6
|
import 'pino';
|
|
@@ -47,6 +47,8 @@ declare class LangChainChatModel extends ChatModel {
|
|
|
47
47
|
toolChoiceSupport: ChatModelToolChoiceSupport[];
|
|
48
48
|
toolCallFallbackViaResponseFormat: boolean;
|
|
49
49
|
modelSupportsToolCalling: boolean;
|
|
50
|
+
retryOnEmptyResponse: boolean;
|
|
51
|
+
fixInvalidToolCalls: boolean;
|
|
50
52
|
};
|
|
51
53
|
loadSnapshot(snapshot: ReturnType<typeof this.createSnapshot>): void;
|
|
52
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
2
|
import { RunContext, MiddlewareType } from '../../../context.js';
|
|
3
|
-
import { m as ChatModel, C as ChatModelParameters, h as ChatModelEmitter, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
3
|
+
import { m as ChatModel, C as ChatModelParameters, h as ChatModelEmitter, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-BRuyDeKR.js';
|
|
4
4
|
import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
|
|
5
5
|
import { BaseMessageLike, AIMessageChunk } from '@langchain/core/messages';
|
|
6
6
|
import 'pino';
|
|
@@ -47,6 +47,8 @@ declare class LangChainChatModel extends ChatModel {
|
|
|
47
47
|
toolChoiceSupport: ChatModelToolChoiceSupport[];
|
|
48
48
|
toolCallFallbackViaResponseFormat: boolean;
|
|
49
49
|
modelSupportsToolCalling: boolean;
|
|
50
|
+
retryOnEmptyResponse: boolean;
|
|
51
|
+
fixInvalidToolCalls: boolean;
|
|
50
52
|
};
|
|
51
53
|
loadSnapshot(snapshot: ReturnType<typeof this.createSnapshot>): void;
|
|
52
54
|
}
|
|
@@ -6,7 +6,7 @@ import '../../../internals/serializable.cjs';
|
|
|
6
6
|
import '../../../internals/types.cjs';
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../errors.cjs';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
10
10
|
import '../../../backend/message.cjs';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -6,7 +6,7 @@ import '../../../internals/serializable.js';
|
|
|
6
6
|
import '../../../internals/types.js';
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../errors.js';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BRuyDeKR.js';
|
|
10
10
|
import '../../../backend/message.js';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
2
2
|
import { OllamaProvider } from 'ollama-ai-provider-v2';
|
|
3
3
|
import { OllamaClient, OllamaClientSettings } from './client.cjs';
|
|
4
|
-
import { l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
4
|
+
import { l as ChatModelToolChoiceSupport } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../logger/logger.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
2
2
|
import { OllamaProvider } from 'ollama-ai-provider-v2';
|
|
3
3
|
import { OllamaClient, OllamaClientSettings } from './client.js';
|
|
4
|
-
import { l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
4
|
+
import { l as ChatModelToolChoiceSupport } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../logger/logger.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.js';
|
|
@@ -10,7 +10,7 @@ import '../../../context.cjs';
|
|
|
10
10
|
import '../../../emitter-jN55XZZq.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import '../../../errors.cjs';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
14
14
|
import '../../../backend/message.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -10,7 +10,7 @@ import '../../../context.js';
|
|
|
10
10
|
import '../../../emitter-36-9MnvA.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import '../../../errors.js';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BRuyDeKR.js';
|
|
14
14
|
import '../../../backend/message.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAIProvider } from '@ai-sdk/openai';
|
|
2
2
|
import { OpenAIClient, OpenAIClientSettings } from './client.cjs';
|
|
3
3
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BFl85cqt.cjs';
|
|
5
5
|
import '../../../backend/client.cjs';
|
|
6
6
|
import '../../../internals/serializable.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAIProvider } from '@ai-sdk/openai';
|
|
2
2
|
import { OpenAIClient, OpenAIClientSettings } from './client.js';
|
|
3
3
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
4
|
-
import { C as ChatModelParameters } from '../../../chat-
|
|
4
|
+
import { C as ChatModelParameters } from '../../../chat-BRuyDeKR.js';
|
|
5
5
|
import '../../../backend/client.js';
|
|
6
6
|
import '../../../internals/serializable.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
@@ -10,7 +10,7 @@ import '../../../context.cjs';
|
|
|
10
10
|
import '../../../emitter-jN55XZZq.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import '../../../errors.cjs';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
14
14
|
import '../../../backend/message.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -10,7 +10,7 @@ import '../../../context.js';
|
|
|
10
10
|
import '../../../emitter-36-9MnvA.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import '../../../errors.js';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BRuyDeKR.js';
|
|
14
14
|
import '../../../backend/message.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
2
|
import { GetRunContext, MiddlewareType } from '../../../context.cjs';
|
|
3
|
-
import { m as ChatModel, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, C as ChatModelParameters, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
3
|
+
import { m as ChatModel, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, C as ChatModelParameters, l as ChatModelToolChoiceSupport } from '../../../chat-BFl85cqt.cjs';
|
|
4
4
|
import { LanguageModel, generateText, CoreAssistantMessage, CoreToolMessage } from 'ai';
|
|
5
5
|
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
6
6
|
import { Message } from '../../../backend/message.cjs';
|
|
@@ -46,6 +46,8 @@ declare abstract class VercelChatModel<M extends LanguageModelV2 = LanguageModel
|
|
|
46
46
|
toolChoiceSupport: ChatModelToolChoiceSupport[];
|
|
47
47
|
toolCallFallbackViaResponseFormat: boolean;
|
|
48
48
|
modelSupportsToolCalling: boolean;
|
|
49
|
+
retryOnEmptyResponse: boolean;
|
|
50
|
+
fixInvalidToolCalls: boolean;
|
|
49
51
|
};
|
|
50
52
|
loadSnapshot({ providerId, modelId, ...snapshot }: ReturnType<typeof this.createSnapshot>): Promise<void>;
|
|
51
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
2
|
import { GetRunContext, MiddlewareType } from '../../../context.js';
|
|
3
|
-
import { m as ChatModel, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, C as ChatModelParameters, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
3
|
+
import { m as ChatModel, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, a as ChatModelObjectInput, b as ChatModelObjectOutput, i as ChatModelCache, C as ChatModelParameters, l as ChatModelToolChoiceSupport } from '../../../chat-BRuyDeKR.js';
|
|
4
4
|
import { LanguageModel, generateText, CoreAssistantMessage, CoreToolMessage } from 'ai';
|
|
5
5
|
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
6
6
|
import { Message } from '../../../backend/message.js';
|
|
@@ -46,6 +46,8 @@ declare abstract class VercelChatModel<M extends LanguageModelV2 = LanguageModel
|
|
|
46
46
|
toolChoiceSupport: ChatModelToolChoiceSupport[];
|
|
47
47
|
toolCallFallbackViaResponseFormat: boolean;
|
|
48
48
|
modelSupportsToolCalling: boolean;
|
|
49
|
+
retryOnEmptyResponse: boolean;
|
|
50
|
+
fixInvalidToolCalls: boolean;
|
|
49
51
|
};
|
|
50
52
|
loadSnapshot({ providerId, modelId, ...snapshot }: ReturnType<typeof this.createSnapshot>): Promise<void>;
|
|
51
53
|
}
|
|
@@ -6,7 +6,7 @@ import '../../../internals/serializable.cjs';
|
|
|
6
6
|
import '../../../internals/types.cjs';
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../errors.cjs';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BFl85cqt.cjs';
|
|
10
10
|
import '../../../backend/message.cjs';
|
|
11
11
|
import 'promise-based-task';
|
|
12
12
|
import '../../../cache/base.cjs';
|
|
@@ -6,7 +6,7 @@ import '../../../internals/serializable.js';
|
|
|
6
6
|
import '../../../internals/types.js';
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../errors.js';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BRuyDeKR.js';
|
|
10
10
|
import '../../../backend/message.js';
|
|
11
11
|
import 'promise-based-task';
|
|
12
12
|
import '../../../cache/base.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomMessage, UserMessage } from '../../../backend/message.cjs';
|
|
2
2
|
import { LanguageModelUsage, ToolCallPart } from 'ai';
|
|
3
|
-
import { f as ChatModelUsage } from '../../../chat-
|
|
3
|
+
import { f as ChatModelUsage } from '../../../chat-BFl85cqt.cjs';
|
|
4
4
|
import '../../../internals/serializable.cjs';
|
|
5
5
|
import '../../../internals/types.cjs';
|
|
6
6
|
import '../../../internals/helpers/guards.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomMessage, UserMessage } from '../../../backend/message.js';
|
|
2
2
|
import { LanguageModelUsage, ToolCallPart } from 'ai';
|
|
3
|
-
import { f as ChatModelUsage } from '../../../chat-
|
|
3
|
+
import { f as ChatModelUsage } from '../../../chat-BRuyDeKR.js';
|
|
4
4
|
import '../../../internals/serializable.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
6
6
|
import '../../../internals/helpers/guards.js';
|
|
@@ -77,6 +77,9 @@ class WatsonxChatModel extends chat_cjs.ChatModel {
|
|
|
77
77
|
stream.controller.abort(run.signal.aborted);
|
|
78
78
|
break;
|
|
79
79
|
}
|
|
80
|
+
if (!Array.isArray(raw.data?.choices)) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
80
83
|
const { messages, finishReason, usage } = this.extractOutput(raw.data.choices.map(({ delta, ...choice }) => ({
|
|
81
84
|
...choice,
|
|
82
85
|
message: delta
|
|
@@ -116,6 +119,14 @@ class WatsonxChatModel extends chat_cjs.ChatModel {
|
|
|
116
119
|
} : void 0,
|
|
117
120
|
messages: choices.flatMap(({ message }) => {
|
|
118
121
|
const messages = [];
|
|
122
|
+
const reasoning = message?.reasoning_content;
|
|
123
|
+
if (reasoning) {
|
|
124
|
+
const msg = new message_cjs.AssistantMessage({
|
|
125
|
+
type: "text",
|
|
126
|
+
text: reasoning
|
|
127
|
+
}, {}, id);
|
|
128
|
+
messages.push(msg);
|
|
129
|
+
}
|
|
119
130
|
if (message?.content) {
|
|
120
131
|
const msg = new message_cjs.AssistantMessage({
|
|
121
132
|
type: "text",
|