@anvia/core 0.26.0 → 1.0.0-rc.10
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 +400 -94
- package/dist/agent/index.d.ts +67 -71
- package/dist/agent/index.js +36 -18
- package/dist/agent/interactions/index.d.ts +122 -0
- package/dist/agent/interactions/index.js +20 -0
- package/dist/agent-DWzW9SoH.d.ts +150 -0
- package/dist/chunk-3RM57ZT2.js +31 -0
- package/dist/chunk-3RM57ZT2.js.map +1 -0
- package/dist/chunk-3RWESPUG.js +331 -0
- package/dist/chunk-3RWESPUG.js.map +1 -0
- package/dist/{chunk-NCPN4SJR.js → chunk-3SKZ2BKP.js} +15 -13
- package/dist/chunk-3SKZ2BKP.js.map +1 -0
- package/dist/chunk-3XQGVDU5.js +69 -0
- package/dist/chunk-3XQGVDU5.js.map +1 -0
- package/dist/{chunk-MRQLEK2B.js → chunk-5C6B6ZRH.js} +69 -51
- package/dist/chunk-5C6B6ZRH.js.map +1 -0
- package/dist/chunk-6BBOCFHV.js +323 -0
- package/dist/chunk-6BBOCFHV.js.map +1 -0
- package/dist/chunk-7JLAIN6E.js +15 -0
- package/dist/chunk-7JLAIN6E.js.map +1 -0
- package/dist/chunk-7PHMK7W4.js +1516 -0
- package/dist/chunk-7PHMK7W4.js.map +1 -0
- package/dist/{chunk-CWUJUSOS.js → chunk-AZB6N7P4.js} +94 -65
- package/dist/chunk-AZB6N7P4.js.map +1 -0
- package/dist/chunk-D4PACGPA.js +37 -0
- package/dist/chunk-D4PACGPA.js.map +1 -0
- package/dist/chunk-EFLT7XZD.js +51 -0
- package/dist/chunk-EFLT7XZD.js.map +1 -0
- package/dist/chunk-EMZKPRE6.js +667 -0
- package/dist/chunk-EMZKPRE6.js.map +1 -0
- package/dist/chunk-I3Q7XSBB.js +59 -0
- package/dist/chunk-I3Q7XSBB.js.map +1 -0
- package/dist/chunk-J6LVLV6P.js +13 -0
- package/dist/chunk-J6LVLV6P.js.map +1 -0
- package/dist/chunk-LTXABCOO.js +127 -0
- package/dist/chunk-LTXABCOO.js.map +1 -0
- package/dist/chunk-OJBFDBLG.js +164 -0
- package/dist/chunk-OJBFDBLG.js.map +1 -0
- package/dist/chunk-QGX73TSQ.js +177 -0
- package/dist/chunk-QGX73TSQ.js.map +1 -0
- package/dist/chunk-QOUPWOGW.js +29 -0
- package/dist/chunk-QOUPWOGW.js.map +1 -0
- package/dist/chunk-SJMSS5SI.js +171 -0
- package/dist/chunk-SJMSS5SI.js.map +1 -0
- package/dist/chunk-T2C3CGDQ.js +56 -0
- package/dist/chunk-T2C3CGDQ.js.map +1 -0
- package/dist/chunk-VX3HS6PE.js +4569 -0
- package/dist/chunk-VX3HS6PE.js.map +1 -0
- package/dist/chunk-X4LK4ODN.js +86 -0
- package/dist/chunk-X4LK4ODN.js.map +1 -0
- package/dist/chunk-ZA564323.js +331 -0
- package/dist/chunk-ZA564323.js.map +1 -0
- package/dist/completion/index.d.ts +6 -36
- package/dist/completion/index.js +34 -29
- package/dist/documents/index.d.ts +34 -0
- package/dist/documents/index.js +340 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/dynamic-tools-aIZlg5x1.d.ts +45 -0
- package/dist/embeddings/index.d.ts +11 -9
- package/dist/embeddings/index.js +3 -4
- package/dist/evals/index.d.ts +57 -21
- package/dist/evals/index.js +209 -104
- package/dist/evals/index.js.map +1 -1
- package/dist/extractor/index.d.ts +27 -42
- package/dist/extractor/index.js +9 -22
- package/dist/guardrails/index.d.ts +7 -129
- package/dist/guardrails/index.js +1 -1
- package/dist/image-generation/index.d.ts +23 -23
- package/dist/image-generation/index.js +7 -39
- package/dist/image-generation/index.js.map +1 -1
- package/dist/index.d.ts +24 -22
- package/dist/index.js +85 -68
- package/dist/internal/agent.d.ts +156 -10
- package/dist/internal/agent.js +58 -18
- package/dist/internal/agent.js.map +1 -1
- package/dist/mcp/index.d.ts +7 -15
- package/dist/mcp/index.js +3 -348
- package/dist/mcp/index.js.map +1 -1
- package/dist/memory/index.d.ts +20 -6
- package/dist/memory/index.js +11 -10
- package/dist/middleware-kcF8AusP.d.ts +59 -0
- package/dist/model-call-options-CZkSw_xN.d.ts +6 -0
- package/dist/model-listing/index.d.ts +3 -1
- package/dist/observability/index.d.ts +23 -4
- package/dist/observability/index.js +10 -5
- package/dist/observability/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +111 -73
- package/dist/pipeline/index.js +471 -286
- package/dist/pipeline/index.js.map +1 -1
- package/dist/provider-output-error-BEwDgVv3.d.ts +99 -0
- package/dist/retry-CjvSlKGW.d.ts +16 -0
- package/dist/skills/index.d.ts +5 -4
- package/dist/skills/index.js +8 -8
- package/dist/speech-generation/index.d.ts +37 -0
- package/dist/speech-generation/index.js +10 -0
- package/dist/streaming/index.js +37 -3
- package/dist/streaming/index.js.map +1 -1
- package/dist/text-ZLECpQE7.d.ts +32 -0
- package/dist/think-tool-BwCsJ365.d.ts +40 -0
- package/dist/tool/index.d.ts +11 -6
- package/dist/tool/index.js +21 -21
- package/dist/tool-BpqpoRSE.d.ts +58 -0
- package/dist/transcription/index.d.ts +29 -22
- package/dist/transcription/index.js +7 -57
- package/dist/transcription/index.js.map +1 -1
- package/dist/type-utils-CtHVDRn_.d.ts +6 -0
- package/dist/types-CXNE592e.d.ts +130 -0
- package/dist/types-Cr4uiYo5.d.ts +99 -0
- package/dist/{types-04LqWrmy.d.ts → types-DC1U1XwW.d.ts} +1 -1
- package/dist/types-DKOXVTcq.d.ts +155 -0
- package/dist/types-DgvozfPc.d.ts +349 -0
- package/dist/types-DhkodEft.d.ts +105 -0
- package/dist/types-DjqRHeAi.d.ts +31 -0
- package/dist/types-Sue2hb_L.d.ts +403 -0
- package/dist/vector-store/index.d.ts +34 -34
- package/dist/vector-store/index.js +10 -6
- package/package.json +22 -24
- package/dist/agent-x3YTyv5i.d.ts +0 -222
- package/dist/audio-generation/index.d.ts +0 -33
- package/dist/audio-generation/index.js +0 -42
- package/dist/audio-generation/index.js.map +0 -1
- package/dist/chunk-2ODTMRHP.js +0 -54
- package/dist/chunk-2ODTMRHP.js.map +0 -1
- package/dist/chunk-ADH7NNCS.js +0 -512
- package/dist/chunk-ADH7NNCS.js.map +0 -1
- package/dist/chunk-BALBBVI3.js +0 -2732
- package/dist/chunk-BALBBVI3.js.map +0 -1
- package/dist/chunk-CQNNSZPG.js +0 -9
- package/dist/chunk-CQNNSZPG.js.map +0 -1
- package/dist/chunk-CWUJUSOS.js.map +0 -1
- package/dist/chunk-DALYP4PX.js +0 -225
- package/dist/chunk-DALYP4PX.js.map +0 -1
- package/dist/chunk-HYUYZEAJ.js +0 -223
- package/dist/chunk-HYUYZEAJ.js.map +0 -1
- package/dist/chunk-I6XOQ4LK.js +0 -466
- package/dist/chunk-I6XOQ4LK.js.map +0 -1
- package/dist/chunk-JI5YZWNT.js +0 -220
- package/dist/chunk-JI5YZWNT.js.map +0 -1
- package/dist/chunk-MC3CCKEB.js +0 -221
- package/dist/chunk-MC3CCKEB.js.map +0 -1
- package/dist/chunk-MELYDKWQ.js +0 -337
- package/dist/chunk-MELYDKWQ.js.map +0 -1
- package/dist/chunk-MNWK2USR.js +0 -243
- package/dist/chunk-MNWK2USR.js.map +0 -1
- package/dist/chunk-MRQLEK2B.js.map +0 -1
- package/dist/chunk-NCPN4SJR.js.map +0 -1
- package/dist/chunk-OIMLU4SF.js +0 -20
- package/dist/chunk-OIMLU4SF.js.map +0 -1
- package/dist/chunk-Q25IWLBT.js +0 -138
- package/dist/chunk-Q25IWLBT.js.map +0 -1
- package/dist/chunk-UQX6EXWG.js +0 -33
- package/dist/chunk-UQX6EXWG.js.map +0 -1
- package/dist/chunk-WQKHFADH.js +0 -12
- package/dist/chunk-WQKHFADH.js.map +0 -1
- package/dist/chunk-XUUY2L2D.js +0 -42
- package/dist/chunk-XUUY2L2D.js.map +0 -1
- package/dist/chunk-XWUC7CIT.js +0 -1
- package/dist/chunk-XWUC7CIT.js.map +0 -1
- package/dist/chunk-YLMDBQO4.js +0 -141
- package/dist/chunk-YLMDBQO4.js.map +0 -1
- package/dist/errors-2moLDuuN.d.ts +0 -17
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/index.js +0 -17
- package/dist/index-BxSbmOMr.d.ts +0 -257
- package/dist/json-BVPssigK.d.ts +0 -39
- package/dist/loaders/index.d.ts +0 -91
- package/dist/loaders/index.js +0 -299
- package/dist/loaders/index.js.map +0 -1
- package/dist/middleware-Dp3d_pxi.d.ts +0 -90
- package/dist/request/index.d.ts +0 -28
- package/dist/request/index.js +0 -25
- package/dist/think-tool-DfCMuO8e.d.ts +0 -26
- package/dist/tool-Cohdv5GC.d.ts +0 -65
- package/dist/types-BCTRUGex.d.ts +0 -47
- package/dist/types-BrLbKnEz.d.ts +0 -119
- package/dist/types-D9JpeAPF.d.ts +0 -114
- package/dist/types-G12i56s2.d.ts +0 -354
- package/dist/types-JJCxRnaZ.d.ts +0 -70
- package/dist/types-O-abTIin.d.ts +0 -79
- package/dist/ui/index.d.ts +0 -107
- package/dist/ui/index.js +0 -10
- package/dist/ui/index.js.map +0 -1
- /package/dist/{hooks → agent/interactions}/index.js.map +0 -0
- /package/dist/{request → speech-generation}/index.js.map +0 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { AgentInteractionRequest, AgentContinuation, AgentInteractionResponse } from './agent/interactions/index.js';
|
|
2
|
+
import { b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
3
|
+
import { M as Message, g as CompletionResponse, U as Usage, R as ReasoningContentType, u as ToolCallPart, i as CompletionSource, r as ProviderToolCall, G as UserMessage, C as CompletionFinishReason, l as ContextUsage, f as CompletionRequest, z as ToolResultOutput, y as ToolResultContentPart, _ as ToolInteractionResponsePart, Z as ToolCallArgumentsMode, J as JsonObject, V as CompletionModelCapabilities, w as ToolDefinition } from './types-DgvozfPc.js';
|
|
4
|
+
import { d as GuardrailPolicyInput, a as GuardrailDecisionRecord } from './types-DhkodEft.js';
|
|
5
|
+
import { e as MemoryCompactionInfo, z as MemoryScope } from './types-DKOXVTcq.js';
|
|
6
|
+
import { D as DeepReadonly, M as MaybePromise } from './type-utils-CtHVDRn_.js';
|
|
7
|
+
import { d as ToolCallStreamEvent } from './tool-BpqpoRSE.js';
|
|
8
|
+
import { A as AgentMiddleware } from './middleware-kcF8AusP.js';
|
|
9
|
+
|
|
10
|
+
type AgentLifecycleRunEvent = {
|
|
11
|
+
runId: string;
|
|
12
|
+
};
|
|
13
|
+
type AgentStartEvent = AgentLifecycleRunEvent & {
|
|
14
|
+
input: DeepReadonly<Message>;
|
|
15
|
+
history: DeepReadonly<Message[]>;
|
|
16
|
+
maxTurns: number;
|
|
17
|
+
};
|
|
18
|
+
type AgentStepFinishEvent<RawResponse = unknown> = AgentLifecycleRunEvent & {
|
|
19
|
+
step: number;
|
|
20
|
+
response: DeepReadonly<CompletionResponse<RawResponse>>;
|
|
21
|
+
usage: DeepReadonly<Usage>;
|
|
22
|
+
};
|
|
23
|
+
type AgentToolStartEvent = AgentLifecycleRunEvent & {
|
|
24
|
+
step: number;
|
|
25
|
+
toolName: string;
|
|
26
|
+
toolCallId?: string | undefined;
|
|
27
|
+
input: unknown;
|
|
28
|
+
};
|
|
29
|
+
type AgentToolFinishEventBase = AgentToolStartEvent & {
|
|
30
|
+
durationMs: number;
|
|
31
|
+
};
|
|
32
|
+
type AgentToolFinishEvent = (AgentToolFinishEventBase & {
|
|
33
|
+
success: true;
|
|
34
|
+
output: unknown;
|
|
35
|
+
}) | (AgentToolFinishEventBase & {
|
|
36
|
+
success: false;
|
|
37
|
+
error: unknown;
|
|
38
|
+
});
|
|
39
|
+
type AgentFinishEventBase = AgentLifecycleRunEvent & {
|
|
40
|
+
text: string;
|
|
41
|
+
usage: DeepReadonly<Usage>;
|
|
42
|
+
messages: DeepReadonly<Message[]>;
|
|
43
|
+
memoryCompaction?: DeepReadonly<MemoryCompactionInfo> | undefined;
|
|
44
|
+
};
|
|
45
|
+
type AgentFinishEvent<Output = string> = (AgentFinishEventBase & {
|
|
46
|
+
status: "completed";
|
|
47
|
+
output: DeepReadonly<Output>;
|
|
48
|
+
}) | (AgentFinishEventBase & {
|
|
49
|
+
status: "blocked";
|
|
50
|
+
stage: "input" | "output";
|
|
51
|
+
}) | (AgentFinishEventBase & {
|
|
52
|
+
status: "suspended";
|
|
53
|
+
interaction: DeepReadonly<AgentInteractionRequest>;
|
|
54
|
+
});
|
|
55
|
+
type AgentErrorEvent = AgentLifecycleRunEvent & {
|
|
56
|
+
error: unknown;
|
|
57
|
+
usage: DeepReadonly<Usage>;
|
|
58
|
+
messages: DeepReadonly<Message[]>;
|
|
59
|
+
};
|
|
60
|
+
type AgentLifecycle<Output = string, RawResponse = unknown> = {
|
|
61
|
+
onStart?(event: AgentStartEvent): MaybePromise<void>;
|
|
62
|
+
onStepFinish?(event: AgentStepFinishEvent<RawResponse>): MaybePromise<void>;
|
|
63
|
+
onToolStart?(event: AgentToolStartEvent): MaybePromise<void>;
|
|
64
|
+
onToolFinish?(event: AgentToolFinishEvent): MaybePromise<void>;
|
|
65
|
+
onFinish?(event: AgentFinishEvent<Output>): MaybePromise<void>;
|
|
66
|
+
onError?(event: AgentErrorEvent): MaybePromise<void>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type AgentPrompt = string | UserMessage;
|
|
70
|
+
type AgentInput = {
|
|
71
|
+
prompt: AgentPrompt;
|
|
72
|
+
messages?: never;
|
|
73
|
+
session?: MemoryScope | undefined;
|
|
74
|
+
continuation?: never;
|
|
75
|
+
response?: never;
|
|
76
|
+
} | {
|
|
77
|
+
messages: readonly Message[];
|
|
78
|
+
prompt?: never;
|
|
79
|
+
session?: never;
|
|
80
|
+
continuation?: never;
|
|
81
|
+
response?: never;
|
|
82
|
+
} | {
|
|
83
|
+
continuation: AgentContinuation;
|
|
84
|
+
response: AgentInteractionResponse;
|
|
85
|
+
prompt?: never;
|
|
86
|
+
messages?: never;
|
|
87
|
+
session?: never;
|
|
88
|
+
};
|
|
89
|
+
type AgentSteerInput = {
|
|
90
|
+
prompt: AgentPrompt;
|
|
91
|
+
messages?: never;
|
|
92
|
+
} | {
|
|
93
|
+
messages: readonly UserMessage[];
|
|
94
|
+
prompt?: never;
|
|
95
|
+
};
|
|
96
|
+
type AgentRunSettings<Output = string, RawResponse = unknown> = {
|
|
97
|
+
maxTurns?: number | undefined;
|
|
98
|
+
retries?: RetrySetting | undefined;
|
|
99
|
+
abortSignal?: AbortSignal | undefined;
|
|
100
|
+
lifecycle?: AgentLifecycle<Output, RawResponse> | undefined;
|
|
101
|
+
guardrails?: GuardrailPolicyInput | undefined;
|
|
102
|
+
toolConcurrency?: number | undefined;
|
|
103
|
+
middlewares?: readonly AgentMiddleware[] | undefined;
|
|
104
|
+
trace?: AgentTraceOptions | undefined;
|
|
105
|
+
};
|
|
106
|
+
type AgentRunOptions<Output = string, RawResponse = unknown> = AgentInput & AgentRunSettings<Output, RawResponse>;
|
|
107
|
+
type AgentRunLink = Readonly<{
|
|
108
|
+
runId: string;
|
|
109
|
+
interactionId: string;
|
|
110
|
+
}>;
|
|
111
|
+
type AgentResultBase = {
|
|
112
|
+
runId: string;
|
|
113
|
+
text: string;
|
|
114
|
+
usage: Usage;
|
|
115
|
+
finishReason?: CompletionFinishReason | undefined;
|
|
116
|
+
providerFinishReason?: string | undefined;
|
|
117
|
+
contextUsage?: ContextUsage | undefined;
|
|
118
|
+
messages: Message[];
|
|
119
|
+
trace?: AgentTraceInfo | undefined;
|
|
120
|
+
guardrails?: GuardrailDecisionRecord[] | undefined;
|
|
121
|
+
sources?: CompletionSource[] | undefined;
|
|
122
|
+
providerToolCalls?: ProviderToolCall[] | undefined;
|
|
123
|
+
memoryCompaction?: MemoryCompactionInfo | undefined;
|
|
124
|
+
resumedFrom?: AgentRunLink | undefined;
|
|
125
|
+
};
|
|
126
|
+
type AgentResponse<Output = string> = AgentResultBase & {
|
|
127
|
+
status: "completed";
|
|
128
|
+
output: Output;
|
|
129
|
+
};
|
|
130
|
+
type AgentBlockedResult = AgentResultBase & {
|
|
131
|
+
status: "blocked";
|
|
132
|
+
stage: "input" | "output";
|
|
133
|
+
};
|
|
134
|
+
type AgentSuspendedResult = AgentResultBase & {
|
|
135
|
+
status: "suspended";
|
|
136
|
+
interaction: AgentInteractionRequest;
|
|
137
|
+
continuation: AgentContinuation;
|
|
138
|
+
};
|
|
139
|
+
type AgentResult<Output = string> = AgentResponse<Output> | AgentBlockedResult | AgentSuspendedResult;
|
|
140
|
+
type AgentDeltaEvent = {
|
|
141
|
+
type: "text_delta";
|
|
142
|
+
delta: string;
|
|
143
|
+
} | {
|
|
144
|
+
type: "reasoning_delta";
|
|
145
|
+
delta: string;
|
|
146
|
+
id?: string;
|
|
147
|
+
contentType?: ReasoningContentType;
|
|
148
|
+
signature?: string;
|
|
149
|
+
} | {
|
|
150
|
+
type: "tool_call";
|
|
151
|
+
toolCall: ToolCallPart;
|
|
152
|
+
} | {
|
|
153
|
+
type: "source";
|
|
154
|
+
source: CompletionSource;
|
|
155
|
+
} | {
|
|
156
|
+
type: "provider_tool_call";
|
|
157
|
+
toolCall: ProviderToolCall;
|
|
158
|
+
};
|
|
159
|
+
type AgentErrorStreamEvent = {
|
|
160
|
+
type: "error";
|
|
161
|
+
error: unknown;
|
|
162
|
+
usage: Usage;
|
|
163
|
+
};
|
|
164
|
+
type AgentToolCallDeltaEvent = {
|
|
165
|
+
type: "tool_call_delta";
|
|
166
|
+
turn: number;
|
|
167
|
+
id: string;
|
|
168
|
+
callId?: string;
|
|
169
|
+
name?: string;
|
|
170
|
+
argumentsDelta?: string;
|
|
171
|
+
argumentsMode?: ToolCallArgumentsMode;
|
|
172
|
+
signature?: string;
|
|
173
|
+
};
|
|
174
|
+
type AgentMemoryCompactionEvent = MemoryCompactionInfo & {
|
|
175
|
+
type: "memory_compaction";
|
|
176
|
+
};
|
|
177
|
+
type AgentInteractionResponseEvent = {
|
|
178
|
+
type: "interaction_response";
|
|
179
|
+
response: ToolInteractionResponsePart;
|
|
180
|
+
sourceRunId: string;
|
|
181
|
+
};
|
|
182
|
+
type AgentSteerReceipt = Readonly<{
|
|
183
|
+
id: string;
|
|
184
|
+
status: "queued";
|
|
185
|
+
}>;
|
|
186
|
+
type AgentSteeringAppliedEvent = {
|
|
187
|
+
type: "steering_applied";
|
|
188
|
+
id: string;
|
|
189
|
+
turn: number;
|
|
190
|
+
};
|
|
191
|
+
type AgentChildStreamEventBase<Output = string, RawResponse = unknown> = {
|
|
192
|
+
type: "turn_start";
|
|
193
|
+
turn: number;
|
|
194
|
+
prompt: Message;
|
|
195
|
+
history: Message[];
|
|
196
|
+
} | {
|
|
197
|
+
type: "generation_start";
|
|
198
|
+
turn: number;
|
|
199
|
+
request: CompletionRequest;
|
|
200
|
+
modelInfo: AgentGenerationModelInfo;
|
|
201
|
+
} | {
|
|
202
|
+
type: "text_delta";
|
|
203
|
+
turn: number;
|
|
204
|
+
delta: string;
|
|
205
|
+
} | {
|
|
206
|
+
type: "reasoning_delta";
|
|
207
|
+
turn: number;
|
|
208
|
+
delta: string;
|
|
209
|
+
id?: string;
|
|
210
|
+
contentType?: ReasoningContentType;
|
|
211
|
+
signature?: string;
|
|
212
|
+
} | {
|
|
213
|
+
type: "tool_call";
|
|
214
|
+
turn: number;
|
|
215
|
+
toolCall: ToolCallPart;
|
|
216
|
+
} | {
|
|
217
|
+
type: "source";
|
|
218
|
+
turn: number;
|
|
219
|
+
source: CompletionSource;
|
|
220
|
+
} | {
|
|
221
|
+
type: "provider_tool_call";
|
|
222
|
+
turn: number;
|
|
223
|
+
toolCall: ProviderToolCall;
|
|
224
|
+
} | {
|
|
225
|
+
type: "tool_result";
|
|
226
|
+
turn: number;
|
|
227
|
+
toolName: string;
|
|
228
|
+
toolCallId: string;
|
|
229
|
+
callId?: string;
|
|
230
|
+
internalCallId: string;
|
|
231
|
+
args: string;
|
|
232
|
+
output: ToolResultOutput;
|
|
233
|
+
result: string;
|
|
234
|
+
structuredResult?: readonly ToolResultContentPart[] | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
type: "turn_end";
|
|
237
|
+
turn: number;
|
|
238
|
+
response: CompletionResponse<RawResponse>;
|
|
239
|
+
firstDeltaMs?: number | undefined;
|
|
240
|
+
} | {
|
|
241
|
+
type: "guardrail_decision";
|
|
242
|
+
turn?: number | undefined;
|
|
243
|
+
decision: GuardrailDecisionRecord;
|
|
244
|
+
} | AgentMemoryCompactionEvent | AgentInteractionResponseEvent | AgentSteeringAppliedEvent | {
|
|
245
|
+
type: "final";
|
|
246
|
+
result: AgentResult<Output>;
|
|
247
|
+
} | AgentErrorStreamEvent;
|
|
248
|
+
type AgentChildStreamEvent<Output = string, RawResponse = unknown> = AgentChildStreamEventBase<Output, RawResponse> | AgentToolCallDeltaEvent;
|
|
249
|
+
type AgentToolStreamEvent = {
|
|
250
|
+
type: "agent_tool_event";
|
|
251
|
+
turn: number;
|
|
252
|
+
toolName: string;
|
|
253
|
+
toolCallId?: string;
|
|
254
|
+
internalCallId: string;
|
|
255
|
+
agentId: string;
|
|
256
|
+
agentName?: string;
|
|
257
|
+
event: AgentChildStreamEvent<unknown, unknown>;
|
|
258
|
+
};
|
|
259
|
+
type AgentStreamEvent<Output = string, RawResponse = unknown> = AgentChildStreamEvent<Output, RawResponse> | AgentToolStreamEvent;
|
|
260
|
+
interface AgentStream<Event = AgentStreamEvent> extends AsyncIterable<Event> {
|
|
261
|
+
steer(input: AgentSteerInput): AgentSteerReceipt;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
type AgentTraceInfo = {
|
|
265
|
+
readonly observer: string;
|
|
266
|
+
readonly traceId?: string | undefined;
|
|
267
|
+
readonly observationId?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
type AgentObserverTraceInfo = Omit<AgentTraceInfo, "observer">;
|
|
270
|
+
type AgentTraceOptions = {
|
|
271
|
+
readonly name?: string | undefined;
|
|
272
|
+
readonly userId?: string | undefined;
|
|
273
|
+
readonly sessionId?: string | undefined;
|
|
274
|
+
readonly metadata?: DeepReadonly<JsonObject> | undefined;
|
|
275
|
+
readonly tags?: readonly string[] | undefined;
|
|
276
|
+
readonly version?: string | undefined;
|
|
277
|
+
readonly traceId?: string | undefined;
|
|
278
|
+
readonly promptRef?: AgentRunPromptRef | undefined;
|
|
279
|
+
};
|
|
280
|
+
type AgentRunPromptRef = {
|
|
281
|
+
readonly name: string;
|
|
282
|
+
readonly version?: number | undefined;
|
|
283
|
+
};
|
|
284
|
+
type AgentRunStartArgs = {
|
|
285
|
+
readonly runId: string;
|
|
286
|
+
readonly agentName?: string | undefined;
|
|
287
|
+
readonly agentDescription?: string | undefined;
|
|
288
|
+
readonly instructions?: string | undefined;
|
|
289
|
+
readonly trace?: DeepReadonly<AgentTraceOptions> | undefined;
|
|
290
|
+
readonly prompt: DeepReadonly<Message>;
|
|
291
|
+
readonly promptRef?: DeepReadonly<AgentRunPromptRef> | undefined;
|
|
292
|
+
readonly history: readonly DeepReadonly<Message>[];
|
|
293
|
+
readonly maxTurns: number;
|
|
294
|
+
};
|
|
295
|
+
type AgentRunEndArgsBase = {
|
|
296
|
+
readonly runId: string;
|
|
297
|
+
readonly text: string;
|
|
298
|
+
readonly usage: DeepReadonly<Usage>;
|
|
299
|
+
readonly messages: readonly DeepReadonly<Message>[];
|
|
300
|
+
readonly sources?: readonly DeepReadonly<CompletionSource>[] | undefined;
|
|
301
|
+
readonly providerToolCalls?: readonly DeepReadonly<ProviderToolCall>[] | undefined;
|
|
302
|
+
readonly resumedFrom?: DeepReadonly<AgentRunLink> | undefined;
|
|
303
|
+
};
|
|
304
|
+
type AgentRunEndArgs = (AgentRunEndArgsBase & {
|
|
305
|
+
readonly status: "completed";
|
|
306
|
+
readonly output: unknown;
|
|
307
|
+
}) | (AgentRunEndArgsBase & {
|
|
308
|
+
readonly status: "blocked";
|
|
309
|
+
readonly stage: "input" | "output";
|
|
310
|
+
}) | (AgentRunEndArgsBase & {
|
|
311
|
+
readonly status: "suspended";
|
|
312
|
+
readonly interaction: DeepReadonly<AgentInteractionRequest>;
|
|
313
|
+
});
|
|
314
|
+
type AgentRunErrorArgs = {
|
|
315
|
+
readonly error: unknown;
|
|
316
|
+
readonly usage: DeepReadonly<Usage>;
|
|
317
|
+
readonly messages: readonly DeepReadonly<Message>[];
|
|
318
|
+
};
|
|
319
|
+
type AgentGenerationModelInfo = {
|
|
320
|
+
readonly provider: string;
|
|
321
|
+
readonly modelId: string;
|
|
322
|
+
readonly capabilities?: DeepReadonly<CompletionModelCapabilities> | undefined;
|
|
323
|
+
};
|
|
324
|
+
type AgentGenerationStartArgs = {
|
|
325
|
+
readonly turn: number;
|
|
326
|
+
readonly request: DeepReadonly<CompletionRequest>;
|
|
327
|
+
readonly providerRequest?: DeepReadonly<JsonObject> | undefined;
|
|
328
|
+
readonly modelInfo?: DeepReadonly<AgentGenerationModelInfo> | undefined;
|
|
329
|
+
};
|
|
330
|
+
type AgentGenerationEndArgs<RawResponse = unknown> = {
|
|
331
|
+
readonly turn: number;
|
|
332
|
+
readonly response: DeepReadonly<CompletionResponse<RawResponse>>;
|
|
333
|
+
readonly firstDeltaMs?: number | undefined;
|
|
334
|
+
};
|
|
335
|
+
type AgentGenerationErrorArgs = {
|
|
336
|
+
readonly turn: number;
|
|
337
|
+
readonly error: unknown;
|
|
338
|
+
};
|
|
339
|
+
type AgentGenerationUpdateArgs = {
|
|
340
|
+
readonly turn: number;
|
|
341
|
+
readonly delta: DeepReadonly<AgentDeltaEvent>;
|
|
342
|
+
};
|
|
343
|
+
type AgentRunEventArgs = {
|
|
344
|
+
readonly name: string;
|
|
345
|
+
readonly attributes?: DeepReadonly<JsonObject> | undefined;
|
|
346
|
+
readonly level?: "DEFAULT" | "WARNING" | "ERROR" | undefined;
|
|
347
|
+
readonly timestamp?: string | undefined;
|
|
348
|
+
};
|
|
349
|
+
type AgentToolStartArgs = {
|
|
350
|
+
readonly turn: number;
|
|
351
|
+
readonly toolCall: DeepReadonly<ToolCallPart>;
|
|
352
|
+
readonly toolName: string;
|
|
353
|
+
readonly args: string;
|
|
354
|
+
readonly internalCallId: string;
|
|
355
|
+
readonly toolCallId?: string | undefined;
|
|
356
|
+
readonly toolDefinition?: DeepReadonly<ToolDefinition> | undefined;
|
|
357
|
+
readonly toolMetadata?: DeepReadonly<JsonObject> | undefined;
|
|
358
|
+
};
|
|
359
|
+
type AgentToolEndArgs = AgentToolStartArgs & {
|
|
360
|
+
readonly result: string;
|
|
361
|
+
readonly structuredResult?: readonly DeepReadonly<ToolResultContentPart>[] | undefined;
|
|
362
|
+
readonly skipped: boolean;
|
|
363
|
+
};
|
|
364
|
+
type AgentToolErrorArgs = AgentToolStartArgs & {
|
|
365
|
+
readonly error: unknown;
|
|
366
|
+
};
|
|
367
|
+
type AgentToolSuspendedArgs = AgentToolStartArgs & {
|
|
368
|
+
readonly interaction: DeepReadonly<AgentInteractionRequest>;
|
|
369
|
+
};
|
|
370
|
+
type AgentToolStreamEventArgs = AgentToolStartArgs & {
|
|
371
|
+
readonly event: DeepReadonly<ToolCallStreamEvent>;
|
|
372
|
+
};
|
|
373
|
+
interface AgentGenerationObserver {
|
|
374
|
+
end(args: AgentGenerationEndArgs): void | Promise<void>;
|
|
375
|
+
error?(args: AgentGenerationErrorArgs): void | Promise<void>;
|
|
376
|
+
update?(args: AgentGenerationUpdateArgs): void | Promise<void>;
|
|
377
|
+
}
|
|
378
|
+
interface AgentToolObserver {
|
|
379
|
+
streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;
|
|
380
|
+
end(args: AgentToolEndArgs): void | Promise<void>;
|
|
381
|
+
suspend?(args: AgentToolSuspendedArgs): void | Promise<void>;
|
|
382
|
+
error?(args: AgentToolErrorArgs): void | Promise<void>;
|
|
383
|
+
}
|
|
384
|
+
interface AgentRunObserver {
|
|
385
|
+
readonly trace?: AgentObserverTraceInfo | undefined;
|
|
386
|
+
startGeneration?(args: AgentGenerationStartArgs): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;
|
|
387
|
+
startTool?(args: AgentToolStartArgs): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;
|
|
388
|
+
end(args: AgentRunEndArgs): void | Promise<void>;
|
|
389
|
+
error?(args: AgentRunErrorArgs): void | Promise<void>;
|
|
390
|
+
event?(args: AgentRunEventArgs): void | Promise<void>;
|
|
391
|
+
}
|
|
392
|
+
interface AgentObserver {
|
|
393
|
+
startRun(args: AgentRunStartArgs): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;
|
|
394
|
+
}
|
|
395
|
+
type AgentObserverMap = Readonly<Record<string, AgentObserver>>;
|
|
396
|
+
type AgentObserverErrorPolicy = "ignore" | "throw";
|
|
397
|
+
type AgentObservabilityOptions<Observers extends AgentObserverMap = AgentObserverMap> = {
|
|
398
|
+
readonly observers: Observers;
|
|
399
|
+
readonly primaryTrace?: Extract<keyof Observers, string> | undefined;
|
|
400
|
+
readonly errorPolicy?: AgentObserverErrorPolicy | undefined;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
export type { AgentBlockedResult as A, AgentGenerationObserver as B, AgentGenerationStartArgs as C, AgentGenerationUpdateArgs as D, AgentObservabilityOptions as E, AgentObserver as F, AgentObserverErrorPolicy as G, AgentObserverMap as H, AgentObserverTraceInfo as I, AgentRunEndArgs as J, AgentRunErrorArgs as K, AgentRunEventArgs as L, AgentRunObserver as M, AgentRunPromptRef as N, AgentRunStartArgs as O, AgentToolEndArgs as P, AgentToolErrorArgs as Q, AgentToolObserver as R, AgentToolStartArgs as S, AgentToolStreamEventArgs as T, AgentToolSuspendedArgs as U, AgentTraceInfo as V, AgentTraceOptions as W, AgentChildStreamEvent as a, AgentDeltaEvent as b, AgentErrorEvent as c, AgentErrorStreamEvent as d, AgentFinishEvent as e, AgentInput as f, AgentLifecycle as g, AgentMemoryCompactionEvent as h, AgentPrompt as i, AgentResponse as j, AgentResult as k, AgentRunOptions as l, AgentRunSettings as m, AgentStartEvent as n, AgentSteerInput as o, AgentSteerReceipt as p, AgentStepFinishEvent as q, AgentStream as r, AgentStreamEvent as s, AgentSuspendedResult as t, AgentToolCallDeltaEvent as u, AgentToolFinishEvent as v, AgentToolStartEvent as w, AgentGenerationEndArgs as x, AgentGenerationErrorArgs as y, AgentGenerationModelInfo as z };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as Tool } from '../tool-
|
|
3
|
-
import { V as VectorFilter, a as
|
|
4
|
-
export { L as LshOptions,
|
|
5
|
-
import '../
|
|
1
|
+
import { V as VectorMetadata, b as VectorMetadataValue, a as EmbeddedDocument } from '../types-Cr4uiYo5.js';
|
|
2
|
+
import { T as Tool } from '../tool-BpqpoRSE.js';
|
|
3
|
+
import { V as VectorFilter, R as RetrieveDocumentsOptions, a as VectorSearchResult, f as RetrieveHybridDocumentsOptions, d as VectorStore, I as IndexStrategy, g as VectorStoreUpsertOptions, h as VectorSearchRequest, b as VectorInspectRequest, c as VectorInspectPage, i as VectorSearchToolOptions } from '../types-CXNE592e.js';
|
|
4
|
+
export { D as DenseVectorSearchToolOptions, j as HybridVectorSearchRequest, k as HybridVectorSearchToolOptions, H as HybridVectorStore, L as LshOptions, l as RetrieveDocumentsBaseOptions, e as VectorFusion, m as VectorInspectItem, n as VectorMetric, o as VectorSearchToolBaseOptions } from '../types-CXNE592e.js';
|
|
5
|
+
import '../model-call-options-CZkSw_xN.js';
|
|
6
|
+
import '../retry-CjvSlKGW.js';
|
|
7
|
+
import '../types-DgvozfPc.js';
|
|
6
8
|
|
|
7
9
|
declare const vectorFilter: {
|
|
8
10
|
eq(key: string, value: VectorMetadataValue): VectorFilter;
|
|
@@ -11,48 +13,46 @@ declare const vectorFilter: {
|
|
|
11
13
|
and(left: VectorFilter, right: VectorFilter): VectorFilter;
|
|
12
14
|
or(left: VectorFilter, right: VectorFilter): VectorFilter;
|
|
13
15
|
};
|
|
16
|
+
declare function matchesVectorFilter(metadata: VectorMetadata | undefined, filter: VectorFilter | undefined): boolean;
|
|
17
|
+
|
|
18
|
+
declare function retrieveDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: RetrieveDocumentsOptions<T, Metadata>): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
19
|
+
declare function retrieveDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: RetrieveHybridDocumentsOptions<T, Metadata>): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
14
20
|
|
|
15
21
|
type StoredDocument<T, Metadata extends VectorMetadata> = EmbeddedDocument<T, Metadata>;
|
|
16
|
-
|
|
22
|
+
type InMemoryVectorStoreOptions = {
|
|
23
|
+
dimensions?: number | undefined;
|
|
24
|
+
index?: IndexStrategy | undefined;
|
|
25
|
+
};
|
|
26
|
+
type InMemoryVectorStoreFromDocumentsOptions<T, Metadata extends VectorMetadata = VectorMetadata> = InMemoryVectorStoreOptions & {
|
|
27
|
+
documents: Array<EmbeddedDocument<T, Metadata>>;
|
|
28
|
+
};
|
|
29
|
+
declare class InMemoryVectorStore<T, Metadata extends VectorMetadata = VectorMetadata> implements VectorStore<T, Metadata> {
|
|
17
30
|
private readonly documents;
|
|
18
|
-
private indexStrategy;
|
|
31
|
+
private readonly indexStrategy;
|
|
19
32
|
private lshIndex;
|
|
20
33
|
private embeddingDimension;
|
|
21
|
-
constructor(options?:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
constructor(options?: InMemoryVectorStoreOptions);
|
|
35
|
+
static fromDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: InMemoryVectorStoreFromDocumentsOptions<T, Metadata>): InMemoryVectorStore<T, Metadata>;
|
|
36
|
+
ensure(): Promise<void>;
|
|
37
|
+
validate(): Promise<void>;
|
|
38
|
+
upsert(options: VectorStoreUpsertOptions<T, Metadata>): Promise<void>;
|
|
39
|
+
get(options: {
|
|
40
|
+
id: string;
|
|
41
|
+
}): StoredDocument<T, Metadata> | undefined;
|
|
29
42
|
values(): Array<StoredDocument<T, Metadata>>;
|
|
30
43
|
len(): number;
|
|
31
44
|
isEmpty(): boolean;
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
search(request: VectorSearchRequest): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
46
|
+
inspect(request: VectorInspectRequest): Promise<VectorInspectPage<T, Metadata>>;
|
|
47
|
+
private replaceDocuments;
|
|
48
|
+
private candidates;
|
|
34
49
|
private rebuildLshIndex;
|
|
35
50
|
private validateDocumentDimensions;
|
|
36
51
|
private validateQueryDimension;
|
|
37
52
|
}
|
|
38
|
-
declare
|
|
39
|
-
private readonly model;
|
|
40
|
-
private readonly store;
|
|
41
|
-
constructor(model: EmbeddingModel, store: InMemoryVectorStore<T, Metadata>);
|
|
42
|
-
search(request: VectorSearchRequest): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
43
|
-
searchIds(request: VectorSearchRequest): Promise<Array<{
|
|
44
|
-
score: number;
|
|
45
|
-
id: string;
|
|
46
|
-
}>>;
|
|
47
|
-
inspect(request: VectorInspectRequest): Promise<VectorInspectPage<T, Metadata>>;
|
|
48
|
-
asTool(options: VectorSearchToolOptions): Tool<{
|
|
49
|
-
query: string;
|
|
50
|
-
topK?: number;
|
|
51
|
-
}, unknown>;
|
|
52
|
-
}
|
|
53
|
-
declare function createVectorSearchTool<T, Metadata extends VectorMetadata>(index: VectorSearchIndex<T, Metadata>, options: VectorSearchToolOptions): Tool<{
|
|
53
|
+
declare function createVectorSearchTool<T, Metadata extends VectorMetadata>(options: VectorSearchToolOptions<T, Metadata>): Tool<{
|
|
54
54
|
query: string;
|
|
55
55
|
topK?: number;
|
|
56
56
|
}, Array<VectorSearchResult<T, Metadata>>>;
|
|
57
57
|
|
|
58
|
-
export {
|
|
58
|
+
export { InMemoryVectorStore, type InMemoryVectorStoreFromDocumentsOptions, type InMemoryVectorStoreOptions, IndexStrategy, RetrieveDocumentsOptions, RetrieveHybridDocumentsOptions, VectorFilter, VectorInspectPage, VectorInspectRequest, VectorSearchRequest, VectorSearchResult, VectorSearchToolOptions, VectorStore, VectorStoreUpsertOptions, createVectorSearchTool, matchesVectorFilter, retrieveDocuments, vectorFilter };
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
InMemoryVectorIndex,
|
|
3
2
|
InMemoryVectorStore,
|
|
4
3
|
createVectorSearchTool,
|
|
4
|
+
matchesVectorFilter,
|
|
5
|
+
retrieveDocuments,
|
|
5
6
|
vectorFilter
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-EMZKPRE6.js";
|
|
8
|
+
import "../chunk-ZA564323.js";
|
|
9
|
+
import "../chunk-3RM57ZT2.js";
|
|
10
|
+
import "../chunk-QGX73TSQ.js";
|
|
11
|
+
import "../chunk-3XQGVDU5.js";
|
|
12
|
+
import "../chunk-3RWESPUG.js";
|
|
10
13
|
export {
|
|
11
|
-
InMemoryVectorIndex,
|
|
12
14
|
InMemoryVectorStore,
|
|
13
15
|
createVectorSearchTool,
|
|
16
|
+
matchesVectorFilter,
|
|
17
|
+
retrieveDocuments,
|
|
14
18
|
vectorFilter
|
|
15
19
|
};
|
|
16
20
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvia/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.10",
|
|
4
4
|
"description": "Core runtime primitives for context-aware Anvia agents.",
|
|
5
5
|
"author": "anvia",
|
|
6
6
|
"maintainer": "Indra Zulfi",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"type": "module",
|
|
20
|
+
"sideEffects": false,
|
|
20
21
|
"main": "./dist/index.js",
|
|
21
22
|
"types": "./dist/index.d.ts",
|
|
22
23
|
"exports": {
|
|
@@ -28,13 +29,17 @@
|
|
|
28
29
|
"types": "./dist/agent/index.d.ts",
|
|
29
30
|
"import": "./dist/agent/index.js"
|
|
30
31
|
},
|
|
32
|
+
"./agent/interactions": {
|
|
33
|
+
"types": "./dist/agent/interactions/index.d.ts",
|
|
34
|
+
"import": "./dist/agent/interactions/index.js"
|
|
35
|
+
},
|
|
31
36
|
"./internal/agent": {
|
|
32
37
|
"types": "./dist/internal/agent.d.ts",
|
|
33
38
|
"import": "./dist/internal/agent.js"
|
|
34
39
|
},
|
|
35
|
-
"./
|
|
36
|
-
"types": "./dist/
|
|
37
|
-
"import": "./dist/
|
|
40
|
+
"./speech-generation": {
|
|
41
|
+
"types": "./dist/speech-generation/index.d.ts",
|
|
42
|
+
"import": "./dist/speech-generation/index.js"
|
|
38
43
|
},
|
|
39
44
|
"./completion": {
|
|
40
45
|
"types": "./dist/completion/index.d.ts",
|
|
@@ -48,9 +53,9 @@
|
|
|
48
53
|
"types": "./dist/evals/index.d.ts",
|
|
49
54
|
"import": "./dist/evals/index.js"
|
|
50
55
|
},
|
|
51
|
-
"./
|
|
52
|
-
"types": "./dist/
|
|
53
|
-
"import": "./dist/
|
|
56
|
+
"./documents": {
|
|
57
|
+
"types": "./dist/documents/index.d.ts",
|
|
58
|
+
"import": "./dist/documents/index.js"
|
|
54
59
|
},
|
|
55
60
|
"./extractor": {
|
|
56
61
|
"types": "./dist/extractor/index.d.ts",
|
|
@@ -68,10 +73,6 @@
|
|
|
68
73
|
"types": "./dist/memory/index.d.ts",
|
|
69
74
|
"import": "./dist/memory/index.js"
|
|
70
75
|
},
|
|
71
|
-
"./hooks": {
|
|
72
|
-
"types": "./dist/hooks/index.d.ts",
|
|
73
|
-
"import": "./dist/hooks/index.js"
|
|
74
|
-
},
|
|
75
76
|
"./model-listing": {
|
|
76
77
|
"types": "./dist/model-listing/index.d.ts",
|
|
77
78
|
"import": "./dist/model-listing/index.js"
|
|
@@ -84,10 +85,6 @@
|
|
|
84
85
|
"types": "./dist/pipeline/index.d.ts",
|
|
85
86
|
"import": "./dist/pipeline/index.js"
|
|
86
87
|
},
|
|
87
|
-
"./request": {
|
|
88
|
-
"types": "./dist/request/index.d.ts",
|
|
89
|
-
"import": "./dist/request/index.js"
|
|
90
|
-
},
|
|
91
88
|
"./skills": {
|
|
92
89
|
"types": "./dist/skills/index.d.ts",
|
|
93
90
|
"import": "./dist/skills/index.js"
|
|
@@ -104,10 +101,6 @@
|
|
|
104
101
|
"types": "./dist/tool/index.d.ts",
|
|
105
102
|
"import": "./dist/tool/index.js"
|
|
106
103
|
},
|
|
107
|
-
"./ui": {
|
|
108
|
-
"types": "./dist/ui/index.d.ts",
|
|
109
|
-
"import": "./dist/ui/index.js"
|
|
110
|
-
},
|
|
111
104
|
"./transcription": {
|
|
112
105
|
"types": "./dist/transcription/index.d.ts",
|
|
113
106
|
"import": "./dist/transcription/index.js"
|
|
@@ -118,21 +111,26 @@
|
|
|
118
111
|
}
|
|
119
112
|
},
|
|
120
113
|
"dependencies": {
|
|
121
|
-
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
122
|
-
"pdfjs-dist": "^6.2.108",
|
|
123
|
-
"tinyglobby": "^0.2.17",
|
|
124
|
-
"undici": "^6.25.0",
|
|
125
114
|
"yaml": "^2.9.0",
|
|
126
115
|
"zod": "^4.4.3"
|
|
127
116
|
},
|
|
128
117
|
"devDependencies": {
|
|
129
118
|
"@types/node": "^24.9.1",
|
|
119
|
+
"pdfjs-dist": "^6.2.108",
|
|
130
120
|
"tsup": "^8.5.0",
|
|
131
121
|
"typescript": "^5.9.3",
|
|
132
122
|
"vitest": "^4.0.8"
|
|
133
123
|
},
|
|
124
|
+
"peerDependencies": {
|
|
125
|
+
"pdfjs-dist": "^6.2.108"
|
|
126
|
+
},
|
|
127
|
+
"peerDependenciesMeta": {
|
|
128
|
+
"pdfjs-dist": {
|
|
129
|
+
"optional": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
134
132
|
"scripts": {
|
|
135
|
-
"build": "tsup src/index.ts src/agent/index.ts src/
|
|
133
|
+
"build": "tsup src/index.ts src/agent/index.ts src/agent/interactions/index.ts src/internal/agent.ts src/speech-generation/index.ts src/completion/index.ts src/embeddings/index.ts src/evals/index.ts src/image-generation/index.ts src/documents/index.ts src/extractor/index.ts src/guardrails/index.ts src/mcp/index.ts src/memory/index.ts src/model-listing/index.ts src/observability/index.ts src/pipeline/index.ts src/skills/index.ts src/streaming/index.ts src/tool/index.ts src/transcription/index.ts src/vector-store/index.ts --format esm --dts --sourcemap --clean",
|
|
136
134
|
"test": "vitest run",
|
|
137
135
|
"typecheck": "tsc --noEmit"
|
|
138
136
|
}
|