@anvia/core 1.6.1 → 1.7.1
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 +9 -0
- package/dist/agent/agent-tool.js +6 -6
- package/dist/agent/agent.js +21 -21
- package/dist/agent/index.d.ts +8 -8
- package/dist/agent/index.js +25 -25
- package/dist/agent/resolve-options.js +6 -6
- package/dist/agent/resolved-agent.js +22 -22
- package/dist/agent/team/agent-team.js +25 -25
- package/dist/agent/team/index.js +25 -25
- package/dist/agent/tool-catalog.js +6 -6
- package/dist/{agent-BUc18r6A.d.ts → agent-BOoZ3jbr.d.ts} +5 -5
- package/dist/{chunk-LGMH6PCB.js → chunk-3BYFZYEV.js} +8 -8
- package/dist/{chunk-HILMAFZK.js → chunk-3YN5B5UW.js} +3 -3
- package/dist/{chunk-LW6F3IGP.js → chunk-5CKB7RQY.js} +2 -2
- package/dist/chunk-5H5EHU5O.js +7 -0
- package/dist/chunk-5H5EHU5O.js.map +1 -0
- package/dist/{chunk-5CQRCTIN.js → chunk-5ZS3DPPC.js} +4 -4
- package/dist/{chunk-B57NNDEF.js → chunk-C36RVQHF.js} +27 -8
- package/dist/chunk-C36RVQHF.js.map +1 -0
- package/dist/{chunk-CJKGTEN4.js → chunk-E5MIZ6Z5.js} +2 -2
- package/dist/{chunk-MWG2PMTE.js → chunk-F5BPVVC2.js} +2 -2
- package/dist/{chunk-W2XPREWL.js → chunk-GI6APIEU.js} +2 -2
- package/dist/{chunk-AMPQJMDG.js → chunk-GXVJGJAN.js} +2 -2
- package/dist/{chunk-T3ZOZEAB.js → chunk-IZH2ZAE3.js} +2 -2
- package/dist/{chunk-AQ47TF5K.js → chunk-JJSMONFE.js} +2 -2
- package/dist/{chunk-Y365ABZY.js → chunk-JU3RX364.js} +2 -2
- package/dist/{chunk-BI3T62GL.js → chunk-KHUWYYOH.js} +27 -20
- package/dist/chunk-KHUWYYOH.js.map +1 -0
- package/dist/{chunk-HG6ASDNI.js → chunk-LGPXCJJO.js} +2 -2
- package/dist/{chunk-O7NN7PF4.js → chunk-M7X36BQ7.js} +3 -3
- package/dist/{chunk-7OHHMYRO.js → chunk-MA3TYOKF.js} +2 -2
- package/dist/{chunk-MKY7KTZY.js → chunk-MIPBH5S7.js} +22 -6
- package/dist/chunk-MIPBH5S7.js.map +1 -0
- package/dist/{chunk-PV6KJWYO.js → chunk-MYHGOXHQ.js} +2 -2
- package/dist/{chunk-7V3DKQTI.js → chunk-NWCJXAE5.js} +6 -6
- package/dist/{chunk-XJ5X3NI4.js → chunk-OBM7JJCK.js} +2 -2
- package/dist/{chunk-LWF6AHDG.js → chunk-OXIK4SIH.js} +2 -2
- package/dist/{chunk-KITX3HDN.js → chunk-SBWSXEIH.js} +1 -1
- package/dist/chunk-SBWSXEIH.js.map +1 -0
- package/dist/{chunk-YSR6KLCS.js → chunk-V5KBSXAJ.js} +2 -2
- package/dist/{chunk-YKWUFYXT.js → chunk-VCOGUS3Q.js} +2 -2
- package/dist/{chunk-SCFWN3T2.js → chunk-VHPT2C4P.js} +1 -1
- package/dist/chunk-VHPT2C4P.js.map +1 -0
- package/dist/{chunk-7G3YQQVE.js → chunk-WBXRVW5I.js} +3 -3
- package/dist/{chunk-647TQE3E.js → chunk-WCJRGYF7.js} +5 -5
- package/dist/{chunk-5TGVDMGM.js → chunk-XH2CVR4V.js} +2 -2
- package/dist/{chunk-6E6ABRJ6.js → chunk-ZMAF3I4H.js} +2 -2
- package/dist/completion/generate-completion.js +2 -2
- package/dist/completion/index.js +2 -2
- package/dist/completion/stream-accumulator.js +1 -1
- package/dist/{dynamic-tools-BXXLc34l.d.ts → dynamic-tools-B3OjYyhC.d.ts} +1 -1
- package/dist/evals/advanced-metrics.js +5 -5
- package/dist/evals/cli.js +2 -2
- package/dist/evals/index.d.ts +2 -2
- package/dist/evals/index.js +6 -6
- package/dist/evals/judge.js +4 -4
- package/dist/evals/metrics.js +4 -4
- package/dist/evals/runner.js +2 -2
- package/dist/extractor/extractor.js +3 -3
- package/dist/extractor/index.js +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +31 -31
- package/dist/internal/agent-runtime/agent-run.js +17 -17
- package/dist/internal/agent-runtime/continuation-state.js +2 -2
- package/dist/internal/agent-runtime/execution.js +7 -0
- package/dist/internal/agent-runtime/execution.js.map +1 -0
- package/dist/internal/agent-runtime/interaction-suspension.js +2 -2
- package/dist/internal/agent-runtime/memory.js +4 -4
- package/dist/internal/agent-runtime/prepared-tool-call.js +2 -2
- package/dist/internal/agent-runtime/retrieval.js +4 -4
- package/dist/internal/agent-runtime/run-options.js +1 -1
- package/dist/internal/agent-runtime/tool-execution.js +11 -11
- package/dist/internal/agent.d.ts +30 -8
- package/dist/internal/agent.js +26 -22
- package/dist/internal/team-runtime/member.js +2 -2
- package/dist/internal/team-runtime/run.js +24 -24
- package/dist/internal/team-runtime/tools.js +4 -4
- package/dist/mcp/index.d.ts +3 -3
- package/dist/memory/compaction.js +3 -3
- package/dist/memory/index.js +3 -3
- package/dist/{middleware-BxzML2hK.d.ts → middleware-BNxyEpUX.d.ts} +1 -1
- package/dist/observability/group.js +2 -2
- package/dist/observability/index.d.ts +2 -2
- package/dist/observability/index.js +2 -2
- package/dist/pipeline/index.d.ts +6 -6
- package/dist/pipeline/index.js +4 -4
- package/dist/pipeline/pipeline.js +4 -4
- package/dist/skills/index.d.ts +3 -3
- package/dist/skills/index.js +11 -11
- package/dist/skills/load.js +10 -10
- package/dist/skills/tools.js +9 -9
- package/dist/speech-generation/index.js +1 -1
- package/dist/{think-tool-2unWbq1w.d.ts → think-tool-DJbtUDZm.d.ts} +1 -1
- package/dist/tool/create-tool.js +3 -3
- package/dist/tool/dynamic-tools.js +5 -5
- package/dist/tool/index.d.ts +4 -4
- package/dist/tool/index.js +12 -12
- package/dist/tool/question-tool.js +4 -4
- package/dist/tool/think-tool.js +4 -4
- package/dist/tool/tool.js +1 -1
- package/dist/{tool-D_jV3cRZ.d.ts → tool-W1cAPuRF.d.ts} +2 -0
- package/dist/{types-0t3BczrD.d.ts → types-94Q2mPRa.d.ts} +1 -1
- package/dist/{types-Cu2tEf3V.d.ts → types-CIG2loIE.d.ts} +1 -1
- package/dist/vector-store/index.d.ts +1 -1
- package/dist/vector-store/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-B57NNDEF.js.map +0 -1
- package/dist/chunk-BI3T62GL.js.map +0 -1
- package/dist/chunk-KITX3HDN.js.map +0 -1
- package/dist/chunk-MKY7KTZY.js.map +0 -1
- package/dist/chunk-SCFWN3T2.js.map +0 -1
- /package/dist/{chunk-LGMH6PCB.js.map → chunk-3BYFZYEV.js.map} +0 -0
- /package/dist/{chunk-HILMAFZK.js.map → chunk-3YN5B5UW.js.map} +0 -0
- /package/dist/{chunk-LW6F3IGP.js.map → chunk-5CKB7RQY.js.map} +0 -0
- /package/dist/{chunk-5CQRCTIN.js.map → chunk-5ZS3DPPC.js.map} +0 -0
- /package/dist/{chunk-CJKGTEN4.js.map → chunk-E5MIZ6Z5.js.map} +0 -0
- /package/dist/{chunk-MWG2PMTE.js.map → chunk-F5BPVVC2.js.map} +0 -0
- /package/dist/{chunk-W2XPREWL.js.map → chunk-GI6APIEU.js.map} +0 -0
- /package/dist/{chunk-AMPQJMDG.js.map → chunk-GXVJGJAN.js.map} +0 -0
- /package/dist/{chunk-T3ZOZEAB.js.map → chunk-IZH2ZAE3.js.map} +0 -0
- /package/dist/{chunk-AQ47TF5K.js.map → chunk-JJSMONFE.js.map} +0 -0
- /package/dist/{chunk-Y365ABZY.js.map → chunk-JU3RX364.js.map} +0 -0
- /package/dist/{chunk-HG6ASDNI.js.map → chunk-LGPXCJJO.js.map} +0 -0
- /package/dist/{chunk-O7NN7PF4.js.map → chunk-M7X36BQ7.js.map} +0 -0
- /package/dist/{chunk-7OHHMYRO.js.map → chunk-MA3TYOKF.js.map} +0 -0
- /package/dist/{chunk-PV6KJWYO.js.map → chunk-MYHGOXHQ.js.map} +0 -0
- /package/dist/{chunk-7V3DKQTI.js.map → chunk-NWCJXAE5.js.map} +0 -0
- /package/dist/{chunk-XJ5X3NI4.js.map → chunk-OBM7JJCK.js.map} +0 -0
- /package/dist/{chunk-LWF6AHDG.js.map → chunk-OXIK4SIH.js.map} +0 -0
- /package/dist/{chunk-YSR6KLCS.js.map → chunk-V5KBSXAJ.js.map} +0 -0
- /package/dist/{chunk-YKWUFYXT.js.map → chunk-VCOGUS3Q.js.map} +0 -0
- /package/dist/{chunk-7G3YQQVE.js.map → chunk-WBXRVW5I.js.map} +0 -0
- /package/dist/{chunk-647TQE3E.js.map → chunk-WCJRGYF7.js.map} +0 -0
- /package/dist/{chunk-5TGVDMGM.js.map → chunk-XH2CVR4V.js.map} +0 -0
- /package/dist/{chunk-6E6ABRJ6.js.map → chunk-ZMAF3I4H.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
TEAM_INSTRUCTIONS,
|
|
13
13
|
teamTools
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E5MIZ6Z5.js";
|
|
15
15
|
import {
|
|
16
16
|
AgentTeamInteractionError,
|
|
17
17
|
AgentTeamLimitError
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
createResolvedAgent,
|
|
21
21
|
getResolvedAgentOptions
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-M7X36BQ7.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentRun
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KHUWYYOH.js";
|
|
26
26
|
import {
|
|
27
27
|
withInternalAgentRunOptions
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SBWSXEIH.js";
|
|
29
29
|
import {
|
|
30
30
|
assertAgentInteractionResponse,
|
|
31
31
|
parseAgentInteractionResponse
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-KFAVEL5F.js";
|
|
37
37
|
import {
|
|
38
38
|
isStreamingCompletionModel
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LGPXCJJO.js";
|
|
40
40
|
import {
|
|
41
41
|
Usage
|
|
42
42
|
} from "./chunk-HJ6KTQTZ.js";
|
|
@@ -619,4 +619,4 @@ var TeamRun = class {
|
|
|
619
619
|
export {
|
|
620
620
|
TeamRun
|
|
621
621
|
};
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-NWCJXAE5.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2NLINXRF.js";
|
|
4
4
|
import {
|
|
5
5
|
createTool
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JU3RX364.js";
|
|
7
7
|
import {
|
|
8
8
|
abortError,
|
|
9
9
|
throwIfAborted
|
|
@@ -245,4 +245,4 @@ function appendLimited(current, chunk) {
|
|
|
245
245
|
export {
|
|
246
246
|
createSkillTools
|
|
247
247
|
};
|
|
248
|
-
//# sourceMappingURL=chunk-
|
|
248
|
+
//# sourceMappingURL=chunk-OBM7JJCK.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-6BTJC3ES.js";
|
|
7
7
|
import {
|
|
8
8
|
isToolIndex
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XH2CVR4V.js";
|
|
10
10
|
import {
|
|
11
11
|
isMcpTool
|
|
12
12
|
} from "./chunk-PLDJCCVL.js";
|
|
@@ -109,4 +109,4 @@ export {
|
|
|
109
109
|
resolveAgentOptions,
|
|
110
110
|
markResolvedAgentOptions
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-OXIK4SIH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/internal/agent-runtime/run-options.ts"],"sourcesContent":["import type { Message } from \"../../completion\";\nimport type { AgentHook } from \"../../hooks\";\nimport type { MemoryCompactionInfo } from \"../../memory\";\nimport type { AgentRunExecution } from \"./execution\";\n\nconst internalAgentRunOptions = Symbol(\"internalAgentRunOptions\");\n\nexport type InternalAgentRunOptions = {\n /** Persistence boundaries for non-streaming execution. */\n execution?: AgentRunExecution | undefined;\n hook?: AgentHook | undefined;\n onFailure?: ((failure: { error: unknown; messages: readonly Message[] }) => void) | undefined;\n onMemoryCompaction?: ((compaction: MemoryCompactionInfo) => void | Promise<void>) | undefined;\n runId?: string | undefined;\n beforeFinish?: (() => void | Promise<void>) | undefined;\n onSteeringApplied?: ((id: string) => void) | undefined;\n};\n\ntype AgentRunOptionsWithInternal = {\n [internalAgentRunOptions]?: InternalAgentRunOptions;\n};\n\nexport function withInternalAgentRunOptions<T extends object>(\n options: T,\n internal: InternalAgentRunOptions,\n): T {\n return {\n ...options,\n [internalAgentRunOptions]: internal,\n };\n}\n\nexport function getInternalAgentRunOptions(options: object): InternalAgentRunOptions | undefined {\n return (options as AgentRunOptionsWithInternal)[internalAgentRunOptions];\n}\n"],"mappings":";AAKA,IAAM,0BAA0B,uBAAO,yBAAyB;AAiBzD,SAAS,4BACd,SACA,UACG;AACH,SAAO;AAAA,IACL,GAAG;AAAA,IACH,CAAC,uBAAuB,GAAG;AAAA,EAC7B;AACF;AAEO,SAAS,2BAA2B,SAAsD;AAC/F,SAAQ,QAAwC,uBAAuB;AACzE;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extract
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCOGUS3Q.js";
|
|
4
4
|
import {
|
|
5
5
|
Usage
|
|
6
6
|
} from "./chunk-HJ6KTQTZ.js";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
addUsage,
|
|
53
53
|
evaluationMetadata
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-V5KBSXAJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateCompletion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LGPXCJJO.js";
|
|
4
4
|
import {
|
|
5
5
|
CompletionCapabilityError,
|
|
6
6
|
Usage
|
|
@@ -128,4 +128,4 @@ export {
|
|
|
128
128
|
ExtractionError,
|
|
129
129
|
extract
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-VCOGUS3Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tool/tool.ts"],"sourcesContent":["import { isJsonValue } from \"../completion/json\";\nimport { parseMessage } from \"../completion/message-schema\";\nimport type {\n JsonObject,\n JsonValue,\n ToolDefinition,\n ToolResultContentPart,\n ToolResultOutput,\n} from \"../completion/types\";\n\n/** Identifies the agent run that requested a tool approval. */\nexport type ToolApprovalRunContext = {\n agentId: string;\n runId: string;\n sessionId?: string;\n metadata?: JsonObject;\n};\n\n/** Details of the pending tool call being evaluated for approval. */\nexport type ToolApprovalContext<Args = unknown> = {\n toolName: string;\n args: Args;\n /** The serialized argument string passed to hooks and approval checks. */\n rawArgs: string;\n toolCallId: string;\n callId?: string;\n internalCallId: string;\n run: ToolApprovalRunContext;\n};\n\n/** An approval demand, with an optional human-readable reason. */\nexport type ToolApprovalRequirement = {\n reason?: string | undefined;\n};\n\n/**\n * Whether a tool call needs human approval before execution:\n *\n * - `boolean`: a static requirement\n * - `ToolApprovalRequirement`: a requirement with a reason\n * - a function: evaluated per call, receiving the parsed args and call context\n */\nexport type ToolRequiresApproval<Args = unknown> =\n | boolean\n | ToolApprovalRequirement\n | ((\n args: Args,\n context: ToolApprovalContext<Args>,\n ) => boolean | ToolApprovalRequirement | Promise<boolean | ToolApprovalRequirement>);\n\n/** A child-agent event forwarded through a tool into the parent run's stream. */\nexport type ToolCallStreamEvent = {\n agentId: string;\n agentName?: string | undefined;\n event: unknown;\n};\n\n/** Execution context handed to a tool when the run invokes it. */\nexport type ToolCallContext = {\n /** Stable external-operation identity supplied by a durable execution runtime. */\n operationId?: string | undefined;\n /** Emits a child-agent event into the parent run's stream. */\n emitStreamEvent?(event: ToolCallStreamEvent): void | Promise<void>;\n /** Aborted when the run is cancelled or the stream consumer leaves. */\n abortSignal?: AbortSignal | undefined;\n};\n\n/**\n * A model-callable tool. `definition` builds the model-facing JSON description,\n * `call` executes it, and the optional `parseInput` converts raw model-supplied\n * JSON arguments into the typed `Args` before `call` runs.\n */\nexport interface Tool<Args = unknown, Output = unknown> {\n readonly name: string;\n readonly requiresApproval?: ToolRequiresApproval<Args>;\n definition(prompt: string): ToolDefinition | Promise<ToolDefinition>;\n call(args: Args, context?: ToolCallContext): Output | Promise<Output>;\n parseInput?(args: JsonValue): Args;\n}\n\n/** A tool with its argument and output types erased, e.g. as stored in an agent's catalog. */\nexport type AnyTool = Omit<Tool<unknown, unknown>, \"requiresApproval\"> & {\n readonly requiresApproval?: unknown;\n};\n\nconst richToolOutput: unique symbol = Symbol.for(\"anvia.tool-output.content\");\n\n/**\n * A tool result carrying mixed content parts (text, files), created with\n * {@link ToolOutput.content}. The brand symbol keeps plain objects from\n * impersonating rich outputs.\n */\nexport type RichToolOutput = Readonly<{\n [richToolOutput]: true;\n content: readonly ToolResultContentPart[];\n}>;\n\n/** Normalized tool result as stored in tool messages. */\nexport type NormalizedToolOutput = ToolResultOutput;\n\n/** Thrown when a tool returns a value that cannot be represented as a tool result. */\nexport class ToolResultSerializationError extends TypeError {\n constructor(readonly output: unknown) {\n super(\"Tool output must be a string, a strict JSON value, or ToolOutput.content(...).\");\n this.name = \"ToolResultSerializationError\";\n }\n}\n\n/** Helpers for building tool results. */\nexport const ToolOutput = {\n /** Wraps content parts so a tool can return text and files together. */\n content(content: readonly ToolResultContentPart[]): RichToolOutput {\n return { [richToolOutput]: true, content };\n },\n};\n\n/**\n * Coerces a tool's return value into a normalized result: strings become text,\n * rich outputs are validated, and strict JSON values become JSON results.\n * Anything else throws {@link ToolResultSerializationError}.\n */\nexport function normalizeToolResultOutput(output: unknown): NormalizedToolOutput {\n if (typeof output === \"string\") {\n return { type: \"text\", value: output };\n }\n if (isRichToolOutput(output)) {\n try {\n const message = parseMessage({\n role: \"tool\",\n content: [\n {\n type: \"tool-result\",\n toolCallId: \"validation\",\n toolName: \"validation\",\n output: { type: \"content\", value: output.content },\n },\n ],\n });\n if (message.role !== \"tool\") throw new TypeError(\"Unexpected message role\");\n const result = message.content[0];\n if (result?.type !== \"tool-result\") throw new TypeError(\"Unexpected tool result part\");\n if (result?.output.type !== \"content\") throw new TypeError(\"Unexpected tool output\");\n return result.output;\n } catch {\n throw new ToolResultSerializationError(output);\n }\n }\n if (isJsonValue(output)) {\n return { type: \"json\", value: output };\n }\n throw new ToolResultSerializationError(output);\n}\n\n/** Renders tool result content as text; file parts become `[file:<mediaType>]` placeholders. */\nexport function toolResultContentToText(content: readonly ToolResultContentPart[]): string {\n return content\n .map((item) => (item.type === \"text\" ? item.text : `[file:${item.mediaType}]`))\n .join(\"\\n\");\n}\n\nfunction isRichToolOutput(value: unknown): value is RichToolOutput {\n if (typeof value !== \"object\" || value === null) return false;\n return Object.getOwnPropertyDescriptor(value, richToolOutput)?.value === true;\n}\n\n/** Parses and JSON-validates the raw argument string supplied by the model. */\nexport function parseToolArgs(args: string): JsonValue {\n const value: unknown = JSON.parse(args);\n if (!isJsonValue(value)) {\n throw new TypeError(\"Tool arguments must be a JSON value.\");\n }\n return value;\n}\n"],"mappings":";;;;;;;;AAqFA,IAAM,iBAAgC,uBAAO,IAAI,2BAA2B;AAgBrE,IAAM,+BAAN,cAA2C,UAAU;AAAA,EAC1D,YAAqB,QAAiB;AACpC,UAAM,gFAAgF;AADnE;AAEnB,SAAK,OAAO;AAAA,EACd;AAAA,EAHqB;AAIvB;AAGO,IAAM,aAAa;AAAA;AAAA,EAExB,QAAQ,SAA2D;AACjE,WAAO,EAAE,CAAC,cAAc,GAAG,MAAM,QAAQ;AAAA,EAC3C;AACF;AAOO,SAAS,0BAA0B,QAAuC;AAC/E,MAAI,OAAO,WAAW,UAAU;AAC9B,WAAO,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,EACvC;AACA,MAAI,iBAAiB,MAAM,GAAG;AAC5B,QAAI;AACF,YAAM,UAAU,aAAa;AAAA,QAC3B,MAAM;AAAA,QACN,SAAS;AAAA,UACP;AAAA,YACE,MAAM;AAAA,YACN,YAAY;AAAA,YACZ,UAAU;AAAA,YACV,QAAQ,EAAE,MAAM,WAAW,OAAO,OAAO,QAAQ;AAAA,UACnD;AAAA,QACF;AAAA,MACF,CAAC;AACD,UAAI,QAAQ,SAAS,OAAQ,OAAM,IAAI,UAAU,yBAAyB;AAC1E,YAAM,SAAS,QAAQ,QAAQ,CAAC;AAChC,UAAI,QAAQ,SAAS,cAAe,OAAM,IAAI,UAAU,6BAA6B;AACrF,UAAI,QAAQ,OAAO,SAAS,UAAW,OAAM,IAAI,UAAU,wBAAwB;AACnF,aAAO,OAAO;AAAA,IAChB,QAAQ;AACN,YAAM,IAAI,6BAA6B,MAAM;AAAA,IAC/C;AAAA,EACF;AACA,MAAI,YAAY,MAAM,GAAG;AACvB,WAAO,EAAE,MAAM,QAAQ,OAAO,OAAO;AAAA,EACvC;AACA,QAAM,IAAI,6BAA6B,MAAM;AAC/C;AAGO,SAAS,wBAAwB,SAAmD;AACzF,SAAO,QACJ,IAAI,CAAC,SAAU,KAAK,SAAS,SAAS,KAAK,OAAO,SAAS,KAAK,SAAS,GAAI,EAC7E,KAAK,IAAI;AACd;AAEA,SAAS,iBAAiB,OAAyC;AACjE,MAAI,OAAO,UAAU,YAAY,UAAU,KAAM,QAAO;AACxD,SAAO,OAAO,yBAAyB,OAAO,cAAc,GAAG,UAAU;AAC3E;AAGO,SAAS,cAAc,MAAyB;AACrD,QAAM,QAAiB,KAAK,MAAM,IAAI;AACtC,MAAI,CAAC,YAAY,KAAK,GAAG;AACvB,UAAM,IAAI,UAAU,sCAAsC;AAAA,EAC5D;AACA,SAAO;AACT;","names":[]}
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-X6WS3XWL.js";
|
|
4
4
|
import {
|
|
5
5
|
TeamRun
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NWCJXAE5.js";
|
|
7
7
|
import {
|
|
8
8
|
TeamStream
|
|
9
9
|
} from "./chunk-3TAQXJBC.js";
|
|
10
10
|
import {
|
|
11
11
|
Agent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3BYFZYEV.js";
|
|
13
13
|
import {
|
|
14
14
|
assertPositiveSafeInteger
|
|
15
15
|
} from "./chunk-NPJ2T3L5.js";
|
|
@@ -104,4 +104,4 @@ var AgentTeam = class {
|
|
|
104
104
|
export {
|
|
105
105
|
AgentTeam
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-WBXRVW5I.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeToolResultOutput,
|
|
3
|
-
parseToolArgs
|
|
4
|
-
} from "./chunk-SCFWN3T2.js";
|
|
5
1
|
import {
|
|
6
2
|
ToolCallError,
|
|
7
3
|
ToolJsonError
|
|
8
4
|
} from "./chunk-J6S6MT7O.js";
|
|
5
|
+
import {
|
|
6
|
+
normalizeToolResultOutput,
|
|
7
|
+
parseToolArgs
|
|
8
|
+
} from "./chunk-VHPT2C4P.js";
|
|
9
9
|
|
|
10
10
|
// src/internal/agent-runtime/prepared-tool-call.ts
|
|
11
11
|
var preparedToolInputSymbol = /* @__PURE__ */ Symbol("preparedToolInput");
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
prepareToolCall,
|
|
91
91
|
prepareToolCallFromInput
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-WCJRGYF7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryVectorStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MYHGOXHQ.js";
|
|
4
4
|
import {
|
|
5
5
|
retrieveDocuments
|
|
6
6
|
} from "./chunk-CB2L2NIQ.js";
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
createToolIndex,
|
|
109
109
|
isToolIndex
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-XH2CVR4V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JU3RX364.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/think-tool.ts
|
|
6
6
|
import { z } from "zod";
|
|
@@ -21,4 +21,4 @@ function createThinkTool(options = {}) {
|
|
|
21
21
|
export {
|
|
22
22
|
createThinkTool
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-ZMAF3I4H.js.map
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
generateCompletion,
|
|
4
4
|
isStreamingCompletionModel,
|
|
5
5
|
streamCompletion
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-LGPXCJJO.js";
|
|
7
7
|
import "../chunk-57AUTEQ6.js";
|
|
8
8
|
import "../chunk-6OO5C5GW.js";
|
|
9
9
|
import "../chunk-GSVOMQEE.js";
|
|
10
10
|
import "../chunk-4ONUNWGC.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-MIPBH5S7.js";
|
|
12
12
|
import "../chunk-XQV3XNVT.js";
|
|
13
13
|
import "../chunk-HJ6KTQTZ.js";
|
|
14
14
|
import "../chunk-BONQTXRQ.js";
|
package/dist/completion/index.js
CHANGED
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
generateCompletion,
|
|
14
14
|
isStreamingCompletionModel,
|
|
15
15
|
streamCompletion
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-LGPXCJJO.js";
|
|
17
17
|
import "../chunk-57AUTEQ6.js";
|
|
18
18
|
import "../chunk-6OO5C5GW.js";
|
|
19
19
|
import "../chunk-GSVOMQEE.js";
|
|
20
20
|
import "../chunk-4ONUNWGC.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-MIPBH5S7.js";
|
|
22
22
|
import {
|
|
23
23
|
COMPLETION_PROVIDER_OUTPUT_ERROR_CODE,
|
|
24
24
|
CompletionProviderOutputError
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
2
2
|
import { B as ToolDefinition } from './types-DYqZKDA8.js';
|
|
3
3
|
import { V as VectorMetadata, E as EmbeddingModel, a as EmbeddedDocument } from './types-Cr4uiYo5.js';
|
|
4
|
-
import { A as AnyTool } from './tool-
|
|
4
|
+
import { A as AnyTool } from './tool-W1cAPuRF.js';
|
|
5
5
|
import { V as VectorFilter, a as VectorSearchResult, b as VectorInspectRequest, c as VectorInspectPage } from './types-ChyQISt-.js';
|
|
6
6
|
|
|
7
7
|
type ToolSearchDocument<Metadata extends VectorMetadata = VectorMetadata> = {
|
|
@@ -9,23 +9,23 @@ import {
|
|
|
9
9
|
promptAlignment,
|
|
10
10
|
summarization,
|
|
11
11
|
turnRelevancy
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-GI6APIEU.js";
|
|
13
|
+
import "../chunk-V5KBSXAJ.js";
|
|
14
14
|
import "../chunk-ZPXOBQDS.js";
|
|
15
15
|
import "../chunk-3P3YVJ7V.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-VCOGUS3Q.js";
|
|
17
17
|
import "../chunk-ZYXMWEL4.js";
|
|
18
18
|
import "../chunk-EJR6VVB3.js";
|
|
19
19
|
import "../chunk-TP3MCUXS.js";
|
|
20
20
|
import "../chunk-6RQYWZI3.js";
|
|
21
21
|
import "../chunk-NF6WBPFG.js";
|
|
22
22
|
import "../chunk-4FIVU53H.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-LGPXCJJO.js";
|
|
24
24
|
import "../chunk-57AUTEQ6.js";
|
|
25
25
|
import "../chunk-6OO5C5GW.js";
|
|
26
26
|
import "../chunk-GSVOMQEE.js";
|
|
27
27
|
import "../chunk-4ONUNWGC.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-MIPBH5S7.js";
|
|
29
29
|
import "../chunk-XQV3XNVT.js";
|
|
30
30
|
import "../chunk-HJ6KTQTZ.js";
|
|
31
31
|
import "../chunk-BONQTXRQ.js";
|
package/dist/evals/cli.js
CHANGED
|
@@ -16,12 +16,12 @@ import "../chunk-4OSA3MMA.js";
|
|
|
16
16
|
import "../chunk-TP3MCUXS.js";
|
|
17
17
|
import "../chunk-6RQYWZI3.js";
|
|
18
18
|
import "../chunk-NF6WBPFG.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-LGPXCJJO.js";
|
|
20
20
|
import "../chunk-57AUTEQ6.js";
|
|
21
21
|
import "../chunk-6OO5C5GW.js";
|
|
22
22
|
import "../chunk-GSVOMQEE.js";
|
|
23
23
|
import "../chunk-4ONUNWGC.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-MIPBH5S7.js";
|
|
25
25
|
import "../chunk-XQV3XNVT.js";
|
|
26
26
|
import "../chunk-HJ6KTQTZ.js";
|
|
27
27
|
import "../chunk-BONQTXRQ.js";
|
package/dist/evals/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { U as Usage, J as JsonObject, d as CompletionModel, M as Message } from '../types-DYqZKDA8.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
|
-
import { Z as AgentRunPromptRef, g as AgentInteractionOutcome, n as AgentResponse, o as AgentRunOptions, l as AgentOutcome } from '../middleware-
|
|
3
|
+
import { Z as AgentRunPromptRef, g as AgentInteractionOutcome, n as AgentResponse, o as AgentRunOptions, l as AgentOutcome } from '../middleware-BNxyEpUX.js';
|
|
4
4
|
import { AgentInteractionRequest, AgentInteractionResponse } from '../agent/interactions/index.js';
|
|
5
5
|
import { E as EmbeddingModel } from '../types-Cr4uiYo5.js';
|
|
6
6
|
import '../model-call-options-CZkSw_xN.js';
|
|
@@ -8,7 +8,7 @@ import 'zod';
|
|
|
8
8
|
import '../types-CqiX-4_C.js';
|
|
9
9
|
import '../retry-CjvSlKGW.js';
|
|
10
10
|
import '../types-B8KBVXuH.js';
|
|
11
|
-
import '../tool-
|
|
11
|
+
import '../tool-W1cAPuRF.js';
|
|
12
12
|
|
|
13
13
|
type EvalOutcomeOptions = {
|
|
14
14
|
comment?: string | undefined;
|
package/dist/evals/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
notContains,
|
|
20
20
|
requiredFields,
|
|
21
21
|
semanticSimilarity
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-F5BPVVC2.js";
|
|
23
23
|
import {
|
|
24
24
|
abstention,
|
|
25
25
|
answerRelevancy,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
promptAlignment,
|
|
32
32
|
summarization,
|
|
33
33
|
turnRelevancy
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-GI6APIEU.js";
|
|
35
|
+
import "../chunk-V5KBSXAJ.js";
|
|
36
36
|
import {
|
|
37
37
|
selectEvalCaseIds,
|
|
38
38
|
selectPromptOutput
|
|
39
39
|
} from "../chunk-ZPXOBQDS.js";
|
|
40
40
|
import "../chunk-3P3YVJ7V.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-VCOGUS3Q.js";
|
|
42
42
|
import {
|
|
43
43
|
AgentEvalSuspensionError,
|
|
44
44
|
agentEvalTarget
|
|
@@ -79,12 +79,12 @@ import "../chunk-7F53DOML.js";
|
|
|
79
79
|
import "../chunk-YCTXTOOQ.js";
|
|
80
80
|
import "../chunk-DU4WA6LQ.js";
|
|
81
81
|
import "../chunk-4FIVU53H.js";
|
|
82
|
-
import "../chunk-
|
|
82
|
+
import "../chunk-LGPXCJJO.js";
|
|
83
83
|
import "../chunk-57AUTEQ6.js";
|
|
84
84
|
import "../chunk-6OO5C5GW.js";
|
|
85
85
|
import "../chunk-GSVOMQEE.js";
|
|
86
86
|
import "../chunk-4ONUNWGC.js";
|
|
87
|
-
import "../chunk-
|
|
87
|
+
import "../chunk-MIPBH5S7.js";
|
|
88
88
|
import "../chunk-XQV3XNVT.js";
|
|
89
89
|
import "../chunk-HJ6KTQTZ.js";
|
|
90
90
|
import "../chunk-BONQTXRQ.js";
|
package/dist/evals/judge.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
addUsage,
|
|
3
3
|
evaluationMetadata,
|
|
4
4
|
runJudge
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-V5KBSXAJ.js";
|
|
6
6
|
import "../chunk-3P3YVJ7V.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-VCOGUS3Q.js";
|
|
8
8
|
import "../chunk-TP3MCUXS.js";
|
|
9
9
|
import "../chunk-6RQYWZI3.js";
|
|
10
10
|
import "../chunk-NF6WBPFG.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-LGPXCJJO.js";
|
|
12
12
|
import "../chunk-57AUTEQ6.js";
|
|
13
13
|
import "../chunk-6OO5C5GW.js";
|
|
14
14
|
import "../chunk-GSVOMQEE.js";
|
|
15
15
|
import "../chunk-4ONUNWGC.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-MIPBH5S7.js";
|
|
17
17
|
import "../chunk-XQV3XNVT.js";
|
|
18
18
|
import "../chunk-HJ6KTQTZ.js";
|
|
19
19
|
import "../chunk-BONQTXRQ.js";
|
package/dist/evals/metrics.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
notContains,
|
|
12
12
|
requiredFields,
|
|
13
13
|
semanticSimilarity
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-F5BPVVC2.js";
|
|
15
15
|
import "../chunk-ZPXOBQDS.js";
|
|
16
16
|
import "../chunk-3P3YVJ7V.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-VCOGUS3Q.js";
|
|
18
18
|
import "../chunk-ZYXMWEL4.js";
|
|
19
19
|
import "../chunk-EJR6VVB3.js";
|
|
20
20
|
import "../chunk-TP3MCUXS.js";
|
|
@@ -25,12 +25,12 @@ import "../chunk-7F53DOML.js";
|
|
|
25
25
|
import "../chunk-YCTXTOOQ.js";
|
|
26
26
|
import "../chunk-DU4WA6LQ.js";
|
|
27
27
|
import "../chunk-4FIVU53H.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-LGPXCJJO.js";
|
|
29
29
|
import "../chunk-57AUTEQ6.js";
|
|
30
30
|
import "../chunk-6OO5C5GW.js";
|
|
31
31
|
import "../chunk-GSVOMQEE.js";
|
|
32
32
|
import "../chunk-4ONUNWGC.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-MIPBH5S7.js";
|
|
34
34
|
import "../chunk-XQV3XNVT.js";
|
|
35
35
|
import "../chunk-HJ6KTQTZ.js";
|
|
36
36
|
import "../chunk-BONQTXRQ.js";
|
package/dist/evals/runner.js
CHANGED
|
@@ -10,12 +10,12 @@ import "../chunk-4OSA3MMA.js";
|
|
|
10
10
|
import "../chunk-TP3MCUXS.js";
|
|
11
11
|
import "../chunk-6RQYWZI3.js";
|
|
12
12
|
import "../chunk-NF6WBPFG.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-LGPXCJJO.js";
|
|
14
14
|
import "../chunk-57AUTEQ6.js";
|
|
15
15
|
import "../chunk-6OO5C5GW.js";
|
|
16
16
|
import "../chunk-GSVOMQEE.js";
|
|
17
17
|
import "../chunk-4ONUNWGC.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-MIPBH5S7.js";
|
|
19
19
|
import "../chunk-XQV3XNVT.js";
|
|
20
20
|
import "../chunk-HJ6KTQTZ.js";
|
|
21
21
|
import "../chunk-BONQTXRQ.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractionError,
|
|
3
3
|
extract
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VCOGUS3Q.js";
|
|
5
5
|
import "../chunk-TP3MCUXS.js";
|
|
6
6
|
import "../chunk-6RQYWZI3.js";
|
|
7
7
|
import "../chunk-NF6WBPFG.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-LGPXCJJO.js";
|
|
9
9
|
import "../chunk-57AUTEQ6.js";
|
|
10
10
|
import "../chunk-6OO5C5GW.js";
|
|
11
11
|
import "../chunk-GSVOMQEE.js";
|
|
12
12
|
import "../chunk-4ONUNWGC.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-MIPBH5S7.js";
|
|
14
14
|
import "../chunk-XQV3XNVT.js";
|
|
15
15
|
import "../chunk-HJ6KTQTZ.js";
|
|
16
16
|
import "../chunk-BONQTXRQ.js";
|
package/dist/extractor/index.js
CHANGED
|
@@ -2,16 +2,16 @@ import "../chunk-3P3YVJ7V.js";
|
|
|
2
2
|
import {
|
|
3
3
|
ExtractionError,
|
|
4
4
|
extract
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-VCOGUS3Q.js";
|
|
6
6
|
import "../chunk-TP3MCUXS.js";
|
|
7
7
|
import "../chunk-6RQYWZI3.js";
|
|
8
8
|
import "../chunk-NF6WBPFG.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-LGPXCJJO.js";
|
|
10
10
|
import "../chunk-57AUTEQ6.js";
|
|
11
11
|
import "../chunk-6OO5C5GW.js";
|
|
12
12
|
import "../chunk-GSVOMQEE.js";
|
|
13
13
|
import "../chunk-4ONUNWGC.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-MIPBH5S7.js";
|
|
15
15
|
import "../chunk-XQV3XNVT.js";
|
|
16
16
|
import "../chunk-HJ6KTQTZ.js";
|
|
17
17
|
import "../chunk-BONQTXRQ.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-BOoZ3jbr.js';
|
|
2
2
|
export { AgentRunBlockedError, AgentRunCancelledError, AgentStreamClosedError, AgentStructuredOutputError, AgentStructuredOutputFormat, AgentStructuredOutputPhase, AgentTeam, AgentTeamEvent, AgentTeamInteraction, AgentTeamInteractionError, AgentTeamLimitError, AgentTeamLimits, AgentTeamMember, AgentTeamMemberStatus, AgentTeamMemberSummary, AgentTeamMessage, AgentTeamOptions, AgentTeamOutcome, AgentTeamRunOptions, AgentTeamSpawnRule, AgentTeamStream, AgentToolSuspensionError, MaxTurnsError } from './agent/index.js';
|
|
3
|
-
export { A as AgentBlockedOutcome, a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, g as AgentInteractionOutcome, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, k as AgentMiddleware, l as AgentOutcome, m as AgentPrompt, n as AgentResponse, o as AgentRunOptions, p as AgentRunSettings, q as AgentStartEvent, r as AgentSteerInput, s as AgentSteerReceipt, t as AgentStepFinishEvent, u as AgentStream, v as AgentStreamEvent, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent, C as CompletionRequestMiddlewareArgs, z as CompletionRequestMiddlewareResult, B as CompletionResponseMiddlewareArgs, D as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, E as ToolInputMiddlewareResult, F as ToolOutputMiddlewareArgs, G as ToolOutputMiddlewareResult, H as ToolResultMiddlewareArgs, I as createMiddleware } from './middleware-
|
|
3
|
+
export { A as AgentBlockedOutcome, a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, g as AgentInteractionOutcome, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, k as AgentMiddleware, l as AgentOutcome, m as AgentPrompt, n as AgentResponse, o as AgentRunOptions, p as AgentRunSettings, q as AgentStartEvent, r as AgentSteerInput, s as AgentSteerReceipt, t as AgentStepFinishEvent, u as AgentStream, v as AgentStreamEvent, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent, C as CompletionRequestMiddlewareArgs, z as CompletionRequestMiddlewareResult, B as CompletionResponseMiddlewareArgs, D as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, E as ToolInputMiddlewareResult, F as ToolOutputMiddlewareArgs, G as ToolOutputMiddlewareResult, H as ToolResultMiddlewareArgs, I as createMiddleware } from './middleware-BNxyEpUX.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
6
|
export { C as COMPLETION_PROVIDER_OUTPUT_ERROR_CODE, a as CompletionBaseOptions, b as CompletionInput, c as CompletionProviderOutputError, d as CompletionProviderOutputErrorKind, e as CompletionProviderOutputErrorOptions, f as CompletionStructuredOutputError, g as CompletionStructuredOutputPhase, G as GenerateCompletionOptions, h as GenerateStructuredCompletionOptions, M as MessageMetadataSchema, R as REASONING_EFFORT_CONTROL_ID, i as ReasoningEffortControls, S as StandardJSONSchemaV1, j as StandardSchemaV1, k as StreamCompletionOptions, l as StreamStructuredCompletionOptions, m as createMessageSchema, n as defineCompletionModelControls, o as generateCompletion, p as isJsonValue, q as isMessage, r as isStandardSchema, s as messageSchema, t as messagesSchema, u as parseMessage, v as parseMessages, w as streamCompletion } from './provider-output-error-CQD0MWey.js';
|
|
@@ -12,14 +12,14 @@ export { MemoryCompactionConflictError, MemoryCompactionError, createMemoryScope
|
|
|
12
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 MemoryCompactionResult, l as MemoryCompactionRetention, m as MemoryCompactionSnapshot, n as MemoryCompactionSnapshotOptions, o as MemoryCompactor, p as MemoryCompactorInput, q as MemoryCompactorResult, r as MemoryConversation, s as MemoryConversationGetOptions, t as MemoryConversationListOptions, u as MemoryConversationMessage, v as MemoryConversationSummary, w as MemoryErrorOptions, x as MemoryInspector, y as MemoryLoadOptions, z as MemoryOptions, A as MemorySavePolicy, B as MemoryScope, D as MemoryScopeKeyOptions, E as MemoryScopeKeyResolver, F as MemoryStore, G as MemoryTokenCounter } from './types-B8KBVXuH.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-CIG2loIE.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-
|
|
17
|
+
export { C as CreateToolOptions, c as createQuestionTool, a as createThinkTool, b as createTool } from './think-tool-DJbtUDZm.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-W1cAPuRF.js';
|
|
19
19
|
export { TranscribeOptions, TranscriptionAudio, TranscriptionModel, TranscriptionRequest, TranscriptionResult, transcribe } from './transcription/index.js';
|
|
20
|
-
import './types-
|
|
20
|
+
import './types-94Q2mPRa.js';
|
|
21
21
|
import './agent/interactions/index.js';
|
|
22
22
|
import 'zod';
|
|
23
|
-
import './dynamic-tools-
|
|
23
|
+
import './dynamic-tools-B3OjYyhC.js';
|
|
24
24
|
import './types-Cr4uiYo5.js';
|
|
25
25
|
import './types-ChyQISt-.js';
|