@anvia/core 0.26.0 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -11
- package/dist/agent/index.d.ts +26 -68
- package/dist/agent/index.js +20 -17
- package/dist/agent-DGYY_onS.d.ts +145 -0
- package/dist/audio-generation/index.d.ts +12 -14
- package/dist/audio-generation/index.js +5 -39
- package/dist/audio-generation/index.js.map +1 -1
- package/dist/{chunk-MRQLEK2B.js → chunk-5XKDW36Z.js} +30 -7
- package/dist/chunk-5XKDW36Z.js.map +1 -0
- package/dist/chunk-6WGGTJE6.js +139 -0
- package/dist/chunk-6WGGTJE6.js.map +1 -0
- package/dist/chunk-A3UBYTJT.js +157 -0
- package/dist/chunk-A3UBYTJT.js.map +1 -0
- package/dist/{chunk-NCPN4SJR.js → chunk-DMPUP4R3.js} +10 -10
- package/dist/chunk-DMPUP4R3.js.map +1 -0
- package/dist/{chunk-MNWK2USR.js → chunk-DZ3CKYTH.js} +29 -5
- package/dist/chunk-DZ3CKYTH.js.map +1 -0
- package/dist/{chunk-CWUJUSOS.js → chunk-FNQB2JEH.js} +1 -1
- package/dist/chunk-FNQB2JEH.js.map +1 -0
- package/dist/chunk-I6G7BC42.js +41 -0
- package/dist/chunk-I6G7BC42.js.map +1 -0
- package/dist/{chunk-BALBBVI3.js → chunk-IL3ZSNJI.js} +2720 -1704
- package/dist/chunk-IL3ZSNJI.js.map +1 -0
- package/dist/chunk-J6GNQART.js +122 -0
- package/dist/chunk-J6GNQART.js.map +1 -0
- package/dist/{chunk-MC3CCKEB.js → chunk-M3IOWB4Y.js} +124 -65
- package/dist/chunk-M3IOWB4Y.js.map +1 -0
- package/dist/chunk-QY5GZ7HR.js +39 -0
- package/dist/chunk-QY5GZ7HR.js.map +1 -0
- package/dist/{chunk-MELYDKWQ.js → chunk-R2LJSQUW.js} +190 -20
- package/dist/chunk-R2LJSQUW.js.map +1 -0
- package/dist/{chunk-WQKHFADH.js → chunk-RFDVKCIE.js} +3 -3
- package/dist/chunk-RFDVKCIE.js.map +1 -0
- package/dist/chunk-RMUBRRSK.js +34 -0
- package/dist/chunk-RMUBRRSK.js.map +1 -0
- package/dist/{chunk-I6XOQ4LK.js → chunk-RXKHOYEH.js} +1 -1
- package/dist/chunk-RXKHOYEH.js.map +1 -0
- package/dist/chunk-XDRSPSR7.js +38 -0
- package/dist/chunk-XDRSPSR7.js.map +1 -0
- package/dist/completion/index.d.ts +5 -36
- package/dist/completion/index.js +4 -5
- package/dist/dynamic-tools-i9woysFa.d.ts +33 -0
- package/dist/embeddings/index.d.ts +2 -2
- package/dist/embeddings/index.js +1 -2
- package/dist/{errors-2moLDuuN.d.ts → errors-CYKUcU89.d.ts} +2 -2
- package/dist/evals/index.d.ts +22 -15
- package/dist/evals/index.js +57 -35
- package/dist/evals/index.js.map +1 -1
- package/dist/extractor/index.d.ts +23 -35
- package/dist/extractor/index.js +7 -21
- package/dist/guardrails/index.d.ts +2 -2
- package/dist/guardrails/index.js +1 -1
- package/dist/image-generation/index.d.ts +12 -14
- package/dist/image-generation/index.js +5 -39
- package/dist/image-generation/index.js.map +1 -1
- package/dist/index-DxB74ybJ.d.ts +349 -0
- package/dist/index.d.ts +20 -17
- package/dist/index.js +31 -36
- package/dist/internal/agent.d.ts +152 -9
- package/dist/internal/agent.js +22 -17
- package/dist/{json-BVPssigK.d.ts → json-Zo7K3xmt.d.ts} +12 -11
- package/dist/loaders/index.d.ts +5 -10
- package/dist/loaders/index.js.map +1 -1
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js.map +1 -1
- package/dist/memory/index.d.ts +4 -4
- package/dist/memory/index.js +6 -7
- package/dist/middleware-KynLg_RW.d.ts +56 -0
- package/dist/observability/index.d.ts +6 -3
- package/dist/observability/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +40 -47
- package/dist/pipeline/index.js +99 -99
- package/dist/pipeline/index.js.map +1 -1
- package/dist/retry-D3Ruy-ba.d.ts +15 -0
- package/dist/skills/index.d.ts +4 -4
- package/dist/skills/index.js +5 -6
- package/dist/streaming/index.js +37 -3
- package/dist/streaming/index.js.map +1 -1
- package/dist/{think-tool-DfCMuO8e.d.ts → think-tool-DZqZj2LV.d.ts} +5 -5
- package/dist/tool/index.d.ts +8 -6
- package/dist/tool/index.js +12 -15
- package/dist/tool-C_8GudXn.d.ts +49 -0
- package/dist/transcription/index.d.ts +14 -16
- package/dist/transcription/index.js +5 -57
- package/dist/transcription/index.js.map +1 -1
- package/dist/type-utils-CtHVDRn_.d.ts +6 -0
- package/dist/{types-G12i56s2.d.ts → types-B3A4YxaA.d.ts} +1 -1
- package/dist/{types-BrLbKnEz.d.ts → types-BBEGKB9m.d.ts} +1 -1
- package/dist/{types-O-abTIin.d.ts → types-DT3nEemY.d.ts} +3 -3
- package/dist/{types-04LqWrmy.d.ts → types-DhQfwiZn.d.ts} +1 -1
- package/dist/{types-JJCxRnaZ.d.ts → types-DulRCYdB.d.ts} +2 -2
- package/dist/{types-BCTRUGex.d.ts → types-p55Jc-sr.d.ts} +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/vector-store/index.d.ts +5 -5
- package/dist/vector-store/index.js +4 -4
- package/package.json +2 -10
- package/dist/agent-x3YTyv5i.d.ts +0 -222
- package/dist/chunk-2ODTMRHP.js +0 -54
- package/dist/chunk-2ODTMRHP.js.map +0 -1
- package/dist/chunk-BALBBVI3.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.map +0 -1
- package/dist/chunk-JI5YZWNT.js +0 -220
- package/dist/chunk-JI5YZWNT.js.map +0 -1
- package/dist/chunk-MC3CCKEB.js.map +0 -1
- package/dist/chunk-MELYDKWQ.js.map +0 -1
- 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.map +0 -1
- package/dist/chunk-XUUY2L2D.js +0 -42
- package/dist/chunk-XUUY2L2D.js.map +0 -1
- package/dist/chunk-YLMDBQO4.js +0 -141
- package/dist/chunk-YLMDBQO4.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/index.js +0 -17
- package/dist/hooks/index.js.map +0 -1
- package/dist/index-BxSbmOMr.d.ts +0 -257
- 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/request/index.js.map +0 -1
- package/dist/tool-Cohdv5GC.d.ts +0 -65
- package/dist/types-D9JpeAPF.d.ts +0 -114
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as RetryOptions } from '../retry-D3Ruy-ba.js';
|
|
2
2
|
import { Z as ZodSchema } from '../zod-schema-C7F4clpm.js';
|
|
3
|
-
import { U as Usage, M as Message, C as CompletionModel
|
|
4
|
-
import '../guardrails/index.js';
|
|
5
|
-
import '../types-D9JpeAPF.js';
|
|
6
|
-
import '../types-BrLbKnEz.js';
|
|
7
|
-
import '../index-BxSbmOMr.js';
|
|
8
|
-
import '../tool-Cohdv5GC.js';
|
|
9
|
-
import '../middleware-Dp3d_pxi.js';
|
|
10
|
-
import '../types-BCTRUGex.js';
|
|
11
|
-
import '../types-O-abTIin.js';
|
|
3
|
+
import { l as JsonValue, U as Usage, M as Message, C as CompletionModel } from '../types-B3A4YxaA.js';
|
|
12
4
|
import 'zod';
|
|
13
5
|
|
|
14
|
-
type
|
|
6
|
+
type ExtractorOptions<T, M extends CompletionModel = CompletionModel> = {
|
|
7
|
+
model: M;
|
|
8
|
+
outputSchema: ZodSchema<T>;
|
|
9
|
+
instructions?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
type ExtractOptions = {
|
|
12
|
+
retries?: RetryOptions | undefined;
|
|
13
|
+
temperature?: number | undefined;
|
|
14
|
+
maxTokens?: number | undefined;
|
|
15
|
+
additionalParams?: JsonValue | undefined;
|
|
16
|
+
};
|
|
17
|
+
type ExtractionResult<T> = {
|
|
15
18
|
data: T;
|
|
16
19
|
usage: Usage;
|
|
17
20
|
messages: Message[];
|
|
@@ -20,30 +23,15 @@ declare class ExtractionError extends Error {
|
|
|
20
23
|
readonly cause?: unknown | undefined;
|
|
21
24
|
constructor(message: string, cause?: unknown | undefined);
|
|
22
25
|
}
|
|
26
|
+
/** Converts text into data validated and transformed by a Zod output schema. */
|
|
23
27
|
declare class Extractor<T, M extends CompletionModel = CompletionModel> {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
private readonly
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
getInner(): Agent<M>;
|
|
32
|
-
private run;
|
|
33
|
-
}
|
|
34
|
-
declare class ExtractorBuilder<T, M extends CompletionModel = CompletionModel> {
|
|
35
|
-
private readonly schema;
|
|
36
|
-
private readonly agentBuilder;
|
|
37
|
-
private retryCount;
|
|
38
|
-
constructor(model: M, schema: ZodSchema<T>);
|
|
39
|
-
instructions(instructions: string): this;
|
|
40
|
-
context(text: string, id?: string): this;
|
|
41
|
-
temperature(temperature: number): this;
|
|
42
|
-
maxTokens(maxTokens: number): this;
|
|
43
|
-
additionalParams(params: JsonValue): this;
|
|
44
|
-
toolChoice(toolChoice: ToolChoice): this;
|
|
45
|
-
retries(retries: number): this;
|
|
46
|
-
build(): Extractor<T, M>;
|
|
28
|
+
readonly model: M;
|
|
29
|
+
readonly outputSchema: ZodSchema<T>;
|
|
30
|
+
private readonly instructions;
|
|
31
|
+
private readonly submitTool;
|
|
32
|
+
constructor(options: ExtractorOptions<T, M>);
|
|
33
|
+
extract(text: string, options?: ExtractOptions): Promise<T>;
|
|
34
|
+
extractResult(text: string, options?: ExtractOptions): Promise<ExtractionResult<T>>;
|
|
47
35
|
}
|
|
48
36
|
|
|
49
|
-
export { ExtractionError, type
|
|
37
|
+
export { type ExtractOptions, ExtractionError, type ExtractionResult, Extractor, type ExtractorOptions };
|
package/dist/extractor/index.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractionError,
|
|
3
|
-
Extractor
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-BALBBVI3.js";
|
|
9
|
-
import "../chunk-YK4WAAS4.js";
|
|
10
|
-
import "../chunk-XUUY2L2D.js";
|
|
11
|
-
import "../chunk-HYUYZEAJ.js";
|
|
12
|
-
import "../chunk-MELYDKWQ.js";
|
|
13
|
-
import "../chunk-2ODTMRHP.js";
|
|
14
|
-
import "../chunk-UQX6EXWG.js";
|
|
15
|
-
import "../chunk-MRQLEK2B.js";
|
|
16
|
-
import "../chunk-MNWK2USR.js";
|
|
17
|
-
import "../chunk-OIMLU4SF.js";
|
|
18
|
-
import "../chunk-Q25IWLBT.js";
|
|
19
|
-
import "../chunk-MC3CCKEB.js";
|
|
3
|
+
Extractor
|
|
4
|
+
} from "../chunk-J6GNQART.js";
|
|
5
|
+
import "../chunk-I6G7BC42.js";
|
|
6
|
+
import "../chunk-M3IOWB4Y.js";
|
|
7
|
+
import "../chunk-RFDVKCIE.js";
|
|
20
8
|
import "../chunk-ADH7NNCS.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-CWUJUSOS.js";
|
|
9
|
+
import "../chunk-A3UBYTJT.js";
|
|
23
10
|
export {
|
|
24
11
|
ExtractionError,
|
|
25
|
-
Extractor
|
|
26
|
-
ExtractorBuilder
|
|
12
|
+
Extractor
|
|
27
13
|
};
|
|
28
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as Message, J as JsonObject, U as Usage } from '../types-
|
|
1
|
+
import { M as Message, J as JsonObject, U as Usage } from '../types-B3A4YxaA.js';
|
|
2
|
+
import { M as MaybePromise } from '../type-utils-CtHVDRn_.js';
|
|
2
3
|
|
|
3
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
type GuardrailMode = "enforce" | "observe";
|
|
5
5
|
type GuardrailBoundary = "input" | "output";
|
|
6
6
|
type GuardrailRunContext = {
|
package/dist/guardrails/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as RetryOptions } from '../retry-D3Ruy-ba.js';
|
|
2
|
+
export { R as RetryContext } from '../retry-D3Ruy-ba.js';
|
|
3
|
+
import { l as JsonValue } from '../types-B3A4YxaA.js';
|
|
2
4
|
|
|
3
5
|
type ImageGenerationRequest = {
|
|
4
6
|
prompt: string;
|
|
@@ -22,17 +24,13 @@ interface ImageGenerationModel<RawResponse = unknown, ModelName extends string =
|
|
|
22
24
|
imageGeneration(request: ImageGenerationRequest): Promise<ImageGenerationResponse<RawResponse>>;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
build(): ImageGenerationRequest;
|
|
34
|
-
send(): Promise<Awaited<ReturnType<Model["imageGeneration"]>>>;
|
|
35
|
-
}
|
|
36
|
-
declare function imageGenerationRequest<Model extends ImageGenerationModel>(model: Model): ImageGenerationRequestBuilder<Model>;
|
|
27
|
+
type GenerateImageOptions<Model extends ImageGenerationModel = ImageGenerationModel> = {
|
|
28
|
+
model: Model;
|
|
29
|
+
width?: number | undefined;
|
|
30
|
+
height?: number | undefined;
|
|
31
|
+
additionalParams?: JsonValue | undefined;
|
|
32
|
+
retries?: RetryOptions | undefined;
|
|
33
|
+
};
|
|
34
|
+
declare function generateImage<Model extends ImageGenerationModel>(prompt: string, options: GenerateImageOptions<Model>): Promise<Awaited<ReturnType<Model["imageGeneration"]>>>;
|
|
37
35
|
|
|
38
|
-
export { type GeneratedImage, type ImageGenerationModel, type ImageGenerationRequest,
|
|
36
|
+
export { type GenerateImageOptions, type GeneratedImage, type ImageGenerationModel, type ImageGenerationRequest, type ImageGenerationResponse, RetryOptions, generateImage };
|
|
@@ -1,42 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
model;
|
|
7
|
-
request = {
|
|
8
|
-
prompt: "",
|
|
9
|
-
width: 1024,
|
|
10
|
-
height: 1024
|
|
11
|
-
};
|
|
12
|
-
prompt(prompt) {
|
|
13
|
-
this.request = { ...this.request, prompt };
|
|
14
|
-
return this;
|
|
15
|
-
}
|
|
16
|
-
width(width) {
|
|
17
|
-
this.request = { ...this.request, width };
|
|
18
|
-
return this;
|
|
19
|
-
}
|
|
20
|
-
height(height) {
|
|
21
|
-
this.request = { ...this.request, height };
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
additionalParams(additionalParams) {
|
|
25
|
-
this.request = { ...this.request, additionalParams };
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
build() {
|
|
29
|
-
return { ...this.request };
|
|
30
|
-
}
|
|
31
|
-
send() {
|
|
32
|
-
return this.model.imageGeneration(this.build());
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
function imageGenerationRequest(model) {
|
|
36
|
-
return new ImageGenerationRequestBuilder(model);
|
|
37
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
generateImage
|
|
3
|
+
} from "../chunk-XDRSPSR7.js";
|
|
4
|
+
import "../chunk-A3UBYTJT.js";
|
|
38
5
|
export {
|
|
39
|
-
|
|
40
|
-
imageGenerationRequest
|
|
6
|
+
generateImage
|
|
41
7
|
};
|
|
42
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { a as RetryOptions } from './retry-D3Ruy-ba.js';
|
|
2
|
+
import { M as Message, g as CompletionResponse, U as Usage, V as ReasoningContentType, p as ToolCall, h as CompletionSource, o as ProviderToolCall, j as ContextUsage, f as CompletionRequest, u as ToolResultContent, X as ToolCallArgumentsMode, J as JsonObject, K as CompletionModelCapabilities, r as ToolDefinition, l as JsonValue } from './types-B3A4YxaA.js';
|
|
3
|
+
import { GuardrailPolicyInput, GuardrailDecisionRecord } from './guardrails/index.js';
|
|
4
|
+
import { A as AgentMiddleware } from './middleware-KynLg_RW.js';
|
|
5
|
+
import { D as DeepReadonly, M as MaybePromise } from './type-utils-CtHVDRn_.js';
|
|
6
|
+
import { d as ToolCallStreamEvent } from './tool-C_8GudXn.js';
|
|
7
|
+
|
|
8
|
+
type AgentLifecycleRunEvent = {
|
|
9
|
+
runId: string;
|
|
10
|
+
};
|
|
11
|
+
type AgentStartEvent = AgentLifecycleRunEvent & {
|
|
12
|
+
input: DeepReadonly<Message>;
|
|
13
|
+
history: DeepReadonly<Message[]>;
|
|
14
|
+
maxTurns: number;
|
|
15
|
+
};
|
|
16
|
+
type AgentStepFinishEvent<RawResponse = unknown> = AgentLifecycleRunEvent & {
|
|
17
|
+
step: number;
|
|
18
|
+
response: DeepReadonly<CompletionResponse<RawResponse>>;
|
|
19
|
+
usage: DeepReadonly<Usage>;
|
|
20
|
+
};
|
|
21
|
+
type AgentToolStartEvent = AgentLifecycleRunEvent & {
|
|
22
|
+
step: number;
|
|
23
|
+
toolName: string;
|
|
24
|
+
toolCallId?: string | undefined;
|
|
25
|
+
input: unknown;
|
|
26
|
+
};
|
|
27
|
+
type AgentToolFinishEventBase = AgentToolStartEvent & {
|
|
28
|
+
durationMs: number;
|
|
29
|
+
};
|
|
30
|
+
type AgentToolFinishEvent = (AgentToolFinishEventBase & {
|
|
31
|
+
success: true;
|
|
32
|
+
output: unknown;
|
|
33
|
+
}) | (AgentToolFinishEventBase & {
|
|
34
|
+
success: false;
|
|
35
|
+
error: unknown;
|
|
36
|
+
});
|
|
37
|
+
type AgentFinishEvent = AgentLifecycleRunEvent & {
|
|
38
|
+
output: string;
|
|
39
|
+
usage: DeepReadonly<Usage>;
|
|
40
|
+
messages: DeepReadonly<Message[]>;
|
|
41
|
+
};
|
|
42
|
+
type AgentErrorEvent = AgentLifecycleRunEvent & {
|
|
43
|
+
error: unknown;
|
|
44
|
+
usage: DeepReadonly<Usage>;
|
|
45
|
+
messages: DeepReadonly<Message[]>;
|
|
46
|
+
};
|
|
47
|
+
type AgentLifecycle<RawResponse = unknown> = {
|
|
48
|
+
onStart?(event: AgentStartEvent): MaybePromise<void>;
|
|
49
|
+
onStepFinish?(event: AgentStepFinishEvent<RawResponse>): MaybePromise<void>;
|
|
50
|
+
onToolStart?(event: AgentToolStartEvent): MaybePromise<void>;
|
|
51
|
+
onToolFinish?(event: AgentToolFinishEvent): MaybePromise<void>;
|
|
52
|
+
onFinish?(event: AgentFinishEvent): MaybePromise<void>;
|
|
53
|
+
onError?(event: AgentErrorEvent): MaybePromise<void>;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
type AgentInput = string | Message | Message[];
|
|
57
|
+
type AgentRunOptions = {
|
|
58
|
+
maxTurns?: number | undefined;
|
|
59
|
+
retries?: RetryOptions | undefined;
|
|
60
|
+
lifecycle?: AgentLifecycle | undefined;
|
|
61
|
+
guardrails?: GuardrailPolicyInput | undefined;
|
|
62
|
+
toolConcurrency?: number | undefined;
|
|
63
|
+
middlewares?: readonly AgentMiddleware[] | undefined;
|
|
64
|
+
trace?: AgentTraceOptions | undefined;
|
|
65
|
+
};
|
|
66
|
+
type AgentResponse = {
|
|
67
|
+
status: "completed";
|
|
68
|
+
runId: string;
|
|
69
|
+
output: string;
|
|
70
|
+
usage: Usage;
|
|
71
|
+
contextUsage?: ContextUsage | undefined;
|
|
72
|
+
messages: Message[];
|
|
73
|
+
trace?: AgentTraceInfo | undefined;
|
|
74
|
+
guardrails?: GuardrailDecisionRecord[] | undefined;
|
|
75
|
+
sources?: CompletionSource[] | undefined;
|
|
76
|
+
providerToolCalls?: ProviderToolCall[] | undefined;
|
|
77
|
+
};
|
|
78
|
+
type AgentApprovalRequiredResult = {
|
|
79
|
+
status: "approval_required";
|
|
80
|
+
runId: string;
|
|
81
|
+
approval: AgentToolApprovalRequest;
|
|
82
|
+
usage: Usage;
|
|
83
|
+
messages: Message[];
|
|
84
|
+
};
|
|
85
|
+
type AgentResult = AgentResponse | AgentApprovalRequiredResult;
|
|
86
|
+
type AgentToolApprovalRequest = {
|
|
87
|
+
id: string;
|
|
88
|
+
toolName: string;
|
|
89
|
+
toolCallId?: string | undefined;
|
|
90
|
+
reason?: string | undefined;
|
|
91
|
+
input: unknown;
|
|
92
|
+
};
|
|
93
|
+
type AgentApprovalRequiredEvent = Omit<AgentApprovalRequiredResult, "status"> & {
|
|
94
|
+
type: "approval_required";
|
|
95
|
+
};
|
|
96
|
+
type AgentApprovalDecision = {
|
|
97
|
+
approved: true;
|
|
98
|
+
reason?: string;
|
|
99
|
+
} | {
|
|
100
|
+
approved: false;
|
|
101
|
+
reason?: string;
|
|
102
|
+
};
|
|
103
|
+
type AgentDeltaEvent = {
|
|
104
|
+
type: "text_delta";
|
|
105
|
+
delta: string;
|
|
106
|
+
} | {
|
|
107
|
+
type: "reasoning_delta";
|
|
108
|
+
delta: string;
|
|
109
|
+
id?: string;
|
|
110
|
+
contentType?: ReasoningContentType;
|
|
111
|
+
signature?: string;
|
|
112
|
+
} | {
|
|
113
|
+
type: "tool_call";
|
|
114
|
+
toolCall: ToolCall;
|
|
115
|
+
} | {
|
|
116
|
+
type: "source";
|
|
117
|
+
source: CompletionSource;
|
|
118
|
+
} | {
|
|
119
|
+
type: "provider_tool_call";
|
|
120
|
+
toolCall: ProviderToolCall;
|
|
121
|
+
};
|
|
122
|
+
type AgentErrorStreamEvent = {
|
|
123
|
+
type: "error";
|
|
124
|
+
error: unknown;
|
|
125
|
+
usage: Usage;
|
|
126
|
+
};
|
|
127
|
+
type AgentStreamOptions = AgentRunOptions & {
|
|
128
|
+
/** @default true */
|
|
129
|
+
includeToolCallDeltas?: boolean;
|
|
130
|
+
};
|
|
131
|
+
type AgentToolCallDeltaEvent = {
|
|
132
|
+
type: "tool_call_delta";
|
|
133
|
+
turn: number;
|
|
134
|
+
id: string;
|
|
135
|
+
callId?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
argumentsDelta?: string;
|
|
138
|
+
argumentsMode?: ToolCallArgumentsMode;
|
|
139
|
+
signature?: string;
|
|
140
|
+
};
|
|
141
|
+
type AgentChildStreamEventBase<RawResponse = unknown> = {
|
|
142
|
+
type: "turn_start";
|
|
143
|
+
turn: number;
|
|
144
|
+
prompt: Message;
|
|
145
|
+
history: Message[];
|
|
146
|
+
} | {
|
|
147
|
+
type: "generation_start";
|
|
148
|
+
turn: number;
|
|
149
|
+
request: CompletionRequest;
|
|
150
|
+
modelInfo: AgentGenerationModelInfo;
|
|
151
|
+
} | {
|
|
152
|
+
type: "text_delta";
|
|
153
|
+
turn: number;
|
|
154
|
+
delta: string;
|
|
155
|
+
} | {
|
|
156
|
+
type: "reasoning_delta";
|
|
157
|
+
turn: number;
|
|
158
|
+
delta: string;
|
|
159
|
+
id?: string;
|
|
160
|
+
contentType?: ReasoningContentType;
|
|
161
|
+
signature?: string;
|
|
162
|
+
} | {
|
|
163
|
+
type: "tool_call";
|
|
164
|
+
turn: number;
|
|
165
|
+
toolCall: ToolCall;
|
|
166
|
+
} | {
|
|
167
|
+
type: "source";
|
|
168
|
+
turn: number;
|
|
169
|
+
source: CompletionSource;
|
|
170
|
+
} | {
|
|
171
|
+
type: "provider_tool_call";
|
|
172
|
+
turn: number;
|
|
173
|
+
toolCall: ProviderToolCall;
|
|
174
|
+
} | {
|
|
175
|
+
type: "tool_result";
|
|
176
|
+
turn: number;
|
|
177
|
+
toolName: string;
|
|
178
|
+
toolCallId?: string;
|
|
179
|
+
internalCallId: string;
|
|
180
|
+
args: string;
|
|
181
|
+
result: string;
|
|
182
|
+
structuredResult?: ToolResultContent[] | undefined;
|
|
183
|
+
} | {
|
|
184
|
+
type: "turn_end";
|
|
185
|
+
turn: number;
|
|
186
|
+
response: CompletionResponse<RawResponse>;
|
|
187
|
+
firstDeltaMs?: number | undefined;
|
|
188
|
+
} | {
|
|
189
|
+
type: "guardrail_decision";
|
|
190
|
+
turn?: number | undefined;
|
|
191
|
+
decision: GuardrailDecisionRecord;
|
|
192
|
+
} | {
|
|
193
|
+
type: "final";
|
|
194
|
+
runId: string;
|
|
195
|
+
output: string;
|
|
196
|
+
usage: Usage;
|
|
197
|
+
contextUsage?: ContextUsage | undefined;
|
|
198
|
+
messages: Message[];
|
|
199
|
+
trace?: AgentTraceInfo | undefined;
|
|
200
|
+
guardrails?: GuardrailDecisionRecord[] | undefined;
|
|
201
|
+
sources?: CompletionSource[] | undefined;
|
|
202
|
+
providerToolCalls?: ProviderToolCall[] | undefined;
|
|
203
|
+
} | AgentApprovalRequiredEvent | AgentErrorStreamEvent;
|
|
204
|
+
type AgentChildStreamEventWithoutToolCallDeltas<RawResponse = unknown> = AgentChildStreamEventBase<RawResponse>;
|
|
205
|
+
type AgentChildStreamEvent<RawResponse = unknown> = AgentChildStreamEventBase<RawResponse> | AgentToolCallDeltaEvent;
|
|
206
|
+
type AgentChildStreamEventWithToolCallDeltas<RawResponse = unknown> = AgentChildStreamEvent<RawResponse>;
|
|
207
|
+
type AgentToolStreamEvent<ChildEvent> = {
|
|
208
|
+
type: "agent_tool_event";
|
|
209
|
+
turn: number;
|
|
210
|
+
toolName: string;
|
|
211
|
+
toolCallId?: string;
|
|
212
|
+
internalCallId: string;
|
|
213
|
+
agentId: string;
|
|
214
|
+
agentName?: string;
|
|
215
|
+
event: ChildEvent;
|
|
216
|
+
};
|
|
217
|
+
type AgentStreamEventWithoutToolCallDeltas<RawResponse = unknown> = AgentChildStreamEventWithoutToolCallDeltas<RawResponse> | AgentToolStreamEvent<AgentChildStreamEventWithoutToolCallDeltas<RawResponse>>;
|
|
218
|
+
type AgentStreamEvent<RawResponse = unknown> = AgentChildStreamEvent<RawResponse> | AgentToolStreamEvent<AgentChildStreamEvent<RawResponse>>;
|
|
219
|
+
type AgentStreamEventWithToolCallDeltas<RawResponse = unknown> = AgentStreamEvent<RawResponse>;
|
|
220
|
+
interface AgentStream<Event = AgentStreamEvent> extends AsyncIterable<Event> {
|
|
221
|
+
steer(input: AgentInput): boolean;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type AgentTraceInfo = {
|
|
225
|
+
readonly traceId?: string | undefined;
|
|
226
|
+
readonly observationId?: string | undefined;
|
|
227
|
+
};
|
|
228
|
+
type AgentTraceOptions = {
|
|
229
|
+
readonly name?: string | undefined;
|
|
230
|
+
readonly userId?: string | undefined;
|
|
231
|
+
readonly sessionId?: string | undefined;
|
|
232
|
+
readonly metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
233
|
+
readonly tags?: readonly string[] | undefined;
|
|
234
|
+
readonly version?: string | undefined;
|
|
235
|
+
readonly traceId?: string | undefined;
|
|
236
|
+
readonly failOnObserverError?: boolean | undefined;
|
|
237
|
+
readonly promptRef?: AgentRunPromptRef | undefined;
|
|
238
|
+
};
|
|
239
|
+
type AgentRunPromptRef = {
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly version?: number | undefined;
|
|
242
|
+
};
|
|
243
|
+
type AgentRunStartArgs = {
|
|
244
|
+
readonly runId: string;
|
|
245
|
+
readonly agentName?: string | undefined;
|
|
246
|
+
readonly agentDescription?: string | undefined;
|
|
247
|
+
readonly instructions?: string | undefined;
|
|
248
|
+
readonly trace?: DeepReadonly<AgentTraceOptions> | undefined;
|
|
249
|
+
readonly prompt: DeepReadonly<Message>;
|
|
250
|
+
readonly promptRef?: DeepReadonly<AgentRunPromptRef> | undefined;
|
|
251
|
+
readonly history: readonly DeepReadonly<Message>[];
|
|
252
|
+
readonly maxTurns: number;
|
|
253
|
+
};
|
|
254
|
+
type AgentRunEndArgs = {
|
|
255
|
+
readonly output: string;
|
|
256
|
+
readonly usage: DeepReadonly<Usage>;
|
|
257
|
+
readonly messages: readonly DeepReadonly<Message>[];
|
|
258
|
+
readonly sources?: readonly DeepReadonly<CompletionSource>[] | undefined;
|
|
259
|
+
readonly providerToolCalls?: readonly DeepReadonly<ProviderToolCall>[] | undefined;
|
|
260
|
+
};
|
|
261
|
+
type AgentRunErrorArgs = {
|
|
262
|
+
readonly error: unknown;
|
|
263
|
+
readonly usage: DeepReadonly<Usage>;
|
|
264
|
+
readonly messages: readonly DeepReadonly<Message>[];
|
|
265
|
+
};
|
|
266
|
+
type AgentGenerationModelInfo = {
|
|
267
|
+
readonly provider: string;
|
|
268
|
+
readonly defaultModel: string;
|
|
269
|
+
readonly capabilities?: DeepReadonly<CompletionModelCapabilities> | undefined;
|
|
270
|
+
};
|
|
271
|
+
type AgentGenerationStartArgs = {
|
|
272
|
+
readonly turn: number;
|
|
273
|
+
readonly request: DeepReadonly<CompletionRequest>;
|
|
274
|
+
readonly providerRequest?: DeepReadonly<JsonObject> | undefined;
|
|
275
|
+
readonly modelInfo?: DeepReadonly<AgentGenerationModelInfo> | undefined;
|
|
276
|
+
};
|
|
277
|
+
type AgentGenerationEndArgs<RawResponse = unknown> = {
|
|
278
|
+
readonly turn: number;
|
|
279
|
+
readonly response: DeepReadonly<CompletionResponse<RawResponse>>;
|
|
280
|
+
readonly firstDeltaMs?: number | undefined;
|
|
281
|
+
};
|
|
282
|
+
type AgentGenerationErrorArgs = {
|
|
283
|
+
readonly turn: number;
|
|
284
|
+
readonly error: unknown;
|
|
285
|
+
};
|
|
286
|
+
type AgentGenerationUpdateArgs = {
|
|
287
|
+
readonly turn: number;
|
|
288
|
+
readonly delta: DeepReadonly<AgentDeltaEvent>;
|
|
289
|
+
};
|
|
290
|
+
type AgentRunEventArgs = {
|
|
291
|
+
readonly name: string;
|
|
292
|
+
readonly attributes?: Readonly<Record<string, DeepReadonly<JsonValue> | undefined>> | undefined;
|
|
293
|
+
readonly level?: "DEFAULT" | "WARNING" | "ERROR" | undefined;
|
|
294
|
+
readonly timestamp?: Date | string | undefined;
|
|
295
|
+
};
|
|
296
|
+
type AgentToolStartArgs = {
|
|
297
|
+
readonly turn: number;
|
|
298
|
+
readonly toolCall: DeepReadonly<ToolCall>;
|
|
299
|
+
readonly toolName: string;
|
|
300
|
+
readonly args: string;
|
|
301
|
+
readonly internalCallId: string;
|
|
302
|
+
readonly toolCallId?: string | undefined;
|
|
303
|
+
readonly toolDefinition?: DeepReadonly<ToolDefinition> | undefined;
|
|
304
|
+
readonly toolMetadata?: DeepReadonly<JsonObject> | undefined;
|
|
305
|
+
};
|
|
306
|
+
type AgentToolEndArgs = AgentToolStartArgs & {
|
|
307
|
+
readonly result: string;
|
|
308
|
+
readonly structuredResult?: readonly DeepReadonly<ToolResultContent>[] | undefined;
|
|
309
|
+
readonly skipped: boolean;
|
|
310
|
+
};
|
|
311
|
+
type AgentToolErrorArgs = AgentToolStartArgs & {
|
|
312
|
+
readonly error: unknown;
|
|
313
|
+
};
|
|
314
|
+
type AgentToolStreamEventArgs = AgentToolStartArgs & {
|
|
315
|
+
readonly event: DeepReadonly<ToolCallStreamEvent>;
|
|
316
|
+
};
|
|
317
|
+
interface AgentGenerationObserver {
|
|
318
|
+
end(args: AgentGenerationEndArgs): void | Promise<void>;
|
|
319
|
+
error?(args: AgentGenerationErrorArgs): void | Promise<void>;
|
|
320
|
+
update?(args: AgentGenerationUpdateArgs): void | Promise<void>;
|
|
321
|
+
}
|
|
322
|
+
interface AgentToolObserver {
|
|
323
|
+
streamEvent?(args: AgentToolStreamEventArgs): void | Promise<void>;
|
|
324
|
+
end(args: AgentToolEndArgs): void | Promise<void>;
|
|
325
|
+
error?(args: AgentToolErrorArgs): void | Promise<void>;
|
|
326
|
+
}
|
|
327
|
+
interface AgentRunObserver {
|
|
328
|
+
readonly trace?: AgentTraceInfo | undefined;
|
|
329
|
+
startGeneration?(args: AgentGenerationStartArgs): AgentGenerationObserver | undefined | Promise<AgentGenerationObserver | undefined>;
|
|
330
|
+
startTool?(args: AgentToolStartArgs): AgentToolObserver | undefined | Promise<AgentToolObserver | undefined>;
|
|
331
|
+
end(args: AgentRunEndArgs): void | Promise<void>;
|
|
332
|
+
error?(args: AgentRunErrorArgs): void | Promise<void>;
|
|
333
|
+
event?(args: AgentRunEventArgs): void | Promise<void>;
|
|
334
|
+
}
|
|
335
|
+
interface AgentObserver {
|
|
336
|
+
startRun(args: AgentRunStartArgs): AgentRunObserver | undefined | Promise<AgentRunObserver | undefined>;
|
|
337
|
+
flush?(): void | Promise<void>;
|
|
338
|
+
shutdown?(): void | Promise<void>;
|
|
339
|
+
}
|
|
340
|
+
type AgentObserverRegistration = {
|
|
341
|
+
readonly observer: AgentObserver;
|
|
342
|
+
readonly failOnObserverError?: boolean | undefined;
|
|
343
|
+
};
|
|
344
|
+
type ObserveOptions = {
|
|
345
|
+
readonly failOnObserverError?: boolean | undefined;
|
|
346
|
+
};
|
|
347
|
+
declare function createObserver(observer: AgentObserver): AgentObserver;
|
|
348
|
+
|
|
349
|
+
export { type AgentApprovalDecision as A, type AgentObserverRegistration as B, type AgentGenerationEndArgs as C, type AgentGenerationErrorArgs as D, type AgentGenerationModelInfo as E, type AgentGenerationObserver as F, type AgentGenerationStartArgs as G, type AgentGenerationUpdateArgs as H, type AgentRunEndArgs as I, type AgentRunErrorArgs as J, type AgentRunEventArgs as K, type AgentRunObserver as L, type AgentRunPromptRef as M, type AgentRunStartArgs as N, type ObserveOptions as O, type AgentToolEndArgs as P, type AgentToolErrorArgs as Q, type AgentToolObserver as R, type AgentToolStartArgs as S, type AgentToolStreamEventArgs as T, type AgentTraceInfo as U, type AgentTraceOptions as V, createObserver as W, type AgentApprovalRequiredEvent as a, type AgentApprovalRequiredResult as b, type AgentChildStreamEvent as c, type AgentChildStreamEventWithToolCallDeltas as d, type AgentChildStreamEventWithoutToolCallDeltas as e, type AgentDeltaEvent as f, type AgentErrorEvent as g, type AgentErrorStreamEvent as h, type AgentFinishEvent as i, type AgentInput as j, type AgentLifecycle as k, type AgentResponse as l, type AgentResult as m, type AgentRunOptions as n, type AgentStartEvent as o, type AgentStepFinishEvent as p, type AgentStream as q, type AgentStreamEvent as r, type AgentStreamEventWithToolCallDeltas as s, type AgentStreamEventWithoutToolCallDeltas as t, type AgentStreamOptions as u, type AgentToolApprovalRequest as v, type AgentToolCallDeltaEvent as w, type AgentToolFinishEvent as x, type AgentToolStartEvent as y, type AgentObserver as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { A as
|
|
1
|
+
export { A as Agent, a as AgentContextInput, b as AgentMemoryOptions, c as AgentObserverInput, d as AgentOptions, e as AgentSession, f as AgentToolInput, g as AgentToolOptions, C as ContextIndex, h as CreateContextIndexOptions, i as createContextIndex, j as isContextIndex } from './agent-DGYY_onS.js';
|
|
2
|
+
export { AgentRunCancelledError, MaxTurnsError } from './agent/index.js';
|
|
3
|
+
export { A as AgentApprovalDecision, a as AgentApprovalRequiredEvent, b as AgentApprovalRequiredResult, c as AgentChildStreamEvent, d as AgentChildStreamEventWithToolCallDeltas, e as AgentChildStreamEventWithoutToolCallDeltas, f as AgentDeltaEvent, g as AgentErrorEvent, h as AgentErrorStreamEvent, i as AgentFinishEvent, j as AgentInput, k as AgentLifecycle, l as AgentResponse, m as AgentResult, n as AgentRunOptions, o as AgentStartEvent, p as AgentStepFinishEvent, q as AgentStream, r as AgentStreamEvent, s as AgentStreamEventWithToolCallDeltas, t as AgentStreamEventWithoutToolCallDeltas, u as AgentStreamOptions, v as AgentToolApprovalRequest, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent } from './index-DxB74ybJ.js';
|
|
4
|
+
export { R as RetryContext, a as RetryOptions } from './retry-D3Ruy-ba.js';
|
|
5
|
+
export { AudioGenerationModel, AudioGenerationRequest, AudioGenerationResponse, GenerateSpeechOptions, generateSpeech } from './audio-generation/index.js';
|
|
6
|
+
export { C as CreateCompletionBaseOptions, a as CreateCompletionInput, b as CreateCompletionOptions, c as CreateCompletionResult, d as CreateCompletionStreamOptions, e as CreateParsedCompletionOptions, f as CreateParsedCompletionResult, g as createCompletion, h as createCompletionStream, i as createParsedCompletion, j as isJsonValue } from './json-Zo7K3xmt.js';
|
|
7
|
+
export { A as AssistantContent, a as AssistantGenerationMetadata, b as AssistantMessage, c as AssistantMessageOptions, C as CompletionModel, d as CompletionModelInfo, e as CompletionModelMetadataOptions, f as CompletionRequest, g as CompletionResponse, h as CompletionSource, i as CompletionTool, j as ContextUsage, D as Document, I as ImageContent, J as JsonObject, k as JsonPrimitive, l as JsonValue, M as Message, m as MessageOptions, n as ModelContextLimits, P as ProviderTool, o as ProviderToolCall, S as SystemMessage, T as Text, p as ToolCall, q as ToolContent, r as ToolDefinition, s as ToolMessage, t as ToolResult, u as ToolResultContent, v as ToolResultMessageOptions, w as ToolResultOptions, U as Usage, x as UserContent, y as UserMessage, z as calculateContextUsage, B as getAssistantGenerationMetadata, E as isProviderTool, F as resolveCompletionModelInfo, G as withContextUsage } from './types-B3A4YxaA.js';
|
|
4
8
|
export { GuardrailBoundary, GuardrailDecisionRecord, GuardrailMode, GuardrailPolicy, GuardrailPolicyInput, GuardrailPolicyOptions, InputGuardrail, InputGuardrailActions, InputGuardrailContext, OutputGuardrail, OutputGuardrailActions, OutputGuardrailContext, allow, block, defineGuardrailPolicy, defineInputGuardrail, defineOutputGuardrail, guardrails } from './guardrails/index.js';
|
|
5
|
-
export {
|
|
6
|
-
export { M as MemoryCompactionConflictError, a as MemoryCompactionError, c as createSummaryMemoryCompactor, i as isMemoryCompactionSummary } from './errors-
|
|
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-
|
|
8
|
-
export { MaxTurnsError, PromptCancelledError, ToolApprovalRequiredError } from './request/index.js';
|
|
9
|
-
export { C as CompletionRetryContext, a as CompletionRetryOptions } from './agent-x3YTyv5i.js';
|
|
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-BxSbmOMr.js';
|
|
9
|
+
export { GenerateImageOptions, GeneratedImage, ImageGenerationModel, ImageGenerationRequest, ImageGenerationResponse, generateImage } from './image-generation/index.js';
|
|
10
|
+
export { M as MemoryCompactionConflictError, a as MemoryCompactionError, c as createSummaryMemoryCompactor, i as isMemoryCompactionSummary } from './errors-CYKUcU89.js';
|
|
11
|
+
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-BBEGKB9m.js';
|
|
11
12
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
12
13
|
export { loadSkills, skill } from './skills/index.js';
|
|
13
|
-
export { S as SkillValidationError } from './types-
|
|
14
|
-
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-
|
|
15
|
-
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as
|
|
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-
|
|
14
|
+
export { S as SkillValidationError } from './types-DhQfwiZn.js';
|
|
15
|
+
export { C as CreateToolOptions, c as createThinkTool, a as createTool } from './think-tool-DZqZj2LV.js';
|
|
16
|
+
export { A as AnyTool, T as Tool, a as ToolApprovalContext, b as ToolApprovalRequirement, c as ToolCallContext, d as ToolCallStreamEvent, e as ToolRequiresApproval } from './tool-C_8GudXn.js';
|
|
17
|
+
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-KynLg_RW.js';
|
|
18
|
+
export { TranscribeOptions, TranscriptionModel, TranscriptionRequest, TranscriptionResponse, transcribe } from './transcription/index.js';
|
|
17
19
|
export { CreateUIAttachment, UIAttachment, UIError, UIMessage, UIMessagePart, UIMessageRole, UIStreamEvent, UIStreamRequest, UIStreamResume, coreMessagesToUIMessages, uiMessagesToCoreMessages } from './ui/index.js';
|
|
18
|
-
import './types-
|
|
19
|
-
import './types-JJCxRnaZ.js';
|
|
20
|
+
import './types-DulRCYdB.js';
|
|
20
21
|
import '@modelcontextprotocol/sdk/client/sse.js';
|
|
21
22
|
import '@modelcontextprotocol/sdk/client/stdio.js';
|
|
22
23
|
import '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
23
|
-
import './
|
|
24
|
-
import './types-
|
|
24
|
+
import './dynamic-tools-i9woysFa.js';
|
|
25
|
+
import './types-p55Jc-sr.js';
|
|
26
|
+
import './types-DT3nEemY.js';
|
|
27
|
+
import './type-utils-CtHVDRn_.js';
|
|
25
28
|
import 'zod';
|