@meistrari/agent-sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +54 -594
- package/dist/index.d.cts +16 -138
- package/dist/index.d.mts +16 -138
- package/dist/index.d.ts +16 -138
- package/dist/index.mjs +44 -578
- package/dist/schemas.cjs +665 -0
- package/dist/schemas.d.cts +63 -0
- package/dist/schemas.d.mts +63 -0
- package/dist/schemas.d.ts +63 -0
- package/dist/schemas.mjs +639 -0
- package/dist/shared/agent-sdk.4ad2c746.d.cts +372 -0
- package/dist/shared/agent-sdk.4ad2c746.d.mts +372 -0
- package/dist/shared/agent-sdk.4ad2c746.d.ts +372 -0
- package/package.json +7 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.4ad2c746.cjs';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const nativeAnthropicModelIds: readonly ["claude-sonnet-4-5", "claude-sonnet-4-6", "claude-haiku-4-5", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"];
|
|
5
|
+
type NativeAnthropicModelId = typeof nativeAnthropicModelIds[number];
|
|
6
|
+
type V3Provider = 'anthropic' | 'vertex-ai' | 'openrouter' | 'bedrock' | 'tela-claude-agent-gateway';
|
|
7
|
+
declare const nativeModelSchema: z.ZodEnum<{
|
|
8
|
+
"claude-sonnet-4-5": "claude-sonnet-4-5";
|
|
9
|
+
"claude-sonnet-4-6": "claude-sonnet-4-6";
|
|
10
|
+
"claude-haiku-4-5": "claude-haiku-4-5";
|
|
11
|
+
"claude-opus-4-6": "claude-opus-4-6";
|
|
12
|
+
"claude-opus-4-7": "claude-opus-4-7";
|
|
13
|
+
"claude-opus-4-8": "claude-opus-4-8";
|
|
14
|
+
}>;
|
|
15
|
+
type NativeModel = z.infer<typeof nativeModelSchema>;
|
|
16
|
+
declare const openrouterModelCatalog: ({
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
context_length: number;
|
|
20
|
+
max_completion_tokens: number;
|
|
21
|
+
pricing: {
|
|
22
|
+
prompt_per_million: number;
|
|
23
|
+
completion_per_million: number;
|
|
24
|
+
input_cache_read_per_million: number;
|
|
25
|
+
};
|
|
26
|
+
supported_parameters: string[];
|
|
27
|
+
modality: string;
|
|
28
|
+
description: string;
|
|
29
|
+
} | {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
context_length: number;
|
|
33
|
+
max_completion_tokens: null;
|
|
34
|
+
pricing: {
|
|
35
|
+
prompt_per_million: number;
|
|
36
|
+
completion_per_million: number;
|
|
37
|
+
input_cache_read_per_million?: undefined;
|
|
38
|
+
};
|
|
39
|
+
supported_parameters: string[];
|
|
40
|
+
modality: string;
|
|
41
|
+
description: string;
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
context_length: number;
|
|
46
|
+
max_completion_tokens: number;
|
|
47
|
+
pricing: {
|
|
48
|
+
prompt_per_million: number;
|
|
49
|
+
completion_per_million: number;
|
|
50
|
+
input_cache_read_per_million?: undefined;
|
|
51
|
+
};
|
|
52
|
+
supported_parameters: string[];
|
|
53
|
+
modality: string;
|
|
54
|
+
description: string;
|
|
55
|
+
})[];
|
|
56
|
+
declare const openrouterModelIds: string[];
|
|
57
|
+
declare const modelSchema: z.ZodEnum<{
|
|
58
|
+
[x: string]: string;
|
|
59
|
+
}>;
|
|
60
|
+
type Model = z.infer<typeof modelSchema>;
|
|
61
|
+
|
|
62
|
+
export { modelSchema, nativeAnthropicModelIds, nativeModelSchema, openrouterModelCatalog, openrouterModelIds };
|
|
63
|
+
export type { Model, NativeAnthropicModelId, NativeModel, V3Provider };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.4ad2c746.mjs';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const nativeAnthropicModelIds: readonly ["claude-sonnet-4-5", "claude-sonnet-4-6", "claude-haiku-4-5", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"];
|
|
5
|
+
type NativeAnthropicModelId = typeof nativeAnthropicModelIds[number];
|
|
6
|
+
type V3Provider = 'anthropic' | 'vertex-ai' | 'openrouter' | 'bedrock' | 'tela-claude-agent-gateway';
|
|
7
|
+
declare const nativeModelSchema: z.ZodEnum<{
|
|
8
|
+
"claude-sonnet-4-5": "claude-sonnet-4-5";
|
|
9
|
+
"claude-sonnet-4-6": "claude-sonnet-4-6";
|
|
10
|
+
"claude-haiku-4-5": "claude-haiku-4-5";
|
|
11
|
+
"claude-opus-4-6": "claude-opus-4-6";
|
|
12
|
+
"claude-opus-4-7": "claude-opus-4-7";
|
|
13
|
+
"claude-opus-4-8": "claude-opus-4-8";
|
|
14
|
+
}>;
|
|
15
|
+
type NativeModel = z.infer<typeof nativeModelSchema>;
|
|
16
|
+
declare const openrouterModelCatalog: ({
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
context_length: number;
|
|
20
|
+
max_completion_tokens: number;
|
|
21
|
+
pricing: {
|
|
22
|
+
prompt_per_million: number;
|
|
23
|
+
completion_per_million: number;
|
|
24
|
+
input_cache_read_per_million: number;
|
|
25
|
+
};
|
|
26
|
+
supported_parameters: string[];
|
|
27
|
+
modality: string;
|
|
28
|
+
description: string;
|
|
29
|
+
} | {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
context_length: number;
|
|
33
|
+
max_completion_tokens: null;
|
|
34
|
+
pricing: {
|
|
35
|
+
prompt_per_million: number;
|
|
36
|
+
completion_per_million: number;
|
|
37
|
+
input_cache_read_per_million?: undefined;
|
|
38
|
+
};
|
|
39
|
+
supported_parameters: string[];
|
|
40
|
+
modality: string;
|
|
41
|
+
description: string;
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
context_length: number;
|
|
46
|
+
max_completion_tokens: number;
|
|
47
|
+
pricing: {
|
|
48
|
+
prompt_per_million: number;
|
|
49
|
+
completion_per_million: number;
|
|
50
|
+
input_cache_read_per_million?: undefined;
|
|
51
|
+
};
|
|
52
|
+
supported_parameters: string[];
|
|
53
|
+
modality: string;
|
|
54
|
+
description: string;
|
|
55
|
+
})[];
|
|
56
|
+
declare const openrouterModelIds: string[];
|
|
57
|
+
declare const modelSchema: z.ZodEnum<{
|
|
58
|
+
[x: string]: string;
|
|
59
|
+
}>;
|
|
60
|
+
type Model = z.infer<typeof modelSchema>;
|
|
61
|
+
|
|
62
|
+
export { modelSchema, nativeAnthropicModelIds, nativeModelSchema, openrouterModelCatalog, openrouterModelIds };
|
|
63
|
+
export type { Model, NativeAnthropicModelId, NativeModel, V3Provider };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.4ad2c746.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const nativeAnthropicModelIds: readonly ["claude-sonnet-4-5", "claude-sonnet-4-6", "claude-haiku-4-5", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"];
|
|
5
|
+
type NativeAnthropicModelId = typeof nativeAnthropicModelIds[number];
|
|
6
|
+
type V3Provider = 'anthropic' | 'vertex-ai' | 'openrouter' | 'bedrock' | 'tela-claude-agent-gateway';
|
|
7
|
+
declare const nativeModelSchema: z.ZodEnum<{
|
|
8
|
+
"claude-sonnet-4-5": "claude-sonnet-4-5";
|
|
9
|
+
"claude-sonnet-4-6": "claude-sonnet-4-6";
|
|
10
|
+
"claude-haiku-4-5": "claude-haiku-4-5";
|
|
11
|
+
"claude-opus-4-6": "claude-opus-4-6";
|
|
12
|
+
"claude-opus-4-7": "claude-opus-4-7";
|
|
13
|
+
"claude-opus-4-8": "claude-opus-4-8";
|
|
14
|
+
}>;
|
|
15
|
+
type NativeModel = z.infer<typeof nativeModelSchema>;
|
|
16
|
+
declare const openrouterModelCatalog: ({
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
context_length: number;
|
|
20
|
+
max_completion_tokens: number;
|
|
21
|
+
pricing: {
|
|
22
|
+
prompt_per_million: number;
|
|
23
|
+
completion_per_million: number;
|
|
24
|
+
input_cache_read_per_million: number;
|
|
25
|
+
};
|
|
26
|
+
supported_parameters: string[];
|
|
27
|
+
modality: string;
|
|
28
|
+
description: string;
|
|
29
|
+
} | {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
context_length: number;
|
|
33
|
+
max_completion_tokens: null;
|
|
34
|
+
pricing: {
|
|
35
|
+
prompt_per_million: number;
|
|
36
|
+
completion_per_million: number;
|
|
37
|
+
input_cache_read_per_million?: undefined;
|
|
38
|
+
};
|
|
39
|
+
supported_parameters: string[];
|
|
40
|
+
modality: string;
|
|
41
|
+
description: string;
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
context_length: number;
|
|
46
|
+
max_completion_tokens: number;
|
|
47
|
+
pricing: {
|
|
48
|
+
prompt_per_million: number;
|
|
49
|
+
completion_per_million: number;
|
|
50
|
+
input_cache_read_per_million?: undefined;
|
|
51
|
+
};
|
|
52
|
+
supported_parameters: string[];
|
|
53
|
+
modality: string;
|
|
54
|
+
description: string;
|
|
55
|
+
})[];
|
|
56
|
+
declare const openrouterModelIds: string[];
|
|
57
|
+
declare const modelSchema: z.ZodEnum<{
|
|
58
|
+
[x: string]: string;
|
|
59
|
+
}>;
|
|
60
|
+
type Model = z.infer<typeof modelSchema>;
|
|
61
|
+
|
|
62
|
+
export { modelSchema, nativeAnthropicModelIds, nativeModelSchema, openrouterModelCatalog, openrouterModelIds };
|
|
63
|
+
export type { Model, NativeAnthropicModelId, NativeModel, V3Provider };
|