@anvia/core 1.0.0-rc.5 → 1.0.0-rc.6
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 +22 -6
- package/dist/agent/index.d.ts +20 -14
- package/dist/agent/index.js +5 -5
- package/dist/agent/interactions/index.d.ts +1 -1
- package/dist/{agent-LlCD_2UQ.d.ts → agent-BK3jud9q.d.ts} +10 -10
- package/dist/{chunk-E5J4OY4K.js → chunk-7O45T5F2.js} +2 -2
- package/dist/{chunk-YDJA4R37.js → chunk-BOCJCECN.js} +2 -2
- package/dist/{chunk-HSA6NL2E.js → chunk-HT4P3SSG.js} +61 -5
- package/dist/chunk-HT4P3SSG.js.map +1 -0
- package/dist/{chunk-DNQNOHD5.js → chunk-QXQQ2DBM.js} +2 -2
- package/dist/{chunk-FCANRQ5Q.js → chunk-QXSVVYQK.js} +151 -28
- package/dist/chunk-QXSVVYQK.js.map +1 -0
- package/dist/{chunk-TEV3OB7N.js → chunk-VGJRXUPT.js} +10 -3
- package/dist/chunk-VGJRXUPT.js.map +1 -0
- package/dist/{client-DvUatElp.d.ts → client-BdQ_QZsY.d.ts} +2 -2
- package/dist/completion/index.d.ts +3 -3
- package/dist/completion/index.js +3 -1
- package/dist/{dynamic-tools-AEBOTgu1.d.ts → dynamic-tools--Aw37H9d.d.ts} +3 -3
- package/dist/evals/index.d.ts +6 -6
- package/dist/evals/index.js +3 -3
- package/dist/extractor/index.d.ts +1 -1
- package/dist/extractor/index.js +2 -2
- package/dist/guardrails/index.d.ts +4 -4
- package/dist/image-generation/index.d.ts +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.js +7 -5
- package/dist/internal/agent.d.ts +11 -11
- package/dist/internal/agent.js +5 -5
- package/dist/mcp/index.d.ts +4 -4
- package/dist/memory/index.d.ts +3 -3
- package/dist/memory/index.js +2 -2
- package/dist/{message-schema-B2M7AYzR.d.ts → message-schema-_sP_RKhh.d.ts} +18 -2
- package/dist/{middleware-BqtLB_Xt.d.ts → middleware-QZsbz7Hf.d.ts} +1 -1
- package/dist/observability/index.d.ts +6 -6
- package/dist/observability/index.js +2 -2
- package/dist/pipeline/index.d.ts +11 -11
- package/dist/pipeline/index.js +3 -3
- package/dist/skills/index.d.ts +4 -4
- package/dist/speech-generation/index.d.ts +1 -1
- package/dist/{text-C_6eKrbC.d.ts → text-DTg1a8Mg.d.ts} +1 -1
- package/dist/{think-tool-Cz3QYNPX.d.ts → think-tool-C0n_dF2K.d.ts} +1 -1
- package/dist/tool/index.d.ts +6 -6
- package/dist/{tool-r62gf3QY.d.ts → tool-xHM_GmzT.d.ts} +1 -1
- package/dist/transcription/index.d.ts +1 -1
- package/dist/{types-1KpjDfoN.d.ts → types-2DBdXArn.d.ts} +7 -5
- package/dist/{types-DbolvLtZ.d.ts → types-B1KL4w14.d.ts} +1 -1
- package/dist/{types-C3gv9EX6.d.ts → types-D0Y2ZWS3.d.ts} +1 -1
- package/dist/{types-CIPaIbZo.d.ts → types-D7A6CIGt.d.ts} +1 -1
- package/dist/{types-D9rKQ_as.d.ts → types-DboZvHR_.d.ts} +8 -1
- package/dist/{types-RT3cuyRk.d.ts → types-Dyp7arZQ.d.ts} +1 -1
- package/dist/vector-store/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-FCANRQ5Q.js.map +0 -1
- package/dist/chunk-HSA6NL2E.js.map +0 -1
- package/dist/chunk-TEV3OB7N.js.map +0 -1
- /package/dist/{chunk-E5J4OY4K.js.map → chunk-7O45T5F2.js.map} +0 -0
- /package/dist/{chunk-YDJA4R37.js.map → chunk-BOCJCECN.js.map} +0 -0
- /package/dist/{chunk-DNQNOHD5.js.map → chunk-QXQQ2DBM.js.map} +0 -0
|
@@ -6,12 +6,16 @@ var AgentStructuredOutputError = class extends Error {
|
|
|
6
6
|
outputLength;
|
|
7
7
|
normalizedLength;
|
|
8
8
|
outputFormat;
|
|
9
|
+
attemptUsage;
|
|
9
10
|
usage;
|
|
11
|
+
finishReason;
|
|
12
|
+
providerFinishReason;
|
|
10
13
|
constructor(options) {
|
|
11
|
-
const failure = options.phase === "parse" ? "JSON parsing" : "schema validation";
|
|
14
|
+
const failure = options.phase === "truncated" ? "because the provider reached its output limit" : options.phase === "parse" ? "during JSON parsing" : "during schema validation";
|
|
15
|
+
const errorOptions = options.cause === void 0 ? void 0 : { cause: options.cause };
|
|
12
16
|
super(
|
|
13
17
|
`Agent structured output failed ${failure} on attempt ${options.attempt} of ${options.maxAttempts}.`,
|
|
14
|
-
|
|
18
|
+
errorOptions
|
|
15
19
|
);
|
|
16
20
|
this.name = "AgentStructuredOutputError";
|
|
17
21
|
this.phase = options.phase;
|
|
@@ -20,7 +24,10 @@ var AgentStructuredOutputError = class extends Error {
|
|
|
20
24
|
this.outputLength = options.outputLength;
|
|
21
25
|
this.normalizedLength = options.normalizedLength;
|
|
22
26
|
this.outputFormat = options.outputFormat;
|
|
27
|
+
this.attemptUsage = options.attemptUsage;
|
|
23
28
|
this.usage = options.usage;
|
|
29
|
+
this.finishReason = options.finishReason;
|
|
30
|
+
this.providerFinishReason = options.providerFinishReason;
|
|
24
31
|
}
|
|
25
32
|
};
|
|
26
33
|
var MaxTurnsError = class extends Error {
|
|
@@ -76,4 +83,4 @@ export {
|
|
|
76
83
|
AgentStreamClosedError,
|
|
77
84
|
AgentToolSuspensionError
|
|
78
85
|
};
|
|
79
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-VGJRXUPT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/agent/errors.ts"],"sourcesContent":["import type { CompletionFinishReason, Message, Usage } from \"../completion/index\";\nimport type { AgentBlockedResult, AgentSuspendedResult } from \"./run-types\";\n\nexport type AgentStructuredOutputPhase = \"truncated\" | \"parse\" | \"schema\";\n\nexport type AgentStructuredOutputFormat = \"raw\" | \"json-fence\" | \"unlabeled-fence\";\n\nexport class AgentStructuredOutputError extends Error {\n readonly phase: AgentStructuredOutputPhase;\n readonly attempt: number;\n readonly maxAttempts: number;\n readonly outputLength: number;\n readonly normalizedLength: number;\n readonly outputFormat: AgentStructuredOutputFormat;\n readonly attemptUsage: Usage;\n readonly usage: Usage;\n readonly finishReason: CompletionFinishReason | undefined;\n readonly providerFinishReason: string | undefined;\n\n constructor(options: {\n phase: AgentStructuredOutputPhase;\n attempt: number;\n maxAttempts: number;\n outputLength: number;\n normalizedLength: number;\n outputFormat: AgentStructuredOutputFormat;\n attemptUsage: Usage;\n usage: Usage;\n finishReason?: CompletionFinishReason | undefined;\n providerFinishReason?: string | undefined;\n cause?: unknown;\n }) {\n const failure =\n options.phase === \"truncated\"\n ? \"because the provider reached its output limit\"\n : options.phase === \"parse\"\n ? \"during JSON parsing\"\n : \"during schema validation\";\n const errorOptions = options.cause === undefined ? undefined : { cause: options.cause };\n super(\n `Agent structured output failed ${failure} on attempt ${options.attempt} of ${options.maxAttempts}.`,\n errorOptions,\n );\n this.name = \"AgentStructuredOutputError\";\n this.phase = options.phase;\n this.attempt = options.attempt;\n this.maxAttempts = options.maxAttempts;\n this.outputLength = options.outputLength;\n this.normalizedLength = options.normalizedLength;\n this.outputFormat = options.outputFormat;\n this.attemptUsage = options.attemptUsage;\n this.usage = options.usage;\n this.finishReason = options.finishReason;\n this.providerFinishReason = options.providerFinishReason;\n }\n}\n\nexport class MaxTurnsError extends Error {\n constructor(\n readonly maxTurns: number,\n readonly chatHistory: Message[],\n readonly prompt: Message,\n ) {\n super(`Reached max turn limit: ${maxTurns}`);\n this.name = \"MaxTurnsError\";\n }\n}\n\nexport class AgentRunCancelledError extends Error {\n constructor(\n readonly chatHistory: Message[],\n readonly reason: string,\n options?: ErrorOptions,\n ) {\n super(`Agent run cancelled: ${reason}`, options);\n this.name = \"AgentRunCancelledError\";\n }\n}\n\nexport class AgentRunBlockedError extends Error {\n constructor(readonly result: AgentBlockedResult) {\n super(`Agent run was blocked by an ${result.stage} guardrail.`);\n this.name = \"AgentRunBlockedError\";\n }\n}\n\nexport class AgentStreamClosedError extends Error {\n constructor() {\n super(\"Agent stream is no longer accepting steering input.\");\n this.name = \"AgentStreamClosedError\";\n }\n}\n\nexport class AgentToolSuspensionError extends Error {\n constructor(readonly result: AgentSuspendedResult) {\n super(\"Agent tool execution suspended for human interaction.\");\n this.name = \"AgentToolSuspensionError\";\n }\n}\n"],"mappings":";AAOO,IAAM,6BAAN,cAAyC,MAAM;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,SAYT;AACD,UAAM,UACJ,QAAQ,UAAU,cACd,kDACA,QAAQ,UAAU,UAChB,wBACA;AACR,UAAM,eAAe,QAAQ,UAAU,SAAY,SAAY,EAAE,OAAO,QAAQ,MAAM;AACtF;AAAA,MACE,kCAAkC,OAAO,eAAe,QAAQ,OAAO,OAAO,QAAQ,WAAW;AAAA,MACjG;AAAA,IACF;AACA,SAAK,OAAO;AACZ,SAAK,QAAQ,QAAQ;AACrB,SAAK,UAAU,QAAQ;AACvB,SAAK,cAAc,QAAQ;AAC3B,SAAK,eAAe,QAAQ;AAC5B,SAAK,mBAAmB,QAAQ;AAChC,SAAK,eAAe,QAAQ;AAC5B,SAAK,eAAe,QAAQ;AAC5B,SAAK,QAAQ,QAAQ;AACrB,SAAK,eAAe,QAAQ;AAC5B,SAAK,uBAAuB,QAAQ;AAAA,EACtC;AACF;AAEO,IAAM,gBAAN,cAA4B,MAAM;AAAA,EACvC,YACW,UACA,aACA,QACT;AACA,UAAM,2BAA2B,QAAQ,EAAE;AAJlC;AACA;AACA;AAGT,SAAK,OAAO;AAAA,EACd;AAAA,EANW;AAAA,EACA;AAAA,EACA;AAKb;AAEO,IAAM,yBAAN,cAAqC,MAAM;AAAA,EAChD,YACW,aACA,QACT,SACA;AACA,UAAM,wBAAwB,MAAM,IAAI,OAAO;AAJtC;AACA;AAIT,SAAK,OAAO;AAAA,EACd;AAAA,EANW;AAAA,EACA;AAMb;AAEO,IAAM,uBAAN,cAAmC,MAAM;AAAA,EAC9C,YAAqB,QAA4B;AAC/C,UAAM,+BAA+B,OAAO,KAAK,aAAa;AAD3C;AAEnB,SAAK,OAAO;AAAA,EACd;AAAA,EAHqB;AAIvB;AAEO,IAAM,yBAAN,cAAqC,MAAM;AAAA,EAChD,cAAc;AACZ,UAAM,qDAAqD;AAC3D,SAAK,OAAO;AAAA,EACd;AACF;AAEO,IAAM,2BAAN,cAAuC,MAAM;AAAA,EAClD,YAAqB,QAA8B;AACjD,UAAM,uDAAuD;AAD1C;AAEnB,SAAK,OAAO;AAAA,EACd;AAAA,EAHqB;AAIvB;","names":[]}
|
|
@@ -3,8 +3,8 @@ import { Stream } from 'node:stream';
|
|
|
3
3
|
import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
|
|
4
4
|
import { StreamableHTTPReconnectionOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
5
5
|
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
6
|
-
import { J as JsonObject } from './types-
|
|
7
|
-
import { A as AnyTool } from './tool-
|
|
6
|
+
import { J as JsonObject } from './types-DboZvHR_.js';
|
|
7
|
+
import { A as AnyTool } from './tool-xHM_GmzT.js';
|
|
8
8
|
|
|
9
9
|
type McpStdioTransport = {
|
|
10
10
|
readonly type: "stdio";
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { D as Document, M as Message } from '../types-
|
|
4
|
-
export { A as AssistantContentPart, a as AssistantGenerationMetadata, b as AssistantMessage,
|
|
5
|
-
export { C as CompletionBaseOptions, a as CompletionInput, G as GenerateCompletionOptions,
|
|
3
|
+
import { D as Document, M as Message } from '../types-DboZvHR_.js';
|
|
4
|
+
export { A as AssistantContentPart, a as AssistantGenerationMetadata, b as AssistantMessage, Q as CompletionCapabilityError, C as CompletionFinishReason, c as CompletionModel, V as CompletionModelCapabilities, d as CompletionModelInfo, e as CompletionModelStreamEvent, f as CompletionRequest, g as CompletionResponse, h as CompletionResult, i as CompletionSource, j as CompletionStreamEvent, W as CompletionStreamPart, k as CompletionTool, l as ContextUsage, F as FileData, m as FilePart, I as ImageDetail, n as ImagePart, J as JsonObject, o as JsonPrimitive, p as JsonValue, q as ModelContextLimits, P as ProviderTool, r as ProviderToolCall, R as ReasoningContentType, s as ReasoningDetail, t as ReasoningPart, X as StreamingCompletionModel, S as SystemMessage, T as TextPart, Y as ToolApprovalResponsePart, Z as ToolCallArgumentsMode, u as ToolCallPart, v as ToolChoice, w as ToolDefinition, _ as ToolInteractionResponsePart, x as ToolMessage, $ as ToolQuestionAnswer, a0 as ToolQuestionResponsePart, y as ToolResultContentPart, z as ToolResultOutput, B as ToolResultPart, U as Usage, a1 as UsageDetails, E as UserContentPart, G as UserMessage, a2 as assertCompletionRequestSupported, H as calculateContextUsage, K as getAssistantGenerationMetadata, L as isProviderTool, a3 as reasoningDisplayText, N as resolveModelContextLimits, a4 as textFromAssistantContent, O as withContextUsage } from '../types-DboZvHR_.js';
|
|
5
|
+
export { C as CompletionBaseOptions, a as CompletionInput, b as CompletionStructuredOutputError, c as CompletionStructuredOutputPhase, G as GenerateCompletionOptions, d as GenerateStructuredCompletionOptions, M as MessageMetadataSchema, S as StreamCompletionOptions, e as StreamStructuredCompletionOptions, f as createMessageSchema, g as generateCompletion, i as isJsonValue, h as isMessage, l as isStreamingCompletionModel, m as messageSchema, j as messagesSchema, p as parseMessage, k as parseMessages, s as streamCompletion } from '../message-schema-_sP_RKhh.js';
|
|
6
6
|
import '../zod-schema-C7F4clpm.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
package/dist/completion/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-MGNTXGTX.js";
|
|
5
5
|
import {
|
|
6
6
|
CompletionCapabilityError,
|
|
7
|
+
CompletionStructuredOutputError,
|
|
7
8
|
Usage,
|
|
8
9
|
assertCompletionRequestSupported,
|
|
9
10
|
calculateContextUsage,
|
|
@@ -16,7 +17,7 @@ import {
|
|
|
16
17
|
streamCompletion,
|
|
17
18
|
textFromAssistantContent,
|
|
18
19
|
withContextUsage
|
|
19
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-HT4P3SSG.js";
|
|
20
21
|
import {
|
|
21
22
|
createMessageSchema,
|
|
22
23
|
isMessage,
|
|
@@ -31,6 +32,7 @@ import {
|
|
|
31
32
|
import "../chunk-UBE4WH6G.js";
|
|
32
33
|
export {
|
|
33
34
|
CompletionCapabilityError,
|
|
35
|
+
CompletionStructuredOutputError,
|
|
34
36
|
Usage,
|
|
35
37
|
assertCompletionRequestSupported,
|
|
36
38
|
calculateContextUsage,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
2
|
-
import {
|
|
2
|
+
import { w as ToolDefinition } from './types-DboZvHR_.js';
|
|
3
3
|
import { V as VectorMetadata, E as EmbeddingModel, a as EmbeddedDocument } from './types-Cr4uiYo5.js';
|
|
4
|
-
import { A as AnyTool } from './tool-
|
|
5
|
-
import { V as VectorFilter, a as VectorSearchResult, b as VectorInspectRequest, c as VectorInspectPage } from './types-
|
|
4
|
+
import { A as AnyTool } from './tool-xHM_GmzT.js';
|
|
5
|
+
import { V as VectorFilter, a as VectorSearchResult, b as VectorInspectRequest, c as VectorInspectPage } from './types-D0Y2ZWS3.js';
|
|
6
6
|
|
|
7
7
|
type ToolSearchDocument<Metadata extends VectorMetadata = VectorMetadata> = {
|
|
8
8
|
toolName: string;
|
package/dist/evals/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { U as Usage, J as JsonObject,
|
|
1
|
+
import { U as Usage, J as JsonObject, c as CompletionModel, M as Message } from '../types-DboZvHR_.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
3
|
import { AgentInteractionRequest, AgentInteractionResponse } from '../agent/interactions/index.js';
|
|
4
|
-
import { t as AgentSuspendedResult, j as AgentResponse, l as AgentRunOptions, k as AgentResult } from '../types-
|
|
4
|
+
import { t as AgentSuspendedResult, j as AgentResponse, l as AgentRunOptions, k as AgentResult } from '../types-2DBdXArn.js';
|
|
5
5
|
import { E as EmbeddingModel } from '../types-Cr4uiYo5.js';
|
|
6
6
|
import '../model-call-options-CZkSw_xN.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../retry-CjvSlKGW.js';
|
|
9
|
-
import '../types-
|
|
9
|
+
import '../types-D7A6CIGt.js';
|
|
10
10
|
import '../type-utils-CtHVDRn_.js';
|
|
11
|
-
import '../types-
|
|
12
|
-
import '../tool-
|
|
13
|
-
import '../middleware-
|
|
11
|
+
import '../types-B1KL4w14.js';
|
|
12
|
+
import '../tool-xHM_GmzT.js';
|
|
13
|
+
import '../middleware-QZsbz7Hf.js';
|
|
14
14
|
|
|
15
15
|
type EvalOutcome<Score = unknown> = {
|
|
16
16
|
outcome: "pass";
|
package/dist/evals/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunBlockedError
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VGJRXUPT.js";
|
|
4
4
|
import {
|
|
5
5
|
cosineSimilarity,
|
|
6
6
|
embedText
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "../chunk-3RM57ZT2.js";
|
|
11
11
|
import {
|
|
12
12
|
extract
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-BOCJCECN.js";
|
|
14
14
|
import "../chunk-MGNTXGTX.js";
|
|
15
15
|
import {
|
|
16
16
|
Usage
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-HT4P3SSG.js";
|
|
18
18
|
import "../chunk-G5OACQEI.js";
|
|
19
19
|
import "../chunk-SROQA7I7.js";
|
|
20
20
|
import "../chunk-UBE4WH6G.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
2
|
-
import {
|
|
2
|
+
import { c as CompletionModel, J as JsonObject, U as Usage, h as CompletionResult } from '../types-DboZvHR_.js';
|
|
3
3
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
4
4
|
import '../model-call-options-CZkSw_xN.js';
|
|
5
5
|
import 'zod';
|
package/dist/extractor/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractionError,
|
|
3
3
|
extract
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-BOCJCECN.js";
|
|
5
5
|
import "../chunk-MGNTXGTX.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-HT4P3SSG.js";
|
|
7
7
|
import "../chunk-G5OACQEI.js";
|
|
8
8
|
import "../chunk-SROQA7I7.js";
|
|
9
9
|
import "../chunk-UBE4WH6G.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as allow, f as appendGuardrailPolicies, b as block, d as defineGuardrailPolicy, c as defineInputGuardrail, e as defineOutputGuardrail, g as guardrails, h as hasEnforcedOutputGuardrails, n as normalizeGuardrailPolicies } from '../text-
|
|
2
|
-
import { c as GuardrailPolicy, g as InputGuardrailContext, j as InputGuardrailRunResult, i as OutputGuardrailContext, k as OutputGuardrailRunResult } from '../types-
|
|
3
|
-
export { l as GuardrailActionBase, m as GuardrailActionName, n as GuardrailAllow, o as GuardrailBlock, G as GuardrailBoundary, p as GuardrailCommonActions, a as GuardrailDecisionRecord, b as GuardrailMode, d as GuardrailPolicyInput, e as GuardrailPolicyOptions, q as GuardrailRunContext, I as InputGuardrail, f as InputGuardrailActions, r as InputGuardrailResult, s as InputGuardrailRewrite, O as OutputGuardrail, h as OutputGuardrailActions, t as OutputGuardrailResult, u as OutputGuardrailRewrite } from '../types-
|
|
4
|
-
import '../types-
|
|
1
|
+
export { a as allow, f as appendGuardrailPolicies, b as block, d as defineGuardrailPolicy, c as defineInputGuardrail, e as defineOutputGuardrail, g as guardrails, h as hasEnforcedOutputGuardrails, n as normalizeGuardrailPolicies } from '../text-DTg1a8Mg.js';
|
|
2
|
+
import { c as GuardrailPolicy, g as InputGuardrailContext, j as InputGuardrailRunResult, i as OutputGuardrailContext, k as OutputGuardrailRunResult } from '../types-D7A6CIGt.js';
|
|
3
|
+
export { l as GuardrailActionBase, m as GuardrailActionName, n as GuardrailAllow, o as GuardrailBlock, G as GuardrailBoundary, p as GuardrailCommonActions, a as GuardrailDecisionRecord, b as GuardrailMode, d as GuardrailPolicyInput, e as GuardrailPolicyOptions, q as GuardrailRunContext, I as InputGuardrail, f as InputGuardrailActions, r as InputGuardrailResult, s as InputGuardrailRewrite, O as OutputGuardrail, h as OutputGuardrailActions, t as OutputGuardrailResult, u as OutputGuardrailRewrite } from '../types-D7A6CIGt.js';
|
|
4
|
+
import '../types-DboZvHR_.js';
|
|
5
5
|
import '../model-call-options-CZkSw_xN.js';
|
|
6
6
|
import '../type-utils-CtHVDRn_.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as ModelCallOptions } from '../model-call-options-CZkSw_xN.js';
|
|
2
2
|
import { b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
3
3
|
export { R as RetryContext, a as RetryOptions } from '../retry-CjvSlKGW.js';
|
|
4
|
-
import { J as JsonObject } from '../types-
|
|
4
|
+
import { J as JsonObject } from '../types-DboZvHR_.js';
|
|
5
5
|
|
|
6
6
|
type ImageGenerationRequest = {
|
|
7
7
|
prompt: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export { A as Agent, a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, d as AgentOptions, 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-
|
|
1
|
+
export { A as Agent, a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, d as AgentOptions, 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-BK3jud9q.js';
|
|
2
2
|
export { AgentRunBlockedError, AgentRunCancelledError, AgentStreamClosedError, AgentStructuredOutputError, AgentStructuredOutputFormat, AgentStructuredOutputPhase, AgentToolSuspensionError, MaxTurnsError } from './agent/index.js';
|
|
3
|
-
export { A as AgentBlockedResult, a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, g as AgentLifecycle, h as AgentMemoryCompactionEvent, i as AgentPrompt, j as AgentResponse, k as AgentResult, l as AgentRunOptions, m as AgentRunSettings, n as AgentStartEvent, o as AgentSteerInput, p as AgentSteerReceipt, q as AgentStepFinishEvent, r as AgentStream, s as AgentStreamEvent, t as AgentSuspendedResult, u as AgentToolCallDeltaEvent, v as AgentToolFinishEvent, w as AgentToolStartEvent } from './types-
|
|
3
|
+
export { A as AgentBlockedResult, a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, g as AgentLifecycle, h as AgentMemoryCompactionEvent, i as AgentPrompt, j as AgentResponse, k as AgentResult, l as AgentRunOptions, m as AgentRunSettings, n as AgentStartEvent, o as AgentSteerInput, p as AgentSteerReceipt, q as AgentStepFinishEvent, r as AgentStream, s as AgentStreamEvent, t as AgentSuspendedResult, u as AgentToolCallDeltaEvent, v as AgentToolFinishEvent, w as AgentToolStartEvent } from './types-2DBdXArn.js';
|
|
4
4
|
export { M as ModelCallOptions } from './model-call-options-CZkSw_xN.js';
|
|
5
5
|
export { R as RetryContext, a as RetryOptions, b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
6
|
-
export { A as AssistantContentPart, a as AssistantGenerationMetadata, b as AssistantMessage, C as
|
|
7
|
-
export { C as CompletionBaseOptions, a as CompletionInput, G as GenerateCompletionOptions,
|
|
8
|
-
export { a as allow, b as block, d as defineGuardrailPolicy, c as defineInputGuardrail, e as defineOutputGuardrail, g as guardrails } from './text-
|
|
9
|
-
export { G as GuardrailBoundary, a as GuardrailDecisionRecord, b as GuardrailMode, c as GuardrailPolicy, d as GuardrailPolicyInput, e as GuardrailPolicyOptions, I as InputGuardrail, f as InputGuardrailActions, g as InputGuardrailContext, O as OutputGuardrail, h as OutputGuardrailActions, i as OutputGuardrailContext } from './types-
|
|
6
|
+
export { A as AssistantContentPart, a as AssistantGenerationMetadata, b as AssistantMessage, C as CompletionFinishReason, c as CompletionModel, d as CompletionModelInfo, e as CompletionModelStreamEvent, f as CompletionRequest, g as CompletionResponse, h as CompletionResult, i as CompletionSource, j as CompletionStreamEvent, k as CompletionTool, l as ContextUsage, D as Document, F as FileData, m as FilePart, I as ImageDetail, n as ImagePart, J as JsonObject, o as JsonPrimitive, p as JsonValue, M as Message, q as ModelContextLimits, P as ProviderTool, r as ProviderToolCall, R as ReasoningContentType, s as ReasoningDetail, t as ReasoningPart, S as SystemMessage, T as TextPart, u as ToolCallPart, v as ToolChoice, w as ToolDefinition, x as ToolMessage, y as ToolResultContentPart, z as ToolResultOutput, B as ToolResultPart, U as Usage, E as UserContentPart, G as UserMessage, H as calculateContextUsage, K as getAssistantGenerationMetadata, L as isProviderTool, N as resolveModelContextLimits, O as withContextUsage } from './types-DboZvHR_.js';
|
|
7
|
+
export { C as CompletionBaseOptions, a as CompletionInput, b as CompletionStructuredOutputError, c as CompletionStructuredOutputPhase, G as GenerateCompletionOptions, d as GenerateStructuredCompletionOptions, M as MessageMetadataSchema, S as StreamCompletionOptions, e as StreamStructuredCompletionOptions, f as createMessageSchema, g as generateCompletion, i as isJsonValue, h as isMessage, m as messageSchema, j as messagesSchema, p as parseMessage, k as parseMessages, s as streamCompletion } from './message-schema-_sP_RKhh.js';
|
|
8
|
+
export { a as allow, b as block, d as defineGuardrailPolicy, c as defineInputGuardrail, e as defineOutputGuardrail, g as guardrails } from './text-DTg1a8Mg.js';
|
|
9
|
+
export { G as GuardrailBoundary, a as GuardrailDecisionRecord, b as GuardrailMode, c as GuardrailPolicy, d as GuardrailPolicyInput, e as GuardrailPolicyOptions, I as InputGuardrail, f as InputGuardrailActions, g as InputGuardrailContext, O as OutputGuardrail, h as OutputGuardrailActions, i as OutputGuardrailContext } from './types-D7A6CIGt.js';
|
|
10
10
|
export { GenerateImageOptions, GeneratedImage, ImageGenerationModel, ImageGenerationRequest, ImageGenerationResult, generateImage } from './image-generation/index.js';
|
|
11
11
|
export { MemoryCompactionConflictError, MemoryCompactionError, createMemoryScopeKey, createSummaryMemoryCompactor, isMemoryCompactionMessage } from './memory/index.js';
|
|
12
|
-
export { C as CreateMemoryScopeKeyOptions, a as CreateSummaryMemoryCompactorOptions, M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, f as MemoryCompactionMessage, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionSnapshot, l as MemoryCompactionSnapshotOptions, m as MemoryCompactor, n as MemoryCompactorInput, o as MemoryCompactorResult, p as MemoryConversation, q as MemoryConversationGetOptions, r as MemoryConversationListOptions, s as MemoryConversationMessage, t as MemoryConversationSummary, u as MemoryErrorOptions, v as MemoryInspector, w as MemoryLoadOptions, x as MemoryOptions, y as MemorySavePolicy, z as MemoryScope, A as MemoryScopeKeyOptions, B as MemoryScopeKeyResolver, D as MemoryStore } from './types-
|
|
12
|
+
export { C as CreateMemoryScopeKeyOptions, a as CreateSummaryMemoryCompactorOptions, M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, f as MemoryCompactionMessage, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionSnapshot, l as MemoryCompactionSnapshotOptions, m as MemoryCompactor, n as MemoryCompactorInput, o as MemoryCompactorResult, p as MemoryConversation, q as MemoryConversationGetOptions, r as MemoryConversationListOptions, s as MemoryConversationMessage, t as MemoryConversationSummary, u as MemoryErrorOptions, v as MemoryInspector, w as MemoryLoadOptions, x as MemoryOptions, y as MemorySavePolicy, z as MemoryScope, A as MemoryScopeKeyOptions, B as MemoryScopeKeyResolver, D as MemoryStore } from './types-B1KL4w14.js';
|
|
13
13
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
14
14
|
export { loadSkills, skill } from './skills/index.js';
|
|
15
|
-
export { S as SkillValidationError } from './types-
|
|
15
|
+
export { S as SkillValidationError } from './types-Dyp7arZQ.js';
|
|
16
16
|
export { GenerateSpeechOptions, SpeechGenerationModel, SpeechGenerationRequest, SpeechGenerationResult, generateSpeech } from './speech-generation/index.js';
|
|
17
|
-
export { C as CreateToolOptions, c as createQuestionTool, a as createThinkTool, b as createTool } from './think-tool-
|
|
18
|
-
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalRequirement, c as ToolCallContext, d as ToolCallStreamEvent, e as ToolRequiresApproval } from './tool-
|
|
19
|
-
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolOutputMiddlewareArgs, f as ToolOutputMiddlewareResult, g as ToolResultMiddlewareArgs, h as createMiddleware } from './middleware-
|
|
17
|
+
export { C as CreateToolOptions, c as createQuestionTool, a as createThinkTool, b as createTool } from './think-tool-C0n_dF2K.js';
|
|
18
|
+
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalRequirement, c as ToolCallContext, d as ToolCallStreamEvent, e as ToolRequiresApproval } from './tool-xHM_GmzT.js';
|
|
19
|
+
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolOutputMiddlewareArgs, f as ToolOutputMiddlewareResult, g as ToolResultMiddlewareArgs, h as createMiddleware } from './middleware-QZsbz7Hf.js';
|
|
20
20
|
export { TranscribeOptions, TranscriptionAudio, TranscriptionModel, TranscriptionRequest, TranscriptionResult, transcribe } from './transcription/index.js';
|
|
21
|
-
import './client-
|
|
21
|
+
import './client-BdQ_QZsY.js';
|
|
22
22
|
import 'node:child_process';
|
|
23
23
|
import 'node:stream';
|
|
24
24
|
import '@modelcontextprotocol/sdk/client/auth.js';
|
|
25
25
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
26
26
|
import '@modelcontextprotocol/sdk/shared/transport.js';
|
|
27
|
-
import './dynamic-tools
|
|
27
|
+
import './dynamic-tools--Aw37H9d.js';
|
|
28
28
|
import './types-Cr4uiYo5.js';
|
|
29
|
-
import './types-
|
|
29
|
+
import './types-D0Y2ZWS3.js';
|
|
30
30
|
import './agent/interactions/index.js';
|
|
31
31
|
import 'zod';
|
|
32
32
|
import './type-utils-CtHVDRn_.js';
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
Agent,
|
|
20
20
|
createVectorContext,
|
|
21
21
|
isVectorContext
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QXSVVYQK.js";
|
|
23
23
|
import "./chunk-BEU6FCTN.js";
|
|
24
24
|
import "./chunk-7YAH2F3J.js";
|
|
25
25
|
import {
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
MemoryCompactionError,
|
|
28
28
|
createSummaryMemoryCompactor,
|
|
29
29
|
isMemoryCompactionMessage
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-QXQQ2DBM.js";
|
|
31
|
+
import "./chunk-7O45T5F2.js";
|
|
32
32
|
import "./chunk-YK4WAAS4.js";
|
|
33
33
|
import "./chunk-CQNNSZPG.js";
|
|
34
34
|
import {
|
|
@@ -46,11 +46,12 @@ import {
|
|
|
46
46
|
AgentStructuredOutputError,
|
|
47
47
|
AgentToolSuspensionError,
|
|
48
48
|
MaxTurnsError
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VGJRXUPT.js";
|
|
50
50
|
import "./chunk-H7BI3BSP.js";
|
|
51
51
|
import "./chunk-3RM57ZT2.js";
|
|
52
52
|
import "./chunk-MGNTXGTX.js";
|
|
53
53
|
import {
|
|
54
|
+
CompletionStructuredOutputError,
|
|
54
55
|
Usage,
|
|
55
56
|
calculateContextUsage,
|
|
56
57
|
generateCompletion,
|
|
@@ -59,7 +60,7 @@ import {
|
|
|
59
60
|
resolveModelContextLimits,
|
|
60
61
|
streamCompletion,
|
|
61
62
|
withContextUsage
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-HT4P3SSG.js";
|
|
63
64
|
import {
|
|
64
65
|
createMessageSchema,
|
|
65
66
|
isMessage,
|
|
@@ -87,6 +88,7 @@ export {
|
|
|
87
88
|
AgentStreamClosedError,
|
|
88
89
|
AgentStructuredOutputError,
|
|
89
90
|
AgentToolSuspensionError,
|
|
91
|
+
CompletionStructuredOutputError,
|
|
90
92
|
MaxTurnsError,
|
|
91
93
|
MemoryCompactionConflictError,
|
|
92
94
|
MemoryCompactionError,
|
package/dist/internal/agent.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { R as ResolvedAgentOptions, A as Agent } from '../agent-
|
|
2
|
-
import {
|
|
3
|
-
import { T as ToolIndex } from '../dynamic-tools
|
|
4
|
-
import { A as AnyTool } from '../tool-
|
|
5
|
-
import { e as MemoryCompactionInfo } from '../types-
|
|
1
|
+
import { R as ResolvedAgentOptions, A as Agent } from '../agent-BK3jud9q.js';
|
|
2
|
+
import { c as CompletionModel, P as ProviderTool, M as Message, U as Usage, g as CompletionResponse, y as ToolResultContentPart } from '../types-DboZvHR_.js';
|
|
3
|
+
import { T as ToolIndex } from '../dynamic-tools--Aw37H9d.js';
|
|
4
|
+
import { A as AnyTool } from '../tool-xHM_GmzT.js';
|
|
5
|
+
import { e as MemoryCompactionInfo } from '../types-B1KL4w14.js';
|
|
6
6
|
import '../retry-CjvSlKGW.js';
|
|
7
7
|
import '../zod-schema-C7F4clpm.js';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../types-
|
|
9
|
+
import '../types-D7A6CIGt.js';
|
|
10
10
|
import '../type-utils-CtHVDRn_.js';
|
|
11
|
-
import '../client-
|
|
11
|
+
import '../client-BdQ_QZsY.js';
|
|
12
12
|
import 'node:child_process';
|
|
13
13
|
import 'node:stream';
|
|
14
14
|
import '@modelcontextprotocol/sdk/client/auth.js';
|
|
15
15
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
16
16
|
import '@modelcontextprotocol/sdk/shared/transport.js';
|
|
17
|
-
import '../types-
|
|
17
|
+
import '../types-2DBdXArn.js';
|
|
18
18
|
import '../agent/interactions/index.js';
|
|
19
|
-
import '../middleware-
|
|
20
|
-
import '../types-
|
|
19
|
+
import '../middleware-QZsbz7Hf.js';
|
|
20
|
+
import '../types-Dyp7arZQ.js';
|
|
21
21
|
import '../types-Cr4uiYo5.js';
|
|
22
22
|
import '../model-call-options-CZkSw_xN.js';
|
|
23
|
-
import '../types-
|
|
23
|
+
import '../types-D0Y2ZWS3.js';
|
|
24
24
|
|
|
25
25
|
declare function createResolvedAgent<Output = string, M extends CompletionModel = CompletionModel, ContextDocument = unknown>(options: ResolvedAgentOptions<Output, M, ContextDocument>): Agent<Output, M, ContextDocument>;
|
|
26
26
|
declare function getResolvedAgentOptions<Output, M extends CompletionModel, ContextDocument>(agent: Agent<Output, M, ContextDocument>): ResolvedAgentOptions<Output, M, ContextDocument>;
|
package/dist/internal/agent.js
CHANGED
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
getAgentToolState,
|
|
5
5
|
markResolvedAgentOptions,
|
|
6
6
|
withInternalAgentRunOptions
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-QXSVVYQK.js";
|
|
8
8
|
import "../chunk-BEU6FCTN.js";
|
|
9
9
|
import "../chunk-7YAH2F3J.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-QXQQ2DBM.js";
|
|
11
|
+
import "../chunk-7O45T5F2.js";
|
|
12
12
|
import "../chunk-YK4WAAS4.js";
|
|
13
13
|
import "../chunk-CQNNSZPG.js";
|
|
14
14
|
import "../chunk-JXZTTNCR.js";
|
|
15
15
|
import "../chunk-RZDI7B6Z.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-VGJRXUPT.js";
|
|
17
17
|
import "../chunk-H7BI3BSP.js";
|
|
18
18
|
import "../chunk-3RM57ZT2.js";
|
|
19
19
|
import "../chunk-MGNTXGTX.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-HT4P3SSG.js";
|
|
21
21
|
import "../chunk-G5OACQEI.js";
|
|
22
22
|
import "../chunk-SROQA7I7.js";
|
|
23
23
|
import "../chunk-UBE4WH6G.js";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { M as McpClient, a as McpServer, b as McpClientGroupConnectOptions, c as McpTool } from '../client-
|
|
2
|
-
export { d as McpClientOptions, e as McpClientTransport, f as McpConnectOptions, g as McpCustomTransport, h as McpServerInfo, i as McpStdioTransport, j as McpStreamableHttpTransport, k as McpTransport } from '../client-
|
|
1
|
+
import { M as McpClient, a as McpServer, b as McpClientGroupConnectOptions, c as McpTool } from '../client-BdQ_QZsY.js';
|
|
2
|
+
export { d as McpClientOptions, e as McpClientTransport, f as McpConnectOptions, g as McpCustomTransport, h as McpServerInfo, i as McpStdioTransport, j as McpStreamableHttpTransport, k as McpTransport } from '../client-BdQ_QZsY.js';
|
|
3
3
|
import 'node:child_process';
|
|
4
4
|
import 'node:stream';
|
|
5
5
|
import '@modelcontextprotocol/sdk/client/auth.js';
|
|
6
6
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
7
7
|
import '@modelcontextprotocol/sdk/shared/transport.js';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-DboZvHR_.js';
|
|
9
9
|
import '../model-call-options-CZkSw_xN.js';
|
|
10
|
-
import '../tool-
|
|
10
|
+
import '../tool-xHM_GmzT.js';
|
|
11
11
|
|
|
12
12
|
declare class McpClientGroup {
|
|
13
13
|
#private;
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as Message, U as Usage } from '../types-
|
|
2
|
-
import { a as CreateSummaryMemoryCompactorOptions, m as MemoryCompactor, f as MemoryCompactionMessage, C as CreateMemoryScopeKeyOptions } from '../types-
|
|
3
|
-
export { M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionSnapshot, l as MemoryCompactionSnapshotOptions, n as MemoryCompactorInput, o as MemoryCompactorResult, p as MemoryConversation, q as MemoryConversationGetOptions, r as MemoryConversationListOptions, s as MemoryConversationMessage, t as MemoryConversationSummary, u as MemoryErrorOptions, v as MemoryInspector, w as MemoryLoadOptions, x as MemoryOptions, y as MemorySavePolicy, z as MemoryScope, A as MemoryScopeKeyOptions, B as MemoryScopeKeyResolver, D as MemoryStore } from '../types-
|
|
1
|
+
import { M as Message, U as Usage } from '../types-DboZvHR_.js';
|
|
2
|
+
import { a as CreateSummaryMemoryCompactorOptions, m as MemoryCompactor, f as MemoryCompactionMessage, C as CreateMemoryScopeKeyOptions } from '../types-B1KL4w14.js';
|
|
3
|
+
export { M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionSnapshot, l as MemoryCompactionSnapshotOptions, n as MemoryCompactorInput, o as MemoryCompactorResult, p as MemoryConversation, q as MemoryConversationGetOptions, r as MemoryConversationListOptions, s as MemoryConversationMessage, t as MemoryConversationSummary, u as MemoryErrorOptions, v as MemoryInspector, w as MemoryLoadOptions, x as MemoryOptions, y as MemorySavePolicy, z as MemoryScope, A as MemoryScopeKeyOptions, B as MemoryScopeKeyResolver, D as MemoryStore } from '../types-B1KL4w14.js';
|
|
4
4
|
import '../model-call-options-CZkSw_xN.js';
|
|
5
5
|
import '../retry-CjvSlKGW.js';
|
|
6
6
|
|
package/dist/memory/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
MemoryCompactionError,
|
|
7
7
|
createSummaryMemoryCompactor,
|
|
8
8
|
isMemoryCompactionMessage
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-QXQQ2DBM.js";
|
|
10
|
+
import "../chunk-HT4P3SSG.js";
|
|
11
11
|
import "../chunk-G5OACQEI.js";
|
|
12
12
|
import "../chunk-SROQA7I7.js";
|
|
13
13
|
import "../chunk-UBE4WH6G.js";
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
2
2
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
3
|
-
import {
|
|
3
|
+
import { c as CompletionModel, M as Message, D as Document, k as CompletionTool, v as ToolChoice, J as JsonObject, U as Usage, g as CompletionResponse, X as StreamingCompletionModel, h as CompletionResult, j as CompletionStreamEvent, p as JsonValue } from './types-DboZvHR_.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
|
+
type CompletionStructuredOutputPhase = "truncated" | "parse" | "schema";
|
|
7
|
+
declare class CompletionStructuredOutputError extends Error {
|
|
8
|
+
readonly phase: CompletionStructuredOutputPhase;
|
|
9
|
+
readonly outputLength: number;
|
|
10
|
+
readonly usage: Usage;
|
|
11
|
+
readonly finishReason: CompletionResponse["finishReason"];
|
|
12
|
+
readonly providerFinishReason: string | undefined;
|
|
13
|
+
constructor(options: {
|
|
14
|
+
phase: CompletionStructuredOutputPhase;
|
|
15
|
+
outputLength: number;
|
|
16
|
+
usage: Usage;
|
|
17
|
+
finishReason?: CompletionResponse["finishReason"];
|
|
18
|
+
providerFinishReason?: string | undefined;
|
|
19
|
+
cause?: unknown;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
6
22
|
type CompletionInput = {
|
|
7
23
|
prompt: string;
|
|
8
24
|
messages?: never;
|
|
@@ -49,4 +65,4 @@ declare function parseMessage(value: unknown): Message;
|
|
|
49
65
|
declare function parseMessages(value: unknown): Message[];
|
|
50
66
|
declare function isMessage(value: unknown): value is Message;
|
|
51
67
|
|
|
52
|
-
export { type CompletionBaseOptions as C, type GenerateCompletionOptions as G, type MessageMetadataSchema as M, type StreamCompletionOptions as S, type CompletionInput as a,
|
|
68
|
+
export { type CompletionBaseOptions as C, type GenerateCompletionOptions as G, type MessageMetadataSchema as M, type StreamCompletionOptions as S, type CompletionInput as a, CompletionStructuredOutputError as b, type CompletionStructuredOutputPhase as c, type GenerateStructuredCompletionOptions as d, type StreamStructuredCompletionOptions as e, createMessageSchema as f, generateCompletion as g, isMessage as h, isJsonValue as i, messagesSchema as j, parseMessages as k, isStreamingCompletionModel as l, messageSchema as m, parseMessage as p, streamCompletion as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as CompletionRequest, g as CompletionResponse, p as JsonValue, y as ToolResultContentPart } from './types-DboZvHR_.js';
|
|
2
2
|
import { M as MaybePromise } from './type-utils-CtHVDRn_.js';
|
|
3
3
|
|
|
4
4
|
type CompletionRequestMiddlewareArgs = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { x as AgentGenerationEndArgs, y as AgentGenerationErrorArgs, z as AgentGenerationModelInfo, B as AgentGenerationObserver, C as AgentGenerationStartArgs, D as AgentGenerationUpdateArgs, E as AgentObservabilityOptions, F as AgentObserver, G as AgentObserverErrorPolicy, H as AgentObserverMap, I as AgentObserverTraceInfo, J as AgentRunEndArgs, K as AgentRunErrorArgs, L as AgentRunEventArgs, M as AgentRunObserver, N as AgentRunPromptRef, O as AgentRunStartArgs, P as AgentToolEndArgs, Q as AgentToolErrorArgs, R as AgentToolObserver, S as AgentToolStartArgs, T as AgentToolStreamEventArgs, U as AgentToolSuspendedArgs, V as AgentTraceInfo, W as AgentTraceOptions } from '../types-
|
|
1
|
+
export { x as AgentGenerationEndArgs, y as AgentGenerationErrorArgs, z as AgentGenerationModelInfo, B as AgentGenerationObserver, C as AgentGenerationStartArgs, D as AgentGenerationUpdateArgs, E as AgentObservabilityOptions, F as AgentObserver, G as AgentObserverErrorPolicy, H as AgentObserverMap, I as AgentObserverTraceInfo, J as AgentRunEndArgs, K as AgentRunErrorArgs, L as AgentRunEventArgs, M as AgentRunObserver, N as AgentRunPromptRef, O as AgentRunStartArgs, P as AgentToolEndArgs, Q as AgentToolErrorArgs, R as AgentToolObserver, S as AgentToolStartArgs, T as AgentToolStreamEventArgs, U as AgentToolSuspendedArgs, V as AgentTraceInfo, W as AgentTraceOptions } from '../types-2DBdXArn.js';
|
|
2
2
|
import '../agent/interactions/index.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DboZvHR_.js';
|
|
5
5
|
import '../model-call-options-CZkSw_xN.js';
|
|
6
6
|
import '../retry-CjvSlKGW.js';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-D7A6CIGt.js';
|
|
8
8
|
import '../type-utils-CtHVDRn_.js';
|
|
9
|
-
import '../types-
|
|
10
|
-
import '../tool-
|
|
11
|
-
import '../middleware-
|
|
9
|
+
import '../types-B1KL4w14.js';
|
|
10
|
+
import '../tool-xHM_GmzT.js';
|
|
11
|
+
import '../middleware-QZsbz7Hf.js';
|
|
12
12
|
|
|
13
13
|
type AgentObserverFailure = {
|
|
14
14
|
readonly observer: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentObserverDispatchError
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7O45T5F2.js";
|
|
4
4
|
import "../chunk-MGNTXGTX.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-HT4P3SSG.js";
|
|
6
6
|
import "../chunk-G5OACQEI.js";
|
|
7
7
|
import "../chunk-SROQA7I7.js";
|
|
8
8
|
import "../chunk-UBE4WH6G.js";
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { t as AgentSuspendedResult, f as AgentInput, m as AgentRunSettings } from '../types-
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
3
|
-
import { J as JsonObject,
|
|
1
|
+
import { t as AgentSuspendedResult, f as AgentInput, m as AgentRunSettings } from '../types-2DBdXArn.js';
|
|
2
|
+
import { A as Agent } from '../agent-BK3jud9q.js';
|
|
3
|
+
import { J as JsonObject, c as CompletionModel } from '../types-DboZvHR_.js';
|
|
4
4
|
import { ExtractOptions } from '../extractor/index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import '../agent/interactions/index.js';
|
|
7
7
|
import '../retry-CjvSlKGW.js';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-D7A6CIGt.js';
|
|
9
9
|
import '../type-utils-CtHVDRn_.js';
|
|
10
|
-
import '../types-
|
|
11
|
-
import '../tool-
|
|
12
|
-
import '../middleware-
|
|
10
|
+
import '../types-B1KL4w14.js';
|
|
11
|
+
import '../tool-xHM_GmzT.js';
|
|
12
|
+
import '../middleware-QZsbz7Hf.js';
|
|
13
13
|
import '../zod-schema-C7F4clpm.js';
|
|
14
|
-
import '../client-
|
|
14
|
+
import '../client-BdQ_QZsY.js';
|
|
15
15
|
import 'node:child_process';
|
|
16
16
|
import 'node:stream';
|
|
17
17
|
import '@modelcontextprotocol/sdk/client/auth.js';
|
|
18
18
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
19
19
|
import '@modelcontextprotocol/sdk/shared/transport.js';
|
|
20
|
-
import '../types-
|
|
21
|
-
import '../dynamic-tools
|
|
20
|
+
import '../types-Dyp7arZQ.js';
|
|
21
|
+
import '../dynamic-tools--Aw37H9d.js';
|
|
22
22
|
import '../types-Cr4uiYo5.js';
|
|
23
23
|
import '../model-call-options-CZkSw_xN.js';
|
|
24
|
-
import '../types-
|
|
24
|
+
import '../types-D0Y2ZWS3.js';
|
|
25
25
|
|
|
26
26
|
declare class PipelineAgentSuspensionError extends Error {
|
|
27
27
|
readonly result: AgentSuspendedResult;
|
package/dist/pipeline/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunBlockedError
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VGJRXUPT.js";
|
|
4
4
|
import {
|
|
5
5
|
mapWithConcurrency
|
|
6
6
|
} from "../chunk-3RM57ZT2.js";
|
|
7
7
|
import {
|
|
8
8
|
extract
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-BOCJCECN.js";
|
|
10
10
|
import "../chunk-MGNTXGTX.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-HT4P3SSG.js";
|
|
12
12
|
import "../chunk-G5OACQEI.js";
|
|
13
13
|
import "../chunk-SROQA7I7.js";
|
|
14
14
|
import {
|
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-Dyp7arZQ.js';
|
|
2
|
+
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-Dyp7arZQ.js';
|
|
3
|
+
import '../tool-xHM_GmzT.js';
|
|
4
|
+
import '../types-DboZvHR_.js';
|
|
5
5
|
import '../model-call-options-CZkSw_xN.js';
|
|
6
6
|
|
|
7
7
|
declare function loadSkills(loaders: SkillLoader | SkillLoader[]): Promise<SkillSet>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as ModelCallOptions } from '../model-call-options-CZkSw_xN.js';
|
|
2
2
|
import { b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
3
3
|
export { R as RetryContext, a as RetryOptions } from '../retry-CjvSlKGW.js';
|
|
4
|
-
import { J as JsonObject } from '../types-
|
|
4
|
+
import { J as JsonObject } from '../types-DboZvHR_.js';
|
|
5
5
|
|
|
6
6
|
type SpeechGenerationRequest = {
|
|
7
7
|
text: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as GuardrailActionBase, n as GuardrailAllow, o as GuardrailBlock, e as GuardrailPolicyOptions, c as GuardrailPolicy, I as InputGuardrail, O as OutputGuardrail, d as GuardrailPolicyInput } from './types-
|
|
1
|
+
import { l as GuardrailActionBase, n as GuardrailAllow, o as GuardrailBlock, e as GuardrailPolicyOptions, c as GuardrailPolicy, I as InputGuardrail, O as OutputGuardrail, d as GuardrailPolicyInput } from './types-D7A6CIGt.js';
|
|
2
2
|
|
|
3
3
|
declare function allow(options?: GuardrailActionBase): GuardrailAllow;
|
|
4
4
|
declare function block(options: Omit<GuardrailBlock, "action">): GuardrailBlock;
|