beeai-framework 0.1.25 → 0.1.27
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/agents/agent.d.cts +2 -2
- package/dist/adapters/a2a/agents/agent.d.ts +2 -2
- package/dist/adapters/a2a/agents/events.d.cts +1 -1
- package/dist/adapters/a2a/agents/events.d.ts +1 -1
- package/dist/adapters/a2a/agents/types.d.cts +2 -2
- package/dist/adapters/a2a/agents/types.d.ts +2 -2
- package/dist/adapters/a2a/serve/agent_executor.d.cts +3 -3
- package/dist/adapters/a2a/serve/agent_executor.d.ts +3 -3
- package/dist/adapters/a2a/serve/server.d.cts +2 -2
- package/dist/adapters/a2a/serve/server.d.ts +2 -2
- package/dist/adapters/acp/agents/agent.d.cts +2 -2
- package/dist/adapters/acp/agents/agent.d.ts +2 -2
- package/dist/adapters/acp/agents/events.d.cts +1 -1
- package/dist/adapters/acp/agents/events.d.ts +1 -1
- package/dist/adapters/agentstack/agents/agent.d.cts +2 -2
- package/dist/adapters/agentstack/agents/agent.d.ts +2 -2
- package/dist/adapters/agentstack/agents/events.d.cts +1 -1
- package/dist/adapters/agentstack/agents/events.d.ts +1 -1
- 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/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/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.cjs +44 -1
- package/dist/adapters/groq/backend/chat.cjs.map +1 -1
- package/dist/adapters/groq/backend/chat.d.cts +12 -14
- package/dist/adapters/groq/backend/chat.d.ts +12 -14
- package/dist/adapters/groq/backend/chat.js +44 -1
- package/dist/adapters/groq/backend/chat.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.cjs +57 -18
- package/dist/adapters/vercel/backend/chat.cjs.map +1 -1
- package/dist/adapters/vercel/backend/chat.d.cts +4 -4
- package/dist/adapters/vercel/backend/chat.d.ts +4 -4
- package/dist/adapters/vercel/backend/chat.js +59 -20
- package/dist/adapters/vercel/backend/chat.js.map +1 -1
- package/dist/adapters/vercel/backend/embedding.cjs.map +1 -1
- package/dist/adapters/vercel/backend/embedding.d.cts +3 -3
- package/dist/adapters/vercel/backend/embedding.d.ts +3 -3
- package/dist/adapters/vercel/backend/embedding.js.map +1 -1
- package/dist/adapters/vercel/backend/utils.d.cts +2 -2
- package/dist/adapters/vercel/backend/utils.d.ts +2 -2
- package/dist/adapters/watsonx/backend/chat.cjs +6 -4
- package/dist/adapters/watsonx/backend/chat.cjs.map +1 -1
- 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/chat.js +7 -5
- package/dist/adapters/watsonx/backend/chat.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/adapters/xai/backend/chat.d.cts +2 -2
- package/dist/adapters/xai/backend/chat.d.ts +2 -2
- package/dist/{agent-DIyHPkn2.d.ts → agent-CZGWXO-X.d.ts} +3 -3
- package/dist/{agent-CuJD7Szg.d.cts → agent-PRlGoawI.d.cts} +3 -3
- package/dist/agents/base.d.cts +2 -2
- package/dist/agents/base.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/requirement/agent.d.cts +4 -4
- package/dist/agents/requirement/agent.d.ts +4 -4
- package/dist/agents/requirement/prompts.d.cts +2 -2
- package/dist/agents/requirement/prompts.d.ts +2 -2
- package/dist/agents/requirement/requirements/conditional.d.cts +4 -4
- package/dist/agents/requirement/requirements/conditional.d.ts +4 -4
- package/dist/agents/requirement/requirements/requirement.d.cts +4 -4
- package/dist/agents/requirement/requirements/requirement.d.ts +4 -4
- package/dist/agents/requirement/requirements/utils.d.cts +1 -1
- package/dist/agents/requirement/requirements/utils.d.ts +1 -1
- package/dist/agents/requirement/runner.cjs +12 -1
- package/dist/agents/requirement/runner.cjs.map +1 -1
- package/dist/agents/requirement/runner.d.cts +4 -4
- package/dist/agents/requirement/runner.d.ts +4 -4
- package/dist/agents/requirement/runner.js +12 -1
- package/dist/agents/requirement/runner.js.map +1 -1
- package/dist/agents/requirement/types.d.cts +4 -4
- package/dist/agents/requirement/types.d.ts +4 -4
- package/dist/agents/requirement/utils/llm.d.cts +4 -4
- package/dist/agents/requirement/utils/llm.d.ts +4 -4
- package/dist/agents/requirement/utils/tool.d.cts +4 -4
- package/dist/agents/requirement/utils/tool.d.ts +4 -4
- 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.cjs +8 -1
- package/dist/backend/chat.cjs.map +1 -1
- package/dist/backend/chat.d.cts +2 -2
- package/dist/backend/chat.d.ts +2 -2
- package/dist/backend/chat.js +8 -1
- package/dist/backend/chat.js.map +1 -1
- package/dist/backend/core.d.cts +3 -3
- package/dist/backend/core.d.ts +3 -3
- package/dist/backend/embedding.d.cts +2 -2
- package/dist/backend/embedding.d.ts +2 -2
- package/dist/backend/errors.cjs.map +1 -1
- package/dist/backend/errors.d.cts +10 -13
- package/dist/backend/errors.d.ts +10 -13
- package/dist/backend/errors.js.map +1 -1
- package/dist/backend/message.cjs +4 -1
- package/dist/backend/message.cjs.map +1 -1
- package/dist/backend/message.js +4 -1
- package/dist/backend/message.js.map +1 -1
- package/dist/backend/utils.d.cts +2 -2
- package/dist/backend/utils.d.ts +2 -2
- package/dist/{base-BfhNzUYf.d.ts → base-CyFx7BRL.d.ts} +1 -1
- package/dist/{base-BqzN2QwB.d.cts → base-XfWeXQ-S.d.cts} +1 -1
- package/dist/{chat-DaqV3woF.d.cts → chat-BFl85cqt.d.cts} +1 -1
- package/dist/{chat-DTxmaKP0.d.ts → chat-BRuyDeKR.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/middleware/streamToolCall.d.cts +2 -2
- package/dist/middleware/streamToolCall.d.ts +2 -2
- package/dist/middleware/trajectory.d.cts +1 -1
- package/dist/middleware/trajectory.d.ts +1 -1
- 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 +3 -3
- package/dist/tools/database/milvus.d.ts +3 -3
- package/dist/tools/database/qdrant.d.cts +1 -1
- package/dist/tools/database/qdrant.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/handoff.d.cts +2 -2
- package/dist/tools/handoff.d.ts +2 -2
- 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/think.d.cts +1 -1
- package/dist/tools/think.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/{types-YT-WdK3m.d.ts → types-C3Fnr6yY.d.ts} +11 -11
- package/dist/{types-YoNQSxQH.d.cts → types-DepshYVR.d.cts} +11 -11
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/workflows/agent.d.cts +3 -3
- package/dist/workflows/agent.d.ts +3 -3
- package/dist/workflows/workflow.d.cts +1 -1
- package/dist/workflows/workflow.d.ts +1 -1
- package/package.json +19 -19
- package/dist/{emitter-CL56qab4.d.ts → emitter-36-9MnvA.d.ts} +1 -1
- package/dist/{emitter-UkIkNrek.d.cts → emitter-jN55XZZq.d.cts} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetRunContext, MiddlewareType } from '../../../context.cjs';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
-
import { a as BaseAgent } from '../../../base-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
3
|
+
import { a as BaseAgent } from '../../../base-XfWeXQ-S.cjs';
|
|
4
4
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
5
5
|
import { A2AAgentRunInput, A2AAgentRunOutput, A2AAgentInput, A2AAgentRunOptions } from './types.cjs';
|
|
6
6
|
import { A2AAgentEvents } from './events.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetRunContext, MiddlewareType } from '../../../context.js';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
-
import { a as BaseAgent } from '../../../base-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
3
|
+
import { a as BaseAgent } from '../../../base-CyFx7BRL.js';
|
|
4
4
|
import { BaseMemory } from '../../../memory/base.js';
|
|
5
5
|
import { A2AAgentRunInput, A2AAgentRunOutput, A2AAgentInput, A2AAgentRunOptions } from './types.js';
|
|
6
6
|
import { A2AAgentEvents } from './events.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Callback } from '../../../emitter-
|
|
1
|
+
import { C as Callback } from '../../../emitter-jN55XZZq.cjs';
|
|
2
2
|
import { Message, Task, TaskStatusUpdateEvent, TaskArtifactUpdateEvent } from '@a2a-js/sdk';
|
|
3
3
|
import '../../../internals/types.cjs';
|
|
4
4
|
import '../../../internals/helpers/guards.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Callback } from '../../../emitter-
|
|
1
|
+
import { C as Callback } from '../../../emitter-36-9MnvA.js';
|
|
2
2
|
import { Message, Task, TaskStatusUpdateEvent, TaskArtifactUpdateEvent } from '@a2a-js/sdk';
|
|
3
3
|
import '../../../internals/types.js';
|
|
4
4
|
import '../../../internals/helpers/guards.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Message } from '../../../backend/message.cjs';
|
|
2
2
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
3
|
-
import { B as BaseAgentRunOptions } from '../../../base-
|
|
3
|
+
import { B as BaseAgentRunOptions } from '../../../base-XfWeXQ-S.cjs';
|
|
4
4
|
import { Message as Message$1, Task, TaskStatusUpdateEvent, TaskArtifactUpdateEvent, AgentCard } from '@a2a-js/sdk';
|
|
5
5
|
import '../../../internals/serializable.cjs';
|
|
6
6
|
import '../../../internals/types.cjs';
|
|
@@ -8,7 +8,7 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
8
8
|
import 'ai';
|
|
9
9
|
import '../../../errors.cjs';
|
|
10
10
|
import '../../../context.cjs';
|
|
11
|
-
import '../../../emitter-
|
|
11
|
+
import '../../../emitter-jN55XZZq.cjs';
|
|
12
12
|
import '../../../internals/helpers/promise.cjs';
|
|
13
13
|
import '../../../tools/base.cjs';
|
|
14
14
|
import 'ajv';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Message } from '../../../backend/message.js';
|
|
2
2
|
import { BaseMemory } from '../../../memory/base.js';
|
|
3
|
-
import { B as BaseAgentRunOptions } from '../../../base-
|
|
3
|
+
import { B as BaseAgentRunOptions } from '../../../base-CyFx7BRL.js';
|
|
4
4
|
import { Message as Message$1, Task, TaskStatusUpdateEvent, TaskArtifactUpdateEvent, AgentCard } from '@a2a-js/sdk';
|
|
5
5
|
import '../../../internals/serializable.js';
|
|
6
6
|
import '../../../internals/types.js';
|
|
@@ -8,7 +8,7 @@ import '../../../internals/helpers/guards.js';
|
|
|
8
8
|
import 'ai';
|
|
9
9
|
import '../../../errors.js';
|
|
10
10
|
import '../../../context.js';
|
|
11
|
-
import '../../../emitter-
|
|
11
|
+
import '../../../emitter-36-9MnvA.js';
|
|
12
12
|
import '../../../internals/helpers/promise.js';
|
|
13
13
|
import '../../../tools/base.js';
|
|
14
14
|
import 'ajv';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as AnyAgent } from '../../../base-
|
|
1
|
+
import { b as AnyAgent } from '../../../base-XfWeXQ-S.cjs';
|
|
2
2
|
import { AgentExecutor, RequestContext, ExecutionEventBus } from '@a2a-js/sdk/server';
|
|
3
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
+
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
4
4
|
import { ToolCallingAgentCallbacks } from '../../../agents/toolCalling/types.cjs';
|
|
5
5
|
import { ReActAgentCallbacks } from '../../../agents/react/types.cjs';
|
|
6
6
|
import '../../../context.cjs';
|
|
@@ -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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as AnyAgent } from '../../../base-
|
|
1
|
+
import { b as AnyAgent } from '../../../base-CyFx7BRL.js';
|
|
2
2
|
import { AgentExecutor, RequestContext, ExecutionEventBus } from '@a2a-js/sdk/server';
|
|
3
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
+
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
4
4
|
import { ToolCallingAgentCallbacks } from '../../../agents/toolCalling/types.js';
|
|
5
5
|
import { ReActAgentCallbacks } from '../../../agents/react/types.js';
|
|
6
6
|
import '../../../context.js';
|
|
@@ -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,9 +1,9 @@
|
|
|
1
|
-
import { b as AnyAgent } from '../../../base-
|
|
1
|
+
import { b as AnyAgent } from '../../../base-XfWeXQ-S.cjs';
|
|
2
2
|
import { Server } from '../../../serve/server.cjs';
|
|
3
3
|
import { AgentExecutor, TaskStore, ExecutionEventBusManager, PushNotificationStore, PushNotificationSender } from '@a2a-js/sdk/server';
|
|
4
4
|
import { AgentProvider, AgentCapabilities, AgentSkill } from '@a2a-js/sdk';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-jN55XZZq.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as AnyAgent } from '../../../base-
|
|
1
|
+
import { b as AnyAgent } from '../../../base-CyFx7BRL.js';
|
|
2
2
|
import { Server } from '../../../serve/server.js';
|
|
3
3
|
import { AgentExecutor, TaskStore, ExecutionEventBusManager, PushNotificationStore, PushNotificationSender } from '@a2a-js/sdk/server';
|
|
4
4
|
import { AgentProvider, AgentCapabilities, AgentSkill } from '@a2a-js/sdk';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-36-9MnvA.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetRunContext, MiddlewareType } from '../../../context.cjs';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
3
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-XfWeXQ-S.cjs';
|
|
4
4
|
import { Message } from '../../../backend/message.cjs';
|
|
5
5
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
6
6
|
import { RestfulClient } from '../../../internals/fetcher.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetRunContext, MiddlewareType } from '../../../context.js';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
3
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
3
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-CyFx7BRL.js';
|
|
4
4
|
import { Message } from '../../../backend/message.js';
|
|
5
5
|
import { BaseMemory } from '../../../memory/base.js';
|
|
6
6
|
import { RestfulClient } from '../../../internals/fetcher.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GetRunContext, MiddlewareType } from '../../../context.cjs';
|
|
2
2
|
import { ACPAgentEvents } from '../../acp/agents/events.cjs';
|
|
3
3
|
import { ACPAgentInput } from '../../acp/agents/types.cjs';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
5
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
5
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-XfWeXQ-S.cjs';
|
|
6
6
|
import { BaseMemory } from '../../../memory/base.cjs';
|
|
7
7
|
import { AgentStackAgentRunInput, AgentStackAgentRunOutput, AgentStackAgentInput } from './types.cjs';
|
|
8
8
|
import { AgentStackAgentEvents } from './events.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GetRunContext, MiddlewareType } from '../../../context.js';
|
|
2
2
|
import { ACPAgentEvents } from '../../acp/agents/events.js';
|
|
3
3
|
import { ACPAgentInput } from '../../acp/agents/types.js';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
5
|
-
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
5
|
+
import { a as BaseAgent, B as BaseAgentRunOptions } from '../../../base-CyFx7BRL.js';
|
|
6
6
|
import { BaseMemory } from '../../../memory/base.js';
|
|
7
7
|
import { AgentStackAgentRunInput, AgentStackAgentRunOutput, AgentStackAgentInput } from './types.js';
|
|
8
8
|
import { AgentStackAgentEvents } from './events.js';
|
|
@@ -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';
|
|
@@ -10,7 +10,7 @@ import '../../../logger/logger.cjs';
|
|
|
10
10
|
import 'pino';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
12
|
import '../../../context.cjs';
|
|
13
|
-
import '../../../emitter-
|
|
13
|
+
import '../../../emitter-jN55XZZq.cjs';
|
|
14
14
|
import '../../../internals/helpers/promise.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import '../../../backend/message.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';
|
|
@@ -10,7 +10,7 @@ import '../../../logger/logger.js';
|
|
|
10
10
|
import 'pino';
|
|
11
11
|
import '../../../errors.js';
|
|
12
12
|
import '../../../context.js';
|
|
13
|
-
import '../../../emitter-
|
|
13
|
+
import '../../../emitter-36-9MnvA.js';
|
|
14
14
|
import '../../../internals/helpers/promise.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import '../../../backend/message.js';
|
|
@@ -3,13 +3,13 @@ import { AmazonBedrockProvider } from '@ai-sdk/amazon-bedrock';
|
|
|
3
3
|
import { AmazonBedrockClient, AmazonBedrockClientSettings } from './client.cjs';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-jN55XZZq.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-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { AmazonBedrockProvider } from '@ai-sdk/amazon-bedrock';
|
|
|
3
3
|
import { AmazonBedrockClient, AmazonBedrockClientSettings } from './client.js';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-36-9MnvA.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-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';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.cjs';
|
|
|
9
9
|
import '../../../internals/helpers/guards.cjs';
|
|
10
10
|
import '../../../internals/serializable.cjs';
|
|
11
11
|
import '../../../context.cjs';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-jN55XZZq.cjs';
|
|
13
13
|
import '../../../internals/helpers/promise.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.cjs';
|
|
@@ -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';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.js';
|
|
|
9
9
|
import '../../../internals/helpers/guards.js';
|
|
10
10
|
import '../../../internals/serializable.js';
|
|
11
11
|
import '../../../context.js';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-36-9MnvA.js';
|
|
13
13
|
import '../../../internals/helpers/promise.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.js';
|
|
@@ -3,13 +3,13 @@ import { AnthropicClientSettings, AnthropicClient } from './client.cjs';
|
|
|
3
3
|
import { AnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-jN55XZZq.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-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { AnthropicClientSettings, AnthropicClient } from './client.js';
|
|
|
3
3
|
import { AnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-36-9MnvA.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-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';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.cjs';
|
|
|
9
9
|
import '../../../internals/helpers/guards.cjs';
|
|
10
10
|
import '../../../internals/serializable.cjs';
|
|
11
11
|
import '../../../context.cjs';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-jN55XZZq.cjs';
|
|
13
13
|
import '../../../internals/helpers/promise.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.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/types.js';
|
|
|
9
9
|
import '../../../internals/helpers/guards.js';
|
|
10
10
|
import '../../../internals/serializable.js';
|
|
11
11
|
import '../../../context.js';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-36-9MnvA.js';
|
|
13
13
|
import '../../../internals/helpers/promise.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.js';
|
|
@@ -3,13 +3,13 @@ import { AzureOpenAIClient, AzureOpenAIClientSettings } from './client.cjs';
|
|
|
3
3
|
import { AzureOpenAIProvider } from '@ai-sdk/azure';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-jN55XZZq.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-BFl85cqt.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { AzureOpenAIClient, AzureOpenAIClientSettings } from './client.js';
|
|
|
3
3
|
import { AzureOpenAIProvider } from '@ai-sdk/azure';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-36-9MnvA.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-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 { 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-
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
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
|
+
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import '../../../errors.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
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
|
+
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import '../../../errors.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetRunContext } from '../../../context.cjs';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-jN55XZZq.cjs';
|
|
3
3
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.cjs';
|
|
4
4
|
import '../../../internals/serializable.cjs';
|
|
5
5
|
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';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetRunContext } from '../../../context.js';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-36-9MnvA.js';
|
|
3
3
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.js';
|
|
4
4
|
import '../../../internals/serializable.js';
|
|
5
5
|
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';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.cjs';
|
|
|
9
9
|
import '../../../internals/helpers/guards.cjs';
|
|
10
10
|
import '../../../internals/serializable.cjs';
|
|
11
11
|
import '../../../context.cjs';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-jN55XZZq.cjs';
|
|
13
13
|
import '../../../internals/helpers/promise.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.cjs';
|
|
@@ -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';
|
|
@@ -9,7 +9,7 @@ import '../../../internals/types.js';
|
|
|
9
9
|
import '../../../internals/helpers/guards.js';
|
|
10
10
|
import '../../../internals/serializable.js';
|
|
11
11
|
import '../../../context.js';
|
|
12
|
-
import '../../../emitter-
|
|
12
|
+
import '../../../emitter-36-9MnvA.js';
|
|
13
13
|
import '../../../internals/helpers/promise.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import '../../../backend/message.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-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';
|
|
@@ -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-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';
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
var chat_cjs = require('../../vercel/backend/chat.cjs');
|
|
4
4
|
var client_cjs = require('./client.cjs');
|
|
5
5
|
var env_cjs = require('../../../internals/env.cjs');
|
|
6
|
+
var ai = require('ai');
|
|
7
|
+
var errors_cjs = require('../../../backend/errors.cjs');
|
|
8
|
+
var schema_cjs = require('../../../internals/helpers/schema.cjs');
|
|
9
|
+
var remeda = require('remeda');
|
|
6
10
|
|
|
7
11
|
var __defProp = Object.defineProperty;
|
|
8
12
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -10,7 +14,7 @@ class GroqChatModel extends chat_cjs.VercelChatModel {
|
|
|
10
14
|
static {
|
|
11
15
|
__name(this, "GroqChatModel");
|
|
12
16
|
}
|
|
13
|
-
constructor(modelId = env_cjs.getEnv("GROQ_CHAT_MODEL", "
|
|
17
|
+
constructor(modelId = env_cjs.getEnv("GROQ_CHAT_MODEL", "openai/gpt-oss-20b"), parameters = {}, client) {
|
|
14
18
|
const model = client_cjs.GroqClient.ensure(client).instance.languageModel(modelId);
|
|
15
19
|
super(model);
|
|
16
20
|
Object.assign(this.parameters, parameters ?? {});
|
|
@@ -18,6 +22,45 @@ class GroqChatModel extends chat_cjs.VercelChatModel {
|
|
|
18
22
|
static {
|
|
19
23
|
this.register();
|
|
20
24
|
}
|
|
25
|
+
async *_createStream(input, run) {
|
|
26
|
+
try {
|
|
27
|
+
for await (const chunk of super._createStream(input, run)) {
|
|
28
|
+
yield chunk;
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
this.handleError(input, error);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async _create(input, run) {
|
|
35
|
+
return await super._create(input, run).catch((e) => this.handleError(input, e));
|
|
36
|
+
}
|
|
37
|
+
handleError(input, error) {
|
|
38
|
+
const matchedErrorMessages = [
|
|
39
|
+
"model did not call a tool",
|
|
40
|
+
"tool call validation failed",
|
|
41
|
+
"tool choice is required",
|
|
42
|
+
"Parsing failed"
|
|
43
|
+
];
|
|
44
|
+
const cause = error instanceof errors_cjs.ChatModelError ? error.getCause() : error;
|
|
45
|
+
const responseBodyRaw = ai.APICallError.isInstance(cause) ? cause.responseBody : remeda.isPlainObject(cause) ? JSON.stringify(cause) : void 0;
|
|
46
|
+
if (responseBodyRaw && matchedErrorMessages.some((message) => responseBodyRaw.includes(message))) {
|
|
47
|
+
const responseBody = schema_cjs.parseBrokenJson(responseBodyRaw, {
|
|
48
|
+
pair: [
|
|
49
|
+
"{",
|
|
50
|
+
"}"
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
if (!responseBody) {
|
|
54
|
+
throw cause;
|
|
55
|
+
}
|
|
56
|
+
const tools = (input.tools || []).map((t) => t.name).join(", ");
|
|
57
|
+
throw new errors_cjs.ChatModelToolCallError(responseBody?.error?.message || responseBody?.message || String(responseBody), [], {
|
|
58
|
+
generatedContent: responseBody?.error?.failed_generation || "empty",
|
|
59
|
+
generatedError: `Invalid response. Use one of the following tools: ${tools}. `
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
throw cause;
|
|
63
|
+
}
|
|
21
64
|
}
|
|
22
65
|
|
|
23
66
|
exports.GroqChatModel = GroqChatModel;
|