beeai-framework 0.1.26 → 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/google-vertex/backend/chat.d.cts +1 -1
- package/dist/adapters/google-vertex/backend/chat.d.ts +1 -1
- 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/vercel/backend/chat.cjs +57 -18
- package/dist/adapters/vercel/backend/chat.cjs.map +1 -1
- 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/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 +1 -1
- package/dist/adapters/vercel/backend/embedding.d.ts +1 -1
- package/dist/adapters/vercel/backend/embedding.js.map +1 -1
- package/dist/adapters/watsonx/backend/chat.cjs +3 -4
- package/dist/adapters/watsonx/backend/chat.cjs.map +1 -1
- package/dist/adapters/watsonx/backend/chat.js +4 -5
- package/dist/adapters/watsonx/backend/chat.js.map +1 -1
- package/dist/agents/react/prompts.d.cts +1 -1
- package/dist/agents/react/prompts.d.ts +1 -1
- package/dist/agents/react/runners/deep-think/prompts.d.cts +1 -1
- package/dist/agents/react/runners/deep-think/prompts.d.ts +1 -1
- package/dist/agents/react/runners/deep-think/runner.d.cts +1 -1
- package/dist/agents/react/runners/deep-think/runner.d.ts +1 -1
- package/dist/agents/react/runners/default/runner.d.cts +1 -1
- package/dist/agents/react/runners/default/runner.d.ts +1 -1
- package/dist/agents/react/runners/granite/prompts.d.cts +1 -1
- package/dist/agents/react/runners/granite/prompts.d.ts +1 -1
- package/dist/agents/react/runners/granite/runner.d.cts +1 -1
- package/dist/agents/react/runners/granite/runner.d.ts +1 -1
- package/dist/agents/requirement/agent.d.cts +1 -1
- package/dist/agents/requirement/agent.d.ts +1 -1
- 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 +1 -1
- package/dist/agents/requirement/requirements/conditional.d.ts +1 -1
- package/dist/agents/requirement/requirements/requirement.d.cts +1 -1
- package/dist/agents/requirement/requirements/requirement.d.ts +1 -1
- package/dist/agents/requirement/runner.d.cts +1 -1
- package/dist/agents/requirement/runner.d.ts +1 -1
- package/dist/agents/requirement/types.d.cts +1 -1
- package/dist/agents/requirement/types.d.ts +1 -1
- package/dist/agents/requirement/utils/llm.d.cts +1 -1
- package/dist/agents/requirement/utils/llm.d.ts +1 -1
- package/dist/agents/requirement/utils/tool.d.cts +1 -1
- package/dist/agents/requirement/utils/tool.d.ts +1 -1
- package/dist/backend/chat.cjs +8 -1
- package/dist/backend/chat.cjs.map +1 -1
- package/dist/backend/chat.js +8 -1
- package/dist/backend/chat.js.map +1 -1
- package/dist/backend/core.d.cts +1 -1
- package/dist/backend/core.d.ts +1 -1
- package/dist/backend/errors.cjs.map +1 -1
- package/dist/backend/errors.d.cts +8 -11
- package/dist/backend/errors.d.ts +8 -11
- 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/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/workflows/agent.d.cts +37 -37
- package/dist/workflows/agent.d.ts +37 -37
- package/package.json +19 -19
- package/dist/{types-BQ-3LdkE.d.ts → types-C3Fnr6yY.d.ts} +8 -8
- package/dist/{types-CkEtV8R9.d.cts → types-DepshYVR.d.cts} +8 -8
|
@@ -46,12 +46,12 @@ declare const DeepThinkReActAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
46
46
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
47
47
|
createdAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
48
48
|
}, "strip", zod.ZodTypeAny, {
|
|
49
|
+
instructions: string;
|
|
49
50
|
tools: zod.objectOutputType<{
|
|
50
51
|
name: zod.ZodString;
|
|
51
52
|
description: zod.ZodString;
|
|
52
53
|
schema: zod.ZodString;
|
|
53
54
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
54
|
-
instructions: string;
|
|
55
55
|
createdAt?: string | null | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
tools: zod.objectInputType<{
|
|
@@ -46,12 +46,12 @@ declare const DeepThinkReActAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
46
46
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
47
47
|
createdAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
48
48
|
}, "strip", zod.ZodTypeAny, {
|
|
49
|
+
instructions: string;
|
|
49
50
|
tools: zod.objectOutputType<{
|
|
50
51
|
name: zod.ZodString;
|
|
51
52
|
description: zod.ZodString;
|
|
52
53
|
schema: zod.ZodString;
|
|
53
54
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
54
|
-
instructions: string;
|
|
55
55
|
createdAt?: string | null | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
tools: zod.objectInputType<{
|
|
@@ -52,12 +52,12 @@ declare class DeepThinkRunner extends DefaultRunner {
|
|
|
52
52
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
53
53
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
instructions: string;
|
|
55
56
|
tools: z.objectOutputType<{
|
|
56
57
|
name: z.ZodString;
|
|
57
58
|
description: z.ZodString;
|
|
58
59
|
schema: z.ZodString;
|
|
59
60
|
}, z.ZodTypeAny, "passthrough">[];
|
|
60
|
-
instructions: string;
|
|
61
61
|
createdAt?: string | null | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
tools: z.objectInputType<{
|
|
@@ -52,12 +52,12 @@ declare class DeepThinkRunner extends DefaultRunner {
|
|
|
52
52
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
53
53
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
instructions: string;
|
|
55
56
|
tools: z.objectOutputType<{
|
|
56
57
|
name: z.ZodString;
|
|
57
58
|
description: z.ZodString;
|
|
58
59
|
schema: z.ZodString;
|
|
59
60
|
}, z.ZodTypeAny, "passthrough">[];
|
|
60
|
-
instructions: string;
|
|
61
61
|
createdAt?: string | null | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
tools: z.objectInputType<{
|
|
@@ -52,12 +52,12 @@ declare class DefaultRunner extends BaseRunner {
|
|
|
52
52
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
53
53
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
instructions: string;
|
|
55
56
|
tools: z.objectOutputType<{
|
|
56
57
|
name: z.ZodString;
|
|
57
58
|
description: z.ZodString;
|
|
58
59
|
schema: z.ZodString;
|
|
59
60
|
}, z.ZodTypeAny, "passthrough">[];
|
|
60
|
-
instructions: string;
|
|
61
61
|
createdAt?: string | null | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
tools: z.objectInputType<{
|
|
@@ -52,12 +52,12 @@ declare class DefaultRunner extends BaseRunner {
|
|
|
52
52
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
53
53
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
instructions: string;
|
|
55
56
|
tools: z.objectOutputType<{
|
|
56
57
|
name: z.ZodString;
|
|
57
58
|
description: z.ZodString;
|
|
58
59
|
schema: z.ZodString;
|
|
59
60
|
}, z.ZodTypeAny, "passthrough">[];
|
|
60
|
-
instructions: string;
|
|
61
61
|
createdAt?: string | null | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
tools: z.objectInputType<{
|
|
@@ -46,12 +46,12 @@ declare const GraniteReActAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
46
46
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
47
47
|
createdAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
48
48
|
}, "strip", zod.ZodTypeAny, {
|
|
49
|
+
instructions: string;
|
|
49
50
|
tools: zod.objectOutputType<{
|
|
50
51
|
name: zod.ZodString;
|
|
51
52
|
description: zod.ZodString;
|
|
52
53
|
schema: zod.ZodString;
|
|
53
54
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
54
|
-
instructions: string;
|
|
55
55
|
createdAt?: string | null | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
tools: zod.objectInputType<{
|
|
@@ -46,12 +46,12 @@ declare const GraniteReActAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
46
46
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
47
47
|
createdAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
48
48
|
}, "strip", zod.ZodTypeAny, {
|
|
49
|
+
instructions: string;
|
|
49
50
|
tools: zod.objectOutputType<{
|
|
50
51
|
name: zod.ZodString;
|
|
51
52
|
description: zod.ZodString;
|
|
52
53
|
schema: zod.ZodString;
|
|
53
54
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
54
|
-
instructions: string;
|
|
55
55
|
createdAt?: string | null | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
tools: zod.objectInputType<{
|
|
@@ -53,12 +53,12 @@ declare class GraniteRunner extends DefaultRunner {
|
|
|
53
53
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
54
54
|
createdAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
55
55
|
}, "strip", zod.ZodTypeAny, {
|
|
56
|
+
instructions: string;
|
|
56
57
|
tools: zod.objectOutputType<{
|
|
57
58
|
name: zod.ZodString;
|
|
58
59
|
description: zod.ZodString;
|
|
59
60
|
schema: zod.ZodString;
|
|
60
61
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
61
|
-
instructions: string;
|
|
62
62
|
createdAt?: string | null | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
tools: zod.objectInputType<{
|
|
@@ -53,12 +53,12 @@ declare class GraniteRunner extends DefaultRunner {
|
|
|
53
53
|
}, zod.ZodTypeAny, "passthrough">>, "many">;
|
|
54
54
|
createdAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
55
55
|
}, "strip", zod.ZodTypeAny, {
|
|
56
|
+
instructions: string;
|
|
56
57
|
tools: zod.objectOutputType<{
|
|
57
58
|
name: zod.ZodString;
|
|
58
59
|
description: zod.ZodString;
|
|
59
60
|
schema: zod.ZodString;
|
|
60
61
|
}, zod.ZodTypeAny, "passthrough">[];
|
|
61
|
-
instructions: string;
|
|
62
62
|
createdAt?: string | null | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
tools: zod.objectInputType<{
|
|
@@ -6,7 +6,7 @@ import '../../memory/base.cjs';
|
|
|
6
6
|
import '../../emitter-jN55XZZq.cjs';
|
|
7
7
|
import '../../chat-BFl85cqt.cjs';
|
|
8
8
|
import '../../backend/message.cjs';
|
|
9
|
-
import '../../types-
|
|
9
|
+
import '../../types-DepshYVR.cjs';
|
|
10
10
|
import './requirements/requirement.cjs';
|
|
11
11
|
export { b as RequirementAgent, a as RequirementAgentInput, R as RequirementAgentTemplateFactory } from './runner.cjs';
|
|
12
12
|
import './utils/toolCallChecker.cjs';
|
|
@@ -6,7 +6,7 @@ import '../../memory/base.js';
|
|
|
6
6
|
import '../../emitter-36-9MnvA.js';
|
|
7
7
|
import '../../chat-BRuyDeKR.js';
|
|
8
8
|
import '../../backend/message.js';
|
|
9
|
-
import '../../types-
|
|
9
|
+
import '../../types-C3Fnr6yY.js';
|
|
10
10
|
import './requirements/requirement.js';
|
|
11
11
|
export { b as RequirementAgent, a as RequirementAgentInput, R as RequirementAgentTemplateFactory } from './runner.js';
|
|
12
12
|
import './utils/toolCallChecker.js';
|
|
@@ -33,7 +33,6 @@ declare const RequirementAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
33
33
|
reason?: string | undefined;
|
|
34
34
|
}>, "many">;
|
|
35
35
|
}, "strip", zod.ZodTypeAny, {
|
|
36
|
-
finalAnswerName: string;
|
|
37
36
|
tools: {
|
|
38
37
|
name: string;
|
|
39
38
|
description: string;
|
|
@@ -41,13 +40,13 @@ declare const RequirementAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
41
40
|
allowed: string;
|
|
42
41
|
reason?: string | undefined;
|
|
43
42
|
}[];
|
|
43
|
+
finalAnswerName: string;
|
|
44
44
|
role?: string | undefined;
|
|
45
45
|
instructions?: string | undefined;
|
|
46
46
|
notes?: string | undefined;
|
|
47
47
|
finalAnswerSchema?: string | undefined;
|
|
48
48
|
finalAnswerInstructions?: string | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
finalAnswerName: string;
|
|
51
50
|
tools: {
|
|
52
51
|
name: string;
|
|
53
52
|
description: string;
|
|
@@ -55,6 +54,7 @@ declare const RequirementAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
55
54
|
allowed: string;
|
|
56
55
|
reason?: string | undefined;
|
|
57
56
|
}[];
|
|
57
|
+
finalAnswerName: string;
|
|
58
58
|
role?: string | undefined;
|
|
59
59
|
instructions?: string | undefined;
|
|
60
60
|
notes?: string | undefined;
|
|
@@ -33,7 +33,6 @@ declare const RequirementAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
33
33
|
reason?: string | undefined;
|
|
34
34
|
}>, "many">;
|
|
35
35
|
}, "strip", zod.ZodTypeAny, {
|
|
36
|
-
finalAnswerName: string;
|
|
37
36
|
tools: {
|
|
38
37
|
name: string;
|
|
39
38
|
description: string;
|
|
@@ -41,13 +40,13 @@ declare const RequirementAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
41
40
|
allowed: string;
|
|
42
41
|
reason?: string | undefined;
|
|
43
42
|
}[];
|
|
43
|
+
finalAnswerName: string;
|
|
44
44
|
role?: string | undefined;
|
|
45
45
|
instructions?: string | undefined;
|
|
46
46
|
notes?: string | undefined;
|
|
47
47
|
finalAnswerSchema?: string | undefined;
|
|
48
48
|
finalAnswerInstructions?: string | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
finalAnswerName: string;
|
|
51
50
|
tools: {
|
|
52
51
|
name: string;
|
|
53
52
|
description: string;
|
|
@@ -55,6 +54,7 @@ declare const RequirementAgentSystemPrompt: PromptTemplate<zod.ZodObject<{
|
|
|
55
54
|
allowed: string;
|
|
56
55
|
reason?: string | undefined;
|
|
57
56
|
}[];
|
|
57
|
+
finalAnswerName: string;
|
|
58
58
|
role?: string | undefined;
|
|
59
59
|
instructions?: string | undefined;
|
|
60
60
|
notes?: string | undefined;
|
|
@@ -2,7 +2,7 @@ import { Requirement, Rule } from './requirement.cjs';
|
|
|
2
2
|
import { MultiTargetType, TargetType } from './utils.cjs';
|
|
3
3
|
import { AnyTool } from '../../../tools/base.cjs';
|
|
4
4
|
import { RunContext } from '../../../context.cjs';
|
|
5
|
-
import { R as RequirementAgentRunState } from '../../../types-
|
|
5
|
+
import { R as RequirementAgentRunState } from '../../../types-DepshYVR.cjs';
|
|
6
6
|
import '../../../emitter-jN55XZZq.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
@@ -2,7 +2,7 @@ import { Requirement, Rule } from './requirement.js';
|
|
|
2
2
|
import { MultiTargetType, TargetType } from './utils.js';
|
|
3
3
|
import { AnyTool } from '../../../tools/base.js';
|
|
4
4
|
import { RunContext } from '../../../context.js';
|
|
5
|
-
import { R as RequirementAgentRunState } from '../../../types-
|
|
5
|
+
import { R as RequirementAgentRunState } from '../../../types-C3Fnr6yY.js';
|
|
6
6
|
import '../../../emitter-36-9MnvA.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
@@ -2,7 +2,7 @@ import { MiddlewareType, Run, RunContext } from '../../../context.cjs';
|
|
|
2
2
|
import { AnyTool } from '../../../tools/base.cjs';
|
|
3
3
|
import { E as Emitter, C as Callback } from '../../../emitter-jN55XZZq.cjs';
|
|
4
4
|
import { FrameworkError } from '../../../errors.cjs';
|
|
5
|
-
import { R as RequirementAgentRunState } from '../../../types-
|
|
5
|
+
import { R as RequirementAgentRunState } from '../../../types-DepshYVR.cjs';
|
|
6
6
|
import '../../../internals/serializable.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
@@ -2,7 +2,7 @@ import { MiddlewareType, Run, RunContext } from '../../../context.js';
|
|
|
2
2
|
import { AnyTool } from '../../../tools/base.js';
|
|
3
3
|
import { E as Emitter, C as Callback } from '../../../emitter-36-9MnvA.js';
|
|
4
4
|
import { FrameworkError } from '../../../errors.js';
|
|
5
|
-
import { R as RequirementAgentRunState } from '../../../types-
|
|
5
|
+
import { R as RequirementAgentRunState } from '../../../types-C3Fnr6yY.js';
|
|
6
6
|
import '../../../internals/serializable.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
@@ -7,7 +7,7 @@ import { BaseMemory } from '../../memory/base.cjs';
|
|
|
7
7
|
import { E as Emitter } from '../../emitter-jN55XZZq.cjs';
|
|
8
8
|
import { m as ChatModel, n as ChatModelOutput, d as ChatModelInput } from '../../chat-BFl85cqt.cjs';
|
|
9
9
|
import { AssistantMessage, ToolMessage, Message } from '../../backend/message.cjs';
|
|
10
|
-
import { c as RequirementAgentExecutionConfig, d as RequirementAgentTemplates, R as RequirementAgentRunState, a as RequirementAgentRequest, e as RequirementAgentRunInput, f as RequirementAgentOutput, g as RequirementAgentRunOptions, h as RequirementAgentCallbacks } from '../../types-
|
|
10
|
+
import { c as RequirementAgentExecutionConfig, d as RequirementAgentTemplates, R as RequirementAgentRunState, a as RequirementAgentRequest, e as RequirementAgentRunInput, f as RequirementAgentOutput, g as RequirementAgentRunOptions, h as RequirementAgentCallbacks } from '../../types-DepshYVR.cjs';
|
|
11
11
|
import { Requirement, Rule } from './requirements/requirement.cjs';
|
|
12
12
|
import { ToolCallPart } from 'ai';
|
|
13
13
|
import { RetryCounter } from '../../internals/helpers/counter.cjs';
|
|
@@ -7,7 +7,7 @@ import { BaseMemory } from '../../memory/base.js';
|
|
|
7
7
|
import { E as Emitter } from '../../emitter-36-9MnvA.js';
|
|
8
8
|
import { m as ChatModel, n as ChatModelOutput, d as ChatModelInput } from '../../chat-BRuyDeKR.js';
|
|
9
9
|
import { AssistantMessage, ToolMessage, Message } from '../../backend/message.js';
|
|
10
|
-
import { c as RequirementAgentExecutionConfig, d as RequirementAgentTemplates, R as RequirementAgentRunState, a as RequirementAgentRequest, e as RequirementAgentRunInput, f as RequirementAgentOutput, g as RequirementAgentRunOptions, h as RequirementAgentCallbacks } from '../../types-
|
|
10
|
+
import { c as RequirementAgentExecutionConfig, d as RequirementAgentTemplates, R as RequirementAgentRunState, a as RequirementAgentRequest, e as RequirementAgentRunInput, f as RequirementAgentOutput, g as RequirementAgentRunOptions, h as RequirementAgentCallbacks } from '../../types-C3Fnr6yY.js';
|
|
11
11
|
import { Requirement, Rule } from './requirements/requirement.js';
|
|
12
12
|
import { ToolCallPart } from 'ai';
|
|
13
13
|
import { RetryCounter } from '../../internals/helpers/counter.js';
|
|
@@ -6,7 +6,7 @@ import '../../template.cjs';
|
|
|
6
6
|
import '../../chat-BFl85cqt.cjs';
|
|
7
7
|
import '../../base-XfWeXQ-S.cjs';
|
|
8
8
|
import 'zod';
|
|
9
|
-
export { h as RequirementAgentCallbacks, c as RequirementAgentExecutionConfig, f as RequirementAgentOutput, a as RequirementAgentRequest, e as RequirementAgentRunInput, g as RequirementAgentRunOptions, R as RequirementAgentRunState, l as RequirementAgentRunStateStep, b as RequirementAgentSystemPromptInputSchema, i as RequirementAgentTaskPromptInputSchema, d as RequirementAgentTemplates, j as RequirementAgentToolErrorPromptInputSchema, k as RequirementAgentToolNoResultPromptInputSchema } from '../../types-
|
|
9
|
+
export { h as RequirementAgentCallbacks, c as RequirementAgentExecutionConfig, f as RequirementAgentOutput, a as RequirementAgentRequest, e as RequirementAgentRunInput, g as RequirementAgentRunOptions, R as RequirementAgentRunState, l as RequirementAgentRunStateStep, b as RequirementAgentSystemPromptInputSchema, i as RequirementAgentTaskPromptInputSchema, d as RequirementAgentTemplates, j as RequirementAgentToolErrorPromptInputSchema, k as RequirementAgentToolNoResultPromptInputSchema } from '../../types-DepshYVR.cjs';
|
|
10
10
|
import '../../internals/serializable.cjs';
|
|
11
11
|
import '../../internals/types.cjs';
|
|
12
12
|
import '../../internals/helpers/guards.cjs';
|
|
@@ -6,7 +6,7 @@ import '../../template.js';
|
|
|
6
6
|
import '../../chat-BRuyDeKR.js';
|
|
7
7
|
import '../../base-CyFx7BRL.js';
|
|
8
8
|
import 'zod';
|
|
9
|
-
export { h as RequirementAgentCallbacks, c as RequirementAgentExecutionConfig, f as RequirementAgentOutput, a as RequirementAgentRequest, e as RequirementAgentRunInput, g as RequirementAgentRunOptions, R as RequirementAgentRunState, l as RequirementAgentRunStateStep, b as RequirementAgentSystemPromptInputSchema, i as RequirementAgentTaskPromptInputSchema, d as RequirementAgentTemplates, j as RequirementAgentToolErrorPromptInputSchema, k as RequirementAgentToolNoResultPromptInputSchema } from '../../types-
|
|
9
|
+
export { h as RequirementAgentCallbacks, c as RequirementAgentExecutionConfig, f as RequirementAgentOutput, a as RequirementAgentRequest, e as RequirementAgentRunInput, g as RequirementAgentRunOptions, R as RequirementAgentRunState, l as RequirementAgentRunStateStep, b as RequirementAgentSystemPromptInputSchema, i as RequirementAgentTaskPromptInputSchema, d as RequirementAgentTemplates, j as RequirementAgentToolErrorPromptInputSchema, k as RequirementAgentToolNoResultPromptInputSchema } from '../../types-C3Fnr6yY.js';
|
|
10
10
|
import '../../internals/serializable.js';
|
|
11
11
|
import '../../internals/types.js';
|
|
12
12
|
import '../../internals/helpers/guards.js';
|
|
@@ -2,7 +2,7 @@ import { AnyTool } from '../../../tools/base.cjs';
|
|
|
2
2
|
import { RunContext } from '../../../context.cjs';
|
|
3
3
|
import { SystemMessage } from '../../../backend/message.cjs';
|
|
4
4
|
import { PromptTemplate } from '../../../template.cjs';
|
|
5
|
-
import { F as FinalAnswerTool, R as RequirementAgentRunState, a as RequirementAgentRequest, b as RequirementAgentSystemPromptInputSchema } from '../../../types-
|
|
5
|
+
import { F as FinalAnswerTool, R as RequirementAgentRunState, a as RequirementAgentRequest, b as RequirementAgentSystemPromptInputSchema } from '../../../types-DepshYVR.cjs';
|
|
6
6
|
import { Requirement, Rule } from '../requirements/requirement.cjs';
|
|
7
7
|
import 'ajv';
|
|
8
8
|
import '../../../errors.cjs';
|
|
@@ -2,7 +2,7 @@ import { AnyTool } from '../../../tools/base.js';
|
|
|
2
2
|
import { RunContext } from '../../../context.js';
|
|
3
3
|
import { SystemMessage } from '../../../backend/message.js';
|
|
4
4
|
import { PromptTemplate } from '../../../template.js';
|
|
5
|
-
import { F as FinalAnswerTool, R as RequirementAgentRunState, a as RequirementAgentRequest, b as RequirementAgentSystemPromptInputSchema } from '../../../types-
|
|
5
|
+
import { F as FinalAnswerTool, R as RequirementAgentRunState, a as RequirementAgentRequest, b as RequirementAgentSystemPromptInputSchema } from '../../../types-C3Fnr6yY.js';
|
|
6
6
|
import { Requirement, Rule } from '../requirements/requirement.js';
|
|
7
7
|
import 'ajv';
|
|
8
8
|
import '../../../errors.js';
|
|
@@ -3,7 +3,7 @@ import 'ai';
|
|
|
3
3
|
import '../../../errors.cjs';
|
|
4
4
|
import '../../../emitter-jN55XZZq.cjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
export { F as FinalAnswerTool, T as ToolInvocationResult, r as runTool } from '../../../types-
|
|
6
|
+
export { F as FinalAnswerTool, T as ToolInvocationResult, r as runTool } from '../../../types-DepshYVR.cjs';
|
|
7
7
|
import '../../../context.cjs';
|
|
8
8
|
import 'ajv';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
@@ -3,7 +3,7 @@ import 'ai';
|
|
|
3
3
|
import '../../../errors.js';
|
|
4
4
|
import '../../../emitter-36-9MnvA.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
export { F as FinalAnswerTool, T as ToolInvocationResult, r as runTool } from '../../../types-
|
|
6
|
+
export { F as FinalAnswerTool, T as ToolInvocationResult, r as runTool } from '../../../types-C3Fnr6yY.js';
|
|
7
7
|
import '../../../context.js';
|
|
8
8
|
import 'ajv';
|
|
9
9
|
import '../../../internals/serializable.js';
|
package/dist/backend/chat.cjs
CHANGED
|
@@ -150,6 +150,11 @@ Use on of the available tools: ${availableTools}`,
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
cacheEntry.resolve(chunks);
|
|
153
|
+
if (!result2.finishReason) {
|
|
154
|
+
if (result2.getToolCalls().length > 0) {
|
|
155
|
+
result2.finishReason = "tool-calls";
|
|
156
|
+
}
|
|
157
|
+
}
|
|
153
158
|
return result2;
|
|
154
159
|
}, "executor"),
|
|
155
160
|
config: {
|
|
@@ -396,7 +401,9 @@ class ChatModelOutput extends serializable_cjs.Serializable {
|
|
|
396
401
|
], {
|
|
397
402
|
totalTokens: number_cjs.takeBigger,
|
|
398
403
|
promptTokens: number_cjs.takeBigger,
|
|
399
|
-
completionTokens: number_cjs.takeBigger
|
|
404
|
+
completionTokens: number_cjs.takeBigger,
|
|
405
|
+
cachedPromptTokens: number_cjs.takeBigger,
|
|
406
|
+
reasoningTokens: number_cjs.takeBigger
|
|
400
407
|
});
|
|
401
408
|
} else if (other.usage) {
|
|
402
409
|
this.usage = utils_cjs.shallowCopy(other.usage);
|