@anvia/core 0.11.1 → 0.11.2
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 +13 -31
- package/dist/agent/index.js +12 -34
- package/dist/{agent-DoF-xWGj.d.ts → agent-Bq2KtSaw.d.ts} +8 -125
- package/dist/audio-generation/index.d.ts +2 -1
- package/dist/audio-generation/index.js +1 -1
- package/dist/audio-generation/index.js.map +1 -1
- package/dist/{chunk-T22FYPE2.js → chunk-5EDHXYH5.js} +6 -6
- package/dist/{chunk-M4T4ID34.js → chunk-62RUYGMM.js} +6 -6
- package/dist/chunk-62RUYGMM.js.map +1 -0
- package/dist/{chunk-AREAH2X5.js → chunk-DOS77JZC.js} +3 -239
- package/dist/chunk-DOS77JZC.js.map +1 -0
- package/dist/{chunk-W4DZU6IW.js → chunk-JS5MGVNM.js} +50 -48
- package/dist/chunk-JS5MGVNM.js.map +1 -0
- package/dist/{chunk-XXT2UCAR.js → chunk-M6RPFHG7.js} +2 -2
- package/dist/chunk-M6RPFHG7.js.map +1 -0
- package/dist/chunk-N6REB3DH.js +205 -0
- package/dist/chunk-N6REB3DH.js.map +1 -0
- package/dist/chunk-NPZDYOE6.js +53 -0
- package/dist/chunk-NPZDYOE6.js.map +1 -0
- package/dist/{chunk-VJ7AZVLS.js → chunk-R75SGHCI.js} +4 -4
- package/dist/chunk-R75SGHCI.js.map +1 -0
- package/dist/{chunk-IFQVPV32.js → chunk-SISUMRUX.js} +308 -539
- package/dist/chunk-SISUMRUX.js.map +1 -0
- package/dist/{chunk-246MPVBE.js → chunk-V3WTT7TE.js} +2 -2
- package/dist/{chunk-BVGDCFQW.js → chunk-X3SWV6W6.js} +6 -6
- package/dist/completion/index.d.ts +3 -3
- package/dist/{create-completion-7GNUka0b.d.ts → create-completion-BEbtU5pX.d.ts} +1 -1
- package/dist/embeddings/index.d.ts +6 -5
- package/dist/embeddings/index.js +1 -1
- package/dist/evals/index.d.ts +9 -9
- package/dist/evals/index.js +16 -14
- package/dist/evals/index.js.map +1 -1
- package/dist/extractor/index.d.ts +9 -9
- package/dist/extractor/index.js +12 -10
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/image-generation/index.d.ts +2 -1
- package/dist/image-generation/index.js +1 -1
- package/dist/image-generation/index.js.map +1 -1
- package/dist/index-CTNzKidE.d.ts +198 -0
- package/dist/index.d.ts +17 -15
- package/dist/index.js +24 -29
- package/dist/internal/agent.d.ts +9 -9
- package/dist/internal/agent.js +9 -7
- package/dist/loaders/index.d.ts +8 -7
- package/dist/loaders/index.js.map +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/memory/index.d.ts +4 -40
- package/dist/memory/index.js +1 -1
- package/dist/{middleware-D7nRBusA.d.ts → middleware-CG7l0rR3.d.ts} +4 -4
- package/dist/model-listing/index.d.ts +12 -11
- package/dist/model-listing/index.js +1 -1
- package/dist/model-listing/index.js.map +1 -1
- package/dist/observability/index.d.ts +3 -138
- package/dist/observability/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +9 -9
- package/dist/pipeline/index.js +3 -3
- package/dist/request/index.d.ts +27 -0
- package/dist/request/index.js +23 -0
- package/dist/request/index.js.map +1 -0
- package/dist/skills/index.d.ts +4 -4
- package/dist/skills/index.js +6 -6
- package/dist/{think-tool-DmBR-YzU.d.ts → think-tool-B8Rqw2i_.d.ts} +1 -1
- package/dist/tool/index.d.ts +6 -6
- package/dist/tool/index.js +5 -5
- package/dist/{tool-Hlcb459D.d.ts → tool-BLypI31e.d.ts} +1 -1
- package/dist/transcription/index.d.ts +1 -1
- package/dist/{types-CP3iyh6j.d.ts → types-C8loR4il.d.ts} +1 -1
- package/dist/types-CCxnnJjU.d.ts +114 -0
- package/dist/{types-CiFIAGqq.d.ts → types-CIwm9p4w.d.ts} +2 -2
- package/dist/types-CNfjQ5rB.d.ts +42 -0
- package/dist/{types-DrkBkjzk.d.ts → types-D-YTJdLj.d.ts} +1 -1
- package/dist/{types-IB2e9u5M.d.ts → types-DHHZztGO.d.ts} +1 -1
- package/dist/{types-B0cuzkjP.d.ts → types-KKjICcrA.d.ts} +2 -2
- package/dist/ui/index.d.ts +2 -28
- package/dist/ui/index.js +1 -11
- package/dist/vector-store/index.d.ts +5 -5
- package/dist/vector-store/index.js +4 -4
- package/package.json +10 -2
- package/dist/chunk-AREAH2X5.js.map +0 -1
- package/dist/chunk-IFQVPV32.js.map +0 -1
- package/dist/chunk-M4T4ID34.js.map +0 -1
- package/dist/chunk-VJ7AZVLS.js.map +0 -1
- package/dist/chunk-W4DZU6IW.js.map +0 -1
- package/dist/chunk-XXT2UCAR.js.map +0 -1
- package/dist/types-C2ArxcON.d.ts +0 -65
- /package/dist/{chunk-T22FYPE2.js.map → chunk-5EDHXYH5.js.map} +0 -0
- /package/dist/{chunk-246MPVBE.js.map → chunk-V3WTT7TE.js.map} +0 -0
- /package/dist/{chunk-BVGDCFQW.js.map → chunk-X3SWV6W6.js.map} +0 -0
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as MemoryOptions, R as ResolvedMemoryOptions } from '../types-CNfjQ5rB.js';
|
|
2
|
+
export { b as MemoryAppendInput, c as MemoryContext, d as MemoryErrorInput, e as MemoryRegistration, f as MemorySavePolicy, M as MemoryStore, S as SessionOptions } from '../types-CNfjQ5rB.js';
|
|
3
|
+
import '../types-C8loR4il.js';
|
|
2
4
|
|
|
3
|
-
type MemorySavePolicy = "message" | "turn" | "run";
|
|
4
|
-
type MemoryContext = {
|
|
5
|
-
sessionId: string;
|
|
6
|
-
userId?: string | undefined;
|
|
7
|
-
metadata?: JsonObject | undefined;
|
|
8
|
-
};
|
|
9
|
-
type MemoryAppendInput = {
|
|
10
|
-
context: MemoryContext;
|
|
11
|
-
runId: string;
|
|
12
|
-
turn: number;
|
|
13
|
-
messages: Message[];
|
|
14
|
-
};
|
|
15
|
-
type MemoryErrorInput = {
|
|
16
|
-
context: MemoryContext;
|
|
17
|
-
runId: string;
|
|
18
|
-
error: unknown;
|
|
19
|
-
messages: Message[];
|
|
20
|
-
};
|
|
21
|
-
interface MemoryStore {
|
|
22
|
-
load(context: MemoryContext): Promise<Message[]>;
|
|
23
|
-
append(input: MemoryAppendInput): Promise<void>;
|
|
24
|
-
clear(context: MemoryContext): Promise<void>;
|
|
25
|
-
recordError?(input: MemoryErrorInput): Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
type MemoryOptions = {
|
|
28
|
-
savePolicy?: MemorySavePolicy | undefined;
|
|
29
|
-
};
|
|
30
|
-
type ResolvedMemoryOptions = {
|
|
31
|
-
savePolicy: MemorySavePolicy;
|
|
32
|
-
};
|
|
33
|
-
type MemoryRegistration = {
|
|
34
|
-
store: MemoryStore;
|
|
35
|
-
options: ResolvedMemoryOptions;
|
|
36
|
-
};
|
|
37
|
-
type SessionOptions = {
|
|
38
|
-
userId?: string | undefined;
|
|
39
|
-
metadata?: JsonObject | undefined;
|
|
40
|
-
};
|
|
41
5
|
declare function resolveMemoryOptions(options?: MemoryOptions): ResolvedMemoryOptions;
|
|
42
6
|
|
|
43
|
-
export {
|
|
7
|
+
export { MemoryOptions, ResolvedMemoryOptions, resolveMemoryOptions };
|
package/dist/memory/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as ToolDefinition, b as CompletionRequest, c as CompletionResponse, e as JsonValue, k as ToolResultContent } from './types-
|
|
2
|
-
import { V as VectorMetadata, E as EmbeddingModel,
|
|
3
|
-
import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-
|
|
4
|
-
import { a as VectorSearchIndex } from './types-
|
|
1
|
+
import { h as ToolDefinition, b as CompletionRequest, c as CompletionResponse, e as JsonValue, k as ToolResultContent } from './types-C8loR4il.js';
|
|
2
|
+
import { V as VectorMetadata, E as EmbeddingModel, c as EmbeddedDocument } from './types-DHHZztGO.js';
|
|
3
|
+
import { A as AnyTool, f as ToolCallContext, N as NormalizedToolOutput } from './tool-BLypI31e.js';
|
|
4
|
+
import { a as VectorSearchIndex } from './types-KKjICcrA.js';
|
|
5
5
|
|
|
6
6
|
declare class ToolSet {
|
|
7
7
|
private readonly tools;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
type ModelListingErrorOptions = {
|
|
2
|
+
provider?: string | undefined;
|
|
3
|
+
statusCode?: number | undefined;
|
|
4
|
+
cause?: unknown;
|
|
5
|
+
};
|
|
6
|
+
declare class ModelListingError extends Error {
|
|
7
|
+
readonly provider?: string | undefined;
|
|
8
|
+
readonly statusCode?: number | undefined;
|
|
9
|
+
readonly cause?: unknown;
|
|
10
|
+
constructor(message: string, options?: ModelListingErrorOptions);
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
type ListedModel = {
|
|
2
14
|
id: string;
|
|
3
15
|
name?: string;
|
|
@@ -13,16 +25,5 @@ type ModelList = {
|
|
|
13
25
|
interface ModelListingClient {
|
|
14
26
|
listModels(): Promise<ModelList>;
|
|
15
27
|
}
|
|
16
|
-
type ModelListingErrorOptions = {
|
|
17
|
-
provider?: string | undefined;
|
|
18
|
-
statusCode?: number | undefined;
|
|
19
|
-
cause?: unknown;
|
|
20
|
-
};
|
|
21
|
-
declare class ModelListingError extends Error {
|
|
22
|
-
readonly provider?: string | undefined;
|
|
23
|
-
readonly statusCode?: number | undefined;
|
|
24
|
-
readonly cause?: unknown;
|
|
25
|
-
constructor(message: string, options?: ModelListingErrorOptions);
|
|
26
|
-
}
|
|
27
28
|
|
|
28
29
|
export { type ListedModel, type ModelList, type ModelListingClient, ModelListingError };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/model-listing/
|
|
1
|
+
{"version":3,"sources":["../../src/model-listing/errors.ts"],"sourcesContent":["type ModelListingErrorOptions = {\n provider?: string | undefined;\n statusCode?: number | undefined;\n cause?: unknown;\n};\n\nexport class ModelListingError extends Error {\n readonly provider?: string | undefined;\n readonly statusCode?: number | undefined;\n override readonly cause?: unknown;\n\n constructor(message: string, options: ModelListingErrorOptions = {}) {\n super(message, { cause: options.cause });\n this.name = \"ModelListingError\";\n this.provider = options.provider;\n this.statusCode = options.statusCode;\n this.cause = options.cause;\n }\n}\n"],"mappings":";AAMO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAClC;AAAA,EACA;AAAA,EACS;AAAA,EAElB,YAAY,SAAiB,UAAoC,CAAC,GAAG;AACnE,UAAM,SAAS,EAAE,OAAO,QAAQ,MAAM,CAAC;AACvC,SAAK,OAAO;AACZ,SAAK,WAAW,QAAQ;AACxB,SAAK,aAAa,QAAQ;AAC1B,SAAK,QAAQ,QAAQ;AAAA,EACvB;AACF;","names":[]}
|
|
@@ -1,138 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
type AgentDeltaEvent = {
|
|
5
|
-
type: "text_delta";
|
|
6
|
-
delta: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: "reasoning_delta";
|
|
9
|
-
delta: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
contentType?: ReasoningContentType;
|
|
12
|
-
signature?: string;
|
|
13
|
-
} | {
|
|
14
|
-
type: "tool_call";
|
|
15
|
-
toolCall: ToolCall;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
type AgentTraceInfo = {
|
|
19
|
-
traceId?: string | undefined;
|
|
20
|
-
observationId?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
type AgentTraceOptions = {
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
userId?: string | undefined;
|
|
25
|
-
sessionId?: string | undefined;
|
|
26
|
-
metadata?: Record<string, unknown> | undefined;
|
|
27
|
-
tags?: string[] | undefined;
|
|
28
|
-
version?: string | undefined;
|
|
29
|
-
traceId?: string | undefined;
|
|
30
|
-
failOnObserverError?: boolean | undefined;
|
|
31
|
-
};
|
|
32
|
-
type AgentRunPromptRef = {
|
|
33
|
-
name: string;
|
|
34
|
-
version?: number | undefined;
|
|
35
|
-
};
|
|
36
|
-
type AgentRunStartArgs = {
|
|
37
|
-
agentName?: string | undefined;
|
|
38
|
-
agentDescription?: string | undefined;
|
|
39
|
-
instructions?: string | undefined;
|
|
40
|
-
trace?: AgentTraceOptions | undefined;
|
|
41
|
-
prompt: Message;
|
|
42
|
-
promptRef?: AgentRunPromptRef | undefined;
|
|
43
|
-
history: Message[];
|
|
44
|
-
maxTurns: number;
|
|
45
|
-
};
|
|
46
|
-
type AgentRunEndArgs = {
|
|
47
|
-
output: string;
|
|
48
|
-
usage: Usage;
|
|
49
|
-
messages: Message[];
|
|
50
|
-
};
|
|
51
|
-
type AgentRunErrorArgs = {
|
|
52
|
-
error: unknown;
|
|
53
|
-
usage: Usage;
|
|
54
|
-
messages: Message[];
|
|
55
|
-
};
|
|
56
|
-
type AgentGenerationStartArgs = {
|
|
57
|
-
turn: number;
|
|
58
|
-
request: CompletionRequest;
|
|
59
|
-
providerRequest?: JsonObject | undefined;
|
|
60
|
-
modelInfo?: {
|
|
61
|
-
provider: string;
|
|
62
|
-
defaultModel: string;
|
|
63
|
-
capabilities?: CompletionModelCapabilities | undefined;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
type AgentGenerationEndArgs<RawResponse = unknown> = {
|
|
67
|
-
turn: number;
|
|
68
|
-
response: CompletionResponse<RawResponse>;
|
|
69
|
-
firstDeltaMs?: number | undefined;
|
|
70
|
-
};
|
|
71
|
-
type AgentGenerationErrorArgs = {
|
|
72
|
-
turn: number;
|
|
73
|
-
error: unknown;
|
|
74
|
-
};
|
|
75
|
-
type AgentGenerationUpdateArgs = {
|
|
76
|
-
turn: number;
|
|
77
|
-
delta: AgentDeltaEvent;
|
|
78
|
-
};
|
|
79
|
-
type AgentRunEventArgs = {
|
|
80
|
-
name: string;
|
|
81
|
-
attributes?: Record<string, JsonValue | undefined> | undefined;
|
|
82
|
-
level?: "DEFAULT" | "WARNING" | "ERROR" | undefined;
|
|
83
|
-
timestamp?: Date | string | undefined;
|
|
84
|
-
};
|
|
85
|
-
type AgentToolStartArgs = {
|
|
86
|
-
turn: number;
|
|
87
|
-
toolCall: ToolCall;
|
|
88
|
-
toolName: string;
|
|
89
|
-
args: string;
|
|
90
|
-
internalCallId: string;
|
|
91
|
-
toolCallId?: string | undefined;
|
|
92
|
-
toolDefinition?: ToolDefinition | undefined;
|
|
93
|
-
toolMetadata?: JsonObject | undefined;
|
|
94
|
-
};
|
|
95
|
-
type AgentToolEndArgs = AgentToolStartArgs & {
|
|
96
|
-
result: string;
|
|
97
|
-
structuredResult?: ToolResultContent[] | undefined;
|
|
98
|
-
skipped: boolean;
|
|
99
|
-
};
|
|
100
|
-
type AgentToolErrorArgs = AgentToolStartArgs & {
|
|
101
|
-
error: unknown;
|
|
102
|
-
};
|
|
103
|
-
type AgentToolStreamEventArgs = AgentToolStartArgs & {
|
|
104
|
-
event: ToolCallStreamEvent;
|
|
105
|
-
};
|
|
106
|
-
interface AgentGenerationObserver {
|
|
107
|
-
end(args: AgentGenerationEndArgs): void | Promise<void>;
|
|
108
|
-
error?(args: AgentGenerationErrorArgs): void | Promise<void>;
|
|
109
|
-
update?(args: AgentGenerationUpdateArgs): void | Promise<void>;
|
|
110
|
-
}
|
|
111
|
-
interface AgentToolObserver {
|
|
112
|
-
streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;
|
|
113
|
-
end(args: AgentToolEndArgs): void | Promise<void>;
|
|
114
|
-
error?(args: AgentToolErrorArgs): void | Promise<void>;
|
|
115
|
-
}
|
|
116
|
-
interface AgentRunObserver {
|
|
117
|
-
readonly trace?: AgentTraceInfo | undefined;
|
|
118
|
-
startGeneration?(args: AgentGenerationStartArgs): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;
|
|
119
|
-
startTool?(args: AgentToolStartArgs): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;
|
|
120
|
-
end(args: AgentRunEndArgs): void | Promise<void>;
|
|
121
|
-
error?(args: AgentRunErrorArgs): void | Promise<void>;
|
|
122
|
-
event?(args: AgentRunEventArgs): void | Promise<void>;
|
|
123
|
-
}
|
|
124
|
-
interface AgentObserver {
|
|
125
|
-
startRun(args: AgentRunStartArgs): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;
|
|
126
|
-
flush?(): void | Promise<void>;
|
|
127
|
-
shutdown?(): void | Promise<void>;
|
|
128
|
-
}
|
|
129
|
-
type AgentObserverRegistration = {
|
|
130
|
-
observer: AgentObserver;
|
|
131
|
-
failOnObserverError?: boolean | undefined;
|
|
132
|
-
};
|
|
133
|
-
type ObserveOptions = {
|
|
134
|
-
failOnObserverError?: boolean | undefined;
|
|
135
|
-
};
|
|
136
|
-
declare function createObserver(observer: AgentObserver): AgentObserver;
|
|
137
|
-
|
|
138
|
-
export { type AgentGenerationEndArgs, type AgentGenerationErrorArgs, type AgentGenerationObserver, type AgentGenerationStartArgs, type AgentGenerationUpdateArgs, type AgentObserver, type AgentObserverRegistration, type AgentRunEndArgs, type AgentRunErrorArgs, type AgentRunEventArgs, type AgentRunObserver, type AgentRunPromptRef, type AgentRunStartArgs, type AgentToolEndArgs, type AgentToolErrorArgs, type AgentToolObserver, type AgentToolStartArgs, type AgentToolStreamEventArgs, type AgentTraceInfo, type AgentTraceOptions, type ObserveOptions, createObserver };
|
|
1
|
+
export { f as AgentGenerationEndArgs, g as AgentGenerationErrorArgs, h as AgentGenerationObserver, i as AgentGenerationStartArgs, j as AgentGenerationUpdateArgs, b as AgentObserver, d as AgentObserverRegistration, k as AgentRunEndArgs, l as AgentRunErrorArgs, m as AgentRunEventArgs, n as AgentRunObserver, o as AgentRunPromptRef, p as AgentRunStartArgs, q as AgentToolEndArgs, r as AgentToolErrorArgs, s as AgentToolObserver, t as AgentToolStartArgs, u as AgentToolStreamEventArgs, v as AgentTraceInfo, c as AgentTraceOptions, O as ObserveOptions, w as createObserver } from '../index-CTNzKidE.js';
|
|
2
|
+
import '../types-C8loR4il.js';
|
|
3
|
+
import '../tool-BLypI31e.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/observability/types.ts"],"sourcesContent":["import type {\n CompletionModelCapabilities,\n CompletionRequest,\n CompletionResponse,\n JsonObject,\n JsonValue,\n Message,\n ToolCall,\n ToolDefinition,\n ToolResultContent,\n Usage,\n} from \"../completion\";\nimport type { AgentDeltaEvent } from \"../request/
|
|
1
|
+
{"version":3,"sources":["../../src/observability/types.ts"],"sourcesContent":["import type {\n CompletionModelCapabilities,\n CompletionRequest,\n CompletionResponse,\n JsonObject,\n JsonValue,\n Message,\n ToolCall,\n ToolDefinition,\n ToolResultContent,\n Usage,\n} from \"../completion\";\nimport type { AgentDeltaEvent } from \"../request/types\";\nimport type { ToolCallStreamEvent } from \"../tool\";\n\nexport type AgentTraceInfo = {\n traceId?: string | undefined;\n observationId?: string | undefined;\n};\n\nexport type AgentTraceOptions = {\n name?: string | undefined;\n userId?: string | undefined;\n sessionId?: string | undefined;\n metadata?: Record<string, unknown> | undefined;\n tags?: string[] | undefined;\n version?: string | undefined;\n traceId?: string | undefined;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type AgentRunPromptRef = {\n name: string;\n version?: number | undefined;\n};\n\nexport type AgentRunStartArgs = {\n agentName?: string | undefined;\n agentDescription?: string | undefined;\n instructions?: string | undefined;\n trace?: AgentTraceOptions | undefined;\n prompt: Message;\n promptRef?: AgentRunPromptRef | undefined;\n history: Message[];\n maxTurns: number;\n};\n\nexport type AgentRunEndArgs = {\n output: string;\n usage: Usage;\n messages: Message[];\n};\n\nexport type AgentRunErrorArgs = {\n error: unknown;\n usage: Usage;\n messages: Message[];\n};\n\nexport type AgentGenerationStartArgs = {\n turn: number;\n request: CompletionRequest;\n providerRequest?: JsonObject | undefined;\n modelInfo?: {\n provider: string;\n defaultModel: string;\n capabilities?: CompletionModelCapabilities | undefined;\n };\n};\n\nexport type AgentGenerationEndArgs<RawResponse = unknown> = {\n turn: number;\n response: CompletionResponse<RawResponse>;\n firstDeltaMs?: number | undefined;\n};\n\nexport type AgentGenerationErrorArgs = {\n turn: number;\n error: unknown;\n};\n\nexport type AgentGenerationUpdateArgs = {\n turn: number;\n delta: AgentDeltaEvent;\n};\n\nexport type AgentRunEventArgs = {\n name: string;\n attributes?: Record<string, JsonValue | undefined> | undefined;\n level?: \"DEFAULT\" | \"WARNING\" | \"ERROR\" | undefined;\n timestamp?: Date | string | undefined;\n};\n\nexport type AgentToolStartArgs = {\n turn: number;\n toolCall: ToolCall;\n toolName: string;\n args: string;\n internalCallId: string;\n toolCallId?: string | undefined;\n toolDefinition?: ToolDefinition | undefined;\n toolMetadata?: JsonObject | undefined;\n};\n\nexport type AgentToolEndArgs = AgentToolStartArgs & {\n result: string;\n structuredResult?: ToolResultContent[] | undefined;\n skipped: boolean;\n};\n\nexport type AgentToolErrorArgs = AgentToolStartArgs & {\n error: unknown;\n};\n\nexport type AgentToolStreamEventArgs = AgentToolStartArgs & {\n event: ToolCallStreamEvent;\n};\n\nexport interface AgentGenerationObserver {\n end(args: AgentGenerationEndArgs): void | Promise<void>;\n error?(args: AgentGenerationErrorArgs): void | Promise<void>;\n update?(args: AgentGenerationUpdateArgs): void | Promise<void>;\n}\n\nexport interface AgentToolObserver {\n streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;\n end(args: AgentToolEndArgs): void | Promise<void>;\n error?(args: AgentToolErrorArgs): void | Promise<void>;\n}\n\nexport interface AgentRunObserver {\n readonly trace?: AgentTraceInfo | undefined;\n startGeneration?(\n args: AgentGenerationStartArgs,\n ): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;\n startTool?(\n args: AgentToolStartArgs,\n ): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;\n end(args: AgentRunEndArgs): void | Promise<void>;\n error?(args: AgentRunErrorArgs): void | Promise<void>;\n event?(args: AgentRunEventArgs): void | Promise<void>;\n}\n\nexport interface AgentObserver {\n startRun(\n args: AgentRunStartArgs,\n ): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;\n flush?(): void | Promise<void>;\n shutdown?(): void | Promise<void>;\n}\n\nexport type AgentObserverRegistration = {\n observer: AgentObserver;\n failOnObserverError?: boolean | undefined;\n};\n\nexport type ObserveOptions = {\n failOnObserverError?: boolean | undefined;\n};\n\nexport function createObserver(observer: AgentObserver): AgentObserver {\n return observer;\n}\n"],"mappings":";AAgKO,SAAS,eAAe,UAAwC;AACrE,SAAO;AACT;","names":[]}
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
3
|
-
import { J as JsonObject, C as CompletionModel } from '../types-
|
|
2
|
+
import { A as Agent } from '../agent-Bq2KtSaw.js';
|
|
3
|
+
import { J as JsonObject, C as CompletionModel } from '../types-C8loR4il.js';
|
|
4
4
|
import { Extractor } from '../extractor/index.js';
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../types-
|
|
11
|
-
import '../types-
|
|
5
|
+
import '../types-CCxnnJjU.js';
|
|
6
|
+
import '../types-CNfjQ5rB.js';
|
|
7
|
+
import '../index-CTNzKidE.js';
|
|
8
|
+
import '../tool-BLypI31e.js';
|
|
9
|
+
import '../middleware-CG7l0rR3.js';
|
|
10
|
+
import '../types-DHHZztGO.js';
|
|
11
|
+
import '../types-KKjICcrA.js';
|
|
12
12
|
import '../zod-schema-C7F4clpm.js';
|
|
13
13
|
|
|
14
14
|
/** Minimal interface for anything that can run as a pipeline stage. */
|
package/dist/pipeline/index.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { M as Message } from '../types-C8loR4il.js';
|
|
2
|
+
import { d as ToolApprovalRequest } from '../tool-BLypI31e.js';
|
|
3
|
+
export { P as PromptRequest } from '../agent-Bq2KtSaw.js';
|
|
4
|
+
export { A as AgentChildStreamEvent, e as AgentDeltaEvent, a as AgentStreamEvent, P as PromptResponse } from '../index-CTNzKidE.js';
|
|
5
|
+
import '../types-CCxnnJjU.js';
|
|
6
|
+
import '../types-CNfjQ5rB.js';
|
|
7
|
+
import '../middleware-CG7l0rR3.js';
|
|
8
|
+
import '../types-DHHZztGO.js';
|
|
9
|
+
import '../types-KKjICcrA.js';
|
|
10
|
+
|
|
11
|
+
declare class MaxTurnsError extends Error {
|
|
12
|
+
readonly maxTurns: number;
|
|
13
|
+
readonly chatHistory: Message[];
|
|
14
|
+
readonly prompt: Message;
|
|
15
|
+
constructor(maxTurns: number, chatHistory: Message[], prompt: Message);
|
|
16
|
+
}
|
|
17
|
+
declare class PromptCancelledError extends Error {
|
|
18
|
+
readonly chatHistory: Message[];
|
|
19
|
+
readonly reason: string;
|
|
20
|
+
constructor(chatHistory: Message[], reason: string);
|
|
21
|
+
}
|
|
22
|
+
declare class ToolApprovalRequiredError extends Error {
|
|
23
|
+
readonly request: ToolApprovalRequest;
|
|
24
|
+
constructor(request: ToolApprovalRequest);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { MaxTurnsError, PromptCancelledError, ToolApprovalRequiredError };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MaxTurnsError,
|
|
3
|
+
PromptCancelledError,
|
|
4
|
+
PromptRequest,
|
|
5
|
+
ToolApprovalRequiredError
|
|
6
|
+
} from "../chunk-SISUMRUX.js";
|
|
7
|
+
import "../chunk-XUUY2L2D.js";
|
|
8
|
+
import "../chunk-X3SWV6W6.js";
|
|
9
|
+
import "../chunk-5EDHXYH5.js";
|
|
10
|
+
import "../chunk-JS5MGVNM.js";
|
|
11
|
+
import "../chunk-OIMLU4SF.js";
|
|
12
|
+
import "../chunk-5G3VME2D.js";
|
|
13
|
+
import "../chunk-WJO6NVE2.js";
|
|
14
|
+
import "../chunk-WQKHFADH.js";
|
|
15
|
+
import "../chunk-NPZDYOE6.js";
|
|
16
|
+
import "../chunk-MMHG7WAM.js";
|
|
17
|
+
export {
|
|
18
|
+
MaxTurnsError,
|
|
19
|
+
PromptCancelledError,
|
|
20
|
+
PromptRequest,
|
|
21
|
+
ToolApprovalRequiredError
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/skills/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SkillLoader, a as SkillSet } from '../types-
|
|
2
|
-
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-
|
|
3
|
-
import '../tool-
|
|
4
|
-
import '../types-
|
|
1
|
+
import { b as SkillLoader, a as SkillSet } from '../types-D-YTJdLj.js';
|
|
2
|
+
export { c as Skill, S as SkillValidationError, d as SkillValidationIssue } from '../types-D-YTJdLj.js';
|
|
3
|
+
import '../tool-BLypI31e.js';
|
|
4
|
+
import '../types-C8loR4il.js';
|
|
5
5
|
|
|
6
6
|
declare function loadSkills(loaders: SkillLoader | SkillLoader[]): Promise<SkillSet>;
|
|
7
7
|
|
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-V3WTT7TE.js";
|
|
6
6
|
import "../chunk-YK4WAAS4.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-X3SWV6W6.js";
|
|
8
|
+
import "../chunk-5EDHXYH5.js";
|
|
9
|
+
import "../chunk-JS5MGVNM.js";
|
|
10
|
+
import "../chunk-OIMLU4SF.js";
|
|
10
11
|
import "../chunk-WJO6NVE2.js";
|
|
11
12
|
import "../chunk-WQKHFADH.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-OIMLU4SF.js";
|
|
13
|
+
import "../chunk-MMHG7WAM.js";
|
|
14
14
|
export {
|
|
15
15
|
SkillValidationError,
|
|
16
16
|
loadSkills,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
3
|
-
import { c as ToolApprovalPolicy, f as ToolCallContext, T as Tool } from './tool-
|
|
3
|
+
import { c as ToolApprovalPolicy, f as ToolCallContext, T as Tool } from './tool-BLypI31e.js';
|
|
4
4
|
|
|
5
5
|
type CreateToolOptions<InputSchema extends ZodSchema, OutputSchema extends ZodSchema | undefined = undefined, Output = unknown> = {
|
|
6
6
|
name: string;
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-
|
|
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 ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, k as ToolSearchDocument, l as ToolSet, i as createMiddleware, m as createToolIndex, j as createToolMiddleware, n as embedTools, o as isDynamicToolIndex } from '../middleware-
|
|
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-
|
|
4
|
-
export {
|
|
1
|
+
export { b as CreateThinkToolOptions, C as CreateToolOptions, c as createThinkTool, a as createTool } from '../think-tool-B8Rqw2i_.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 ToolMiddleware, f as ToolOutputMiddlewareArgs, g as ToolOutputMiddlewareResult, h as ToolResultMiddlewareArgs, k as ToolSearchDocument, l as ToolSet, i as createMiddleware, m as createToolIndex, j as createToolMiddleware, n as embedTools, o as isDynamicToolIndex } from '../middleware-CG7l0rR3.js';
|
|
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-BLypI31e.js';
|
|
4
|
+
export { q as isToolResultContentArray, s as serializeToolOutput } from '../types-C8loR4il.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zod-schema-C7F4clpm.js';
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../types-
|
|
7
|
+
import '../types-DHHZztGO.js';
|
|
8
|
+
import '../types-KKjICcrA.js';
|
|
9
9
|
|
|
10
10
|
declare class ToolCallError extends Error {
|
|
11
11
|
readonly cause?: unknown | undefined;
|
package/dist/tool/index.js
CHANGED
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
normalizeToolResultOutput,
|
|
14
14
|
parseToolArgs,
|
|
15
15
|
toolResultContentToText
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-X3SWV6W6.js";
|
|
17
17
|
import {
|
|
18
18
|
createTool
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-5EDHXYH5.js";
|
|
20
|
+
import "../chunk-JS5MGVNM.js";
|
|
21
|
+
import "../chunk-OIMLU4SF.js";
|
|
21
22
|
import {
|
|
22
23
|
isToolResultContentArray,
|
|
23
24
|
serializeToolResultOutput
|
|
24
25
|
} from "../chunk-WJO6NVE2.js";
|
|
25
26
|
import "../chunk-WQKHFADH.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-OIMLU4SF.js";
|
|
27
|
+
import "../chunk-MMHG7WAM.js";
|
|
28
28
|
export {
|
|
29
29
|
ToolCallError,
|
|
30
30
|
ToolJsonError,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as JsonObject, h as ToolDefinition, k as ToolResultContent, e as JsonValue } from './types-
|
|
1
|
+
import { J as JsonObject, h as ToolDefinition, k as ToolResultContent, e as JsonValue } from './types-C8loR4il.js';
|
|
2
2
|
|
|
3
3
|
type ToolApprovalRunContext = {
|
|
4
4
|
agentId: string;
|
|
@@ -255,4 +255,4 @@ declare function assertCompletionRequestSupported(model: CompletionModel, reques
|
|
|
255
255
|
}): void;
|
|
256
256
|
declare function textFromAssistantContent(content: AssistantContent[]): string;
|
|
257
257
|
|
|
258
|
-
export { AssistantContent as A, reasoningDisplayText as B, type CompletionModel as C, type Document as D, textFromAssistantContent as E, type ImageContent as I, type JsonObject as J, Message as M, type
|
|
258
|
+
export { AssistantContent as A, reasoningDisplayText as B, type CompletionModel as C, type Document as D, textFromAssistantContent as E, type ImageContent as I, type JsonObject as J, Message as M, type Reasoning as R, type SystemMessage as S, type Text as T, Usage as U, type AssistantMessage as a, type CompletionRequest as b, type CompletionResponse as c, type JsonPrimitive as d, type JsonValue as e, type ToolCall as f, ToolContent as g, type ToolDefinition as h, type ToolMessage as i, type ToolResult as j, type ToolResultContent as k, UserContent as l, type UserMessage as m, type ToolChoice as n, type StreamingCompletionModel as o, type CompletionStreamEvent as p, isToolResultContentArray as q, CompletionCapabilityError as r, serializeToolResultOutput as s, type CompletionModelCapabilities as t, type DocumentContent as u, type ImageDetail as v, type ReasoningContent as w, type ReasoningContentType as x, type ToolFunction as y, assertCompletionRequestSupported as z };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { M as Message, U as Usage, c as CompletionResponse, k as ToolResultContent } from './types-C8loR4il.js';
|
|
2
|
+
|
|
3
|
+
type HookAction = {
|
|
4
|
+
type: "continue";
|
|
5
|
+
} | {
|
|
6
|
+
type: "terminate";
|
|
7
|
+
reason: string;
|
|
8
|
+
};
|
|
9
|
+
type ToolApprovalRequestOptions = {
|
|
10
|
+
reason?: string;
|
|
11
|
+
rejectMessage?: string;
|
|
12
|
+
};
|
|
13
|
+
type ToolCallHookAction = {
|
|
14
|
+
type: "continue";
|
|
15
|
+
} | {
|
|
16
|
+
type: "skip";
|
|
17
|
+
reason: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "terminate";
|
|
20
|
+
reason: string;
|
|
21
|
+
} | ({
|
|
22
|
+
type: "approval_request";
|
|
23
|
+
} & ToolApprovalRequestOptions);
|
|
24
|
+
type RunControl = {
|
|
25
|
+
continue(): HookAction;
|
|
26
|
+
cancel(reason: string): HookAction;
|
|
27
|
+
};
|
|
28
|
+
type ToolCallControl = {
|
|
29
|
+
run(): ToolCallHookAction;
|
|
30
|
+
skip(reason: string): ToolCallHookAction;
|
|
31
|
+
cancel(reason: string): ToolCallHookAction;
|
|
32
|
+
requestApproval(options?: ToolApprovalRequestOptions): ToolCallHookAction;
|
|
33
|
+
};
|
|
34
|
+
type HookResult = HookAction | undefined;
|
|
35
|
+
type ToolCallHookResult = ToolCallHookAction | undefined;
|
|
36
|
+
type HookCallback<Args> = (args: Args) => HookAction | Promise<HookAction | undefined> | Promise<void> | void;
|
|
37
|
+
type ToolCallHookCallback<Args> = (args: Args) => ToolCallHookAction | Promise<ToolCallHookAction | undefined> | Promise<void> | void;
|
|
38
|
+
type CompletionCallHookArgs = {
|
|
39
|
+
prompt: Message;
|
|
40
|
+
history: Message[];
|
|
41
|
+
run: RunControl;
|
|
42
|
+
};
|
|
43
|
+
type RunStartHookArgs = {
|
|
44
|
+
prompt: Message;
|
|
45
|
+
history: Message[];
|
|
46
|
+
maxTurns: number;
|
|
47
|
+
run: RunControl;
|
|
48
|
+
};
|
|
49
|
+
type RunEndHookArgs = {
|
|
50
|
+
output: string;
|
|
51
|
+
usage: Usage;
|
|
52
|
+
messages: Message[];
|
|
53
|
+
run: RunControl;
|
|
54
|
+
};
|
|
55
|
+
type RunErrorHookArgs = {
|
|
56
|
+
error: unknown;
|
|
57
|
+
usage: Usage;
|
|
58
|
+
messages: Message[];
|
|
59
|
+
run: RunControl;
|
|
60
|
+
};
|
|
61
|
+
type TurnStartHookArgs = {
|
|
62
|
+
turn: number;
|
|
63
|
+
prompt: Message;
|
|
64
|
+
history: Message[];
|
|
65
|
+
run: RunControl;
|
|
66
|
+
};
|
|
67
|
+
type TurnEndHookArgs<RawResponse = unknown> = {
|
|
68
|
+
turn: number;
|
|
69
|
+
response: CompletionResponse<RawResponse>;
|
|
70
|
+
run: RunControl;
|
|
71
|
+
};
|
|
72
|
+
type CompletionResponseHookArgs<RawResponse = unknown> = {
|
|
73
|
+
prompt: Message;
|
|
74
|
+
response: CompletionResponse<RawResponse>;
|
|
75
|
+
run: RunControl;
|
|
76
|
+
};
|
|
77
|
+
type CompletionErrorHookArgs = {
|
|
78
|
+
prompt: Message;
|
|
79
|
+
error: unknown;
|
|
80
|
+
run: RunControl;
|
|
81
|
+
};
|
|
82
|
+
type ToolHookArgs = {
|
|
83
|
+
toolName: string;
|
|
84
|
+
toolCallId?: string;
|
|
85
|
+
internalCallId: string;
|
|
86
|
+
args: string;
|
|
87
|
+
};
|
|
88
|
+
type ToolCallHookArgs = ToolHookArgs & {
|
|
89
|
+
tool: ToolCallControl;
|
|
90
|
+
};
|
|
91
|
+
type ToolResultHookArgs = ToolHookArgs & {
|
|
92
|
+
result: string;
|
|
93
|
+
structuredResult?: ToolResultContent[] | undefined;
|
|
94
|
+
run: RunControl;
|
|
95
|
+
};
|
|
96
|
+
type ToolErrorHookArgs = ToolHookArgs & {
|
|
97
|
+
error: unknown;
|
|
98
|
+
run: RunControl;
|
|
99
|
+
};
|
|
100
|
+
interface PromptHook<RawResponse = unknown> {
|
|
101
|
+
onRunStart?: HookCallback<RunStartHookArgs>;
|
|
102
|
+
onRunEnd?: HookCallback<RunEndHookArgs>;
|
|
103
|
+
onRunError?: HookCallback<RunErrorHookArgs>;
|
|
104
|
+
onTurnStart?: HookCallback<TurnStartHookArgs>;
|
|
105
|
+
onTurnEnd?: HookCallback<TurnEndHookArgs<RawResponse>>;
|
|
106
|
+
onCompletionCall?: HookCallback<CompletionCallHookArgs>;
|
|
107
|
+
onCompletionResponse?: HookCallback<CompletionResponseHookArgs<RawResponse>>;
|
|
108
|
+
onCompletionError?: HookCallback<CompletionErrorHookArgs>;
|
|
109
|
+
onToolCall?: ToolCallHookCallback<ToolCallHookArgs>;
|
|
110
|
+
onToolResult?: HookCallback<ToolResultHookArgs>;
|
|
111
|
+
onToolError?: HookCallback<ToolErrorHookArgs>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type { CompletionCallHookArgs as C, HookAction as H, PromptHook as P, RunControl as R, ToolApprovalRequestOptions as T, ToolCallHookAction as a, ToolCallControl as b, CompletionErrorHookArgs as c, CompletionResponseHookArgs as d, HookResult as e, RunEndHookArgs as f, RunErrorHookArgs as g, RunStartHookArgs as h, ToolCallHookArgs as i, ToolCallHookResult as j, ToolErrorHookArgs as k, ToolHookArgs as l, ToolResultHookArgs as m, TurnEndHookArgs as n, TurnStartHookArgs as o };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
2
2
|
import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
3
3
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
4
|
-
import { J as JsonObject } from './types-
|
|
5
|
-
import { A as AnyTool } from './tool-
|
|
4
|
+
import { J as JsonObject } from './types-C8loR4il.js';
|
|
5
|
+
import { A as AnyTool } from './tool-BLypI31e.js';
|
|
6
6
|
|
|
7
7
|
type McpToolDefinition = {
|
|
8
8
|
name: string;
|