beeai-framework 0.1.11 → 0.1.12
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/amazon-bedrock/backend/chat.d.cts +2 -2
- package/dist/adapters/amazon-bedrock/backend/chat.d.ts +2 -2
- package/dist/adapters/amazon-bedrock/backend/embedding.d.cts +2 -2
- package/dist/adapters/amazon-bedrock/backend/embedding.d.ts +2 -2
- 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/client.cjs +5 -5
- package/dist/adapters/anthropic/backend/client.cjs.map +1 -1
- package/dist/adapters/anthropic/backend/client.d.cts +1 -1
- package/dist/adapters/anthropic/backend/client.d.ts +1 -1
- package/dist/adapters/anthropic/backend/client.js +5 -5
- package/dist/adapters/anthropic/backend/client.js.map +1 -1
- package/dist/adapters/anthropic/backend/embedding.d.cts +2 -2
- package/dist/adapters/anthropic/backend/embedding.d.ts +2 -2
- package/dist/adapters/azure-openai/backend/chat.d.cts +2 -2
- package/dist/adapters/azure-openai/backend/chat.d.ts +2 -2
- package/dist/adapters/azure-openai/backend/client.cjs +6 -6
- package/dist/adapters/azure-openai/backend/client.cjs.map +1 -1
- package/dist/adapters/azure-openai/backend/client.d.cts +1 -1
- package/dist/adapters/azure-openai/backend/client.d.ts +1 -1
- package/dist/adapters/azure-openai/backend/client.js +6 -6
- package/dist/adapters/azure-openai/backend/client.js.map +1 -1
- package/dist/adapters/azure-openai/backend/embedding.d.cts +2 -2
- package/dist/adapters/azure-openai/backend/embedding.d.ts +2 -2
- package/dist/adapters/dummy/backend/chat.d.cts +2 -2
- package/dist/adapters/dummy/backend/chat.d.ts +2 -2
- package/dist/adapters/dummy/backend/embedding.d.cts +2 -2
- package/dist/adapters/dummy/backend/embedding.d.ts +2 -2
- 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 +2 -2
- package/dist/adapters/google-vertex/backend/embedding.d.ts +2 -2
- package/dist/adapters/groq/backend/chat.d.cts +2 -2
- package/dist/adapters/groq/backend/chat.d.ts +2 -2
- package/dist/adapters/groq/backend/client.cjs +3 -3
- package/dist/adapters/groq/backend/client.cjs.map +1 -1
- package/dist/adapters/groq/backend/client.js +3 -3
- package/dist/adapters/groq/backend/client.js.map +1 -1
- package/dist/adapters/groq/backend/embedding.d.cts +2 -2
- package/dist/adapters/groq/backend/embedding.d.ts +2 -2
- package/dist/adapters/langchain/backend/chat.d.cts +2 -2
- package/dist/adapters/langchain/backend/chat.d.ts +2 -2
- package/dist/adapters/langchain/backend/embedding.d.cts +2 -2
- package/dist/adapters/langchain/backend/embedding.d.ts +2 -2
- package/dist/adapters/langchain/tools.d.cts +1 -1
- package/dist/adapters/langchain/tools.d.ts +1 -1
- package/dist/adapters/ollama/backend/chat.d.cts +2 -2
- package/dist/adapters/ollama/backend/chat.d.ts +2 -2
- package/dist/adapters/ollama/backend/embedding.d.cts +2 -2
- package/dist/adapters/ollama/backend/embedding.d.ts +2 -2
- package/dist/adapters/openai/backend/chat.d.cts +2 -2
- package/dist/adapters/openai/backend/chat.d.ts +2 -2
- package/dist/adapters/openai/backend/embedding.d.cts +2 -2
- package/dist/adapters/openai/backend/embedding.d.ts +2 -2
- package/dist/adapters/vercel/backend/chat.d.cts +2 -2
- package/dist/adapters/vercel/backend/chat.d.ts +2 -2
- package/dist/adapters/vercel/backend/embedding.d.cts +2 -2
- package/dist/adapters/vercel/backend/embedding.d.ts +2 -2
- package/dist/adapters/watsonx/backend/chat.d.cts +2 -2
- package/dist/adapters/watsonx/backend/chat.d.ts +2 -2
- package/dist/adapters/watsonx/backend/client.cjs +1 -1
- package/dist/adapters/watsonx/backend/client.cjs.map +1 -1
- package/dist/adapters/watsonx/backend/client.js +1 -1
- package/dist/adapters/watsonx/backend/client.js.map +1 -1
- package/dist/adapters/watsonx/backend/embedding.d.cts +2 -2
- package/dist/adapters/watsonx/backend/embedding.d.ts +2 -2
- package/dist/{agent-Ca5UE2P1.d.cts → agent-2C0Z9iYa.d.cts} +4 -4
- package/dist/{agent-CgsoqVL5.d.ts → agent-DN_52QhH.d.ts} +4 -4
- package/dist/agents/base.d.cts +2 -2
- package/dist/agents/base.d.ts +2 -2
- package/dist/agents/experimental/remote/agent.d.cts +2 -2
- package/dist/agents/experimental/remote/agent.d.ts +2 -2
- package/dist/agents/experimental/replan/agent.d.cts +3 -3
- package/dist/agents/experimental/replan/agent.d.ts +3 -3
- package/dist/agents/experimental/replan/prompts.d.cts +1 -1
- package/dist/agents/experimental/replan/prompts.d.ts +1 -1
- package/dist/agents/experimental/streamlit/agent.d.cts +3 -3
- package/dist/agents/experimental/streamlit/agent.d.ts +3 -3
- package/dist/agents/react/agent.d.cts +4 -4
- package/dist/agents/react/agent.d.ts +4 -4
- package/dist/agents/react/runners/base.d.cts +4 -4
- package/dist/agents/react/runners/base.d.ts +4 -4
- package/dist/agents/react/runners/deep-think/runner.d.cts +4 -4
- package/dist/agents/react/runners/deep-think/runner.d.ts +4 -4
- package/dist/agents/react/runners/default/runner.d.cts +4 -4
- package/dist/agents/react/runners/default/runner.d.ts +4 -4
- package/dist/agents/react/runners/granite/runner.d.cts +4 -4
- package/dist/agents/react/runners/granite/runner.d.ts +4 -4
- package/dist/agents/react/types.d.cts +2 -2
- package/dist/agents/react/types.d.ts +2 -2
- package/dist/agents/toolCalling/agent.d.cts +3 -3
- package/dist/agents/toolCalling/agent.d.ts +3 -3
- package/dist/agents/toolCalling/types.d.cts +1 -1
- package/dist/agents/toolCalling/types.d.ts +1 -1
- package/dist/agents/types.d.cts +2 -2
- package/dist/agents/types.d.ts +2 -2
- package/dist/backend/backend.d.cts +2 -2
- package/dist/backend/backend.d.ts +2 -2
- package/dist/backend/chat.d.cts +2 -2
- package/dist/backend/chat.d.ts +2 -2
- package/dist/backend/client.cjs +1 -1
- package/dist/backend/client.cjs.map +1 -1
- package/dist/backend/client.js +1 -1
- package/dist/backend/client.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 +2 -2
- package/dist/backend/embedding.d.ts +2 -2
- package/dist/backend/utils.d.cts +2 -2
- package/dist/backend/utils.d.ts +2 -2
- package/dist/{base-szR2Izbt.d.cts → base-BPsHNV2O.d.cts} +1 -1
- package/dist/{base-BOCDDBvG.d.ts → base-ZnwDK6ZB.d.ts} +1 -1
- package/dist/{chat-DvMzAHj6.d.cts → chat-BvyMdWFo.d.cts} +1 -1
- package/dist/{chat-BdN8hGWn.d.ts → chat-diSK3Sui.d.ts} +1 -1
- package/dist/context.d.cts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/emitter/emitter.d.cts +1 -1
- package/dist/emitter/emitter.d.ts +1 -1
- package/dist/emitter/types.d.cts +1 -1
- package/dist/emitter/types.d.ts +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/internals/fetcher.d.cts +1 -1
- package/dist/internals/fetcher.d.ts +1 -1
- package/dist/memory/summarizeMemory.d.cts +2 -2
- package/dist/memory/summarizeMemory.d.ts +2 -2
- package/dist/parsers/linePrefix.d.cts +1 -1
- package/dist/parsers/linePrefix.d.ts +1 -1
- package/dist/tools/arxiv.d.cts +1 -1
- package/dist/tools/arxiv.d.ts +1 -1
- package/dist/tools/base.d.cts +1 -1
- package/dist/tools/base.d.ts +1 -1
- package/dist/tools/calculator.d.cts +1 -1
- package/dist/tools/calculator.d.ts +1 -1
- package/dist/tools/custom.d.cts +2 -2
- package/dist/tools/custom.d.ts +2 -2
- package/dist/tools/database/elasticsearch.d.cts +1 -1
- package/dist/tools/database/elasticsearch.d.ts +1 -1
- package/dist/tools/database/milvus.d.cts +1 -1
- package/dist/tools/database/milvus.d.ts +1 -1
- package/dist/tools/database/sql.d.cts +1 -1
- package/dist/tools/database/sql.d.ts +1 -1
- package/dist/tools/llm.d.cts +2 -2
- package/dist/tools/llm.d.ts +2 -2
- package/dist/tools/mcp.d.cts +1 -1
- package/dist/tools/mcp.d.ts +1 -1
- package/dist/tools/openapi.d.cts +1 -1
- package/dist/tools/openapi.d.ts +1 -1
- package/dist/tools/python/output.d.cts +1 -1
- package/dist/tools/python/output.d.ts +1 -1
- package/dist/tools/python/python.d.cts +2 -2
- package/dist/tools/python/python.d.ts +2 -2
- package/dist/tools/search/base.d.cts +1 -1
- package/dist/tools/search/base.d.ts +1 -1
- package/dist/tools/search/duckDuckGoSearch.d.cts +1 -1
- package/dist/tools/search/duckDuckGoSearch.d.ts +1 -1
- package/dist/tools/search/googleSearch.d.cts +1 -1
- package/dist/tools/search/googleSearch.d.ts +1 -1
- package/dist/tools/search/searXNGSearch.d.cts +1 -1
- package/dist/tools/search/searXNGSearch.d.ts +1 -1
- package/dist/tools/search/wikipedia.d.cts +1 -1
- package/dist/tools/search/wikipedia.d.ts +1 -1
- package/dist/tools/similarity.d.cts +1 -1
- package/dist/tools/similarity.d.ts +1 -1
- package/dist/tools/weather/openMeteo.d.cts +1 -1
- package/dist/tools/weather/openMeteo.d.ts +1 -1
- package/dist/tools/web/webCrawler.d.cts +1 -1
- package/dist/tools/web/webCrawler.d.ts +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/workflows/agent.d.cts +40 -40
- package/dist/workflows/agent.d.ts +40 -40
- package/dist/workflows/workflow.d.cts +1 -1
- package/dist/workflows/workflow.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{emitter-D5Mu0EEH.d.cts → emitter-BTr99H7I.d.cts} +1 -1
- package/dist/{emitter-C3dO-s2P.d.ts → emitter-DiGmS_5O.d.ts} +1 -1
|
@@ -3,13 +3,13 @@ import { GroqClientSettings, GroqClient } from './client.cjs';
|
|
|
3
3
|
import { GroqProvider } from '@ai-sdk/groq';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
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-BvyMdWFo.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { GroqClientSettings, GroqClient } from './client.js';
|
|
|
3
3
|
import { GroqProvider } from '@ai-sdk/groq';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
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-diSK3Sui.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
|
-
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-
|
|
2
|
+
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-BvyMdWFo.cjs';
|
|
3
3
|
import { RunContext } from '../../../context.cjs';
|
|
4
4
|
import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
|
|
5
5
|
import { BaseMessageLike, AIMessageChunk } from '@langchain/core/messages';
|
|
@@ -10,7 +10,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
10
10
|
import '../../../internals/serializable.cjs';
|
|
11
11
|
import '../../../backend/message.cjs';
|
|
12
12
|
import 'ai';
|
|
13
|
-
import '../../../emitter-
|
|
13
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
14
14
|
import 'promise-based-task';
|
|
15
15
|
import '../../../cache/base.cjs';
|
|
16
16
|
import '../../../backend/constants.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
|
-
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-
|
|
2
|
+
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-diSK3Sui.js';
|
|
3
3
|
import { RunContext } from '../../../context.js';
|
|
4
4
|
import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
|
|
5
5
|
import { BaseMessageLike, AIMessageChunk } from '@langchain/core/messages';
|
|
@@ -10,7 +10,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
10
10
|
import '../../../internals/serializable.js';
|
|
11
11
|
import '../../../backend/message.js';
|
|
12
12
|
import 'ai';
|
|
13
|
-
import '../../../emitter-
|
|
13
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
14
14
|
import 'promise-based-task';
|
|
15
15
|
import '../../../cache/base.js';
|
|
16
16
|
import '../../../backend/constants.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.cjs';
|
|
2
2
|
import { RunContext } from '../../../context.cjs';
|
|
3
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
4
4
|
import { Embeddings } from '@langchain/core/embeddings';
|
|
5
5
|
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-BvyMdWFo.cjs';
|
|
10
10
|
import '../../../backend/message.cjs';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.js';
|
|
2
2
|
import { RunContext } from '../../../context.js';
|
|
3
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
4
4
|
import { Embeddings } from '@langchain/core/embeddings';
|
|
5
5
|
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-diSK3Sui.js';
|
|
10
10
|
import '../../../backend/message.js';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -4,7 +4,7 @@ import { BaseToolRunOptions, BaseToolOptions, JSONToolOutput, Tool, ToolEmitter,
|
|
|
4
4
|
import { GetRunContext } from '../../context.cjs';
|
|
5
5
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
6
6
|
import * as LCTools from '@langchain/core/tools';
|
|
7
|
-
import { E as Emitter } from '../../emitter-
|
|
7
|
+
import { E as Emitter } from '../../emitter-BTr99H7I.cjs';
|
|
8
8
|
import '../../internals/serializable.cjs';
|
|
9
9
|
import '../../internals/types.cjs';
|
|
10
10
|
import '../../internals/helpers/guards.cjs';
|
|
@@ -4,7 +4,7 @@ import { BaseToolRunOptions, BaseToolOptions, JSONToolOutput, Tool, ToolEmitter,
|
|
|
4
4
|
import { GetRunContext } from '../../context.js';
|
|
5
5
|
import { RunnableConfig } from '@langchain/core/runnables';
|
|
6
6
|
import * as LCTools from '@langchain/core/tools';
|
|
7
|
-
import { E as Emitter } from '../../emitter-
|
|
7
|
+
import { E as Emitter } from '../../emitter-DiGmS_5O.js';
|
|
8
8
|
import '../../internals/serializable.js';
|
|
9
9
|
import '../../internals/types.js';
|
|
10
10
|
import '../../internals/helpers/guards.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.cjs';
|
|
2
2
|
import { OllamaProvider } from 'ollama-ai-provider';
|
|
3
3
|
import { OllamaClient, OllamaClientSettings } from './client.cjs';
|
|
4
|
-
import { l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
4
|
+
import { l as ChatModelToolChoiceSupport } from '../../../chat-BvyMdWFo.cjs';
|
|
5
5
|
import '../../../logger/logger.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.cjs';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.cjs';
|
|
|
9
9
|
import '../../../internals/helpers/guards.cjs';
|
|
10
10
|
import '../../../internals/serializable.cjs';
|
|
11
11
|
import 'ai';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import '../../../context.cjs';
|
|
15
15
|
import '../../../internals/helpers/promise.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VercelChatModel } from '../../vercel/backend/chat.js';
|
|
2
2
|
import { OllamaProvider } from 'ollama-ai-provider';
|
|
3
3
|
import { OllamaClient, OllamaClientSettings } from './client.js';
|
|
4
|
-
import { l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
4
|
+
import { l as ChatModelToolChoiceSupport } from '../../../chat-diSK3Sui.js';
|
|
5
5
|
import '../../../logger/logger.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import '../../../errors.js';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.js';
|
|
|
9
9
|
import '../../../internals/helpers/guards.js';
|
|
10
10
|
import '../../../internals/serializable.js';
|
|
11
11
|
import 'ai';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import '../../../context.js';
|
|
15
15
|
import '../../../internals/helpers/promise.js';
|
|
@@ -7,10 +7,10 @@ import '../../../internals/types.cjs';
|
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../backend/embedding.cjs';
|
|
9
9
|
import '../../../context.cjs';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import '../../../errors.cjs';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
14
14
|
import '../../../backend/message.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -7,10 +7,10 @@ import '../../../internals/types.js';
|
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../backend/embedding.js';
|
|
9
9
|
import '../../../context.js';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import '../../../errors.js';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-diSK3Sui.js';
|
|
14
14
|
import '../../../backend/message.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -8,11 +8,11 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
8
8
|
import '../../../logger/logger.cjs';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '../../../errors.cjs';
|
|
11
|
-
import '../../../chat-
|
|
11
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
12
12
|
import '../../../backend/message.cjs';
|
|
13
13
|
import 'ai';
|
|
14
14
|
import '../../../context.cjs';
|
|
15
|
-
import '../../../emitter-
|
|
15
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
16
16
|
import '../../../internals/helpers/promise.cjs';
|
|
17
17
|
import 'promise-based-task';
|
|
18
18
|
import '../../../cache/base.cjs';
|
|
@@ -8,11 +8,11 @@ import '../../../internals/helpers/guards.js';
|
|
|
8
8
|
import '../../../logger/logger.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '../../../errors.js';
|
|
11
|
-
import '../../../chat-
|
|
11
|
+
import '../../../chat-diSK3Sui.js';
|
|
12
12
|
import '../../../backend/message.js';
|
|
13
13
|
import 'ai';
|
|
14
14
|
import '../../../context.js';
|
|
15
|
-
import '../../../emitter-
|
|
15
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
16
16
|
import '../../../internals/helpers/promise.js';
|
|
17
17
|
import 'promise-based-task';
|
|
18
18
|
import '../../../cache/base.js';
|
|
@@ -7,10 +7,10 @@ import '../../../internals/types.cjs';
|
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../backend/embedding.cjs';
|
|
9
9
|
import '../../../context.cjs';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import '../../../errors.cjs';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
14
14
|
import '../../../backend/message.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -7,10 +7,10 @@ import '../../../internals/types.js';
|
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../backend/embedding.js';
|
|
9
9
|
import '../../../context.js';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import '../../../errors.js';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-diSK3Sui.js';
|
|
14
14
|
import '../../../backend/message.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
|
-
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-
|
|
2
|
+
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-BvyMdWFo.cjs';
|
|
3
3
|
import { LanguageModelV1, generateText, CoreAssistantMessage, CoreToolMessage } from 'ai';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
5
5
|
import { Message } from '../../../backend/message.cjs';
|
|
6
6
|
import { GetRunContext } from '../../../context.cjs';
|
|
7
7
|
import 'pino';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
|
-
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-
|
|
2
|
+
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-diSK3Sui.js';
|
|
3
3
|
import { LanguageModelV1, generateText, CoreAssistantMessage, CoreToolMessage } from 'ai';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
5
5
|
import { Message } from '../../../backend/message.js';
|
|
6
6
|
import { GetRunContext } from '../../../context.js';
|
|
7
7
|
import 'pino';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmbeddingModel as EmbeddingModel$1, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.cjs';
|
|
2
2
|
import { EmbeddingModel } from 'ai';
|
|
3
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
4
4
|
import { GetRunContext } from '../../../context.cjs';
|
|
5
5
|
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-BvyMdWFo.cjs';
|
|
10
10
|
import '../../../backend/message.cjs';
|
|
11
11
|
import 'promise-based-task';
|
|
12
12
|
import '../../../cache/base.cjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmbeddingModel as EmbeddingModel$1, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.js';
|
|
2
2
|
import { EmbeddingModel } from 'ai';
|
|
3
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
4
4
|
import { GetRunContext } from '../../../context.js';
|
|
5
5
|
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-diSK3Sui.js';
|
|
10
10
|
import '../../../backend/message.js';
|
|
11
11
|
import 'promise-based-task';
|
|
12
12
|
import '../../../cache/base.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
|
-
import { m as ChatModel, h as ChatModelEmitter, l as ChatModelToolChoiceSupport, k as ChatConfig, d as ChatModelInput, n as ChatModelOutput, C as ChatModelParameters, i as ChatModelCache, g as ChatModelEvents } from '../../../chat-
|
|
2
|
+
import { m as ChatModel, h as ChatModelEmitter, l as ChatModelToolChoiceSupport, k as ChatConfig, d as ChatModelInput, n as ChatModelOutput, C as ChatModelParameters, i as ChatModelCache, g as ChatModelEvents } from '../../../chat-BvyMdWFo.cjs';
|
|
3
3
|
import { Message, MessageContentPart } from '../../../backend/message.cjs';
|
|
4
4
|
import { WatsonxClient, WatsonxClientSettings } from './client.cjs';
|
|
5
5
|
import { TextChatResultChoice, TextChatUsage, TextChatParams } from '@ibm-cloud/watsonx-ai/dist/watsonx-ai-ml/vml_v1.js';
|
|
6
|
-
import { E as Emitter } from '../../../emitter-
|
|
6
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
7
7
|
import { GetRunContext } from '../../../context.cjs';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import '../../../errors.cjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
|
-
import { m as ChatModel, h as ChatModelEmitter, l as ChatModelToolChoiceSupport, k as ChatConfig, d as ChatModelInput, n as ChatModelOutput, C as ChatModelParameters, i as ChatModelCache, g as ChatModelEvents } from '../../../chat-
|
|
2
|
+
import { m as ChatModel, h as ChatModelEmitter, l as ChatModelToolChoiceSupport, k as ChatConfig, d as ChatModelInput, n as ChatModelOutput, C as ChatModelParameters, i as ChatModelCache, g as ChatModelEvents } from '../../../chat-diSK3Sui.js';
|
|
3
3
|
import { Message, MessageContentPart } from '../../../backend/message.js';
|
|
4
4
|
import { WatsonxClient, WatsonxClientSettings } from './client.js';
|
|
5
5
|
import { TextChatResultChoice, TextChatUsage, TextChatParams } from '@ibm-cloud/watsonx-ai/dist/watsonx-ai-ml/vml_v1.js';
|
|
6
|
-
import { E as Emitter } from '../../../emitter-
|
|
6
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
7
7
|
import { GetRunContext } from '../../../context.js';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import '../../../errors.js';
|
|
@@ -36,7 +36,7 @@ class WatsonxClient extends client_cjs.BackendClient {
|
|
|
36
36
|
version: this.settings.version,
|
|
37
37
|
serviceUrl: this.settings.baseUrl,
|
|
38
38
|
authenticator: this.settings?.authenticator || new ibmCloudSdkCore.IamAuthenticator({
|
|
39
|
-
apikey: env_cjs.getEnv("WATSONX_API_KEY",
|
|
39
|
+
apikey: this.settings?.apiKey || env_cjs.getEnv("WATSONX_API_KEY", ""),
|
|
40
40
|
url: "https://iam.cloud.ibm.com"
|
|
41
41
|
})
|
|
42
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["WatsonxClient","BackendClient","constructor","settings","region","getEnv","baseUrl","projectId","spaceId","undefined","version","create","WatsonXAI","newInstance","serviceUrl","authenticator","IamAuthenticator","apikey","apiKey","url"],"mappings":";;;;;;;;;AA6BO,MAAMA,sBAAsBC,wBAAAA,CAAAA;EA7BnC;;;AA8BEC,EAAAA,WAAAA,CAAYC,QAAiC,EAAA;AAC3C,IAAA,MAAMC,MAASD,GAAAA,QAAAA,EAAUC,MAAUC,IAAAA,cAAAA,CAAO,gBAAA,CAAA;AAC1C,IAAA,MAAMC,UACJH,QAAUG,EAAAA,OAAAA,IAAWD,eAAO,kBAAA,CAAA,IAAuB,WAAWD,MAAAA,CAAAA,iBAAAA,CAAAA;AAEhE,IAAA,MAAMG,SAAYJ,GAAAA,QAAAA,EAAUI,SAAaF,IAAAA,cAAAA,CAAO,oBAAA,CAAA;AAChD,IAAA,MAAMG,UAAUD,SAAYE,GAAAA,MAAAA,GAAYN,QAAUK,EAAAA,OAAAA,IAAWH,eAAO,kBAAA,CAAA;AACpE,IAAA,MAAMK,OAAUP,GAAAA,QAAAA,EAAUO,OAAWL,IAAAA,cAAAA,CAAO,iBAAA,CAAsB,IAAA,YAAA;AAElE,IAAM,KAAA,CAAA;MACJ,GAAGF,QAAAA;AACHG,MAAAA,OAAAA;AACAC,MAAAA,SAAAA;AACAC,MAAAA,OAAAA;AACAE,MAAAA;KACF,CAAA;AACF;AACA,EAAA,IAAIF,OAAU,GAAA;AACZ,IAAA,OAAO,KAAKL,QAASK,CAAAA,OAAAA;AACvB;AAEA,EAAA,IAAID,SAAY,GAAA;AACd,IAAA,OAAO,KAAKJ,QAASI,CAAAA,SAAAA;AACvB;EAEUI,MAAS,GAAA;AACjB,IAAA,OAAOC,oBAAUC,WAAY,CAAA;AAC3BH,MAAAA,OAAAA,EAAS,KAAKP,QAASO,CAAAA,OAAAA;AACvBI,MAAAA,UAAAA,EAAY,KAAKX,QAASG,CAAAA,OAAAA;AAC1BS,MAAAA,aAAAA,EACE,IAAKZ,CAAAA,QAAAA,EAAUY,aACf,IAAA,IAAIC,gCAAiB,CAAA;AACnBC,QAAAA,MAAAA,
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["WatsonxClient","BackendClient","constructor","settings","region","getEnv","baseUrl","projectId","spaceId","undefined","version","create","WatsonXAI","newInstance","serviceUrl","authenticator","IamAuthenticator","apikey","apiKey","url"],"mappings":";;;;;;;;;AA6BO,MAAMA,sBAAsBC,wBAAAA,CAAAA;EA7BnC;;;AA8BEC,EAAAA,WAAAA,CAAYC,QAAiC,EAAA;AAC3C,IAAA,MAAMC,MAASD,GAAAA,QAAAA,EAAUC,MAAUC,IAAAA,cAAAA,CAAO,gBAAA,CAAA;AAC1C,IAAA,MAAMC,UACJH,QAAUG,EAAAA,OAAAA,IAAWD,eAAO,kBAAA,CAAA,IAAuB,WAAWD,MAAAA,CAAAA,iBAAAA,CAAAA;AAEhE,IAAA,MAAMG,SAAYJ,GAAAA,QAAAA,EAAUI,SAAaF,IAAAA,cAAAA,CAAO,oBAAA,CAAA;AAChD,IAAA,MAAMG,UAAUD,SAAYE,GAAAA,MAAAA,GAAYN,QAAUK,EAAAA,OAAAA,IAAWH,eAAO,kBAAA,CAAA;AACpE,IAAA,MAAMK,OAAUP,GAAAA,QAAAA,EAAUO,OAAWL,IAAAA,cAAAA,CAAO,iBAAA,CAAsB,IAAA,YAAA;AAElE,IAAM,KAAA,CAAA;MACJ,GAAGF,QAAAA;AACHG,MAAAA,OAAAA;AACAC,MAAAA,SAAAA;AACAC,MAAAA,OAAAA;AACAE,MAAAA;KACF,CAAA;AACF;AACA,EAAA,IAAIF,OAAU,GAAA;AACZ,IAAA,OAAO,KAAKL,QAASK,CAAAA,OAAAA;AACvB;AAEA,EAAA,IAAID,SAAY,GAAA;AACd,IAAA,OAAO,KAAKJ,QAASI,CAAAA,SAAAA;AACvB;EAEUI,MAAS,GAAA;AACjB,IAAA,OAAOC,oBAAUC,WAAY,CAAA;AAC3BH,MAAAA,OAAAA,EAAS,KAAKP,QAASO,CAAAA,OAAAA;AACvBI,MAAAA,UAAAA,EAAY,KAAKX,QAASG,CAAAA,OAAAA;AAC1BS,MAAAA,aAAAA,EACE,IAAKZ,CAAAA,QAAAA,EAAUY,aACf,IAAA,IAAIC,gCAAiB,CAAA;AACnBC,QAAAA,MAAAA,EAAQ,IAAKd,CAAAA,QAAAA,EAAUe,MAAUb,IAAAA,cAAAA,CAAO,mBAAmB,EAAA,CAAA;QAC3Dc,GAAK,EAAA;OACP;KACJ,CAAA;AACF;AACF","file":"client.cjs","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WatsonXAI } from \"@ibm-cloud/watsonx-ai\";\nimport { getEnv } from \"@/internals/env.js\";\nimport { IamAuthenticator, UserOptions } from \"ibm-cloud-sdk-core\";\nimport { BackendClient } from \"@/backend/client.js\";\n\nexport interface WatsonxClientSettings extends Pick<UserOptions, \"authenticator\" | \"version\"> {\n spaceId?: string;\n baseUrl?: string;\n region?: string;\n projectId?: string;\n apiKey?: string;\n}\n\nexport class WatsonxClient extends BackendClient<WatsonxClientSettings, WatsonXAI> {\n constructor(settings: WatsonxClientSettings) {\n const region = settings?.region || getEnv(\"WATSONX_REGION\");\n const baseUrl =\n settings?.baseUrl || getEnv(\"WATSONX_BASE_URL\") || `https://${region}.ml.cloud.ibm.com`;\n\n const projectId = settings?.projectId || getEnv(\"WATSONX_PROJECT_ID\");\n const spaceId = projectId ? undefined : settings?.spaceId || getEnv(\"WATSONX_SPACE_ID\");\n const version = settings?.version || getEnv(\"WATSONX_VERSION\") || \"2024-05-31\";\n\n super({\n ...settings,\n baseUrl,\n projectId,\n spaceId,\n version,\n });\n }\n get spaceId() {\n return this.settings.spaceId;\n }\n\n get projectId() {\n return this.settings.projectId;\n }\n\n protected create() {\n return WatsonXAI.newInstance({\n version: this.settings.version,\n serviceUrl: this.settings.baseUrl,\n authenticator:\n this.settings?.authenticator ||\n new IamAuthenticator({\n apikey: this.settings?.apiKey || getEnv(\"WATSONX_API_KEY\", \"\"),\n url: \"https://iam.cloud.ibm.com\",\n }),\n });\n }\n}\n"]}
|
|
@@ -34,7 +34,7 @@ class WatsonxClient extends BackendClient {
|
|
|
34
34
|
version: this.settings.version,
|
|
35
35
|
serviceUrl: this.settings.baseUrl,
|
|
36
36
|
authenticator: this.settings?.authenticator || new IamAuthenticator({
|
|
37
|
-
apikey:
|
|
37
|
+
apikey: this.settings?.apiKey || getEnv("WATSONX_API_KEY", ""),
|
|
38
38
|
url: "https://iam.cloud.ibm.com"
|
|
39
39
|
})
|
|
40
40
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["WatsonxClient","BackendClient","constructor","settings","region","getEnv","baseUrl","projectId","spaceId","undefined","version","create","WatsonXAI","newInstance","serviceUrl","authenticator","IamAuthenticator","apikey","apiKey","url"],"mappings":";;;;;;;AA6BO,MAAMA,sBAAsBC,aAAAA,CAAAA;EA7BnC;;;AA8BEC,EAAAA,WAAAA,CAAYC,QAAiC,EAAA;AAC3C,IAAA,MAAMC,MAASD,GAAAA,QAAAA,EAAUC,MAAUC,IAAAA,MAAAA,CAAO,gBAAA,CAAA;AAC1C,IAAA,MAAMC,UACJH,QAAUG,EAAAA,OAAAA,IAAWD,OAAO,kBAAA,CAAA,IAAuB,WAAWD,MAAAA,CAAAA,iBAAAA,CAAAA;AAEhE,IAAA,MAAMG,SAAYJ,GAAAA,QAAAA,EAAUI,SAAaF,IAAAA,MAAAA,CAAO,oBAAA,CAAA;AAChD,IAAA,MAAMG,UAAUD,SAAYE,GAAAA,MAAAA,GAAYN,QAAUK,EAAAA,OAAAA,IAAWH,OAAO,kBAAA,CAAA;AACpE,IAAA,MAAMK,OAAUP,GAAAA,QAAAA,EAAUO,OAAWL,IAAAA,MAAAA,CAAO,iBAAA,CAAsB,IAAA,YAAA;AAElE,IAAM,KAAA,CAAA;MACJ,GAAGF,QAAAA;AACHG,MAAAA,OAAAA;AACAC,MAAAA,SAAAA;AACAC,MAAAA,OAAAA;AACAE,MAAAA;KACF,CAAA;AACF;AACA,EAAA,IAAIF,OAAU,GAAA;AACZ,IAAA,OAAO,KAAKL,QAASK,CAAAA,OAAAA;AACvB;AAEA,EAAA,IAAID,SAAY,GAAA;AACd,IAAA,OAAO,KAAKJ,QAASI,CAAAA,SAAAA;AACvB;EAEUI,MAAS,GAAA;AACjB,IAAA,OAAOC,UAAUC,WAAY,CAAA;AAC3BH,MAAAA,OAAAA,EAAS,KAAKP,QAASO,CAAAA,OAAAA;AACvBI,MAAAA,UAAAA,EAAY,KAAKX,QAASG,CAAAA,OAAAA;AAC1BS,MAAAA,aAAAA,EACE,IAAKZ,CAAAA,QAAAA,EAAUY,aACf,IAAA,IAAIC,gBAAiB,CAAA;AACnBC,QAAAA,MAAAA,
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["WatsonxClient","BackendClient","constructor","settings","region","getEnv","baseUrl","projectId","spaceId","undefined","version","create","WatsonXAI","newInstance","serviceUrl","authenticator","IamAuthenticator","apikey","apiKey","url"],"mappings":";;;;;;;AA6BO,MAAMA,sBAAsBC,aAAAA,CAAAA;EA7BnC;;;AA8BEC,EAAAA,WAAAA,CAAYC,QAAiC,EAAA;AAC3C,IAAA,MAAMC,MAASD,GAAAA,QAAAA,EAAUC,MAAUC,IAAAA,MAAAA,CAAO,gBAAA,CAAA;AAC1C,IAAA,MAAMC,UACJH,QAAUG,EAAAA,OAAAA,IAAWD,OAAO,kBAAA,CAAA,IAAuB,WAAWD,MAAAA,CAAAA,iBAAAA,CAAAA;AAEhE,IAAA,MAAMG,SAAYJ,GAAAA,QAAAA,EAAUI,SAAaF,IAAAA,MAAAA,CAAO,oBAAA,CAAA;AAChD,IAAA,MAAMG,UAAUD,SAAYE,GAAAA,MAAAA,GAAYN,QAAUK,EAAAA,OAAAA,IAAWH,OAAO,kBAAA,CAAA;AACpE,IAAA,MAAMK,OAAUP,GAAAA,QAAAA,EAAUO,OAAWL,IAAAA,MAAAA,CAAO,iBAAA,CAAsB,IAAA,YAAA;AAElE,IAAM,KAAA,CAAA;MACJ,GAAGF,QAAAA;AACHG,MAAAA,OAAAA;AACAC,MAAAA,SAAAA;AACAC,MAAAA,OAAAA;AACAE,MAAAA;KACF,CAAA;AACF;AACA,EAAA,IAAIF,OAAU,GAAA;AACZ,IAAA,OAAO,KAAKL,QAASK,CAAAA,OAAAA;AACvB;AAEA,EAAA,IAAID,SAAY,GAAA;AACd,IAAA,OAAO,KAAKJ,QAASI,CAAAA,SAAAA;AACvB;EAEUI,MAAS,GAAA;AACjB,IAAA,OAAOC,UAAUC,WAAY,CAAA;AAC3BH,MAAAA,OAAAA,EAAS,KAAKP,QAASO,CAAAA,OAAAA;AACvBI,MAAAA,UAAAA,EAAY,KAAKX,QAASG,CAAAA,OAAAA;AAC1BS,MAAAA,aAAAA,EACE,IAAKZ,CAAAA,QAAAA,EAAUY,aACf,IAAA,IAAIC,gBAAiB,CAAA;AACnBC,QAAAA,MAAAA,EAAQ,IAAKd,CAAAA,QAAAA,EAAUe,MAAUb,IAAAA,MAAAA,CAAO,mBAAmB,EAAA,CAAA;QAC3Dc,GAAK,EAAA;OACP;KACJ,CAAA;AACF;AACF","file":"client.js","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WatsonXAI } from \"@ibm-cloud/watsonx-ai\";\nimport { getEnv } from \"@/internals/env.js\";\nimport { IamAuthenticator, UserOptions } from \"ibm-cloud-sdk-core\";\nimport { BackendClient } from \"@/backend/client.js\";\n\nexport interface WatsonxClientSettings extends Pick<UserOptions, \"authenticator\" | \"version\"> {\n spaceId?: string;\n baseUrl?: string;\n region?: string;\n projectId?: string;\n apiKey?: string;\n}\n\nexport class WatsonxClient extends BackendClient<WatsonxClientSettings, WatsonXAI> {\n constructor(settings: WatsonxClientSettings) {\n const region = settings?.region || getEnv(\"WATSONX_REGION\");\n const baseUrl =\n settings?.baseUrl || getEnv(\"WATSONX_BASE_URL\") || `https://${region}.ml.cloud.ibm.com`;\n\n const projectId = settings?.projectId || getEnv(\"WATSONX_PROJECT_ID\");\n const spaceId = projectId ? undefined : settings?.spaceId || getEnv(\"WATSONX_SPACE_ID\");\n const version = settings?.version || getEnv(\"WATSONX_VERSION\") || \"2024-05-31\";\n\n super({\n ...settings,\n baseUrl,\n projectId,\n spaceId,\n version,\n });\n }\n get spaceId() {\n return this.settings.spaceId;\n }\n\n get projectId() {\n return this.settings.projectId;\n }\n\n protected create() {\n return WatsonXAI.newInstance({\n version: this.settings.version,\n serviceUrl: this.settings.baseUrl,\n authenticator:\n this.settings?.authenticator ||\n new IamAuthenticator({\n apikey: this.settings?.apiKey || getEnv(\"WATSONX_API_KEY\", \"\"),\n url: \"https://iam.cloud.ibm.com\",\n }),\n });\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WatsonxClient, WatsonxClientSettings } from './client.cjs';
|
|
2
2
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.cjs';
|
|
3
3
|
import { EmbeddingParameters } from '@ibm-cloud/watsonx-ai/dist/watsonx-ai-ml/vml_v1.js';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
5
5
|
import '@ibm-cloud/watsonx-ai';
|
|
6
6
|
import 'ibm-cloud-sdk-core';
|
|
7
7
|
import '../../../backend/client.cjs';
|
|
@@ -11,7 +11,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
11
11
|
import '../../../context.cjs';
|
|
12
12
|
import '../../../internals/helpers/promise.cjs';
|
|
13
13
|
import '../../../errors.cjs';
|
|
14
|
-
import '../../../chat-
|
|
14
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
15
15
|
import '../../../backend/message.cjs';
|
|
16
16
|
import 'ai';
|
|
17
17
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WatsonxClient, WatsonxClientSettings } from './client.js';
|
|
2
2
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.js';
|
|
3
3
|
import { EmbeddingParameters } from '@ibm-cloud/watsonx-ai/dist/watsonx-ai-ml/vml_v1.js';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
5
5
|
import '@ibm-cloud/watsonx-ai';
|
|
6
6
|
import 'ibm-cloud-sdk-core';
|
|
7
7
|
import '../../../backend/client.js';
|
|
@@ -11,7 +11,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
11
11
|
import '../../../context.js';
|
|
12
12
|
import '../../../internals/helpers/promise.js';
|
|
13
13
|
import '../../../errors.js';
|
|
14
|
-
import '../../../chat-
|
|
14
|
+
import '../../../chat-diSK3Sui.js';
|
|
15
15
|
import '../../../backend/message.js';
|
|
16
16
|
import 'ai';
|
|
17
17
|
import 'promise-based-task';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetRunContext, RunContext } from './context.cjs';
|
|
2
|
-
import { b as AgentMeta, a as BaseAgent } from './base-
|
|
2
|
+
import { b as AgentMeta, a as BaseAgent } from './base-BPsHNV2O.cjs';
|
|
3
3
|
import { AnyTool } from './tools/base.cjs';
|
|
4
4
|
import { BaseMemory } from './memory/base.cjs';
|
|
5
|
-
import { E as Emitter } from './emitter-
|
|
5
|
+
import { E as Emitter } from './emitter-BTr99H7I.cjs';
|
|
6
6
|
import { ReActAgentRunOptions, ReActAgentRunIteration, ReActAgentCallbacks, ReActAgentParserInput, ReActAgentMeta, ReActAgentRunInput, ReActAgentIterationToolResult, ReActAgentTemplates, ReActAgentExecutionConfig, ReActAgentRunOutput } from './agents/react/types.cjs';
|
|
7
7
|
import { LinePrefixParser } from './parsers/linePrefix.cjs';
|
|
8
8
|
import { Serializable } from './internals/serializable.cjs';
|
|
9
|
-
import { m as ChatModel } from './chat-
|
|
9
|
+
import { m as ChatModel } from './chat-BvyMdWFo.cjs';
|
|
10
10
|
import { RetryCounter } from './internals/helpers/counter.cjs';
|
|
11
11
|
|
|
12
12
|
interface ReActAgentRunnerLLMInput {
|
|
@@ -81,4 +81,4 @@ declare class ReActAgent extends BaseAgent<ReActAgentRunInput, ReActAgentRunOutp
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export { BaseRunner as B, type
|
|
84
|
+
export { BaseRunner as B, type ReActAgentRunnerLLMInput as R, type ReActAgentRunnerToolInput as a, type ReActAgentInput as b, ReActAgent as c, type ReActAgentTemplateFactory as d };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetRunContext, RunContext } from './context.js';
|
|
2
|
-
import { b as AgentMeta, a as BaseAgent } from './base-
|
|
2
|
+
import { b as AgentMeta, a as BaseAgent } from './base-ZnwDK6ZB.js';
|
|
3
3
|
import { AnyTool } from './tools/base.js';
|
|
4
4
|
import { BaseMemory } from './memory/base.js';
|
|
5
|
-
import { E as Emitter } from './emitter-
|
|
5
|
+
import { E as Emitter } from './emitter-DiGmS_5O.js';
|
|
6
6
|
import { ReActAgentRunOptions, ReActAgentRunIteration, ReActAgentCallbacks, ReActAgentParserInput, ReActAgentMeta, ReActAgentRunInput, ReActAgentIterationToolResult, ReActAgentTemplates, ReActAgentExecutionConfig, ReActAgentRunOutput } from './agents/react/types.js';
|
|
7
7
|
import { LinePrefixParser } from './parsers/linePrefix.js';
|
|
8
8
|
import { Serializable } from './internals/serializable.js';
|
|
9
|
-
import { m as ChatModel } from './chat-
|
|
9
|
+
import { m as ChatModel } from './chat-diSK3Sui.js';
|
|
10
10
|
import { RetryCounter } from './internals/helpers/counter.js';
|
|
11
11
|
|
|
12
12
|
interface ReActAgentRunnerLLMInput {
|
|
@@ -81,4 +81,4 @@ declare class ReActAgent extends BaseAgent<ReActAgentRunInput, ReActAgentRunOutp
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export { BaseRunner as B, type
|
|
84
|
+
export { BaseRunner as B, type ReActAgentRunnerLLMInput as R, type ReActAgentRunnerToolInput as a, type ReActAgentInput as b, ReActAgent as c, type ReActAgentTemplateFactory as d };
|
package/dist/agents/base.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../context.cjs';
|
|
2
2
|
import '../errors.cjs';
|
|
3
|
-
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from '../base-
|
|
3
|
+
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from '../base-BPsHNV2O.cjs';
|
|
4
4
|
import '../internals/serializable.cjs';
|
|
5
|
-
import '../emitter-
|
|
5
|
+
import '../emitter-BTr99H7I.cjs';
|
|
6
6
|
import '../memory/base.cjs';
|
|
7
7
|
import '../internals/helpers/promise.cjs';
|
|
8
8
|
import '../internals/types.cjs';
|
package/dist/agents/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../context.js';
|
|
2
2
|
import '../errors.js';
|
|
3
|
-
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from '../base-
|
|
3
|
+
export { A as AgentError, a as BaseAgent, B as BaseAgentRunOptions } from '../base-ZnwDK6ZB.js';
|
|
4
4
|
import '../internals/serializable.js';
|
|
5
|
-
import '../emitter-
|
|
5
|
+
import '../emitter-DiGmS_5O.js';
|
|
6
6
|
import '../memory/base.js';
|
|
7
7
|
import '../internals/helpers/promise.js';
|
|
8
8
|
import '../internals/types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
3
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
2
|
+
import { C as Callback, E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
3
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-BPsHNV2O.cjs';
|
|
4
4
|
import { GetRunContext } from '../../../context.cjs';
|
|
5
5
|
import { Message } from '../../../backend/message.cjs';
|
|
6
6
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
3
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
2
|
+
import { C as Callback, E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
3
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-ZnwDK6ZB.js';
|
|
4
4
|
import { GetRunContext } from '../../../context.js';
|
|
5
5
|
import { Message } from '../../../backend/message.js';
|
|
6
6
|
import { BaseMemory } from '../../../memory/base.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
2
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { C as Callback, E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
2
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-BPsHNV2O.cjs';
|
|
3
3
|
import { GetRunContext } from '../../../context.cjs';
|
|
4
4
|
import { Message } from '../../../backend/message.cjs';
|
|
5
5
|
import { RePlanState } from './prompts.cjs';
|
|
6
6
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
7
7
|
import { UnconstrainedMemory } from '../../../memory/unconstrainedMemory.cjs';
|
|
8
8
|
import { AnyTool } from '../../../tools/base.cjs';
|
|
9
|
-
import { m as ChatModel } from '../../../chat-
|
|
9
|
+
import { m as ChatModel } from '../../../chat-BvyMdWFo.cjs';
|
|
10
10
|
import '../../../internals/types.cjs';
|
|
11
11
|
import '../../../internals/helpers/guards.cjs';
|
|
12
12
|
import '../../../internals/serializable.cjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
2
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { C as Callback, E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
2
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-ZnwDK6ZB.js';
|
|
3
3
|
import { GetRunContext } from '../../../context.js';
|
|
4
4
|
import { Message } from '../../../backend/message.js';
|
|
5
5
|
import { RePlanState } from './prompts.js';
|
|
6
6
|
import { BaseMemory } from '../../../memory/base.js';
|
|
7
7
|
import { UnconstrainedMemory } from '../../../memory/unconstrainedMemory.js';
|
|
8
8
|
import { AnyTool } from '../../../tools/base.js';
|
|
9
|
-
import { m as ChatModel } from '../../../chat-
|
|
9
|
+
import { m as ChatModel } from '../../../chat-diSK3Sui.js';
|
|
10
10
|
import '../../../internals/types.js';
|
|
11
11
|
import '../../../internals/helpers/guards.js';
|
|
12
12
|
import '../../../internals/serializable.js';
|
|
@@ -7,7 +7,7 @@ import '../../../internals/types.cjs';
|
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../internals/serializable.cjs';
|
|
9
9
|
import '../../../context.cjs';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import 'promise-based-task';
|
|
13
13
|
import '../../../cache/base.cjs';
|
|
@@ -7,7 +7,7 @@ import '../../../internals/types.js';
|
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../internals/serializable.js';
|
|
9
9
|
import '../../../context.js';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import 'promise-based-task';
|
|
13
13
|
import '../../../cache/base.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as BaseAgent, b as AgentMeta, B as BaseAgentRunOptions } from '../../../base-
|
|
1
|
+
import { a as BaseAgent, b as AgentMeta, B as BaseAgentRunOptions } from '../../../base-BPsHNV2O.cjs';
|
|
2
2
|
import { GetRunContext } from '../../../context.cjs';
|
|
3
|
-
import { C as Callback, E as Emitter } from '../../../emitter-
|
|
3
|
+
import { C as Callback, E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
4
4
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
5
5
|
import { Message, UserMessage } from '../../../backend/message.cjs';
|
|
6
6
|
import { StreamlitAgentTemplates } from './prompts.cjs';
|
|
7
7
|
import { TokenMemory } from '../../../memory/tokenMemory.cjs';
|
|
8
|
-
import { m as ChatModel, n as ChatModelOutput } from '../../../chat-
|
|
8
|
+
import { m as ChatModel, n as ChatModelOutput } from '../../../chat-BvyMdWFo.cjs';
|
|
9
9
|
import '../../../errors.cjs';
|
|
10
10
|
import '../../../internals/types.cjs';
|
|
11
11
|
import '../../../internals/helpers/guards.cjs';
|