@anvia/core 0.18.0 → 0.21.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 +5 -13
- package/dist/agent/index.js +7 -7
- package/dist/{agent-CBz3CRxa.d.ts → agent-Q7FT1xmG.d.ts} +2 -22
- package/dist/{chunk-7LCKIULT.js → chunk-3IYTCGHS.js} +5 -33
- package/dist/chunk-3IYTCGHS.js.map +1 -0
- package/dist/{chunk-JNJBKSLA.js → chunk-6X2UTX3L.js} +5 -9
- package/dist/{chunk-JNJBKSLA.js.map → chunk-6X2UTX3L.js.map} +1 -1
- package/dist/{chunk-I7TM7TKX.js → chunk-MELYDKWQ.js} +5 -5
- package/dist/{chunk-YBBD4HZ3.js → chunk-MNWK2USR.js} +119 -15
- package/dist/chunk-MNWK2USR.js.map +1 -0
- package/dist/{chunk-QABIBFKE.js → chunk-N3YV3WCO.js} +5 -10
- package/dist/chunk-N3YV3WCO.js.map +1 -0
- package/dist/{chunk-DC2GJDPR.js → chunk-NCPN4SJR.js} +2 -2
- package/dist/{chunk-DPTZ2MK4.js → chunk-WHAPIIEZ.js} +3 -15
- package/dist/chunk-WHAPIIEZ.js.map +1 -0
- package/dist/{chunk-3YJXLOGO.js → chunk-ZSTUMG7G.js} +4 -4
- package/dist/embeddings/index.d.ts +6 -3
- package/dist/embeddings/index.js +7 -1
- package/dist/evals/index.d.ts +4 -4
- package/dist/evals/index.js +11 -11
- package/dist/extractor/index.d.ts +4 -4
- package/dist/extractor/index.js +8 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -11
- package/dist/internal/agent.d.ts +4 -4
- package/dist/internal/agent.js +6 -6
- package/dist/{middleware-Cp0tm6zE.d.ts → middleware-DfMc30in.d.ts} +3 -15
- package/dist/pipeline/index.d.ts +4 -4
- package/dist/request/index.d.ts +4 -4
- package/dist/request/index.js +5 -5
- package/dist/skills/index.js +5 -5
- package/dist/tool/index.d.ts +3 -3
- package/dist/tool/index.js +4 -6
- package/dist/types-BCTRUGex.d.ts +47 -0
- package/dist/{types-DMGvEFRf.d.ts → types-BrxxAtcJ.d.ts} +1 -1
- package/dist/ui/index.d.ts +6 -1
- package/dist/vector-store/index.d.ts +3 -3
- package/dist/vector-store/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-7LCKIULT.js.map +0 -1
- package/dist/chunk-DPTZ2MK4.js.map +0 -1
- package/dist/chunk-QABIBFKE.js.map +0 -1
- package/dist/chunk-YBBD4HZ3.js.map +0 -1
- package/dist/types-DHHZztGO.d.ts +0 -25
- /package/dist/{chunk-I7TM7TKX.js.map → chunk-MELYDKWQ.js.map} +0 -0
- /package/dist/{chunk-DC2GJDPR.js.map → chunk-NCPN4SJR.js.map} +0 -0
- /package/dist/{chunk-3YJXLOGO.js.map → chunk-ZSTUMG7G.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Agent } from '../agent-
|
|
1
|
+
import { A as Agent } from '../agent-Q7FT1xmG.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
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';
|
|
@@ -6,9 +6,9 @@ import '../types-BCA8p0sb.js';
|
|
|
6
6
|
import '../types-DBHzPsbx.js';
|
|
7
7
|
import '../index-XTUEMWhU.js';
|
|
8
8
|
import '../tool-Dhwg__1L.js';
|
|
9
|
-
import '../middleware-
|
|
10
|
-
import '../types-
|
|
11
|
-
import '../types-
|
|
9
|
+
import '../middleware-DfMc30in.js';
|
|
10
|
+
import '../types-BCTRUGex.js';
|
|
11
|
+
import '../types-BrxxAtcJ.js';
|
|
12
12
|
import 'zod';
|
|
13
13
|
|
|
14
14
|
type ExtractionResponse<T> = {
|
package/dist/extractor/index.js
CHANGED
|
@@ -2,23 +2,23 @@ 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-ZSTUMG7G.js";
|
|
6
|
+
import "../chunk-WHAPIIEZ.js";
|
|
7
|
+
import "../chunk-N3YV3WCO.js";
|
|
8
|
+
import "../chunk-3IYTCGHS.js";
|
|
9
9
|
import "../chunk-YK4WAAS4.js";
|
|
10
10
|
import "../chunk-XUUY2L2D.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-6X2UTX3L.js";
|
|
12
|
+
import "../chunk-MELYDKWQ.js";
|
|
13
13
|
import "../chunk-2ODTMRHP.js";
|
|
14
14
|
import "../chunk-ZNTIUOKL.js";
|
|
15
15
|
import "../chunk-TGLNXVII.js";
|
|
16
|
+
import "../chunk-MNWK2USR.js";
|
|
17
|
+
import "../chunk-OIMLU4SF.js";
|
|
16
18
|
import "../chunk-MTGNA4OS.js";
|
|
17
19
|
import "../chunk-F56AMXMQ.js";
|
|
18
20
|
import "../chunk-PJDL5UT2.js";
|
|
19
21
|
import "../chunk-WQKHFADH.js";
|
|
20
|
-
import "../chunk-YBBD4HZ3.js";
|
|
21
|
-
import "../chunk-OIMLU4SF.js";
|
|
22
22
|
import "../chunk-CWUJUSOS.js";
|
|
23
23
|
export {
|
|
24
24
|
ExtractionError,
|
package/dist/index.d.ts
CHANGED
|
@@ -6,20 +6,20 @@ export { cancelPrompt, createHook, requestToolApproval, runControl, skipTool, to
|
|
|
6
6
|
export { M as MemoryCompactionConflictError, a as MemoryCompactionError, c as createSummaryMemoryCompactor, i as isMemoryCompactionSummary } from './errors-Bf661V89.js';
|
|
7
7
|
export { M as MemoryCompactionCommitInput, a as MemoryCompactionCommitResult, b as MemoryCompactionOptions, c as MemoryCompactionSnapshot, d as MemoryCompactionStore, e as MemoryCompactor, f as MemoryCompactorInput, g as MemoryCompactorResult, h as MemoryConversation, i as MemoryConversationListOptions, j as MemoryConversationMessage, k as MemoryConversationSummary, l as MemoryInspector, m as MemoryStore, R as ResolvedMemoryCompactionOptions, S as SummaryMemoryCompactorOptions } from './types-DBHzPsbx.js';
|
|
8
8
|
export { MaxTurnsError, PromptCancelledError, ToolApprovalRequiredError } from './request/index.js';
|
|
9
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-
|
|
9
|
+
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-Q7FT1xmG.js';
|
|
10
10
|
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';
|
|
11
11
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
12
12
|
export { loadSkills, skill } from './skills/index.js';
|
|
13
13
|
export { S as SkillValidationError } from './types-fBv8mhvP.js';
|
|
14
14
|
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-CpCKo8Q8.js';
|
|
15
15
|
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';
|
|
16
|
-
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as
|
|
17
|
-
export { CreateUIAttachment, UIAttachment, UIError, UIMessage, UIMessagePart, UIMessageRole, UIStreamEvent, UIStreamRequest, coreMessagesToUIMessages, uiMessagesToCoreMessages } from './ui/index.js';
|
|
16
|
+
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-DfMc30in.js';
|
|
17
|
+
export { CreateUIAttachment, UIAttachment, UIError, UIMessage, UIMessagePart, UIMessageRole, UIStreamEvent, UIStreamRequest, UIStreamResume, coreMessagesToUIMessages, uiMessagesToCoreMessages } from './ui/index.js';
|
|
18
18
|
import './types-BCA8p0sb.js';
|
|
19
19
|
import './types-BBEf34DP.js';
|
|
20
20
|
import '@modelcontextprotocol/sdk/client/sse.js';
|
|
21
21
|
import '@modelcontextprotocol/sdk/client/stdio.js';
|
|
22
22
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
23
|
-
import './types-
|
|
24
|
-
import './types-
|
|
23
|
+
import './types-BrxxAtcJ.js';
|
|
24
|
+
import './types-BCTRUGex.js';
|
|
25
25
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
SkillValidationError,
|
|
3
3
|
loadSkills,
|
|
4
4
|
skill
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NCPN4SJR.js";
|
|
6
6
|
import {
|
|
7
7
|
coreMessagesToUIMessages,
|
|
8
8
|
uiMessagesToCoreMessages
|
|
@@ -11,23 +11,22 @@ import "./chunk-CQNNSZPG.js";
|
|
|
11
11
|
import "./chunk-XWUC7CIT.js";
|
|
12
12
|
import {
|
|
13
13
|
AgentBuilder
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-WHAPIIEZ.js";
|
|
15
|
+
import "./chunk-N3YV3WCO.js";
|
|
16
16
|
import {
|
|
17
17
|
MaxTurnsError,
|
|
18
18
|
PromptCancelledError,
|
|
19
19
|
ToolApprovalRequiredError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3IYTCGHS.js";
|
|
21
21
|
import "./chunk-YK4WAAS4.js";
|
|
22
22
|
import "./chunk-XUUY2L2D.js";
|
|
23
23
|
import {
|
|
24
24
|
createMiddleware,
|
|
25
|
-
createThinkTool
|
|
26
|
-
|
|
27
|
-
} from "./chunk-JNJBKSLA.js";
|
|
25
|
+
createThinkTool
|
|
26
|
+
} from "./chunk-6X2UTX3L.js";
|
|
28
27
|
import {
|
|
29
28
|
createTool
|
|
30
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MELYDKWQ.js";
|
|
31
30
|
import {
|
|
32
31
|
cancelPrompt,
|
|
33
32
|
createHook,
|
|
@@ -43,6 +42,8 @@ import {
|
|
|
43
42
|
createSummaryMemoryCompactor,
|
|
44
43
|
isMemoryCompactionSummary
|
|
45
44
|
} from "./chunk-TGLNXVII.js";
|
|
45
|
+
import "./chunk-MNWK2USR.js";
|
|
46
|
+
import "./chunk-OIMLU4SF.js";
|
|
46
47
|
import "./chunk-MTGNA4OS.js";
|
|
47
48
|
import {
|
|
48
49
|
createCompletion,
|
|
@@ -60,8 +61,6 @@ import {
|
|
|
60
61
|
isProviderTool
|
|
61
62
|
} from "./chunk-PJDL5UT2.js";
|
|
62
63
|
import "./chunk-WQKHFADH.js";
|
|
63
|
-
import "./chunk-YBBD4HZ3.js";
|
|
64
|
-
import "./chunk-OIMLU4SF.js";
|
|
65
64
|
import {
|
|
66
65
|
allow,
|
|
67
66
|
block,
|
|
@@ -95,7 +94,6 @@ export {
|
|
|
95
94
|
createSummaryMemoryCompactor,
|
|
96
95
|
createThinkTool,
|
|
97
96
|
createTool,
|
|
98
|
-
createToolMiddleware,
|
|
99
97
|
defineGuardrailPolicy,
|
|
100
98
|
defineInputGuardrail,
|
|
101
99
|
defineOutputGuardrail,
|
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-
|
|
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-Q7FT1xmG.js';
|
|
2
2
|
import '../types-XjIh933x.js';
|
|
3
3
|
import '../guardrails/index.js';
|
|
4
4
|
import '../types-BCA8p0sb.js';
|
|
5
5
|
import '../types-DBHzPsbx.js';
|
|
6
6
|
import '../index-XTUEMWhU.js';
|
|
7
7
|
import '../tool-Dhwg__1L.js';
|
|
8
|
-
import '../middleware-
|
|
9
|
-
import '../types-
|
|
10
|
-
import '../types-
|
|
8
|
+
import '../middleware-DfMc30in.js';
|
|
9
|
+
import '../types-BCTRUGex.js';
|
|
10
|
+
import '../types-BrxxAtcJ.js';
|
package/dist/internal/agent.js
CHANGED
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
Agent,
|
|
3
3
|
AgentSession,
|
|
4
4
|
DEFAULT_MAX_TURNS
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-N3YV3WCO.js";
|
|
6
|
+
import "../chunk-3IYTCGHS.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
8
|
import "../chunk-XUUY2L2D.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-6X2UTX3L.js";
|
|
10
|
+
import "../chunk-MELYDKWQ.js";
|
|
11
11
|
import "../chunk-2ODTMRHP.js";
|
|
12
12
|
import "../chunk-TGLNXVII.js";
|
|
13
|
+
import "../chunk-MNWK2USR.js";
|
|
14
|
+
import "../chunk-OIMLU4SF.js";
|
|
13
15
|
import "../chunk-MTGNA4OS.js";
|
|
14
16
|
import "../chunk-F56AMXMQ.js";
|
|
15
17
|
import "../chunk-PJDL5UT2.js";
|
|
16
18
|
import "../chunk-WQKHFADH.js";
|
|
17
|
-
import "../chunk-YBBD4HZ3.js";
|
|
18
|
-
import "../chunk-OIMLU4SF.js";
|
|
19
19
|
import "../chunk-CWUJUSOS.js";
|
|
20
20
|
export {
|
|
21
21
|
Agent,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ToolDefinition, d as CompletionRequest, e as CompletionResponse, i as JsonValue, q as ToolResultContent } from './types-XjIh933x.js';
|
|
2
|
-
import { V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument } from './types-
|
|
2
|
+
import { V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument } from './types-BCTRUGex.js';
|
|
3
3
|
import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-Dhwg__1L.js';
|
|
4
|
-
import { a as VectorSearchIndex } from './types-
|
|
4
|
+
import { a as VectorSearchIndex } from './types-BrxxAtcJ.js';
|
|
5
5
|
|
|
6
6
|
declare class ToolSet {
|
|
7
7
|
private readonly tools;
|
|
@@ -84,19 +84,7 @@ interface AgentMiddleware<RawResponse = unknown> {
|
|
|
84
84
|
onCompletionResponse?(args: CompletionResponseMiddlewareArgs<RawResponse>): MaybePromise<CompletionResponseMiddlewareResult<RawResponse>>;
|
|
85
85
|
onToolInput?(args: ToolInputMiddlewareArgs): MaybePromise<ToolInputMiddlewareResult>;
|
|
86
86
|
onToolOutput?(args: ToolOutputMiddlewareArgs): MaybePromise<ToolOutputMiddlewareResult>;
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated Use `onToolOutput` instead.
|
|
89
|
-
*/
|
|
90
|
-
onResult?(args: ToolResultMiddlewareArgs): string | undefined | Promise<string | undefined>;
|
|
91
87
|
}
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Use `AgentMiddleware` instead.
|
|
94
|
-
*/
|
|
95
|
-
type ToolMiddleware<RawResponse = unknown> = AgentMiddleware<RawResponse>;
|
|
96
88
|
declare function createMiddleware<RawResponse = unknown>(middleware: AgentMiddleware<RawResponse>): AgentMiddleware<RawResponse>;
|
|
97
|
-
/**
|
|
98
|
-
* @deprecated Use `createMiddleware` instead.
|
|
99
|
-
*/
|
|
100
|
-
declare function createToolMiddleware<RawResponse = unknown>(middleware: ToolMiddleware<RawResponse>): ToolMiddleware<RawResponse>;
|
|
101
89
|
|
|
102
|
-
export { type AgentMiddleware as A, type CompletionRequestMiddlewareArgs as C, type DynamicToolIndex as D, type EmbedToolsOptions as E, type ToolInputMiddlewareArgs as T, type CompletionRequestMiddlewareResult as a, type CompletionResponseMiddlewareArgs as b, type CompletionResponseMiddlewareResult as c, type ToolInputMiddlewareResult as d, type
|
|
90
|
+
export { type AgentMiddleware as A, type CompletionRequestMiddlewareArgs as C, type DynamicToolIndex as D, type EmbedToolsOptions as E, type ToolInputMiddlewareArgs as T, type CompletionRequestMiddlewareResult as a, type CompletionResponseMiddlewareArgs as b, type CompletionResponseMiddlewareResult as c, type ToolInputMiddlewareResult as d, type ToolOutputMiddlewareArgs as e, type ToolOutputMiddlewareResult as f, type ToolResultMiddlewareArgs as g, createMiddleware as h, type ToolSearchDocument as i, ToolSet as j, createToolIndex as k, embedTools as l, isDynamicToolIndex as m };
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
2
|
+
import { A as Agent } from '../agent-Q7FT1xmG.js';
|
|
3
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';
|
|
@@ -7,9 +7,9 @@ import '../types-BCA8p0sb.js';
|
|
|
7
7
|
import '../types-DBHzPsbx.js';
|
|
8
8
|
import '../index-XTUEMWhU.js';
|
|
9
9
|
import '../tool-Dhwg__1L.js';
|
|
10
|
-
import '../middleware-
|
|
11
|
-
import '../types-
|
|
12
|
-
import '../types-
|
|
10
|
+
import '../middleware-DfMc30in.js';
|
|
11
|
+
import '../types-BCTRUGex.js';
|
|
12
|
+
import '../types-BrxxAtcJ.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
1
|
import { M as Message } from '../types-XjIh933x.js';
|
|
2
2
|
import { d as ToolApprovalRequest } from '../tool-Dhwg__1L.js';
|
|
3
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-
|
|
3
|
+
export { C as CompletionRetryContext, a as CompletionRetryOptions, P as PromptRequest } from '../agent-Q7FT1xmG.js';
|
|
4
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
6
|
import '../types-BCA8p0sb.js';
|
|
7
7
|
import '../types-DBHzPsbx.js';
|
|
8
|
-
import '../middleware-
|
|
9
|
-
import '../types-
|
|
10
|
-
import '../types-
|
|
8
|
+
import '../middleware-DfMc30in.js';
|
|
9
|
+
import '../types-BCTRUGex.js';
|
|
10
|
+
import '../types-BrxxAtcJ.js';
|
|
11
11
|
|
|
12
12
|
declare class MaxTurnsError extends Error {
|
|
13
13
|
readonly maxTurns: number;
|
package/dist/request/index.js
CHANGED
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
PromptCancelledError,
|
|
4
4
|
PromptRequest,
|
|
5
5
|
ToolApprovalRequiredError
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-3IYTCGHS.js";
|
|
7
7
|
import "../chunk-XUUY2L2D.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6X2UTX3L.js";
|
|
9
|
+
import "../chunk-MELYDKWQ.js";
|
|
10
10
|
import "../chunk-2ODTMRHP.js";
|
|
11
11
|
import "../chunk-TGLNXVII.js";
|
|
12
|
+
import "../chunk-MNWK2USR.js";
|
|
13
|
+
import "../chunk-OIMLU4SF.js";
|
|
12
14
|
import "../chunk-MTGNA4OS.js";
|
|
13
15
|
import "../chunk-F56AMXMQ.js";
|
|
14
16
|
import "../chunk-PJDL5UT2.js";
|
|
15
17
|
import "../chunk-WQKHFADH.js";
|
|
16
|
-
import "../chunk-YBBD4HZ3.js";
|
|
17
|
-
import "../chunk-OIMLU4SF.js";
|
|
18
18
|
import "../chunk-CWUJUSOS.js";
|
|
19
19
|
export {
|
|
20
20
|
MaxTurnsError,
|
package/dist/skills/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
SkillValidationError,
|
|
3
3
|
loadSkills,
|
|
4
4
|
skill
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-NCPN4SJR.js";
|
|
6
6
|
import "../chunk-CQNNSZPG.js";
|
|
7
7
|
import "../chunk-YK4WAAS4.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6X2UTX3L.js";
|
|
9
|
+
import "../chunk-MELYDKWQ.js";
|
|
10
|
+
import "../chunk-MNWK2USR.js";
|
|
11
|
+
import "../chunk-OIMLU4SF.js";
|
|
10
12
|
import "../chunk-PJDL5UT2.js";
|
|
11
13
|
import "../chunk-WQKHFADH.js";
|
|
12
|
-
import "../chunk-YBBD4HZ3.js";
|
|
13
|
-
import "../chunk-OIMLU4SF.js";
|
|
14
14
|
export {
|
|
15
15
|
SkillValidationError,
|
|
16
16
|
loadSkills,
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-CpCKo8Q8.js';
|
|
2
|
-
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, D as DynamicToolIndex, E as EmbedToolsOptions, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as
|
|
2
|
+
export { A as AgentMiddleware, C as CompletionRequestMiddlewareArgs, a as CompletionRequestMiddlewareResult, b as CompletionResponseMiddlewareArgs, c as CompletionResponseMiddlewareResult, D as DynamicToolIndex, E as EmbedToolsOptions, T as ToolInputMiddlewareArgs, d as ToolInputMiddlewareResult, e as ToolOutputMiddlewareArgs, f as ToolOutputMiddlewareResult, g as ToolResultMiddlewareArgs, i as ToolSearchDocument, j as ToolSet, h as createMiddleware, k as createToolIndex, l as embedTools, m as isDynamicToolIndex } from '../middleware-DfMc30in.js';
|
|
3
3
|
export { A as AnyTool, N as NormalizedToolOutput, T as Tool, a as ToolApprovalContext, b as ToolApprovalDecision, c as ToolApprovalPolicy, d as ToolApprovalRequest, h as ToolApprovalRunContext, e as ToolApprovalsOptions, f as ToolCallContext, g as ToolCallStreamEvent, i as ToolOutput, n as normalizeToolResultOutput, p as parseToolArgs, t as toolResultContentToText } from '../tool-Dhwg__1L.js';
|
|
4
4
|
export { x as isToolResultContentArray, y as serializeToolOutput } from '../types-XjIh933x.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zod-schema-C7F4clpm.js';
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../types-
|
|
7
|
+
import '../types-BCTRUGex.js';
|
|
8
|
+
import '../types-BrxxAtcJ.js';
|
|
9
9
|
|
|
10
10
|
declare class ToolCallError extends Error {
|
|
11
11
|
readonly cause?: unknown | undefined;
|
package/dist/tool/index.js
CHANGED
|
@@ -7,23 +7,22 @@ import {
|
|
|
7
7
|
createMiddleware,
|
|
8
8
|
createThinkTool,
|
|
9
9
|
createToolIndex,
|
|
10
|
-
createToolMiddleware,
|
|
11
10
|
embedTools,
|
|
12
11
|
isDynamicToolIndex,
|
|
13
12
|
normalizeToolResultOutput,
|
|
14
13
|
parseToolArgs,
|
|
15
14
|
toolResultContentToText
|
|
16
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-6X2UTX3L.js";
|
|
17
16
|
import {
|
|
18
17
|
createTool
|
|
19
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-MELYDKWQ.js";
|
|
19
|
+
import "../chunk-MNWK2USR.js";
|
|
20
|
+
import "../chunk-OIMLU4SF.js";
|
|
20
21
|
import {
|
|
21
22
|
isToolResultContentArray,
|
|
22
23
|
serializeToolResultOutput
|
|
23
24
|
} from "../chunk-PJDL5UT2.js";
|
|
24
25
|
import "../chunk-WQKHFADH.js";
|
|
25
|
-
import "../chunk-YBBD4HZ3.js";
|
|
26
|
-
import "../chunk-OIMLU4SF.js";
|
|
27
26
|
export {
|
|
28
27
|
ToolCallError,
|
|
29
28
|
ToolJsonError,
|
|
@@ -34,7 +33,6 @@ export {
|
|
|
34
33
|
createThinkTool,
|
|
35
34
|
createTool,
|
|
36
35
|
createToolIndex,
|
|
37
|
-
createToolMiddleware,
|
|
38
36
|
embedTools,
|
|
39
37
|
isDynamicToolIndex,
|
|
40
38
|
isToolResultContentArray,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
type Embedding = {
|
|
2
|
+
document: string;
|
|
3
|
+
vector: number[];
|
|
4
|
+
};
|
|
5
|
+
type SparseVector = {
|
|
6
|
+
indices: number[];
|
|
7
|
+
values: number[];
|
|
8
|
+
};
|
|
9
|
+
type SparseEmbedding = {
|
|
10
|
+
document: string;
|
|
11
|
+
vector: SparseVector;
|
|
12
|
+
};
|
|
13
|
+
interface EmbeddingModel {
|
|
14
|
+
readonly dimensions?: number | undefined;
|
|
15
|
+
readonly maxBatchSize?: number | undefined;
|
|
16
|
+
embedTexts(texts: string[]): Promise<Embedding[]>;
|
|
17
|
+
}
|
|
18
|
+
/** Sparse lexical/neural encoder used for hybrid retrieval channels. */
|
|
19
|
+
interface SparseEmbeddingModel {
|
|
20
|
+
readonly maxBatchSize?: number | undefined;
|
|
21
|
+
/** Embed passage/document texts for indexing. */
|
|
22
|
+
embedTexts(texts: string[]): Promise<SparseEmbedding[]>;
|
|
23
|
+
/** Embed a search query (may differ from passage encoding for models like SPLADE). */
|
|
24
|
+
embedQuery(query: string): Promise<SparseEmbedding>;
|
|
25
|
+
}
|
|
26
|
+
type EmbeddedDocument<T, Metadata extends VectorMetadata = VectorMetadata> = {
|
|
27
|
+
id: string;
|
|
28
|
+
document: T;
|
|
29
|
+
metadata?: Metadata | undefined;
|
|
30
|
+
embeddings: Embedding[];
|
|
31
|
+
/** Optional sparse vectors aligned 1:1 with `embeddings` by chunk index. */
|
|
32
|
+
sparseEmbeddings?: SparseEmbedding[] | undefined;
|
|
33
|
+
};
|
|
34
|
+
type VectorMetadataValue = string | number | boolean | null;
|
|
35
|
+
type VectorMetadata = Record<string, VectorMetadataValue>;
|
|
36
|
+
type EmbedDocumentsOptions<T, Metadata extends VectorMetadata = VectorMetadata> = {
|
|
37
|
+
id?: ((document: T, index: number) => string) | undefined;
|
|
38
|
+
content(document: T, index: number): string | string[];
|
|
39
|
+
metadata?: ((document: T, index: number) => Metadata | undefined) | undefined;
|
|
40
|
+
concurrency?: number | undefined;
|
|
41
|
+
};
|
|
42
|
+
type EmbedHybridDocumentsOptions = {
|
|
43
|
+
dense: EmbeddingModel;
|
|
44
|
+
sparse: SparseEmbeddingModel;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type { EmbeddingModel as E, SparseEmbeddingModel as S, VectorMetadata as V, VectorMetadataValue as a, EmbedDocumentsOptions as b, EmbeddedDocument as c, EmbedHybridDocumentsOptions as d, SparseEmbedding as e, Embedding as f, SparseVector as g };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -62,10 +62,15 @@ type UIMessagePart = {
|
|
|
62
62
|
type UIToolMessagePart = Extract<UIMessagePart, {
|
|
63
63
|
type: "tool";
|
|
64
64
|
}>;
|
|
65
|
+
type UIStreamResume = {
|
|
66
|
+
streamId: string;
|
|
67
|
+
after: number;
|
|
68
|
+
};
|
|
65
69
|
type UIStreamRequest = {
|
|
66
70
|
messages: Message[];
|
|
67
71
|
stream: true;
|
|
68
72
|
metadata?: JsonValue;
|
|
73
|
+
resume?: UIStreamResume;
|
|
69
74
|
};
|
|
70
75
|
type UIStreamEvent = {
|
|
71
76
|
type: "message_start";
|
|
@@ -98,4 +103,4 @@ type UIStreamEvent = {
|
|
|
98
103
|
declare function uiMessagesToCoreMessages(messages: UIMessage[]): Message[];
|
|
99
104
|
declare function coreMessagesToUIMessages(messages: Message[]): UIMessage[];
|
|
100
105
|
|
|
101
|
-
export { type CreateUIAttachment, type UIAttachment, type UIError, type UIMessage, type UIMessagePart, type UIMessageRole, type UIStreamEvent, type UIStreamRequest, coreMessagesToUIMessages, uiMessagesToCoreMessages };
|
|
106
|
+
export { type CreateUIAttachment, type UIAttachment, type UIError, type UIMessage, type UIMessagePart, type UIMessageRole, type UIStreamEvent, type UIStreamRequest, type UIStreamResume, coreMessagesToUIMessages, uiMessagesToCoreMessages };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as VectorMetadataValue, V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument,
|
|
1
|
+
import { a as VectorMetadataValue, V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument, f as Embedding } from '../types-BCTRUGex.js';
|
|
2
2
|
import { T as Tool } from '../tool-Dhwg__1L.js';
|
|
3
|
-
import { V as VectorFilter, a as VectorSearchIndex, I as IndexStrategy, b as VectorSearchRequest, c as VectorSearchResult, d as VectorInspectRequest, e as VectorInspectPage, f as VectorSearchToolOptions } from '../types-
|
|
4
|
-
export { L as LshOptions, g as VectorInspectItem } from '../types-
|
|
3
|
+
import { V as VectorFilter, a as VectorSearchIndex, I as IndexStrategy, b as VectorSearchRequest, c as VectorSearchResult, d as VectorInspectRequest, e as VectorInspectPage, f as VectorSearchToolOptions } from '../types-BrxxAtcJ.js';
|
|
4
|
+
export { L as LshOptions, g as VectorInspectItem } from '../types-BrxxAtcJ.js';
|
|
5
5
|
import '../types-XjIh933x.js';
|
|
6
6
|
|
|
7
7
|
declare const vectorFilter: {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
InMemoryVectorStore,
|
|
4
4
|
createVectorSearchTool,
|
|
5
5
|
vectorFilter
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-YBBD4HZ3.js";
|
|
6
|
+
} from "../chunk-MELYDKWQ.js";
|
|
7
|
+
import "../chunk-MNWK2USR.js";
|
|
9
8
|
import "../chunk-OIMLU4SF.js";
|
|
9
|
+
import "../chunk-WQKHFADH.js";
|
|
10
10
|
export {
|
|
11
11
|
InMemoryVectorIndex,
|
|
12
12
|
InMemoryVectorStore,
|