@anvia/core 0.16.0 → 0.17.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/dist/agent/index.d.ts +11 -11
- package/dist/agent/index.js +8 -8
- package/dist/{agent-BTiQ4RZn.d.ts → agent-Cg0UigNK.d.ts} +7 -7
- package/dist/audio-generation/index.d.ts +1 -1
- package/dist/{chunk-3PRP2DV4.js → chunk-54S4I3SX.js} +6 -6
- package/dist/{chunk-DC2GJDPR.js → chunk-77D7XBWL.js} +2 -2
- package/dist/{chunk-3QG4SFH4.js → chunk-BQCTJSNL.js} +5 -5
- package/dist/{chunk-I7TM7TKX.js → chunk-F3C5653H.js} +4 -4
- package/dist/{chunk-K72JKDZ7.js → chunk-GCED5ZNM.js} +2 -2
- package/dist/{chunk-PJCJ45RJ.js → chunk-OPAEENGD.js} +38 -13
- package/dist/chunk-OPAEENGD.js.map +1 -0
- package/dist/{chunk-R6QERZAB.js → chunk-PJDL5UT2.js} +52 -4
- package/dist/chunk-PJDL5UT2.js.map +1 -0
- package/dist/{chunk-A7AYX6BD.js → chunk-RWAOHGRL.js} +4 -4
- package/dist/{chunk-IT426VXL.js → chunk-SWUH4G2I.js} +2 -2
- package/dist/{chunk-4PMAWIGM.js → chunk-SWUIBS4N.js} +6 -6
- package/dist/completion/index.d.ts +3 -3
- package/dist/completion/index.js +2 -2
- package/dist/evals/index.d.ts +8 -8
- package/dist/evals/index.js +9 -9
- package/dist/extractor/index.d.ts +8 -8
- package/dist/extractor/index.js +9 -9
- package/dist/guardrails/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +3 -3
- package/dist/image-generation/index.d.ts +1 -1
- package/dist/{index-Du1vCw6J.d.ts → index-XTUEMWhU.d.ts} +16 -8
- package/dist/index.d.ts +12 -12
- package/dist/index.js +11 -11
- package/dist/internal/agent.d.ts +8 -8
- package/dist/internal/agent.js +7 -7
- package/dist/{json-D_Ijo4lJ.d.ts → json-D9IvOgx_.d.ts} +1 -1
- package/dist/loaders/index.d.ts +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/memory/index.d.ts +3 -3
- package/dist/{middleware-CsxdqqjJ.d.ts → middleware-Cp0tm6zE.d.ts} +3 -3
- package/dist/observability/index.d.ts +3 -3
- package/dist/observability/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +8 -8
- package/dist/request/index.d.ts +8 -8
- package/dist/request/index.js +6 -6
- package/dist/skills/index.d.ts +4 -4
- package/dist/skills/index.js +5 -5
- package/dist/{think-tool-BTFFKn1m.d.ts → think-tool-CpCKo8Q8.d.ts} +1 -1
- package/dist/tool/index.d.ts +5 -5
- package/dist/tool/index.js +5 -5
- package/dist/{tool-sKozRXMI.d.ts → tool-Dhwg__1L.d.ts} +1 -1
- package/dist/transcription/index.d.ts +1 -1
- package/dist/{types-yf-Exga_.d.ts → types-BBEf34DP.d.ts} +2 -2
- package/dist/{types-CHFrSm-3.d.ts → types-BCA8p0sb.d.ts} +1 -1
- package/dist/{types-DMQ8JEf8.d.ts → types-CBmhLT_r.d.ts} +1 -1
- package/dist/{types-BkTDw00d.d.ts → types-DMGvEFRf.d.ts} +1 -1
- package/dist/{types-nybevqL9.d.ts → types-XjIh933x.d.ts} +9 -1
- package/dist/{types-BT1n5oU4.d.ts → types-fBv8mhvP.d.ts} +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/vector-store/index.d.ts +4 -4
- package/dist/vector-store/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-PJCJ45RJ.js.map +0 -1
- package/dist/chunk-R6QERZAB.js.map +0 -1
- /package/dist/{chunk-3PRP2DV4.js.map → chunk-54S4I3SX.js.map} +0 -0
- /package/dist/{chunk-DC2GJDPR.js.map → chunk-77D7XBWL.js.map} +0 -0
- /package/dist/{chunk-3QG4SFH4.js.map → chunk-BQCTJSNL.js.map} +0 -0
- /package/dist/{chunk-I7TM7TKX.js.map → chunk-F3C5653H.js.map} +0 -0
- /package/dist/{chunk-K72JKDZ7.js.map → chunk-GCED5ZNM.js.map} +0 -0
- /package/dist/{chunk-A7AYX6BD.js.map → chunk-RWAOHGRL.js.map} +0 -0
- /package/dist/{chunk-IT426VXL.js.map → chunk-SWUH4G2I.js.map} +0 -0
- /package/dist/{chunk-4PMAWIGM.js.map → chunk-SWUIBS4N.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isJsonValue,
|
|
7
7
|
reasoningDisplayText,
|
|
8
8
|
serializeToolResultOutput
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PJDL5UT2.js";
|
|
10
10
|
|
|
11
11
|
// src/ui/messages.ts
|
|
12
12
|
function uiMessagesToCoreMessages(messages) {
|
|
@@ -463,4 +463,4 @@ export {
|
|
|
463
463
|
uiMessagesToCoreMessages,
|
|
464
464
|
coreMessagesToUIMessages
|
|
465
465
|
};
|
|
466
|
-
//# sourceMappingURL=chunk-
|
|
466
|
+
//# sourceMappingURL=chunk-SWUH4G2I.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryVectorStore,
|
|
3
3
|
createTool
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
isToolResultContentArray,
|
|
7
|
-
serializeToolResultOutput
|
|
8
|
-
} from "./chunk-R6QERZAB.js";
|
|
4
|
+
} from "./chunk-F3C5653H.js";
|
|
9
5
|
import {
|
|
10
6
|
embedDocuments
|
|
11
7
|
} from "./chunk-YBBD4HZ3.js";
|
|
8
|
+
import {
|
|
9
|
+
isToolResultContentArray,
|
|
10
|
+
serializeToolResultOutput
|
|
11
|
+
} from "./chunk-PJDL5UT2.js";
|
|
12
12
|
|
|
13
13
|
// src/tool/errors.ts
|
|
14
14
|
var ToolCallError = class extends Error {
|
|
@@ -224,4 +224,4 @@ export {
|
|
|
224
224
|
createToolMiddleware,
|
|
225
225
|
createThinkTool
|
|
226
226
|
};
|
|
227
|
-
//# sourceMappingURL=chunk-
|
|
227
|
+
//# sourceMappingURL=chunk-SWUIBS4N.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue, k as isStreamingCompletionModel } from '../json-
|
|
2
|
-
import { D as Document, M as Message, C as CompletionModel, g as CompletionTool, z as ToolChoice, i as JsonValue, J as JsonObject, d as CompletionRequest, e as CompletionResponse } from '../types-
|
|
3
|
-
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, B as CompletionCapabilityError, E as CompletionModelCapabilities, f as CompletionSource, F as CompletionStreamEvent, G as DocumentContent, I as ImageContent, H as ImageDetail, h as JsonPrimitive, j as MessageOptions, P as ProviderTool, k as ProviderToolCall, R as Reasoning, K as ReasoningContent, L as ReasoningContentType, N as StreamingCompletionModel, S as SystemMessage, T as Text, l as ToolCall, O as ToolCallArgumentsMode, m as ToolContent, n as ToolDefinition, Q as ToolFunction, o as ToolMessage, p as ToolResult, q as ToolResultContent, r as ToolResultMessageOptions, s as ToolResultOptions, U as Usage, t as UserContent, u as UserMessage,
|
|
1
|
+
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue, k as isStreamingCompletionModel } from '../json-D9IvOgx_.js';
|
|
2
|
+
import { D as Document, M as Message, C as CompletionModel, g as CompletionTool, z as ToolChoice, i as JsonValue, J as JsonObject, d as CompletionRequest, e as CompletionResponse } from '../types-XjIh933x.js';
|
|
3
|
+
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, B as CompletionCapabilityError, E as CompletionModelCapabilities, f as CompletionSource, F as CompletionStreamEvent, G as DocumentContent, I as ImageContent, H as ImageDetail, h as JsonPrimitive, j as MessageOptions, P as ProviderTool, k as ProviderToolCall, R as Reasoning, K as ReasoningContent, L as ReasoningContentType, N as StreamingCompletionModel, S as SystemMessage, T as Text, l as ToolCall, O as ToolCallArgumentsMode, m as ToolContent, n as ToolDefinition, Q as ToolFunction, o as ToolMessage, p as ToolResult, q as ToolResultContent, r as ToolResultMessageOptions, s as ToolResultOptions, U as Usage, V as UsageDetails, t as UserContent, u as UserMessage, W as assertCompletionRequestSupported, v as getAssistantGenerationMetadata, w as isProviderTool, x as isToolResultContentArray, X as reasoningDisplayText, y as serializeToolResultOutput, Y as textFromAssistantContent } from '../types-XjIh933x.js';
|
|
4
4
|
import '../zod-schema-C7F4clpm.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
package/dist/completion/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
formatDocument,
|
|
7
7
|
isStreamingCompletionModel,
|
|
8
8
|
normalizeDocuments
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-GCED5ZNM.js";
|
|
10
10
|
import {
|
|
11
11
|
AssistantContent,
|
|
12
12
|
CompletionCapabilityError,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
reasoningDisplayText,
|
|
23
23
|
serializeToolResultOutput,
|
|
24
24
|
textFromAssistantContent
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-PJDL5UT2.js";
|
|
26
26
|
import "../chunk-WQKHFADH.js";
|
|
27
27
|
export {
|
|
28
28
|
AssistantContent,
|
package/dist/evals/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
2
|
-
import { i as JsonValue, M as Message, C as CompletionModel } from '../types-
|
|
3
|
-
import { P as PromptResponse } from '../index-
|
|
1
|
+
import { A as Agent } from '../agent-Cg0UigNK.js';
|
|
2
|
+
import { i as JsonValue, M as Message, C as CompletionModel } from '../types-XjIh933x.js';
|
|
3
|
+
import { P as PromptResponse } from '../index-XTUEMWhU.js';
|
|
4
4
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
5
5
|
import { E as EmbeddingModel } from '../types-DHHZztGO.js';
|
|
6
6
|
import '../guardrails/index.js';
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../types-
|
|
9
|
-
import '../tool-
|
|
10
|
-
import '../middleware-
|
|
11
|
-
import '../types-
|
|
7
|
+
import '../types-BCA8p0sb.js';
|
|
8
|
+
import '../types-CBmhLT_r.js';
|
|
9
|
+
import '../tool-Dhwg__1L.js';
|
|
10
|
+
import '../middleware-Cp0tm6zE.js';
|
|
11
|
+
import '../types-DMGvEFRf.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type EvalOutcome<Score = unknown> = {
|
package/dist/evals/index.js
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractorBuilder
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-54S4I3SX.js";
|
|
4
|
+
import "../chunk-RWAOHGRL.js";
|
|
5
|
+
import "../chunk-BQCTJSNL.js";
|
|
6
|
+
import "../chunk-OPAEENGD.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SWUIBS4N.js";
|
|
10
|
+
import "../chunk-F3C5653H.js";
|
|
11
11
|
import "../chunk-2ODTMRHP.js";
|
|
12
12
|
import "../chunk-M6RPFHG7.js";
|
|
13
|
-
import "../chunk-K72JKDZ7.js";
|
|
14
|
-
import "../chunk-R6QERZAB.js";
|
|
15
|
-
import "../chunk-WQKHFADH.js";
|
|
16
13
|
import {
|
|
17
14
|
cosineSimilarity,
|
|
18
15
|
embedText
|
|
@@ -20,6 +17,9 @@ import {
|
|
|
20
17
|
import {
|
|
21
18
|
mapWithConcurrency
|
|
22
19
|
} from "../chunk-OIMLU4SF.js";
|
|
20
|
+
import "../chunk-GCED5ZNM.js";
|
|
21
|
+
import "../chunk-PJDL5UT2.js";
|
|
22
|
+
import "../chunk-WQKHFADH.js";
|
|
23
23
|
import "../chunk-CWUJUSOS.js";
|
|
24
24
|
|
|
25
25
|
// src/evals/agent-target.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
1
|
+
import { A as Agent } from '../agent-Cg0UigNK.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
|
-
import { U as Usage, M as Message, C as CompletionModel, i as JsonValue, z as ToolChoice } from '../types-
|
|
3
|
+
import { U as Usage, M as Message, C as CompletionModel, i as JsonValue, z as ToolChoice } from '../types-XjIh933x.js';
|
|
4
4
|
import '../guardrails/index.js';
|
|
5
|
-
import '../types-
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../index-
|
|
8
|
-
import '../tool-
|
|
9
|
-
import '../middleware-
|
|
5
|
+
import '../types-BCA8p0sb.js';
|
|
6
|
+
import '../types-CBmhLT_r.js';
|
|
7
|
+
import '../index-XTUEMWhU.js';
|
|
8
|
+
import '../tool-Dhwg__1L.js';
|
|
9
|
+
import '../middleware-Cp0tm6zE.js';
|
|
10
10
|
import '../types-DHHZztGO.js';
|
|
11
|
-
import '../types-
|
|
11
|
+
import '../types-DMGvEFRf.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type ExtractionResponse<T> = {
|
package/dist/extractor/index.js
CHANGED
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
ExtractionError,
|
|
3
3
|
Extractor,
|
|
4
4
|
ExtractorBuilder
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-54S4I3SX.js";
|
|
6
|
+
import "../chunk-RWAOHGRL.js";
|
|
7
|
+
import "../chunk-BQCTJSNL.js";
|
|
8
|
+
import "../chunk-OPAEENGD.js";
|
|
9
9
|
import "../chunk-YK4WAAS4.js";
|
|
10
10
|
import "../chunk-XUUY2L2D.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-SWUIBS4N.js";
|
|
12
|
+
import "../chunk-F3C5653H.js";
|
|
13
13
|
import "../chunk-2ODTMRHP.js";
|
|
14
14
|
import "../chunk-M6RPFHG7.js";
|
|
15
|
-
import "../chunk-K72JKDZ7.js";
|
|
16
|
-
import "../chunk-R6QERZAB.js";
|
|
17
|
-
import "../chunk-WQKHFADH.js";
|
|
18
15
|
import "../chunk-YBBD4HZ3.js";
|
|
19
16
|
import "../chunk-OIMLU4SF.js";
|
|
17
|
+
import "../chunk-GCED5ZNM.js";
|
|
18
|
+
import "../chunk-PJDL5UT2.js";
|
|
19
|
+
import "../chunk-WQKHFADH.js";
|
|
20
20
|
import "../chunk-CWUJUSOS.js";
|
|
21
21
|
export {
|
|
22
22
|
ExtractionError,
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HookAction, P as PromptHook, T as ToolApprovalRequestOptions, a as ToolCallHookAction, R as RunControl, b as ToolCallControl } from '../types-
|
|
2
|
-
export { C as CompletionCallHookArgs, c as CompletionErrorHookArgs, d as CompletionResponseHookArgs, e as HookResult, f as RunEndHookArgs, g as RunErrorHookArgs, h as RunStartHookArgs, i as ToolCallHookArgs, j as ToolCallHookResult, k as ToolErrorHookArgs, l as ToolHookArgs, m as ToolResultHookArgs, n as TurnEndHookArgs, o as TurnStartHookArgs } from '../types-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { H as HookAction, P as PromptHook, T as ToolApprovalRequestOptions, a as ToolCallHookAction, R as RunControl, b as ToolCallControl } from '../types-BCA8p0sb.js';
|
|
2
|
+
export { C as CompletionCallHookArgs, c as CompletionErrorHookArgs, d as CompletionResponseHookArgs, e as HookResult, f as RunEndHookArgs, g as RunErrorHookArgs, h as RunStartHookArgs, i as ToolCallHookArgs, j as ToolCallHookResult, k as ToolErrorHookArgs, l as ToolHookArgs, m as ToolResultHookArgs, n as TurnEndHookArgs, o as TurnStartHookArgs } from '../types-BCA8p0sb.js';
|
|
3
|
+
import '../types-XjIh933x.js';
|
|
4
4
|
|
|
5
5
|
declare function createHook<RawResponse = unknown>(hook: PromptHook<RawResponse>): PromptHook<RawResponse>;
|
|
6
6
|
declare function cancelPrompt(reason: string): HookAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as ReasoningContentType, l as ToolCall, f as CompletionSource, k as ProviderToolCall, U as Usage, M as Message, q as ToolResultContent, e as CompletionResponse, O as ToolCallArgumentsMode,
|
|
1
|
+
import { L as ReasoningContentType, l as ToolCall, f as CompletionSource, k as ProviderToolCall, U as Usage, M as Message, d as CompletionRequest, q as ToolResultContent, e as CompletionResponse, O as ToolCallArgumentsMode, J as JsonObject, E as CompletionModelCapabilities, n as ToolDefinition, i as JsonValue } from './types-XjIh933x.js';
|
|
2
2
|
import { GuardrailDecisionRecord } from './guardrails/index.js';
|
|
3
|
-
import { g as ToolCallStreamEvent } from './tool-
|
|
3
|
+
import { g as ToolCallStreamEvent } from './tool-Dhwg__1L.js';
|
|
4
4
|
|
|
5
5
|
type PromptResponse = {
|
|
6
6
|
output: string;
|
|
@@ -54,6 +54,11 @@ type AgentChildStreamEventBase<RawResponse = unknown> = {
|
|
|
54
54
|
turn: number;
|
|
55
55
|
prompt: Message;
|
|
56
56
|
history: Message[];
|
|
57
|
+
} | {
|
|
58
|
+
type: "generation_start";
|
|
59
|
+
turn: number;
|
|
60
|
+
request: CompletionRequest;
|
|
61
|
+
modelInfo: AgentGenerationModelInfo;
|
|
57
62
|
} | {
|
|
58
63
|
type: "text_delta";
|
|
59
64
|
turn: number;
|
|
@@ -90,6 +95,7 @@ type AgentChildStreamEventBase<RawResponse = unknown> = {
|
|
|
90
95
|
type: "turn_end";
|
|
91
96
|
turn: number;
|
|
92
97
|
response: CompletionResponse<RawResponse>;
|
|
98
|
+
firstDeltaMs?: number | undefined;
|
|
93
99
|
} | {
|
|
94
100
|
type: "guardrail_decision";
|
|
95
101
|
turn?: number | undefined;
|
|
@@ -135,6 +141,7 @@ type AgentTraceOptions = {
|
|
|
135
141
|
version?: string | undefined;
|
|
136
142
|
traceId?: string | undefined;
|
|
137
143
|
failOnObserverError?: boolean | undefined;
|
|
144
|
+
promptRef?: AgentRunPromptRef | undefined;
|
|
138
145
|
};
|
|
139
146
|
type AgentRunPromptRef = {
|
|
140
147
|
name: string;
|
|
@@ -162,15 +169,16 @@ type AgentRunErrorArgs = {
|
|
|
162
169
|
usage: Usage;
|
|
163
170
|
messages: Message[];
|
|
164
171
|
};
|
|
172
|
+
type AgentGenerationModelInfo = {
|
|
173
|
+
provider: string;
|
|
174
|
+
defaultModel: string;
|
|
175
|
+
capabilities?: CompletionModelCapabilities | undefined;
|
|
176
|
+
};
|
|
165
177
|
type AgentGenerationStartArgs = {
|
|
166
178
|
turn: number;
|
|
167
179
|
request: CompletionRequest;
|
|
168
180
|
providerRequest?: JsonObject | undefined;
|
|
169
|
-
modelInfo?:
|
|
170
|
-
provider: string;
|
|
171
|
-
defaultModel: string;
|
|
172
|
-
capabilities?: CompletionModelCapabilities | undefined;
|
|
173
|
-
};
|
|
181
|
+
modelInfo?: AgentGenerationModelInfo | undefined;
|
|
174
182
|
};
|
|
175
183
|
type AgentGenerationEndArgs<RawResponse = unknown> = {
|
|
176
184
|
turn: number;
|
|
@@ -244,4 +252,4 @@ type ObserveOptions = {
|
|
|
244
252
|
};
|
|
245
253
|
declare function createObserver(observer: AgentObserver): AgentObserver;
|
|
246
254
|
|
|
247
|
-
export { type AgentChildStreamEvent as A, type
|
|
255
|
+
export { type AgentChildStreamEvent as A, type AgentToolObserver as B, type AgentToolStartArgs as C, type AgentToolStreamEventArgs as D, type AgentTraceInfo as E, createObserver as F, type ObserveOptions as O, type PromptResponse as P, type AgentChildStreamEventWithToolCallDeltas as a, type AgentChildStreamEventWithoutToolCallDeltas as b, type AgentErrorStreamEvent as c, type AgentStreamEvent as d, type AgentStreamEventWithToolCallDeltas as e, type AgentStreamEventWithoutToolCallDeltas as f, type AgentStreamOptions as g, type AgentToolCallDeltaEvent as h, type AgentObserver as i, type AgentTraceOptions as j, type AgentObserverRegistration as k, type AgentDeltaEvent as l, type AgentGenerationEndArgs as m, type AgentGenerationErrorArgs as n, type AgentGenerationModelInfo as o, type AgentGenerationObserver as p, type AgentGenerationStartArgs as q, type AgentGenerationUpdateArgs as r, type AgentRunEndArgs as s, type AgentRunErrorArgs as t, type AgentRunEventArgs as u, type AgentRunObserver as v, type AgentRunPromptRef as w, type AgentRunStartArgs as x, type AgentToolEndArgs as y, type AgentToolErrorArgs as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export { AgentBuilder } from './agent/index.js';
|
|
2
|
-
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue } from './json-
|
|
3
|
-
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, C as CompletionModel, d as CompletionRequest, e as CompletionResponse, f as CompletionSource, g as CompletionTool, D as Document, I as ImageContent, J as JsonObject, h as JsonPrimitive, i as JsonValue, M as Message, j as MessageOptions, P as ProviderTool, k as ProviderToolCall, S as SystemMessage, T as Text, l as ToolCall, m as ToolContent, n as ToolDefinition, o as ToolMessage, p as ToolResult, q as ToolResultContent, r as ToolResultMessageOptions, s as ToolResultOptions, U as Usage, t as UserContent, u as UserMessage, v as getAssistantGenerationMetadata, w as isProviderTool } from './types-
|
|
2
|
+
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue } from './json-D9IvOgx_.js';
|
|
3
|
+
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, C as CompletionModel, d as CompletionRequest, e as CompletionResponse, f as CompletionSource, g as CompletionTool, D as Document, I as ImageContent, J as JsonObject, h as JsonPrimitive, i as JsonValue, M as Message, j as MessageOptions, P as ProviderTool, k as ProviderToolCall, S as SystemMessage, T as Text, l as ToolCall, m as ToolContent, n as ToolDefinition, o as ToolMessage, p as ToolResult, q as ToolResultContent, r as ToolResultMessageOptions, s as ToolResultOptions, U as Usage, t as UserContent, u as UserMessage, v as getAssistantGenerationMetadata, w as isProviderTool } from './types-XjIh933x.js';
|
|
4
4
|
export { GuardrailBoundary, GuardrailDecisionRecord, GuardrailMode, GuardrailPolicy, GuardrailPolicyInput, GuardrailPolicyOptions, InputGuardrail, InputGuardrailActions, InputGuardrailContext, OutputGuardrail, OutputGuardrailActions, OutputGuardrailContext, allow, block, defineGuardrailPolicy, defineInputGuardrail, defineOutputGuardrail, guardrails } from './guardrails/index.js';
|
|
5
5
|
export { cancelPrompt, createHook, requestToolApproval, runControl, skipTool, toolCallControl } from './hooks/index.js';
|
|
6
|
-
export { M as MemoryConversation, a as MemoryConversationListOptions, b as MemoryConversationMessage, c as MemoryConversationSummary, d as MemoryInspector, e as MemoryStore } from './types-
|
|
6
|
+
export { M as MemoryConversation, a as MemoryConversationListOptions, b as MemoryConversationMessage, c as MemoryConversationSummary, d as MemoryInspector, e as MemoryStore } from './types-CBmhLT_r.js';
|
|
7
7
|
export { MaxTurnsError, PromptCancelledError, ToolApprovalRequiredError } from './request/index.js';
|
|
8
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-
|
|
9
|
-
export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from './index-
|
|
8
|
+
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-Cg0UigNK.js';
|
|
9
|
+
export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from './index-XTUEMWhU.js';
|
|
10
10
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
11
11
|
export { loadSkills, skill } from './skills/index.js';
|
|
12
|
-
export { S as SkillValidationError } from './types-
|
|
13
|
-
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-
|
|
14
|
-
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent } from './tool-
|
|
15
|
-
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, i as createMiddleware, j as createToolMiddleware } from './middleware-
|
|
12
|
+
export { S as SkillValidationError } from './types-fBv8mhvP.js';
|
|
13
|
+
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-CpCKo8Q8.js';
|
|
14
|
+
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent } from './tool-Dhwg__1L.js';
|
|
15
|
+
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, i as createMiddleware, j as createToolMiddleware } from './middleware-Cp0tm6zE.js';
|
|
16
16
|
export { CreateUIAttachment, UIAttachment, UIError, UIMessage, UIMessagePart, UIMessageRole, UIStreamEvent, UIStreamRequest, coreMessagesToUIMessages, uiMessagesToCoreMessages } from './ui/index.js';
|
|
17
|
-
import './types-
|
|
18
|
-
import './types-
|
|
17
|
+
import './types-BCA8p0sb.js';
|
|
18
|
+
import './types-BBEf34DP.js';
|
|
19
19
|
import '@modelcontextprotocol/sdk/client/sse.js';
|
|
20
20
|
import '@modelcontextprotocol/sdk/client/stdio.js';
|
|
21
21
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
22
|
-
import './types-
|
|
22
|
+
import './types-DMGvEFRf.js';
|
|
23
23
|
import './types-DHHZztGO.js';
|
|
24
24
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SkillValidationError,
|
|
3
3
|
loadSkills,
|
|
4
4
|
skill
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-77D7XBWL.js";
|
|
6
6
|
import {
|
|
7
7
|
coreMessagesToUIMessages,
|
|
8
8
|
uiMessagesToCoreMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SWUH4G2I.js";
|
|
10
10
|
import "./chunk-CQNNSZPG.js";
|
|
11
11
|
import {
|
|
12
12
|
AgentBuilder
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-RWAOHGRL.js";
|
|
14
|
+
import "./chunk-BQCTJSNL.js";
|
|
15
15
|
import {
|
|
16
16
|
MaxTurnsError,
|
|
17
17
|
PromptCancelledError,
|
|
18
18
|
ToolApprovalRequiredError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OPAEENGD.js";
|
|
20
20
|
import "./chunk-YK4WAAS4.js";
|
|
21
21
|
import "./chunk-XUUY2L2D.js";
|
|
22
22
|
import {
|
|
23
23
|
createMiddleware,
|
|
24
24
|
createThinkTool,
|
|
25
25
|
createToolMiddleware
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SWUIBS4N.js";
|
|
27
27
|
import {
|
|
28
28
|
createTool
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-F3C5653H.js";
|
|
30
30
|
import {
|
|
31
31
|
cancelPrompt,
|
|
32
32
|
createHook,
|
|
@@ -36,11 +36,13 @@ import {
|
|
|
36
36
|
toolCallControl
|
|
37
37
|
} from "./chunk-2ODTMRHP.js";
|
|
38
38
|
import "./chunk-M6RPFHG7.js";
|
|
39
|
+
import "./chunk-YBBD4HZ3.js";
|
|
40
|
+
import "./chunk-OIMLU4SF.js";
|
|
39
41
|
import {
|
|
40
42
|
createCompletion,
|
|
41
43
|
createCompletionStream,
|
|
42
44
|
createParsedCompletion
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GCED5ZNM.js";
|
|
44
46
|
import {
|
|
45
47
|
AssistantContent,
|
|
46
48
|
Message,
|
|
@@ -50,10 +52,8 @@ import {
|
|
|
50
52
|
getAssistantGenerationMetadata,
|
|
51
53
|
isJsonValue,
|
|
52
54
|
isProviderTool
|
|
53
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-PJDL5UT2.js";
|
|
54
56
|
import "./chunk-WQKHFADH.js";
|
|
55
|
-
import "./chunk-YBBD4HZ3.js";
|
|
56
|
-
import "./chunk-OIMLU4SF.js";
|
|
57
57
|
import {
|
|
58
58
|
allow,
|
|
59
59
|
block,
|
package/dist/internal/agent.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as Agent, e as AgentEventAppendInput, f as AgentEventRecord, c as AgentEventStore, g as AgentEventStoreInclude, d as AgentEventStoreOptions, j as AgentEventStoreRegistration, k as AgentOptions, h as AgentSession, i as AgentToolOptions, l as DEFAULT_MAX_TURNS, D as DynamicContextOptions, m as DynamicContextRegistration, b as DynamicToolOptions, n as DynamicToolRegistration } from '../agent-
|
|
2
|
-
import '../types-
|
|
1
|
+
export { A as Agent, e as AgentEventAppendInput, f as AgentEventRecord, c as AgentEventStore, g as AgentEventStoreInclude, d as AgentEventStoreOptions, j as AgentEventStoreRegistration, k as AgentOptions, h as AgentSession, i as AgentToolOptions, l as DEFAULT_MAX_TURNS, D as DynamicContextOptions, m as DynamicContextRegistration, b as DynamicToolOptions, n as DynamicToolRegistration } from '../agent-Cg0UigNK.js';
|
|
2
|
+
import '../types-XjIh933x.js';
|
|
3
3
|
import '../guardrails/index.js';
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-
|
|
6
|
-
import '../index-
|
|
7
|
-
import '../tool-
|
|
8
|
-
import '../middleware-
|
|
4
|
+
import '../types-BCA8p0sb.js';
|
|
5
|
+
import '../types-CBmhLT_r.js';
|
|
6
|
+
import '../index-XTUEMWhU.js';
|
|
7
|
+
import '../tool-Dhwg__1L.js';
|
|
8
|
+
import '../middleware-Cp0tm6zE.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-DMGvEFRf.js';
|
package/dist/internal/agent.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
Agent,
|
|
3
3
|
AgentSession,
|
|
4
4
|
DEFAULT_MAX_TURNS
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-BQCTJSNL.js";
|
|
6
|
+
import "../chunk-OPAEENGD.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SWUIBS4N.js";
|
|
10
|
+
import "../chunk-F3C5653H.js";
|
|
11
11
|
import "../chunk-2ODTMRHP.js";
|
|
12
|
-
import "../chunk-K72JKDZ7.js";
|
|
13
|
-
import "../chunk-R6QERZAB.js";
|
|
14
|
-
import "../chunk-WQKHFADH.js";
|
|
15
12
|
import "../chunk-YBBD4HZ3.js";
|
|
16
13
|
import "../chunk-OIMLU4SF.js";
|
|
14
|
+
import "../chunk-GCED5ZNM.js";
|
|
15
|
+
import "../chunk-PJDL5UT2.js";
|
|
16
|
+
import "../chunk-WQKHFADH.js";
|
|
17
17
|
import "../chunk-CWUJUSOS.js";
|
|
18
18
|
export {
|
|
19
19
|
Agent,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
2
|
-
import { M as Message, D as Document, g as CompletionTool, z as ToolChoice, J as JsonObject, i as JsonValue, A as AssistantContent, U as Usage, e as CompletionResponse, C as CompletionModel, N as StreamingCompletionModel, F as CompletionStreamEvent } from './types-
|
|
2
|
+
import { M as Message, D as Document, g as CompletionTool, z as ToolChoice, J as JsonObject, i as JsonValue, A as AssistantContent, U as Usage, e as CompletionResponse, C as CompletionModel, N as StreamingCompletionModel, F as CompletionStreamEvent } from './types-XjIh933x.js';
|
|
3
3
|
|
|
4
4
|
type CreateCompletionInput = string | Message | Message[];
|
|
5
5
|
type CreateCompletionBaseOptions = {
|
package/dist/loaders/index.d.ts
CHANGED
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as McpConnection, a as McpServer, b as McpStdioOptions, c as McpHttpOptions, d as McpSseOptions } from '../types-
|
|
2
|
-
export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-
|
|
1
|
+
import { M as McpConnection, a as McpServer, b as McpStdioOptions, c as McpHttpOptions, d as McpSseOptions } from '../types-BBEf34DP.js';
|
|
2
|
+
export { e as McpClient, f as McpToolCallContent, g as McpToolCallResult, h as McpToolDefinition } from '../types-BBEf34DP.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/client/sse.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/client/stdio.js';
|
|
5
5
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../tool-
|
|
6
|
+
import '../types-XjIh933x.js';
|
|
7
|
+
import '../tool-Dhwg__1L.js';
|
|
8
8
|
|
|
9
9
|
declare function connectMcp(connection: McpConnection): Promise<McpServer>;
|
|
10
10
|
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as MemoryOptions, R as ResolvedMemoryOptions } from '../types-
|
|
2
|
-
export { g as MemoryAppendInput, h as MemoryContext, M as MemoryConversation, a as MemoryConversationListOptions, b as MemoryConversationMessage, c as MemoryConversationSummary, i as MemoryErrorInput, d as MemoryInspector, j as MemoryRegistration, k as MemorySavePolicy, e as MemoryStore, S as SessionOptions } from '../types-
|
|
3
|
-
import '../types-
|
|
1
|
+
import { f as MemoryOptions, R as ResolvedMemoryOptions } from '../types-CBmhLT_r.js';
|
|
2
|
+
export { g as MemoryAppendInput, h as MemoryContext, M as MemoryConversation, a as MemoryConversationListOptions, b as MemoryConversationMessage, c as MemoryConversationSummary, i as MemoryErrorInput, d as MemoryInspector, j as MemoryRegistration, k as MemorySavePolicy, e as MemoryStore, S as SessionOptions } from '../types-CBmhLT_r.js';
|
|
3
|
+
import '../types-XjIh933x.js';
|
|
4
4
|
|
|
5
5
|
declare function resolveMemoryOptions(options?: MemoryOptions): ResolvedMemoryOptions;
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ToolDefinition, d as CompletionRequest, e as CompletionResponse, i as JsonValue, q as ToolResultContent } from './types-
|
|
1
|
+
import { n as ToolDefinition, d as CompletionRequest, e as CompletionResponse, i as JsonValue, q as ToolResultContent } from './types-XjIh933x.js';
|
|
2
2
|
import { V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument } from './types-DHHZztGO.js';
|
|
3
|
-
import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-
|
|
4
|
-
import { a as VectorSearchIndex } from './types-
|
|
3
|
+
import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-Dhwg__1L.js';
|
|
4
|
+
import { a as VectorSearchIndex } from './types-DMGvEFRf.js';
|
|
5
5
|
|
|
6
6
|
declare class ToolSet {
|
|
7
7
|
private readonly tools;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as AgentGenerationEndArgs, n as AgentGenerationErrorArgs, o as
|
|
2
|
-
import '../types-
|
|
1
|
+
export { m as AgentGenerationEndArgs, n as AgentGenerationErrorArgs, o as AgentGenerationModelInfo, p as AgentGenerationObserver, q as AgentGenerationStartArgs, r as AgentGenerationUpdateArgs, i as AgentObserver, k as AgentObserverRegistration, s as AgentRunEndArgs, t as AgentRunErrorArgs, u as AgentRunEventArgs, v as AgentRunObserver, w as AgentRunPromptRef, x as AgentRunStartArgs, y as AgentToolEndArgs, z as AgentToolErrorArgs, B as AgentToolObserver, C as AgentToolStartArgs, D as AgentToolStreamEventArgs, E as AgentTraceInfo, j as AgentTraceOptions, O as ObserveOptions, F as createObserver } from '../index-XTUEMWhU.js';
|
|
2
|
+
import '../types-XjIh933x.js';
|
|
3
3
|
import '../guardrails/index.js';
|
|
4
|
-
import '../tool-
|
|
4
|
+
import '../tool-Dhwg__1L.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/observability/types.ts"],"sourcesContent":["import type {\n CompletionModelCapabilities,\n CompletionRequest,\n CompletionResponse,\n CompletionSource,\n JsonObject,\n JsonValue,\n Message,\n ProviderToolCall,\n ToolCall,\n ToolDefinition,\n ToolResultContent,\n Usage,\n} from \"../completion\";\nimport type { AgentDeltaEvent } from \"../request/types\";\nimport type { ToolCallStreamEvent } from \"../tool\";\n\nexport type AgentTraceInfo = {\n traceId?: string | undefined;\n observationId?: string | undefined;\n};\n\nexport type AgentTraceOptions = {\n name?: string | undefined;\n userId?: string | undefined;\n sessionId?: string | undefined;\n metadata?: Record<string, unknown> | undefined;\n tags?: string[] | undefined;\n version?: string | undefined;\n traceId?: string | undefined;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type AgentRunPromptRef = {\n name: string;\n version?: number | undefined;\n};\n\nexport type AgentRunStartArgs = {\n agentName?: string | undefined;\n agentDescription?: string | undefined;\n instructions?: string | undefined;\n trace?: AgentTraceOptions | undefined;\n prompt: Message;\n promptRef?: AgentRunPromptRef | undefined;\n history: Message[];\n maxTurns: number;\n};\n\nexport type AgentRunEndArgs = {\n output: string;\n usage: Usage;\n messages: Message[];\n sources?: CompletionSource[] | undefined;\n providerToolCalls?: ProviderToolCall[] | undefined;\n};\n\nexport type AgentRunErrorArgs = {\n error: unknown;\n usage: Usage;\n messages: Message[];\n};\n\nexport type
|
|
1
|
+
{"version":3,"sources":["../../src/observability/types.ts"],"sourcesContent":["import type {\n CompletionModelCapabilities,\n CompletionRequest,\n CompletionResponse,\n CompletionSource,\n JsonObject,\n JsonValue,\n Message,\n ProviderToolCall,\n ToolCall,\n ToolDefinition,\n ToolResultContent,\n Usage,\n} from \"../completion\";\nimport type { AgentDeltaEvent } from \"../request/types\";\nimport type { ToolCallStreamEvent } from \"../tool\";\n\nexport type AgentTraceInfo = {\n traceId?: string | undefined;\n observationId?: string | undefined;\n};\n\nexport type AgentTraceOptions = {\n name?: string | undefined;\n userId?: string | undefined;\n sessionId?: string | undefined;\n metadata?: Record<string, unknown> | undefined;\n tags?: string[] | undefined;\n version?: string | undefined;\n traceId?: string | undefined;\n failOnObserverError?: boolean | undefined;\n promptRef?: AgentRunPromptRef | undefined;\n};\n\nexport type AgentRunPromptRef = {\n name: string;\n version?: number | undefined;\n};\n\nexport type AgentRunStartArgs = {\n agentName?: string | undefined;\n agentDescription?: string | undefined;\n instructions?: string | undefined;\n trace?: AgentTraceOptions | undefined;\n prompt: Message;\n promptRef?: AgentRunPromptRef | undefined;\n history: Message[];\n maxTurns: number;\n};\n\nexport type AgentRunEndArgs = {\n output: string;\n usage: Usage;\n messages: Message[];\n sources?: CompletionSource[] | undefined;\n providerToolCalls?: ProviderToolCall[] | undefined;\n};\n\nexport type AgentRunErrorArgs = {\n error: unknown;\n usage: Usage;\n messages: Message[];\n};\n\nexport type AgentGenerationModelInfo = {\n provider: string;\n defaultModel: string;\n capabilities?: CompletionModelCapabilities | undefined;\n};\n\nexport type AgentGenerationStartArgs = {\n turn: number;\n request: CompletionRequest;\n providerRequest?: JsonObject | undefined;\n modelInfo?: AgentGenerationModelInfo | undefined;\n};\n\nexport type AgentGenerationEndArgs<RawResponse = unknown> = {\n turn: number;\n response: CompletionResponse<RawResponse>;\n firstDeltaMs?: number | undefined;\n};\n\nexport type AgentGenerationErrorArgs = {\n turn: number;\n error: unknown;\n};\n\nexport type AgentGenerationUpdateArgs = {\n turn: number;\n delta: AgentDeltaEvent;\n};\n\nexport type AgentRunEventArgs = {\n name: string;\n attributes?: Record<string, JsonValue | undefined> | undefined;\n level?: \"DEFAULT\" | \"WARNING\" | \"ERROR\" | undefined;\n timestamp?: Date | string | undefined;\n};\n\nexport type AgentToolStartArgs = {\n turn: number;\n toolCall: ToolCall;\n toolName: string;\n args: string;\n internalCallId: string;\n toolCallId?: string | undefined;\n toolDefinition?: ToolDefinition | undefined;\n toolMetadata?: JsonObject | undefined;\n};\n\nexport type AgentToolEndArgs = AgentToolStartArgs & {\n result: string;\n structuredResult?: ToolResultContent[] | undefined;\n skipped: boolean;\n};\n\nexport type AgentToolErrorArgs = AgentToolStartArgs & {\n error: unknown;\n};\n\nexport type AgentToolStreamEventArgs = AgentToolStartArgs & {\n event: ToolCallStreamEvent;\n};\n\nexport interface AgentGenerationObserver {\n end(args: AgentGenerationEndArgs): void | Promise<void>;\n error?(args: AgentGenerationErrorArgs): void | Promise<void>;\n update?(args: AgentGenerationUpdateArgs): void | Promise<void>;\n}\n\nexport interface AgentToolObserver {\n streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;\n end(args: AgentToolEndArgs): void | Promise<void>;\n error?(args: AgentToolErrorArgs): void | Promise<void>;\n}\n\nexport interface AgentRunObserver {\n readonly trace?: AgentTraceInfo | undefined;\n startGeneration?(\n args: AgentGenerationStartArgs,\n ): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;\n startTool?(\n args: AgentToolStartArgs,\n ): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;\n end(args: AgentRunEndArgs): void | Promise<void>;\n error?(args: AgentRunErrorArgs): void | Promise<void>;\n event?(args: AgentRunEventArgs): void | Promise<void>;\n}\n\nexport interface AgentObserver {\n startRun(\n args: AgentRunStartArgs,\n ): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;\n flush?(): void | Promise<void>;\n shutdown?(): void | Promise<void>;\n}\n\nexport type AgentObserverRegistration = {\n observer: AgentObserver;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type ObserveOptions = {\n failOnObserverError?: boolean | undefined;\n};\n\nexport function createObserver(observer: AgentObserver): AgentObserver {\n return observer;\n}\n"],"mappings":";AAuKO,SAAS,eAAe,UAAwC;AACrE,SAAO;AACT;","names":[]}
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
3
|
-
import { J as JsonObject, C as CompletionModel } from '../types-
|
|
2
|
+
import { A as Agent } from '../agent-Cg0UigNK.js';
|
|
3
|
+
import { J as JsonObject, C as CompletionModel } from '../types-XjIh933x.js';
|
|
4
4
|
import { Extractor } from '../extractor/index.js';
|
|
5
5
|
import '../guardrails/index.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../tool-
|
|
10
|
-
import '../middleware-
|
|
6
|
+
import '../types-BCA8p0sb.js';
|
|
7
|
+
import '../types-CBmhLT_r.js';
|
|
8
|
+
import '../index-XTUEMWhU.js';
|
|
9
|
+
import '../tool-Dhwg__1L.js';
|
|
10
|
+
import '../middleware-Cp0tm6zE.js';
|
|
11
11
|
import '../types-DHHZztGO.js';
|
|
12
|
-
import '../types-
|
|
12
|
+
import '../types-DMGvEFRf.js';
|
|
13
13
|
import '../zod-schema-C7F4clpm.js';
|
|
14
14
|
|
|
15
15
|
/** Minimal interface for anything that can run as a pipeline stage. */
|
package/dist/request/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { M as Message } from '../types-
|
|
2
|
-
import { d as ToolApprovalRequest } from '../tool-
|
|
3
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-
|
|
4
|
-
export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, l as AgentDeltaEvent, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from '../index-
|
|
1
|
+
import { M as Message } from '../types-XjIh933x.js';
|
|
2
|
+
import { d as ToolApprovalRequest } from '../tool-Dhwg__1L.js';
|
|
3
|
+
export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-Cg0UigNK.js';
|
|
4
|
+
export { A as AgentChildStreamEvent, a as AgentChildStreamEventWithToolCallDeltas, b as AgentChildStreamEventWithoutToolCallDeltas, l as AgentDeltaEvent, c as AgentErrorStreamEvent, d as AgentStreamEvent, e as AgentStreamEventWithToolCallDeltas, f as AgentStreamEventWithoutToolCallDeltas, g as AgentStreamOptions, h as AgentToolCallDeltaEvent, P as PromptResponse } from '../index-XTUEMWhU.js';
|
|
5
5
|
import '../guardrails/index.js';
|
|
6
|
-
import '../types-
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../middleware-
|
|
6
|
+
import '../types-BCA8p0sb.js';
|
|
7
|
+
import '../types-CBmhLT_r.js';
|
|
8
|
+
import '../middleware-Cp0tm6zE.js';
|
|
9
9
|
import '../types-DHHZztGO.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-DMGvEFRf.js';
|
|
11
11
|
|
|
12
12
|
declare class MaxTurnsError extends Error {
|
|
13
13
|
readonly maxTurns: number;
|
package/dist/request/index.js
CHANGED
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
PromptCancelledError,
|
|
4
4
|
PromptRequest,
|
|
5
5
|
ToolApprovalRequiredError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OPAEENGD.js";
|
|
7
7
|
import "../chunk-XUUY2L2D.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-SWUIBS4N.js";
|
|
9
|
+
import "../chunk-F3C5653H.js";
|
|
10
10
|
import "../chunk-2ODTMRHP.js";
|
|
11
|
-
import "../chunk-K72JKDZ7.js";
|
|
12
|
-
import "../chunk-R6QERZAB.js";
|
|
13
|
-
import "../chunk-WQKHFADH.js";
|
|
14
11
|
import "../chunk-YBBD4HZ3.js";
|
|
15
12
|
import "../chunk-OIMLU4SF.js";
|
|
13
|
+
import "../chunk-GCED5ZNM.js";
|
|
14
|
+
import "../chunk-PJDL5UT2.js";
|
|
15
|
+
import "../chunk-WQKHFADH.js";
|
|
16
16
|
import "../chunk-CWUJUSOS.js";
|
|
17
17
|
export {
|
|
18
18
|
MaxTurnsError,
|
package/dist/skills/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SkillLoader, a as SkillSet } from '../types-
|
|
2
|
-
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-
|
|
3
|
-
import '../tool-
|
|
4
|
-
import '../types-
|
|
1
|
+
import { b as SkillLoader, a as SkillSet } from '../types-fBv8mhvP.js';
|
|
2
|
+
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-fBv8mhvP.js';
|
|
3
|
+
import '../tool-Dhwg__1L.js';
|
|
4
|
+
import '../types-XjIh933x.js';
|
|
5
5
|
|
|
6
6
|
declare function loadSkills(loaders: SkillLoader | SkillLoader[]): Promise<SkillSet>;
|
|
7
7
|
|