@anvia/core 1.10.0 → 1.11.0
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/README.md +1 -1
- package/dist/agent/agent.js +10 -9
- package/dist/agent/index.d.ts +5 -5
- package/dist/agent/index.js +13 -12
- package/dist/agent/resolve-options.js +4 -4
- package/dist/agent/resolved-agent.js +11 -10
- package/dist/agent/team/agent-team.js +13 -12
- package/dist/agent/team/index.js +13 -12
- package/dist/agent/tool-catalog.js +2 -2
- package/dist/{agent-BOoZ3jbr.d.ts → agent-BUEZxrEv.d.ts} +5 -3
- package/dist/{chunk-5I2NVRHC.js → chunk-5ZM5DB3O.js} +14 -2
- package/dist/chunk-5ZM5DB3O.js.map +1 -0
- package/dist/{chunk-GNBPXJC6.js → chunk-EF26KTFU.js} +2 -2
- package/dist/{chunk-2K7NSWUC.js → chunk-ET5SCES6.js} +8 -8
- package/dist/{chunk-7NWFT422.js → chunk-G4ZKCVBW.js} +3 -3
- package/dist/{chunk-V5NIO3J3.js → chunk-G7NJDOT5.js} +3 -3
- package/dist/{chunk-EWTZ3IAH.js → chunk-J6O567TG.js} +4 -4
- package/dist/{chunk-7AV3PEYW.js → chunk-LQFBCC74.js} +3 -3
- package/dist/chunk-M7LU47T5.js +143 -0
- package/dist/chunk-M7LU47T5.js.map +1 -0
- package/dist/{chunk-PILUQCGV.js → chunk-MNWULFRX.js} +2 -2
- package/dist/{chunk-MA3TYOKF.js → chunk-PLQAN4EO.js} +25 -1
- package/dist/chunk-PLQAN4EO.js.map +1 -0
- package/dist/{chunk-GI6APIEU.js → chunk-R4AJ2EE3.js} +4 -4
- package/dist/{chunk-M32FTMYD.js → chunk-SHSSCEGO.js} +2 -2
- package/dist/chunk-SHSSCEGO.js.map +1 -0
- package/dist/{chunk-AO2QL2VD.js → chunk-SISGNHNO.js} +48 -13
- package/dist/chunk-SISGNHNO.js.map +1 -0
- package/dist/{chunk-WLUWRBQ4.js → chunk-SVFEG2TI.js} +4 -1
- package/dist/chunk-SVFEG2TI.js.map +1 -0
- package/dist/{chunk-4IOC4SP6.js → chunk-X4XULHDO.js} +7 -7
- package/dist/embeddings/index.js +7 -7
- package/dist/evals/advanced-metrics.js +3 -3
- package/dist/evals/cli.js +4 -4
- package/dist/evals/index.d.ts +2 -2
- package/dist/evals/index.js +34 -34
- package/dist/evals/metrics.js +4 -4
- package/dist/evals/runner.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +13 -12
- package/dist/internal/agent-runtime/agent-run.js +8 -6
- package/dist/internal/agent-runtime/continuation-state.js +1 -1
- package/dist/internal/agent-runtime/execution.js +1 -1
- package/dist/internal/agent-runtime/loop-context.js +33 -0
- package/dist/internal/agent-runtime/loop-context.js.map +1 -0
- package/dist/internal/agent-runtime/memory.js +3 -1
- package/dist/internal/agent-runtime/retrieval.js +2 -2
- package/dist/internal/agent-runtime/tool-execution.js +2 -2
- package/dist/internal/agent.d.ts +46 -6
- package/dist/internal/agent.js +21 -11
- package/dist/internal/team-runtime/run.js +12 -11
- package/dist/memory/index.d.ts +2 -2
- package/dist/memory/index.js +1 -1
- package/dist/memory/options.js +1 -1
- package/dist/{middleware-BNxyEpUX.d.ts → middleware-D_WPyilQ.d.ts} +1 -1
- package/dist/observability/index.d.ts +2 -2
- package/dist/pipeline/index.d.ts +3 -3
- package/dist/redaction/index.js +19 -0
- package/dist/redaction/index.js.map +1 -1
- package/dist/skills/index.js +2 -2
- package/dist/skills/load.js +2 -2
- package/dist/skills/tools.js +2 -2
- package/dist/tool/dynamic-tools.js +2 -2
- package/dist/tool/index.d.ts +2 -2
- package/dist/tool/index.js +2 -2
- package/dist/{types-B8KBVXuH.d.ts → types-CaAiktBl.d.ts} +4 -1
- package/dist/vector-store/index.js +2 -2
- package/dist/vector-store/ingest.js +2 -2
- package/dist/vector-store/retrieve.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5I2NVRHC.js.map +0 -1
- package/dist/chunk-AO2QL2VD.js.map +0 -1
- package/dist/chunk-M32FTMYD.js.map +0 -1
- package/dist/chunk-MA3TYOKF.js.map +0 -1
- package/dist/chunk-WLUWRBQ4.js.map +0 -1
- /package/dist/{chunk-GNBPXJC6.js.map → chunk-EF26KTFU.js.map} +0 -0
- /package/dist/{chunk-2K7NSWUC.js.map → chunk-ET5SCES6.js.map} +0 -0
- /package/dist/{chunk-7NWFT422.js.map → chunk-G4ZKCVBW.js.map} +0 -0
- /package/dist/{chunk-V5NIO3J3.js.map → chunk-G7NJDOT5.js.map} +0 -0
- /package/dist/{chunk-EWTZ3IAH.js.map → chunk-J6O567TG.js.map} +0 -0
- /package/dist/{chunk-7AV3PEYW.js.map → chunk-LQFBCC74.js.map} +0 -0
- /package/dist/{chunk-PILUQCGV.js.map → chunk-MNWULFRX.js.map} +0 -0
- /package/dist/{chunk-GI6APIEU.js.map → chunk-R4AJ2EE3.js.map} +0 -0
- /package/dist/{chunk-4IOC4SP6.js.map → chunk-X4XULHDO.js.map} +0 -0
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ response, a guardrail block, and an interaction that needs application input.
|
|
|
53
53
|
- Direct completions and schema-validated extraction without an agent loop.
|
|
54
54
|
- [Typed decisions](../../docs/packages/decision.md) for classification, tagging, scoring, and routing.
|
|
55
55
|
- Sequential or parallel pipelines and evaluations with built-in or custom metrics.
|
|
56
|
-
- Stateful conversations using memory adapters and explicit compaction policies.
|
|
56
|
+
- Stateful conversations using memory adapters and explicit compaction policies, including active tool loops.
|
|
57
57
|
- RAG with document chunking, embeddings, and vector-store contracts.
|
|
58
58
|
- Image generation, speech, transcription, MCP tools, and local Agent Skills.
|
|
59
59
|
|
package/dist/agent/agent.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Agent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-J6O567TG.js";
|
|
4
|
+
import "../chunk-SISGNHNO.js";
|
|
5
|
+
import "../chunk-SXE4J43E.js";
|
|
5
6
|
import "../chunk-DRSKZVC6.js";
|
|
6
7
|
import "../chunk-LAIATEUB.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-PLQAN4EO.js";
|
|
9
|
+
import "../chunk-M7LU47T5.js";
|
|
8
10
|
import "../chunk-PFJN5OIQ.js";
|
|
9
11
|
import "../chunk-7FBSGD6E.js";
|
|
10
12
|
import "../chunk-NPJ2T3L5.js";
|
|
11
13
|
import "../chunk-YWRXOPHC.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-5I2NVRHC.js";
|
|
14
|
+
import "../chunk-5ZM5DB3O.js";
|
|
14
15
|
import "../chunk-5IURMWFN.js";
|
|
15
16
|
import "../chunk-2NLINXRF.js";
|
|
16
17
|
import "../chunk-JMJFK3A4.js";
|
|
@@ -34,8 +35,8 @@ import "../chunk-NF6WBPFG.js";
|
|
|
34
35
|
import "../chunk-LBYJPMHC.js";
|
|
35
36
|
import "../chunk-KFAVEL5F.js";
|
|
36
37
|
import "../chunk-GLMYZ6OA.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-MNWULFRX.js";
|
|
39
|
+
import "../chunk-SVFEG2TI.js";
|
|
39
40
|
import "../chunk-ZPJFXRQZ.js";
|
|
40
41
|
import "../chunk-MEN4AFDZ.js";
|
|
41
42
|
import "../chunk-VZ5ZZBNX.js";
|
|
@@ -53,12 +54,12 @@ import "../chunk-PJNE75WC.js";
|
|
|
53
54
|
import "../chunk-PLDJCCVL.js";
|
|
54
55
|
import "../chunk-3J2CSVPR.js";
|
|
55
56
|
import "../chunk-ERN7P6Q4.js";
|
|
56
|
-
import "../chunk-YCTXTOOQ.js";
|
|
57
57
|
import "../chunk-DU4WA6LQ.js";
|
|
58
|
+
import "../chunk-7F53DOML.js";
|
|
59
|
+
import "../chunk-YCTXTOOQ.js";
|
|
58
60
|
import "../chunk-KO5NMTAM.js";
|
|
59
61
|
import "../chunk-TFIOU6UR.js";
|
|
60
62
|
import "../chunk-GPVXCY5I.js";
|
|
61
|
-
import "../chunk-7F53DOML.js";
|
|
62
63
|
import "../chunk-4FIVU53H.js";
|
|
63
64
|
import "../chunk-NVALGVQG.js";
|
|
64
65
|
import "../chunk-ZHC5CD6J.js";
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { M as ModelCallOptions } from '../model-call-options-CZkSw_xN.js';
|
|
2
2
|
export { R as RetryContext, a as RetryOptions, b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
3
|
-
import { A as Agent, d as AgentOptions } from '../agent-
|
|
4
|
-
export { a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, e as AgentToolInput, f as AgentToolOptions, C as CreateHybridVectorContextOptions, g as CreateVectorContextOptions, V as VectorContext, h as VectorContextBaseOptions, i as createVectorContext, j as isVectorContext } from '../agent-
|
|
3
|
+
import { A as Agent, d as AgentOptions } from '../agent-BUEZxrEv.js';
|
|
4
|
+
export { a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, e as AgentToolInput, f as AgentToolOptions, C as CreateHybridVectorContextOptions, g as CreateVectorContextOptions, V as VectorContext, h as VectorContextBaseOptions, i as createVectorContext, j as isVectorContext } from '../agent-BUEZxrEv.js';
|
|
5
5
|
import { d as CompletionModel, f as CompletionModelControlsOf, M as Message, U as Usage, c as CompletionFinishReason } from '../types-DYqZKDA8.js';
|
|
6
6
|
import { AgentInteractionRequest, AgentInteractionResponse } from './interactions/index.js';
|
|
7
|
-
import { p as AgentRunSettings, m as AgentPrompt, n as AgentResponse, A as AgentBlockedOutcome, v as AgentStreamEvent, r as AgentSteerInput, s as AgentSteerReceipt, g as AgentInteractionOutcome } from '../middleware-
|
|
8
|
-
export { a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, l as AgentOutcome, o as AgentRunOptions, q as AgentStartEvent, t as AgentStepFinishEvent, u as AgentStream, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent } from '../middleware-
|
|
7
|
+
import { p as AgentRunSettings, m as AgentPrompt, n as AgentResponse, A as AgentBlockedOutcome, v as AgentStreamEvent, r as AgentSteerInput, s as AgentSteerReceipt, g as AgentInteractionOutcome } from '../middleware-D_WPyilQ.js';
|
|
8
|
+
export { a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, l as AgentOutcome, o as AgentRunOptions, q as AgentStartEvent, t as AgentStepFinishEvent, u as AgentStream, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent } from '../middleware-D_WPyilQ.js';
|
|
9
9
|
import '../types-CqiX-4_C.js';
|
|
10
10
|
import '../types-94Q2mPRa.js';
|
|
11
11
|
import '../tool-W1cAPuRF.js';
|
|
12
|
-
import '../types-
|
|
12
|
+
import '../types-CaAiktBl.js';
|
|
13
13
|
import '../zod-schema-C7F4clpm.js';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import '../types-CIG2loIE.js';
|
package/dist/agent/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-53TPAXYR.js";
|
|
2
2
|
import {
|
|
3
3
|
AgentTeam
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LQFBCC74.js";
|
|
5
5
|
import "../chunk-X6WS3XWL.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-G4ZKCVBW.js";
|
|
7
7
|
import "../chunk-PIMD4DYG.js";
|
|
8
8
|
import "../chunk-FSBDE6RF.js";
|
|
9
9
|
import "../chunk-3TAQXJBC.js";
|
|
@@ -12,20 +12,21 @@ import {
|
|
|
12
12
|
AgentTeamInteractionError,
|
|
13
13
|
AgentTeamLimitError
|
|
14
14
|
} from "../chunk-ENZ2XX27.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-G7NJDOT5.js";
|
|
16
16
|
import {
|
|
17
17
|
Agent
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-J6O567TG.js";
|
|
19
|
+
import "../chunk-SISGNHNO.js";
|
|
20
|
+
import "../chunk-SXE4J43E.js";
|
|
20
21
|
import "../chunk-DRSKZVC6.js";
|
|
21
22
|
import "../chunk-LAIATEUB.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-PLQAN4EO.js";
|
|
24
|
+
import "../chunk-M7LU47T5.js";
|
|
23
25
|
import "../chunk-PFJN5OIQ.js";
|
|
24
26
|
import "../chunk-7FBSGD6E.js";
|
|
25
27
|
import "../chunk-NPJ2T3L5.js";
|
|
26
28
|
import "../chunk-YWRXOPHC.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-5I2NVRHC.js";
|
|
29
|
+
import "../chunk-5ZM5DB3O.js";
|
|
29
30
|
import "../chunk-5IURMWFN.js";
|
|
30
31
|
import "../chunk-2NLINXRF.js";
|
|
31
32
|
import "../chunk-JMJFK3A4.js";
|
|
@@ -49,8 +50,8 @@ import "../chunk-NF6WBPFG.js";
|
|
|
49
50
|
import "../chunk-LBYJPMHC.js";
|
|
50
51
|
import "../chunk-KFAVEL5F.js";
|
|
51
52
|
import "../chunk-GLMYZ6OA.js";
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-MNWULFRX.js";
|
|
54
|
+
import "../chunk-SVFEG2TI.js";
|
|
54
55
|
import "../chunk-ZPJFXRQZ.js";
|
|
55
56
|
import "../chunk-MEN4AFDZ.js";
|
|
56
57
|
import "../chunk-VZ5ZZBNX.js";
|
|
@@ -68,12 +69,12 @@ import "../chunk-PJNE75WC.js";
|
|
|
68
69
|
import "../chunk-PLDJCCVL.js";
|
|
69
70
|
import "../chunk-3J2CSVPR.js";
|
|
70
71
|
import "../chunk-ERN7P6Q4.js";
|
|
71
|
-
import "../chunk-YCTXTOOQ.js";
|
|
72
72
|
import "../chunk-DU4WA6LQ.js";
|
|
73
|
+
import "../chunk-7F53DOML.js";
|
|
74
|
+
import "../chunk-YCTXTOOQ.js";
|
|
73
75
|
import "../chunk-KO5NMTAM.js";
|
|
74
76
|
import "../chunk-TFIOU6UR.js";
|
|
75
77
|
import "../chunk-GPVXCY5I.js";
|
|
76
|
-
import "../chunk-7F53DOML.js";
|
|
77
78
|
import "../chunk-4FIVU53H.js";
|
|
78
79
|
import "../chunk-NVALGVQG.js";
|
|
79
80
|
import {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
markResolvedAgentOptions,
|
|
3
3
|
resolveAgentOptions
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-MNWULFRX.js";
|
|
5
|
+
import "../chunk-SVFEG2TI.js";
|
|
6
6
|
import "../chunk-ZPJFXRQZ.js";
|
|
7
7
|
import "../chunk-MEN4AFDZ.js";
|
|
8
8
|
import "../chunk-VZ5ZZBNX.js";
|
|
@@ -20,12 +20,12 @@ import "../chunk-PJNE75WC.js";
|
|
|
20
20
|
import "../chunk-PLDJCCVL.js";
|
|
21
21
|
import "../chunk-3J2CSVPR.js";
|
|
22
22
|
import "../chunk-ERN7P6Q4.js";
|
|
23
|
-
import "../chunk-YCTXTOOQ.js";
|
|
24
23
|
import "../chunk-DU4WA6LQ.js";
|
|
24
|
+
import "../chunk-7F53DOML.js";
|
|
25
|
+
import "../chunk-YCTXTOOQ.js";
|
|
25
26
|
import "../chunk-KO5NMTAM.js";
|
|
26
27
|
import "../chunk-TFIOU6UR.js";
|
|
27
28
|
import "../chunk-GPVXCY5I.js";
|
|
28
|
-
import "../chunk-7F53DOML.js";
|
|
29
29
|
import "../chunk-4FIVU53H.js";
|
|
30
30
|
import "../chunk-5V533R7F.js";
|
|
31
31
|
import "../chunk-MEFGXAKJ.js";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createResolvedAgent,
|
|
3
3
|
getResolvedAgentOptions
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-G7NJDOT5.js";
|
|
5
|
+
import "../chunk-J6O567TG.js";
|
|
6
|
+
import "../chunk-SISGNHNO.js";
|
|
7
|
+
import "../chunk-SXE4J43E.js";
|
|
7
8
|
import "../chunk-DRSKZVC6.js";
|
|
8
9
|
import "../chunk-LAIATEUB.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-PLQAN4EO.js";
|
|
11
|
+
import "../chunk-M7LU47T5.js";
|
|
10
12
|
import "../chunk-PFJN5OIQ.js";
|
|
11
13
|
import "../chunk-7FBSGD6E.js";
|
|
12
14
|
import "../chunk-NPJ2T3L5.js";
|
|
13
15
|
import "../chunk-YWRXOPHC.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-5I2NVRHC.js";
|
|
16
|
+
import "../chunk-5ZM5DB3O.js";
|
|
16
17
|
import "../chunk-5IURMWFN.js";
|
|
17
18
|
import "../chunk-2NLINXRF.js";
|
|
18
19
|
import "../chunk-JMJFK3A4.js";
|
|
@@ -36,8 +37,8 @@ import "../chunk-NF6WBPFG.js";
|
|
|
36
37
|
import "../chunk-LBYJPMHC.js";
|
|
37
38
|
import "../chunk-KFAVEL5F.js";
|
|
38
39
|
import "../chunk-GLMYZ6OA.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-MNWULFRX.js";
|
|
41
|
+
import "../chunk-SVFEG2TI.js";
|
|
41
42
|
import "../chunk-ZPJFXRQZ.js";
|
|
42
43
|
import "../chunk-MEN4AFDZ.js";
|
|
43
44
|
import "../chunk-VZ5ZZBNX.js";
|
|
@@ -55,12 +56,12 @@ import "../chunk-PJNE75WC.js";
|
|
|
55
56
|
import "../chunk-PLDJCCVL.js";
|
|
56
57
|
import "../chunk-3J2CSVPR.js";
|
|
57
58
|
import "../chunk-ERN7P6Q4.js";
|
|
58
|
-
import "../chunk-YCTXTOOQ.js";
|
|
59
59
|
import "../chunk-DU4WA6LQ.js";
|
|
60
|
+
import "../chunk-7F53DOML.js";
|
|
61
|
+
import "../chunk-YCTXTOOQ.js";
|
|
60
62
|
import "../chunk-KO5NMTAM.js";
|
|
61
63
|
import "../chunk-TFIOU6UR.js";
|
|
62
64
|
import "../chunk-GPVXCY5I.js";
|
|
63
|
-
import "../chunk-7F53DOML.js";
|
|
64
65
|
import "../chunk-4FIVU53H.js";
|
|
65
66
|
import "../chunk-NVALGVQG.js";
|
|
66
67
|
import "../chunk-ZHC5CD6J.js";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentTeam
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-LQFBCC74.js";
|
|
4
4
|
import "../../chunk-X6WS3XWL.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-G4ZKCVBW.js";
|
|
6
6
|
import "../../chunk-PIMD4DYG.js";
|
|
7
7
|
import "../../chunk-FSBDE6RF.js";
|
|
8
8
|
import "../../chunk-3TAQXJBC.js";
|
|
9
9
|
import "../../chunk-X35O3AQG.js";
|
|
10
10
|
import "../../chunk-ENZ2XX27.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-G7NJDOT5.js";
|
|
12
|
+
import "../../chunk-J6O567TG.js";
|
|
13
|
+
import "../../chunk-SISGNHNO.js";
|
|
14
|
+
import "../../chunk-SXE4J43E.js";
|
|
14
15
|
import "../../chunk-DRSKZVC6.js";
|
|
15
16
|
import "../../chunk-LAIATEUB.js";
|
|
16
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-PLQAN4EO.js";
|
|
18
|
+
import "../../chunk-M7LU47T5.js";
|
|
17
19
|
import "../../chunk-PFJN5OIQ.js";
|
|
18
20
|
import "../../chunk-7FBSGD6E.js";
|
|
19
21
|
import "../../chunk-NPJ2T3L5.js";
|
|
20
22
|
import "../../chunk-YWRXOPHC.js";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-5I2NVRHC.js";
|
|
23
|
+
import "../../chunk-5ZM5DB3O.js";
|
|
23
24
|
import "../../chunk-5IURMWFN.js";
|
|
24
25
|
import "../../chunk-2NLINXRF.js";
|
|
25
26
|
import "../../chunk-JMJFK3A4.js";
|
|
@@ -43,8 +44,8 @@ import "../../chunk-NF6WBPFG.js";
|
|
|
43
44
|
import "../../chunk-LBYJPMHC.js";
|
|
44
45
|
import "../../chunk-KFAVEL5F.js";
|
|
45
46
|
import "../../chunk-GLMYZ6OA.js";
|
|
46
|
-
import "../../chunk-
|
|
47
|
-
import "../../chunk-
|
|
47
|
+
import "../../chunk-MNWULFRX.js";
|
|
48
|
+
import "../../chunk-SVFEG2TI.js";
|
|
48
49
|
import "../../chunk-ZPJFXRQZ.js";
|
|
49
50
|
import "../../chunk-MEN4AFDZ.js";
|
|
50
51
|
import "../../chunk-VZ5ZZBNX.js";
|
|
@@ -62,12 +63,12 @@ import "../../chunk-PJNE75WC.js";
|
|
|
62
63
|
import "../../chunk-PLDJCCVL.js";
|
|
63
64
|
import "../../chunk-3J2CSVPR.js";
|
|
64
65
|
import "../../chunk-ERN7P6Q4.js";
|
|
65
|
-
import "../../chunk-YCTXTOOQ.js";
|
|
66
66
|
import "../../chunk-DU4WA6LQ.js";
|
|
67
|
+
import "../../chunk-7F53DOML.js";
|
|
68
|
+
import "../../chunk-YCTXTOOQ.js";
|
|
67
69
|
import "../../chunk-KO5NMTAM.js";
|
|
68
70
|
import "../../chunk-TFIOU6UR.js";
|
|
69
71
|
import "../../chunk-GPVXCY5I.js";
|
|
70
|
-
import "../../chunk-7F53DOML.js";
|
|
71
72
|
import "../../chunk-4FIVU53H.js";
|
|
72
73
|
import "../../chunk-NVALGVQG.js";
|
|
73
74
|
import "../../chunk-ZHC5CD6J.js";
|
package/dist/agent/team/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../chunk-53TPAXYR.js";
|
|
2
2
|
import {
|
|
3
3
|
AgentTeam
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-LQFBCC74.js";
|
|
5
5
|
import "../../chunk-X6WS3XWL.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-G4ZKCVBW.js";
|
|
7
7
|
import "../../chunk-PIMD4DYG.js";
|
|
8
8
|
import "../../chunk-FSBDE6RF.js";
|
|
9
9
|
import "../../chunk-3TAQXJBC.js";
|
|
@@ -12,18 +12,19 @@ import {
|
|
|
12
12
|
AgentTeamInteractionError,
|
|
13
13
|
AgentTeamLimitError
|
|
14
14
|
} from "../../chunk-ENZ2XX27.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-G7NJDOT5.js";
|
|
16
|
+
import "../../chunk-J6O567TG.js";
|
|
17
|
+
import "../../chunk-SISGNHNO.js";
|
|
18
|
+
import "../../chunk-SXE4J43E.js";
|
|
18
19
|
import "../../chunk-DRSKZVC6.js";
|
|
19
20
|
import "../../chunk-LAIATEUB.js";
|
|
20
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-PLQAN4EO.js";
|
|
22
|
+
import "../../chunk-M7LU47T5.js";
|
|
21
23
|
import "../../chunk-PFJN5OIQ.js";
|
|
22
24
|
import "../../chunk-7FBSGD6E.js";
|
|
23
25
|
import "../../chunk-NPJ2T3L5.js";
|
|
24
26
|
import "../../chunk-YWRXOPHC.js";
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-5I2NVRHC.js";
|
|
27
|
+
import "../../chunk-5ZM5DB3O.js";
|
|
27
28
|
import "../../chunk-5IURMWFN.js";
|
|
28
29
|
import "../../chunk-2NLINXRF.js";
|
|
29
30
|
import "../../chunk-JMJFK3A4.js";
|
|
@@ -47,8 +48,8 @@ import "../../chunk-NF6WBPFG.js";
|
|
|
47
48
|
import "../../chunk-LBYJPMHC.js";
|
|
48
49
|
import "../../chunk-KFAVEL5F.js";
|
|
49
50
|
import "../../chunk-GLMYZ6OA.js";
|
|
50
|
-
import "../../chunk-
|
|
51
|
-
import "../../chunk-
|
|
51
|
+
import "../../chunk-MNWULFRX.js";
|
|
52
|
+
import "../../chunk-SVFEG2TI.js";
|
|
52
53
|
import "../../chunk-ZPJFXRQZ.js";
|
|
53
54
|
import "../../chunk-MEN4AFDZ.js";
|
|
54
55
|
import "../../chunk-VZ5ZZBNX.js";
|
|
@@ -66,12 +67,12 @@ import "../../chunk-PJNE75WC.js";
|
|
|
66
67
|
import "../../chunk-PLDJCCVL.js";
|
|
67
68
|
import "../../chunk-3J2CSVPR.js";
|
|
68
69
|
import "../../chunk-ERN7P6Q4.js";
|
|
69
|
-
import "../../chunk-YCTXTOOQ.js";
|
|
70
70
|
import "../../chunk-DU4WA6LQ.js";
|
|
71
|
+
import "../../chunk-7F53DOML.js";
|
|
72
|
+
import "../../chunk-YCTXTOOQ.js";
|
|
71
73
|
import "../../chunk-KO5NMTAM.js";
|
|
72
74
|
import "../../chunk-TFIOU6UR.js";
|
|
73
75
|
import "../../chunk-GPVXCY5I.js";
|
|
74
|
-
import "../../chunk-7F53DOML.js";
|
|
75
76
|
import "../../chunk-4FIVU53H.js";
|
|
76
77
|
import "../../chunk-NVALGVQG.js";
|
|
77
78
|
import "../../chunk-ZHC5CD6J.js";
|
|
@@ -11,12 +11,12 @@ import "../chunk-PJNE75WC.js";
|
|
|
11
11
|
import "../chunk-PLDJCCVL.js";
|
|
12
12
|
import "../chunk-3J2CSVPR.js";
|
|
13
13
|
import "../chunk-ERN7P6Q4.js";
|
|
14
|
-
import "../chunk-YCTXTOOQ.js";
|
|
15
14
|
import "../chunk-DU4WA6LQ.js";
|
|
15
|
+
import "../chunk-7F53DOML.js";
|
|
16
|
+
import "../chunk-YCTXTOOQ.js";
|
|
16
17
|
import "../chunk-KO5NMTAM.js";
|
|
17
18
|
import "../chunk-TFIOU6UR.js";
|
|
18
19
|
import "../chunk-GPVXCY5I.js";
|
|
19
|
-
import "../chunk-7F53DOML.js";
|
|
20
20
|
import "../chunk-4FIVU53H.js";
|
|
21
21
|
import "../chunk-NVALGVQG.js";
|
|
22
22
|
import "../chunk-ZHC5CD6J.js";
|
|
@@ -2,8 +2,8 @@ import { b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
|
2
2
|
import { D as Document, d as CompletionModel, P as ProviderTool, J as JsonObject, C as CompletionControlValues, f as CompletionModelControlsOf, z as ToolChoice } from './types-DYqZKDA8.js';
|
|
3
3
|
import { d as GuardrailPolicyInput, c as GuardrailPolicy } from './types-CqiX-4_C.js';
|
|
4
4
|
import { a as McpServer } from './types-94Q2mPRa.js';
|
|
5
|
-
import { F as MemoryStore, A as MemorySavePolicy, G as MemoryTokenCounter, o as MemoryCompactor, d as MemoryCompactionConflictRetryOptions, z as MemoryOptions, k as MemoryCompactionResult } from './types-
|
|
6
|
-
import { h as AgentLifecycle, P as AgentObservabilityOptions, k as AgentMiddleware, o as AgentRunOptions, l as AgentOutcome, p as AgentRunSettings, u as AgentStream, j as AgentMemoryCompactionOptions } from './middleware-
|
|
5
|
+
import { F as MemoryStore, A as MemorySavePolicy, G as MemoryTokenCounter, o as MemoryCompactor, d as MemoryCompactionConflictRetryOptions, z as MemoryOptions, k as MemoryCompactionResult } from './types-CaAiktBl.js';
|
|
6
|
+
import { h as AgentLifecycle, P as AgentObservabilityOptions, k as AgentMiddleware, o as AgentRunOptions, l as AgentOutcome, p as AgentRunSettings, u as AgentStream, j as AgentMemoryCompactionOptions } from './middleware-D_WPyilQ.js';
|
|
7
7
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
8
8
|
import { A as AnyTool, T as Tool, c as ToolCallContext, N as NormalizedToolOutput } from './tool-W1cAPuRF.js';
|
|
9
9
|
import { AgentContinuation, AgentInteractionResponse } from './agent/interactions/index.js';
|
|
@@ -78,12 +78,14 @@ type AgentMemory = {
|
|
|
78
78
|
afterTokens: number;
|
|
79
79
|
};
|
|
80
80
|
retention: {
|
|
81
|
+
recentToolTurns?: number | undefined;
|
|
82
|
+
} & ({
|
|
81
83
|
recentTurns: number;
|
|
82
84
|
recentTokens?: undefined;
|
|
83
85
|
} | {
|
|
84
86
|
recentTokens: number;
|
|
85
87
|
recentTurns?: undefined;
|
|
86
|
-
};
|
|
88
|
+
});
|
|
87
89
|
tokenCounter: MemoryTokenCounter;
|
|
88
90
|
compactor: MemoryCompactor;
|
|
89
91
|
conflictRetries: false | MemoryCompactionConflictRetryOptions;
|
|
@@ -24,7 +24,8 @@ function parseContinuationState(value, interaction) {
|
|
|
24
24
|
"pending",
|
|
25
25
|
"remainingToolCalls",
|
|
26
26
|
"steering",
|
|
27
|
-
"memoryScope"
|
|
27
|
+
"memoryScope",
|
|
28
|
+
"loopContextCheckpoint"
|
|
28
29
|
]);
|
|
29
30
|
if (value.kind !== "anvia.agent-continuation") {
|
|
30
31
|
throw new TypeError("Agent continuation has an unsupported internal state.");
|
|
@@ -59,6 +60,17 @@ function parseContinuationState(value, interaction) {
|
|
|
59
60
|
if (value.memoryScope !== void 0) {
|
|
60
61
|
state.memoryScope = parseOptionalJsonObject(value.memoryScope, "memoryScope");
|
|
61
62
|
}
|
|
63
|
+
if (value.loopContextCheckpoint !== void 0) {
|
|
64
|
+
const checkpoint = value.loopContextCheckpoint;
|
|
65
|
+
if (!object(checkpoint) || typeof checkpoint.summary !== "string" || checkpoint.summary.trim().length === 0 || typeof checkpoint.coveredMessages !== "number" || !Number.isSafeInteger(checkpoint.coveredMessages) || checkpoint.coveredMessages < 1 || checkpoint.coveredMessages > history.length + messages.length || typeof checkpoint.compactedMessageCount !== "number" || !Number.isSafeInteger(checkpoint.compactedMessageCount) || checkpoint.compactedMessageCount < 1)
|
|
66
|
+
throw new TypeError("Invalid continuation context checkpoint.");
|
|
67
|
+
requireOnlyKeys(checkpoint, ["summary", "coveredMessages", "compactedMessageCount"]);
|
|
68
|
+
state.loopContextCheckpoint = {
|
|
69
|
+
summary: checkpoint.summary,
|
|
70
|
+
coveredMessages: checkpoint.coveredMessages,
|
|
71
|
+
compactedMessageCount: checkpoint.compactedMessageCount
|
|
72
|
+
};
|
|
73
|
+
}
|
|
62
74
|
return state;
|
|
63
75
|
}
|
|
64
76
|
function questionResult(answers) {
|
|
@@ -143,4 +155,4 @@ export {
|
|
|
143
155
|
parseContinuationState,
|
|
144
156
|
questionResult
|
|
145
157
|
};
|
|
146
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-5ZM5DB3O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/internal/agent-runtime/continuation-state.ts"],"sourcesContent":["import type { LoopContextCheckpoint } from \"./loop-context\";\nimport type { AgentInteractionRequest, AgentQuestionAnswer } from \"../../agent/interactions\";\nimport { parseAgentQuestionPrompts } from \"../../agent/interactions\";\nimport {\n isJsonValue,\n type JsonObject,\n type JsonValue,\n type Message,\n parseMessages,\n type ToolCallPart,\n type ToolResultPart,\n} from \"../../completion\";\nimport type { MemoryScope } from \"../../memory\";\nimport type { PendingToolExecution } from \"./interaction-suspension\";\n\nexport type QueuedSteering = {\n id: string;\n messages: Message[];\n};\n\nexport type AgentContinuationState = {\n kind: \"anvia.agent-continuation\";\n history: Message[];\n messages: Message[];\n pending: PendingToolExecution;\n remainingToolCalls: ToolCallPart[];\n steering: QueuedSteering[];\n memoryScope?: MemoryScope;\n loopContextCheckpoint?: LoopContextCheckpoint;\n};\n\nexport function serializeContinuationState(state: AgentContinuationState): JsonObject {\n const value = structuredClone(state) as unknown;\n if (!isJsonValue(value) || Array.isArray(value) || value === null) {\n throw new TypeError(\"Agent continuation state must be strict JSON.\");\n }\n return value as JsonObject;\n}\n\nexport function parseContinuationState(\n value: JsonObject,\n interaction: AgentInteractionRequest,\n): AgentContinuationState {\n requireOnlyKeys(value, [\n \"kind\",\n \"history\",\n \"messages\",\n \"pending\",\n \"remainingToolCalls\",\n \"steering\",\n \"memoryScope\",\n \"loopContextCheckpoint\",\n ]);\n if (value.kind !== \"anvia.agent-continuation\") {\n throw new TypeError(\"Agent continuation has an unsupported internal state.\");\n }\n const history = parseMessages(value.history);\n const messages = parseMessages(value.messages);\n const pending = parsePending(value.pending);\n const remainingToolCalls = parseToolCalls(value.remainingToolCalls);\n const steering = parseSteering(value.steering);\n if (\n pending.toolCall.toolCallId !== interaction.toolCallId ||\n pending.toolCall.toolName !== interaction.toolName ||\n pending.toolCall.callId !== interaction.callId ||\n pending.internalCallId !== interaction.internalCallId\n ) {\n throw new TypeError(\"Agent continuation interaction does not match its pending tool call.\");\n }\n if (interaction.type === \"tool-approval\" && !jsonEqual(interaction.input, pending.input)) {\n throw new TypeError(\"Agent continuation approval input does not match its pending tool input.\");\n }\n if (interaction.type === \"tool-question\") {\n const questions =\n object(pending.input) && \"questions\" in pending.input\n ? parseAgentQuestionPrompts(pending.input.questions)\n : undefined;\n if (questions === undefined || !jsonEqual(interaction.questions, questions)) {\n throw new TypeError(\n \"Agent continuation questions do not match its pending question tool input.\",\n );\n }\n }\n const state: AgentContinuationState = {\n kind: \"anvia.agent-continuation\",\n history,\n messages,\n pending,\n remainingToolCalls,\n steering,\n };\n if (value.memoryScope !== undefined) {\n state.memoryScope = parseOptionalJsonObject(value.memoryScope, \"memoryScope\") as MemoryScope;\n }\n if (value.loopContextCheckpoint !== undefined) {\n const checkpoint = value.loopContextCheckpoint;\n if (\n !object(checkpoint) ||\n typeof checkpoint.summary !== \"string\" ||\n checkpoint.summary.trim().length === 0 ||\n typeof checkpoint.coveredMessages !== \"number\" ||\n !Number.isSafeInteger(checkpoint.coveredMessages) ||\n checkpoint.coveredMessages < 1 ||\n checkpoint.coveredMessages > history.length + messages.length ||\n typeof checkpoint.compactedMessageCount !== \"number\" ||\n !Number.isSafeInteger(checkpoint.compactedMessageCount) ||\n checkpoint.compactedMessageCount < 1\n )\n throw new TypeError(\"Invalid continuation context checkpoint.\");\n requireOnlyKeys(checkpoint, [\"summary\", \"coveredMessages\", \"compactedMessageCount\"]);\n state.loopContextCheckpoint = {\n summary: checkpoint.summary,\n coveredMessages: checkpoint.coveredMessages,\n compactedMessageCount: checkpoint.compactedMessageCount,\n };\n }\n return state;\n}\n\nexport function questionResult(\n answers: readonly AgentQuestionAnswer[],\n): Extract<ToolResultPart[\"output\"], { type: \"json\" }> {\n return { type: \"json\", value: { answers: structuredClone([...answers]) } };\n}\n\nfunction parsePending(value: unknown): PendingToolExecution {\n if (!object(value)) throw new TypeError(\"Agent continuation pending state is invalid.\");\n const [toolCall] = parseToolCalls([value.toolCall]);\n if (toolCall === undefined) throw new TypeError(\"Agent continuation pending tool is missing.\");\n if (typeof value.effectiveArgs !== \"string\" || typeof value.internalCallId !== \"string\") {\n throw new TypeError(\"Agent continuation pending execution metadata is invalid.\");\n }\n const pending: PendingToolExecution = {\n toolCall,\n effectiveArgs: value.effectiveArgs,\n input: parseJsonValue(value.input, \"pending input\"),\n internalCallId: value.internalCallId,\n };\n if (typeof value.rejectMessage === \"string\") {\n pending.rejectMessage = value.rejectMessage;\n }\n return pending;\n}\n\nfunction parseJsonValue(value: unknown, name: string): JsonValue {\n if (!isJsonValue(value)) {\n throw new TypeError(`Agent continuation ${name} is invalid.`);\n }\n return structuredClone(value);\n}\n\nfunction parseToolCalls(value: unknown): ToolCallPart[] {\n if (!Array.isArray(value)) throw new TypeError(\"Agent continuation tool calls must be an array.\");\n const message = parseMessages([{ role: \"assistant\", content: value }])[0];\n if (message?.role !== \"assistant\" || typeof message.content === \"string\") {\n throw new TypeError(\"Agent continuation tool calls are invalid.\");\n }\n if (!message.content.every((part) => part.type === \"tool-call\")) {\n throw new TypeError(\"Agent continuation contains a non-tool-call part.\");\n }\n return message.content as ToolCallPart[];\n}\n\nfunction parseSteering(value: unknown): QueuedSteering[] {\n if (!Array.isArray(value)) throw new TypeError(\"Agent continuation steering state is invalid.\");\n return value.map((item) => {\n if (!object(item) || typeof item.id !== \"string\") {\n throw new TypeError(\"Agent continuation steering entry is invalid.\");\n }\n return { id: item.id, messages: parseMessages(item.messages) };\n });\n}\n\nfunction parseOptionalJsonObject(value: unknown, name: string): JsonObject | undefined {\n if (value === undefined) return undefined;\n if (!object(value) || !isJsonValue(value)) {\n throw new TypeError(`Agent continuation ${name} is invalid.`);\n }\n return structuredClone(value);\n}\n\nfunction object(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction requireOnlyKeys(value: JsonObject, allowed: readonly string[]): void {\n const allowedKeys = new Set(allowed);\n const unknown = Object.keys(value).find((key) => !allowedKeys.has(key));\n if (unknown !== undefined) {\n throw new TypeError(`Agent continuation state contains unknown key \"${unknown}\".`);\n }\n}\n\nfunction jsonEqual(left: unknown, right: unknown): boolean {\n if (Object.is(left, right)) return true;\n if (Array.isArray(left)) {\n return (\n Array.isArray(right) &&\n left.length === right.length &&\n left.every((value, index) => jsonEqual(value, right[index]))\n );\n }\n if (object(left)) {\n if (!object(right)) return false;\n const keys = Object.keys(left);\n return (\n keys.length === Object.keys(right).length &&\n keys.every((key) => key in right && jsonEqual(left[key], right[key]))\n );\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;AA+BO,SAAS,2BAA2B,OAA2C;AACpF,QAAM,QAAQ,gBAAgB,KAAK;AACnC,MAAI,CAAC,YAAY,KAAK,KAAK,MAAM,QAAQ,KAAK,KAAK,UAAU,MAAM;AACjE,UAAM,IAAI,UAAU,+CAA+C;AAAA,EACrE;AACA,SAAO;AACT;AAEO,SAAS,uBACd,OACA,aACwB;A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AU,OAAO,KAAK,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY,IAAI,GAAG,CAAC;AACtE,MAAI,YAAY,QAAW;AACzB,UAAM,IAAI,UAAU,kDAAkD,OAAO,IAAI;AAAA,EACnF;AACF;AAEA,SAAS,UAAU,MAAe,OAAyB;AACzD,MAAI,OAAO,GAAG,MAAM,KAAK,EAAG,QAAO;AACnC,MAAI,MAAM,QAAQ,IAAI,GAAG;AACvB,WACE,MAAM,QAAQ,KAAK,KACnB,KAAK,WAAW,MAAM,UACtB,KAAK,MAAM,CAAC,OAAO,UAAU,UAAU,OAAO,MAAM,KAAK,CAAC,CAAC;AAAA,EAE/D;AACA,MAAI,OAAO,IAAI,GAAG;AAChB,QAAI,CAAC,OAAO,KAAK,EAAG,QAAO;AAC3B,UAAM,OAAO,OAAO,KAAK,IAAI;AAC7B,WACE,KAAK,WAAW,OAAO,KAAK,KAAK,EAAE,UACnC,KAAK,MAAM,CAAC,QAAQ,OAAO,SAAS,UAAU,KAAK,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC;AAAA,EAExE;AACA,SAAO;AACT;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runEvalSuite
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X4XULHDO.js";
|
|
4
4
|
|
|
5
5
|
// src/evals/cli.ts
|
|
6
6
|
var EvalAssertionError = class extends Error {
|
|
@@ -352,4 +352,4 @@ export {
|
|
|
352
352
|
assertEvalOutcomes,
|
|
353
353
|
runEvalCli
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=chunk-
|
|
355
|
+
//# sourceMappingURL=chunk-EF26KTFU.js.map
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
resolveJudgePrompt
|
|
6
6
|
} from "./chunk-ZPXOBQDS.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
EvalOutcome
|
|
9
|
+
} from "./chunk-EJR6VVB3.js";
|
|
10
10
|
import {
|
|
11
11
|
evalValuesEqual,
|
|
12
12
|
formatValue
|
|
13
13
|
} from "./chunk-ZYXMWEL4.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
embedText
|
|
19
|
-
} from "./chunk-YCTXTOOQ.js";
|
|
15
|
+
extract
|
|
16
|
+
} from "./chunk-VCOGUS3Q.js";
|
|
20
17
|
import {
|
|
21
18
|
cosineSimilarity
|
|
22
19
|
} from "./chunk-7F53DOML.js";
|
|
20
|
+
import {
|
|
21
|
+
embedText
|
|
22
|
+
} from "./chunk-YCTXTOOQ.js";
|
|
23
23
|
import {
|
|
24
24
|
throwIfAborted
|
|
25
25
|
} from "./chunk-USRKPEQN.js";
|
|
@@ -328,4 +328,4 @@ export {
|
|
|
328
328
|
llmJudge,
|
|
329
329
|
llmScore
|
|
330
330
|
};
|
|
331
|
-
//# sourceMappingURL=chunk-
|
|
331
|
+
//# sourceMappingURL=chunk-ET5SCES6.js.map
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createResolvedAgent,
|
|
21
21
|
getResolvedAgentOptions
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-G7NJDOT5.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentRun
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SISGNHNO.js";
|
|
26
26
|
import {
|
|
27
27
|
withInternalAgentRunOptions
|
|
28
28
|
} from "./chunk-7FBSGD6E.js";
|
|
@@ -619,4 +619,4 @@ var TeamRun = class {
|
|
|
619
619
|
export {
|
|
620
620
|
TeamRun
|
|
621
621
|
};
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-G4ZKCVBW.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Agent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J6O567TG.js";
|
|
4
4
|
import {
|
|
5
5
|
getAgentToolState
|
|
6
6
|
} from "./chunk-A7BXVZXZ.js";
|
|
7
7
|
import {
|
|
8
8
|
markResolvedAgentOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MNWULFRX.js";
|
|
10
10
|
|
|
11
11
|
// src/agent/resolved-agent.ts
|
|
12
12
|
function createResolvedAgent(options) {
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
createResolvedAgent,
|
|
46
46
|
getResolvedAgentOptions
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-G7NJDOT5.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRun
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SISGNHNO.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeMemoryScope
|
|
6
6
|
} from "./chunk-LAIATEUB.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentRunMemory
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PLQAN4EO.js";
|
|
10
10
|
import {
|
|
11
11
|
assertNonnegativeSafeInteger
|
|
12
12
|
} from "./chunk-NPJ2T3L5.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-GLMYZ6OA.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveAgentOptions
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MNWULFRX.js";
|
|
26
26
|
import {
|
|
27
27
|
cloneFrozenPlainData,
|
|
28
28
|
snapshotAgentContext,
|
|
@@ -155,4 +155,4 @@ var Agent = class {
|
|
|
155
155
|
export {
|
|
156
156
|
Agent
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-J6O567TG.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-X6WS3XWL.js";
|
|
4
4
|
import {
|
|
5
5
|
TeamRun
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G4ZKCVBW.js";
|
|
7
7
|
import {
|
|
8
8
|
TeamStream
|
|
9
9
|
} from "./chunk-3TAQXJBC.js";
|
|
10
10
|
import {
|
|
11
11
|
Agent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J6O567TG.js";
|
|
13
13
|
import {
|
|
14
14
|
assertPositiveSafeInteger
|
|
15
15
|
} from "./chunk-NPJ2T3L5.js";
|
|
@@ -104,4 +104,4 @@ var AgentTeam = class {
|
|
|
104
104
|
export {
|
|
105
105
|
AgentTeam
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-LQFBCC74.js.map
|