@zyraxon-ai/llm 19.0.5 → 19.0.6
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 +131 -131
- package/dist/cache-policy.js +1 -0
- package/dist/cache-policy.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/llm.js +1 -0
- package/dist/llm.js.map +1 -1
- package/dist/protocols/anthropic-messages.js +1 -0
- package/dist/protocols/anthropic-messages.js.map +1 -1
- package/dist/protocols/bedrock-converse.js +1 -0
- package/dist/protocols/bedrock-converse.js.map +1 -1
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/bedrock-event-stream.js.map +1 -1
- package/dist/protocols/gemini.js +1 -0
- package/dist/protocols/gemini.js.map +1 -1
- package/dist/protocols/index.js +1 -0
- package/dist/protocols/index.js.map +1 -1
- package/dist/protocols/openai-chat.js +1 -0
- package/dist/protocols/openai-chat.js.map +1 -1
- package/dist/protocols/openai-compatible-chat.js +1 -0
- package/dist/protocols/openai-compatible-chat.js.map +1 -1
- package/dist/protocols/openai-responses.js +1 -0
- package/dist/protocols/openai-responses.js.map +1 -1
- package/dist/protocols/shared.js +1 -0
- package/dist/protocols/shared.js.map +1 -1
- package/dist/protocols/utils/bedrock-auth.js +1 -0
- package/dist/protocols/utils/bedrock-auth.js.map +1 -1
- package/dist/protocols/utils/bedrock-cache.js +1 -0
- package/dist/protocols/utils/bedrock-cache.js.map +1 -1
- package/dist/protocols/utils/bedrock-media.js +1 -0
- package/dist/protocols/utils/bedrock-media.js.map +1 -1
- package/dist/protocols/utils/cache.js +1 -3
- package/dist/protocols/utils/cache.js.map +1 -1
- package/dist/protocols/utils/gemini-tool-schema.js +1 -0
- package/dist/protocols/utils/gemini-tool-schema.js.map +1 -1
- package/dist/protocols/utils/lifecycle.js +1 -0
- package/dist/protocols/utils/lifecycle.js.map +1 -1
- package/dist/protocols/utils/openai-options.js +1 -0
- package/dist/protocols/utils/openai-options.js.map +1 -1
- package/dist/protocols/utils/tool-schema.js +1 -0
- package/dist/protocols/utils/tool-schema.js.map +1 -1
- package/dist/protocols/utils/tool-stream.js +1 -0
- package/dist/protocols/utils/tool-stream.js.map +1 -1
- package/dist/provider-error.js +1 -0
- package/dist/provider-error.js.map +1 -1
- package/dist/provider.js +1 -0
- package/dist/provider.js.map +1 -1
- package/dist/providers/amazon-bedrock.js +1 -0
- package/dist/providers/amazon-bedrock.js.map +1 -1
- package/dist/providers/anthropic.js +1 -0
- package/dist/providers/anthropic.js.map +1 -1
- package/dist/providers/azure.js +1 -0
- package/dist/providers/azure.js.map +1 -1
- package/dist/providers/cloudflare.js +1 -0
- package/dist/providers/cloudflare.js.map +1 -1
- package/dist/providers/github-copilot.js +1 -0
- package/dist/providers/github-copilot.js.map +1 -1
- package/dist/providers/google.js +1 -0
- package/dist/providers/google.js.map +1 -1
- package/dist/providers/index.js +1 -0
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/openai-compatible-profile.js +1 -0
- package/dist/providers/openai-compatible-profile.js.map +1 -1
- package/dist/providers/openai-compatible.js +1 -0
- package/dist/providers/openai-compatible.js.map +1 -1
- package/dist/providers/openai-options.js +1 -0
- package/dist/providers/openai-options.js.map +1 -1
- package/dist/providers/openai.js +1 -0
- package/dist/providers/openai.js.map +1 -1
- package/dist/providers/openrouter.js +1 -0
- package/dist/providers/openrouter.js.map +1 -1
- package/dist/providers/xai.js +1 -0
- package/dist/providers/xai.js.map +1 -1
- package/dist/route/auth-options.js +1 -0
- package/dist/route/auth-options.js.map +1 -1
- package/dist/route/auth.js +1 -0
- package/dist/route/auth.js.map +1 -1
- package/dist/route/client.js +1 -0
- package/dist/route/client.js.map +1 -1
- package/dist/route/endpoint.js +1 -0
- package/dist/route/endpoint.js.map +1 -1
- package/dist/route/executor.js +1 -0
- package/dist/route/executor.js.map +1 -1
- package/dist/route/framing.js +1 -0
- package/dist/route/framing.js.map +1 -1
- package/dist/route/index.js +1 -0
- package/dist/route/index.js.map +1 -1
- package/dist/route/protocol.js +1 -0
- package/dist/route/protocol.js.map +1 -1
- package/dist/route/transport/http.js +1 -0
- package/dist/route/transport/http.js.map +1 -1
- package/dist/route/transport/index.js +1 -0
- package/dist/route/transport/index.js.map +1 -1
- package/dist/route/transport/websocket.js +1 -0
- package/dist/route/transport/websocket.js.map +1 -1
- package/dist/schema/errors.js +1 -0
- package/dist/schema/errors.js.map +1 -1
- package/dist/schema/events.js +1 -0
- package/dist/schema/events.js.map +1 -1
- package/dist/schema/ids.js +1 -0
- package/dist/schema/ids.js.map +1 -1
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/messages.js +1 -0
- package/dist/schema/messages.js.map +1 -1
- package/dist/schema/options.js +1 -0
- package/dist/schema/options.js.map +1 -1
- package/dist/tool-runtime.js +1 -0
- package/dist/tool-runtime.js.map +1 -1
- package/dist/tool.js +1 -0
- package/dist/tool.js.map +1 -1
- package/dist/utils/record.js +1 -0
- package/dist/utils/record.js.map +1 -1
- package/package.json +107 -21
- package/dist/cache-policy.d.ts +0 -3
- package/dist/cache-policy.d.ts.map +0 -1
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/llm.d.ts +0 -205
- package/dist/llm.d.ts.map +0 -1
- package/dist/protocols/anthropic-messages.d.ts +0 -340
- package/dist/protocols/anthropic-messages.d.ts.map +0 -1
- package/dist/protocols/bedrock-converse.d.ts +0 -472
- package/dist/protocols/bedrock-converse.d.ts.map +0 -1
- package/dist/protocols/bedrock-event-stream.d.ts +0 -10
- package/dist/protocols/bedrock-event-stream.d.ts.map +0 -1
- package/dist/protocols/gemini.d.ts +0 -165
- package/dist/protocols/gemini.d.ts.map +0 -1
- package/dist/protocols/index.d.ts +0 -7
- package/dist/protocols/index.d.ts.map +0 -1
- package/dist/protocols/openai-chat.d.ts +0 -297
- package/dist/protocols/openai-chat.d.ts.map +0 -1
- package/dist/protocols/openai-compatible-chat.d.ts +0 -12
- package/dist/protocols/openai-compatible-chat.d.ts.map +0 -1
- package/dist/protocols/openai-responses.d.ts +0 -615
- package/dist/protocols/openai-responses.d.ts.map +0 -1
- package/dist/protocols/shared.d.ts +0 -193
- package/dist/protocols/shared.d.ts.map +0 -1
- package/dist/protocols/utils/bedrock-auth.d.ts +0 -19
- package/dist/protocols/utils/bedrock-auth.d.ts.map +0 -1
- package/dist/protocols/utils/bedrock-cache.d.ts +0 -16
- package/dist/protocols/utils/bedrock-cache.d.ts.map +0 -1
- package/dist/protocols/utils/bedrock-media.d.ts +0 -50
- package/dist/protocols/utils/bedrock-media.d.ts.map +0 -1
- package/dist/protocols/utils/cache.d.ts +0 -7
- package/dist/protocols/utils/cache.d.ts.map +0 -1
- package/dist/protocols/utils/gemini-tool-schema.d.ts +0 -3
- package/dist/protocols/utils/gemini-tool-schema.d.ts.map +0 -1
- package/dist/protocols/utils/lifecycle.d.ts +0 -20
- package/dist/protocols/utils/lifecycle.d.ts.map +0 -1
- package/dist/protocols/utils/openai-options.d.ts +0 -23
- package/dist/protocols/utils/openai-options.d.ts.map +0 -1
- package/dist/protocols/utils/tool-schema.d.ts +0 -8
- package/dist/protocols/utils/tool-schema.d.ts.map +0 -1
- package/dist/protocols/utils/tool-stream.d.ts +0 -156
- package/dist/protocols/utils/tool-stream.d.ts.map +0 -1
- package/dist/provider-error.d.ts +0 -3
- package/dist/provider-error.d.ts.map +0 -1
- package/dist/provider.d.ts +0 -24
- package/dist/provider.d.ts.map +0 -1
- package/dist/providers/amazon-bedrock.d.ts +0 -142
- package/dist/providers/amazon-bedrock.d.ts.map +0 -1
- package/dist/providers/anthropic.d.ts +0 -24
- package/dist/providers/anthropic.d.ts.map +0 -1
- package/dist/providers/azure.d.ts +0 -36
- package/dist/providers/azure.d.ts.map +0 -1
- package/dist/providers/cloudflare.d.ts +0 -47
- package/dist/providers/cloudflare.d.ts.map +0 -1
- package/dist/providers/github-copilot.d.ts +0 -30
- package/dist/providers/github-copilot.d.ts.map +0 -1
- package/dist/providers/google.d.ts +0 -24
- package/dist/providers/google.d.ts.map +0 -1
- package/dist/providers/index.d.ts +0 -12
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/openai-compatible-profile.d.ts +0 -44
- package/dist/providers/openai-compatible-profile.d.ts.map +0 -1
- package/dist/providers/openai-compatible.d.ts +0 -62
- package/dist/providers/openai-compatible.d.ts.map +0 -1
- package/dist/providers/openai-options.d.ts +0 -31
- package/dist/providers/openai-options.d.ts.map +0 -1
- package/dist/providers/openai.d.ts +0 -116
- package/dist/providers/openai.d.ts.map +0 -1
- package/dist/providers/openrouter.d.ts +0 -199
- package/dist/providers/openrouter.d.ts.map +0 -1
- package/dist/providers/xai.d.ts +0 -32
- package/dist/providers/xai.d.ts.map +0 -1
- package/dist/route/auth-options.d.ts +0 -35
- package/dist/route/auth-options.d.ts.map +0 -1
- package/dist/route/client.d.ts +0 -306
- package/dist/route/client.d.ts.map +0 -1
- package/dist/route/executor.d.ts +0 -13
- package/dist/route/executor.d.ts.map +0 -1
- package/dist/route/index.d.ts +0 -17
- package/dist/route/index.d.ts.map +0 -1
- package/dist/route/protocol.d.ts +0 -77
- package/dist/route/protocol.d.ts.map +0 -1
- package/dist/route/transport/http.d.ts +0 -34
- package/dist/route/transport/http.d.ts.map +0 -1
- package/dist/route/transport/index.d.ts +0 -28
- package/dist/route/transport/index.d.ts.map +0 -1
- package/dist/route/transport/websocket.d.ts +0 -57
- package/dist/route/transport/websocket.d.ts.map +0 -1
- package/dist/schema/errors.d.ts +0 -166
- package/dist/schema/errors.d.ts.map +0 -1
- package/dist/schema/events.d.ts +0 -3821
- package/dist/schema/events.d.ts.map +0 -1
- package/dist/schema/ids.d.ts +0 -31
- package/dist/schema/ids.d.ts.map +0 -1
- package/dist/schema/index.d.ts +0 -6
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/messages.d.ts +0 -294
- package/dist/schema/messages.d.ts.map +0 -1
- package/dist/schema/options.d.ts +0 -144
- package/dist/schema/options.d.ts.map +0 -1
- package/dist/tool-runtime.d.ts +0 -16
- package/dist/tool-runtime.d.ts.map +0 -1
- package/dist/utils/record.d.ts +0 -3
- package/dist/utils/record.d.ts.map +0 -1
package/dist/llm.d.ts
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { Effect, JsonSchema, Schema } from "effect";
|
|
2
|
-
import { GenerationOptions, HttpOptions, LLMError, LLMRequest, LLMResponse, Message, type ModelInput as SchemaModelInput, SystemPart, ToolChoice, ToolDefinition, type ContentPart, ToolResultPart } from "./schema";
|
|
3
|
-
import { type ToolSchema } from "./tool";
|
|
4
|
-
export type ModelInput = SchemaModelInput;
|
|
5
|
-
export type MessageInput = Message.Input;
|
|
6
|
-
export type ToolChoiceInput = ToolChoice.Input;
|
|
7
|
-
export type ToolChoiceMode = ToolChoice.Mode;
|
|
8
|
-
export type ToolResultInput = Parameters<typeof ToolResultPart.make>[0];
|
|
9
|
-
/** Input accepted by `LLM.request`, normalized into the canonical `LLMRequest` class. */
|
|
10
|
-
export type RequestInput = Omit<ConstructorParameters<typeof LLMRequest>[0], "system" | "messages" | "tools" | "toolChoice" | "generation" | "http" | "providerOptions"> & {
|
|
11
|
-
readonly system?: string | SystemPart | ReadonlyArray<SystemPart>;
|
|
12
|
-
readonly prompt?: string | ContentPart | ReadonlyArray<ContentPart>;
|
|
13
|
-
readonly messages?: ReadonlyArray<Message | MessageInput>;
|
|
14
|
-
readonly tools?: ReadonlyArray<ToolDefinition.Input>;
|
|
15
|
-
readonly toolChoice?: ToolChoiceInput;
|
|
16
|
-
readonly generation?: GenerationOptions.Input;
|
|
17
|
-
readonly providerOptions?: ConstructorParameters<typeof LLMRequest>[0]["providerOptions"];
|
|
18
|
-
readonly http?: HttpOptions.Input;
|
|
19
|
-
};
|
|
20
|
-
export declare const generate: typeof import("./route/client").generate;
|
|
21
|
-
export declare const stream: typeof import("./route/client").stream;
|
|
22
|
-
export declare const requestInput: (input: LLMRequest) => RequestInput;
|
|
23
|
-
export declare const request: (input: RequestInput) => LLMRequest;
|
|
24
|
-
export declare const updateRequest: (input: LLMRequest, patch: Partial<RequestInput>) => LLMRequest;
|
|
25
|
-
type GenerateObjectBase = Omit<RequestInput, "tools" | "toolChoice" | "responseFormat">;
|
|
26
|
-
export declare class GenerateObjectResponse<T> {
|
|
27
|
-
readonly object: T;
|
|
28
|
-
readonly response: LLMResponse;
|
|
29
|
-
constructor(object: T, response: LLMResponse);
|
|
30
|
-
get events(): readonly ({
|
|
31
|
-
readonly type: "step-start";
|
|
32
|
-
readonly index: number;
|
|
33
|
-
} | {
|
|
34
|
-
readonly type: "text-start";
|
|
35
|
-
readonly id: string;
|
|
36
|
-
readonly providerMetadata?: {
|
|
37
|
-
readonly [x: string]: {
|
|
38
|
-
readonly [x: string]: unknown;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
|
-
readonly type: "text-delta";
|
|
43
|
-
readonly id: string;
|
|
44
|
-
readonly text: string;
|
|
45
|
-
readonly providerMetadata?: {
|
|
46
|
-
readonly [x: string]: {
|
|
47
|
-
readonly [x: string]: unknown;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
} | {
|
|
51
|
-
readonly type: "text-end";
|
|
52
|
-
readonly id: string;
|
|
53
|
-
readonly providerMetadata?: {
|
|
54
|
-
readonly [x: string]: {
|
|
55
|
-
readonly [x: string]: unknown;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
} | {
|
|
59
|
-
readonly type: "reasoning-start";
|
|
60
|
-
readonly id: string;
|
|
61
|
-
readonly providerMetadata?: {
|
|
62
|
-
readonly [x: string]: {
|
|
63
|
-
readonly [x: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
} | {
|
|
67
|
-
readonly type: "reasoning-delta";
|
|
68
|
-
readonly id: string;
|
|
69
|
-
readonly text: string;
|
|
70
|
-
readonly providerMetadata?: {
|
|
71
|
-
readonly [x: string]: {
|
|
72
|
-
readonly [x: string]: unknown;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
} | {
|
|
76
|
-
readonly type: "reasoning-end";
|
|
77
|
-
readonly id: string;
|
|
78
|
-
readonly providerMetadata?: {
|
|
79
|
-
readonly [x: string]: {
|
|
80
|
-
readonly [x: string]: unknown;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
} | {
|
|
84
|
-
readonly type: "tool-input-start";
|
|
85
|
-
readonly id: string;
|
|
86
|
-
readonly name: string;
|
|
87
|
-
readonly providerMetadata?: {
|
|
88
|
-
readonly [x: string]: {
|
|
89
|
-
readonly [x: string]: unknown;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
} | {
|
|
93
|
-
readonly type: "tool-input-delta";
|
|
94
|
-
readonly id: string;
|
|
95
|
-
readonly name: string;
|
|
96
|
-
readonly text: string;
|
|
97
|
-
} | {
|
|
98
|
-
readonly type: "tool-input-end";
|
|
99
|
-
readonly id: string;
|
|
100
|
-
readonly name: string;
|
|
101
|
-
readonly providerMetadata?: {
|
|
102
|
-
readonly [x: string]: {
|
|
103
|
-
readonly [x: string]: unknown;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
} | {
|
|
107
|
-
readonly type: "tool-call";
|
|
108
|
-
readonly id: string;
|
|
109
|
-
readonly name: string;
|
|
110
|
-
readonly input: unknown;
|
|
111
|
-
readonly providerExecuted?: boolean;
|
|
112
|
-
readonly providerMetadata?: {
|
|
113
|
-
readonly [x: string]: {
|
|
114
|
-
readonly [x: string]: unknown;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
} | {
|
|
118
|
-
readonly type: "tool-result";
|
|
119
|
-
readonly id: string;
|
|
120
|
-
readonly name: string;
|
|
121
|
-
readonly output?: {
|
|
122
|
-
readonly structured: unknown;
|
|
123
|
-
readonly content: readonly ({
|
|
124
|
-
readonly type: "text";
|
|
125
|
-
readonly text: string;
|
|
126
|
-
} | {
|
|
127
|
-
readonly type: "file";
|
|
128
|
-
readonly uri: string;
|
|
129
|
-
readonly mime: string;
|
|
130
|
-
readonly name?: string;
|
|
131
|
-
})[];
|
|
132
|
-
};
|
|
133
|
-
readonly providerExecuted?: boolean;
|
|
134
|
-
readonly providerMetadata?: {
|
|
135
|
-
readonly [x: string]: {
|
|
136
|
-
readonly [x: string]: unknown;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
result?: any;
|
|
140
|
-
} | {
|
|
141
|
-
readonly type: "tool-error";
|
|
142
|
-
readonly id: string;
|
|
143
|
-
readonly name: string;
|
|
144
|
-
readonly message: string;
|
|
145
|
-
readonly error?: unknown;
|
|
146
|
-
readonly providerMetadata?: {
|
|
147
|
-
readonly [x: string]: {
|
|
148
|
-
readonly [x: string]: unknown;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
} | {
|
|
152
|
-
readonly type: "step-finish";
|
|
153
|
-
readonly index: number;
|
|
154
|
-
readonly reason: "length" | "stop" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
155
|
-
readonly usage?: import("./schema").Usage;
|
|
156
|
-
readonly providerMetadata?: {
|
|
157
|
-
readonly [x: string]: {
|
|
158
|
-
readonly [x: string]: unknown;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
} | {
|
|
162
|
-
readonly type: "finish";
|
|
163
|
-
readonly reason: "length" | "stop" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
164
|
-
readonly usage?: import("./schema").Usage;
|
|
165
|
-
readonly providerMetadata?: {
|
|
166
|
-
readonly [x: string]: {
|
|
167
|
-
readonly [x: string]: unknown;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
} | {
|
|
171
|
-
readonly type: "provider-error";
|
|
172
|
-
readonly message: string;
|
|
173
|
-
readonly classification?: "context-overflow";
|
|
174
|
-
readonly retryable?: boolean;
|
|
175
|
-
readonly providerMetadata?: {
|
|
176
|
-
readonly [x: string]: {
|
|
177
|
-
readonly [x: string]: unknown;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
})[];
|
|
181
|
-
get usage(): import("./schema").Usage;
|
|
182
|
-
}
|
|
183
|
-
export interface GenerateObjectOptions<S extends ToolSchema<any>> extends GenerateObjectBase {
|
|
184
|
-
readonly schema: S;
|
|
185
|
-
}
|
|
186
|
-
export interface GenerateObjectDynamicOptions extends GenerateObjectBase {
|
|
187
|
-
/** Raw JSON Schema object describing the expected output shape. */
|
|
188
|
-
readonly jsonSchema: JsonSchema.JsonSchema;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Run a model and decode its output against `schema`. Works on every protocol
|
|
192
|
-
* because it forces a synthetic tool call internally — provider-native JSON
|
|
193
|
-
* modes are intentionally avoided so behaviour is uniform.
|
|
194
|
-
*
|
|
195
|
-
* Two input modes:
|
|
196
|
-
*
|
|
197
|
-
* 1. `schema: EffectSchema<T>` — `.object` is decoded and typed as `T`.
|
|
198
|
-
* Decode failures surface as `LLMError`.
|
|
199
|
-
* 2. `jsonSchema: JsonSchema.JsonSchema` — `.object` is `unknown`. Use when
|
|
200
|
-
* the schema is only available at runtime (MCP, plugin manifests). Caller validates.
|
|
201
|
-
*/
|
|
202
|
-
export declare function generateObject<S extends ToolSchema<any>>(options: GenerateObjectOptions<S>): Effect.Effect<GenerateObjectResponse<Schema.Schema.Type<S>>, LLMError>;
|
|
203
|
-
export declare function generateObject(options: GenerateObjectDynamicOptions): Effect.Effect<GenerateObjectResponse<unknown>, LLMError>;
|
|
204
|
-
export {};
|
|
205
|
-
//# sourceMappingURL=llm.d.ts.map
|
package/dist/llm.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../src/llm.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import { Route } from "../route/client";
|
|
3
|
-
import { Protocol } from "../route/protocol";
|
|
4
|
-
import { Lifecycle } from "./utils/lifecycle";
|
|
5
|
-
import { ToolStream } from "./utils/tool-stream";
|
|
6
|
-
export declare const DEFAULT_BASE_URL = "https://api.anthropic.com/v1";
|
|
7
|
-
export declare const PATH = "/messages";
|
|
8
|
-
declare const AnthropicMessagesBody: Schema.Struct<{
|
|
9
|
-
model: Schema.String;
|
|
10
|
-
system: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
11
|
-
readonly type: Schema.tag<"text">;
|
|
12
|
-
readonly text: Schema.String;
|
|
13
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
14
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
15
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
16
|
-
}>>;
|
|
17
|
-
}>>>;
|
|
18
|
-
messages: Schema.$Array<Schema.toTaggedUnion<"role", readonly [Schema.Struct<{
|
|
19
|
-
readonly role: Schema.Literal<"user">;
|
|
20
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
21
|
-
readonly type: Schema.tag<"text">;
|
|
22
|
-
readonly text: Schema.String;
|
|
23
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
24
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
25
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
26
|
-
}>>;
|
|
27
|
-
}>, Schema.Struct<{
|
|
28
|
-
readonly type: Schema.tag<"image">;
|
|
29
|
-
readonly source: Schema.Struct<{
|
|
30
|
-
readonly type: Schema.tag<"base64">;
|
|
31
|
-
readonly media_type: Schema.String;
|
|
32
|
-
readonly data: Schema.String;
|
|
33
|
-
}>;
|
|
34
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
35
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
36
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
37
|
-
}>>;
|
|
38
|
-
}>, Schema.Struct<{
|
|
39
|
-
readonly type: Schema.tag<"tool_result">;
|
|
40
|
-
readonly tool_use_id: Schema.String;
|
|
41
|
-
readonly content: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
42
|
-
readonly type: Schema.tag<"text">;
|
|
43
|
-
readonly text: Schema.String;
|
|
44
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
45
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
46
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
47
|
-
}>>;
|
|
48
|
-
}>, Schema.Struct<{
|
|
49
|
-
readonly type: Schema.tag<"image">;
|
|
50
|
-
readonly source: Schema.Struct<{
|
|
51
|
-
readonly type: Schema.tag<"base64">;
|
|
52
|
-
readonly media_type: Schema.String;
|
|
53
|
-
readonly data: Schema.String;
|
|
54
|
-
}>;
|
|
55
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
56
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
57
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
58
|
-
}>>;
|
|
59
|
-
}>]>>]>;
|
|
60
|
-
readonly is_error: Schema.optional<Schema.Boolean>;
|
|
61
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
62
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
63
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
64
|
-
}>>;
|
|
65
|
-
}>]>>;
|
|
66
|
-
}>, Schema.Struct<{
|
|
67
|
-
readonly role: Schema.Literal<"assistant">;
|
|
68
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
69
|
-
readonly type: Schema.tag<"text">;
|
|
70
|
-
readonly text: Schema.String;
|
|
71
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
72
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
73
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
74
|
-
}>>;
|
|
75
|
-
}>, Schema.Struct<{
|
|
76
|
-
readonly type: Schema.tag<"thinking">;
|
|
77
|
-
readonly thinking: Schema.String;
|
|
78
|
-
readonly signature: Schema.optional<Schema.String>;
|
|
79
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
80
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
81
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
82
|
-
}>>;
|
|
83
|
-
}>, Schema.Struct<{
|
|
84
|
-
readonly type: Schema.tag<"tool_use">;
|
|
85
|
-
readonly id: Schema.String;
|
|
86
|
-
readonly name: Schema.String;
|
|
87
|
-
readonly input: Schema.Unknown;
|
|
88
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
89
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
90
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
91
|
-
}>>;
|
|
92
|
-
}>, Schema.Struct<{
|
|
93
|
-
readonly type: Schema.tag<"server_tool_use">;
|
|
94
|
-
readonly id: Schema.String;
|
|
95
|
-
readonly name: Schema.String;
|
|
96
|
-
readonly input: Schema.Unknown;
|
|
97
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
98
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
99
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
100
|
-
}>>;
|
|
101
|
-
}>, Schema.Struct<{
|
|
102
|
-
readonly type: Schema.Literals<readonly ["web_search_tool_result", "code_execution_tool_result", "web_fetch_tool_result"]>;
|
|
103
|
-
readonly tool_use_id: Schema.String;
|
|
104
|
-
readonly content: Schema.Unknown;
|
|
105
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
106
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
107
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
108
|
-
}>>;
|
|
109
|
-
}>]>>;
|
|
110
|
-
}>, Schema.Struct<{
|
|
111
|
-
readonly role: Schema.Literal<"system">;
|
|
112
|
-
readonly content: Schema.$Array<Schema.Struct<{
|
|
113
|
-
readonly type: Schema.tag<"text">;
|
|
114
|
-
readonly text: Schema.String;
|
|
115
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
116
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
117
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
118
|
-
}>>;
|
|
119
|
-
}>>;
|
|
120
|
-
}>]>>;
|
|
121
|
-
tools: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
122
|
-
readonly name: Schema.String;
|
|
123
|
-
readonly description: Schema.String;
|
|
124
|
-
readonly input_schema: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
125
|
-
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
126
|
-
readonly type: Schema.tag<"ephemeral">;
|
|
127
|
-
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
128
|
-
}>>;
|
|
129
|
-
}>>>;
|
|
130
|
-
tool_choice: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
131
|
-
readonly type: Schema.Literals<readonly ["auto", "any"]>;
|
|
132
|
-
}>, Schema.Struct<{
|
|
133
|
-
readonly type: Schema.tag<"tool">;
|
|
134
|
-
readonly name: Schema.String;
|
|
135
|
-
}>]>>;
|
|
136
|
-
stream: Schema.Literal<true>;
|
|
137
|
-
max_tokens: Schema.Number;
|
|
138
|
-
temperature: Schema.optional<Schema.Number>;
|
|
139
|
-
top_p: Schema.optional<Schema.Number>;
|
|
140
|
-
top_k: Schema.optional<Schema.Number>;
|
|
141
|
-
stop_sequences: Schema.optional<Schema.$Array<Schema.String>>;
|
|
142
|
-
thinking: Schema.optional<Schema.Struct<{
|
|
143
|
-
readonly type: Schema.tag<"enabled">;
|
|
144
|
-
readonly budget_tokens: Schema.Number;
|
|
145
|
-
}>>;
|
|
146
|
-
}>;
|
|
147
|
-
export type AnthropicMessagesBody = Schema.Schema.Type<typeof AnthropicMessagesBody>;
|
|
148
|
-
/**
|
|
149
|
-
* The Anthropic Messages protocol — request body construction, body schema,
|
|
150
|
-
* and the streaming-event state machine. Used by native Anthropic Cloud and
|
|
151
|
-
* (once registered) Vertex Anthropic / Bedrock-hosted Anthropic passthrough.
|
|
152
|
-
*/
|
|
153
|
-
export declare const protocol: Protocol<{
|
|
154
|
-
readonly model: string;
|
|
155
|
-
readonly messages: readonly ({
|
|
156
|
-
readonly role: "user";
|
|
157
|
-
readonly content: readonly ({
|
|
158
|
-
readonly type: "text";
|
|
159
|
-
readonly text: string;
|
|
160
|
-
readonly cache_control?: {
|
|
161
|
-
readonly type: "ephemeral";
|
|
162
|
-
readonly ttl?: "1h" | "5m";
|
|
163
|
-
};
|
|
164
|
-
} | {
|
|
165
|
-
readonly type: "image";
|
|
166
|
-
readonly source: {
|
|
167
|
-
readonly type: "base64";
|
|
168
|
-
readonly media_type: string;
|
|
169
|
-
readonly data: string;
|
|
170
|
-
};
|
|
171
|
-
readonly cache_control?: {
|
|
172
|
-
readonly type: "ephemeral";
|
|
173
|
-
readonly ttl?: "1h" | "5m";
|
|
174
|
-
};
|
|
175
|
-
} | {
|
|
176
|
-
readonly type: "tool_result";
|
|
177
|
-
readonly tool_use_id: string;
|
|
178
|
-
readonly content: string | readonly ({
|
|
179
|
-
readonly type: "text";
|
|
180
|
-
readonly text: string;
|
|
181
|
-
readonly cache_control?: {
|
|
182
|
-
readonly type: "ephemeral";
|
|
183
|
-
readonly ttl?: "1h" | "5m";
|
|
184
|
-
};
|
|
185
|
-
} | {
|
|
186
|
-
readonly type: "image";
|
|
187
|
-
readonly source: {
|
|
188
|
-
readonly type: "base64";
|
|
189
|
-
readonly media_type: string;
|
|
190
|
-
readonly data: string;
|
|
191
|
-
};
|
|
192
|
-
readonly cache_control?: {
|
|
193
|
-
readonly type: "ephemeral";
|
|
194
|
-
readonly ttl?: "1h" | "5m";
|
|
195
|
-
};
|
|
196
|
-
})[];
|
|
197
|
-
readonly is_error?: boolean;
|
|
198
|
-
readonly cache_control?: {
|
|
199
|
-
readonly type: "ephemeral";
|
|
200
|
-
readonly ttl?: "1h" | "5m";
|
|
201
|
-
};
|
|
202
|
-
})[];
|
|
203
|
-
} | {
|
|
204
|
-
readonly role: "assistant";
|
|
205
|
-
readonly content: readonly ({
|
|
206
|
-
readonly type: "text";
|
|
207
|
-
readonly text: string;
|
|
208
|
-
readonly cache_control?: {
|
|
209
|
-
readonly type: "ephemeral";
|
|
210
|
-
readonly ttl?: "1h" | "5m";
|
|
211
|
-
};
|
|
212
|
-
} | {
|
|
213
|
-
readonly type: "thinking";
|
|
214
|
-
readonly thinking: string;
|
|
215
|
-
readonly signature?: string;
|
|
216
|
-
readonly cache_control?: {
|
|
217
|
-
readonly type: "ephemeral";
|
|
218
|
-
readonly ttl?: "1h" | "5m";
|
|
219
|
-
};
|
|
220
|
-
} | {
|
|
221
|
-
readonly type: "tool_use";
|
|
222
|
-
readonly id: string;
|
|
223
|
-
readonly name: string;
|
|
224
|
-
readonly input: unknown;
|
|
225
|
-
readonly cache_control?: {
|
|
226
|
-
readonly type: "ephemeral";
|
|
227
|
-
readonly ttl?: "1h" | "5m";
|
|
228
|
-
};
|
|
229
|
-
} | {
|
|
230
|
-
readonly type: "server_tool_use";
|
|
231
|
-
readonly id: string;
|
|
232
|
-
readonly name: string;
|
|
233
|
-
readonly input: unknown;
|
|
234
|
-
readonly cache_control?: {
|
|
235
|
-
readonly type: "ephemeral";
|
|
236
|
-
readonly ttl?: "1h" | "5m";
|
|
237
|
-
};
|
|
238
|
-
} | {
|
|
239
|
-
readonly type: "web_search_tool_result" | "code_execution_tool_result" | "web_fetch_tool_result";
|
|
240
|
-
readonly tool_use_id: string;
|
|
241
|
-
readonly content: unknown;
|
|
242
|
-
readonly cache_control?: {
|
|
243
|
-
readonly type: "ephemeral";
|
|
244
|
-
readonly ttl?: "1h" | "5m";
|
|
245
|
-
};
|
|
246
|
-
})[];
|
|
247
|
-
} | {
|
|
248
|
-
readonly role: "system";
|
|
249
|
-
readonly content: readonly {
|
|
250
|
-
readonly type: "text";
|
|
251
|
-
readonly text: string;
|
|
252
|
-
readonly cache_control?: {
|
|
253
|
-
readonly type: "ephemeral";
|
|
254
|
-
readonly ttl?: "1h" | "5m";
|
|
255
|
-
};
|
|
256
|
-
}[];
|
|
257
|
-
})[];
|
|
258
|
-
readonly stream: true;
|
|
259
|
-
readonly max_tokens: number;
|
|
260
|
-
readonly system?: readonly {
|
|
261
|
-
readonly type: "text";
|
|
262
|
-
readonly text: string;
|
|
263
|
-
readonly cache_control?: {
|
|
264
|
-
readonly type: "ephemeral";
|
|
265
|
-
readonly ttl?: "1h" | "5m";
|
|
266
|
-
};
|
|
267
|
-
}[];
|
|
268
|
-
readonly tools?: readonly {
|
|
269
|
-
readonly name: string;
|
|
270
|
-
readonly description: string;
|
|
271
|
-
readonly input_schema: {
|
|
272
|
-
readonly [x: string]: unknown;
|
|
273
|
-
};
|
|
274
|
-
readonly cache_control?: {
|
|
275
|
-
readonly type: "ephemeral";
|
|
276
|
-
readonly ttl?: "1h" | "5m";
|
|
277
|
-
};
|
|
278
|
-
}[];
|
|
279
|
-
readonly tool_choice?: {
|
|
280
|
-
readonly type: "auto" | "any";
|
|
281
|
-
} | {
|
|
282
|
-
readonly type: "tool";
|
|
283
|
-
readonly name: string;
|
|
284
|
-
};
|
|
285
|
-
readonly temperature?: number;
|
|
286
|
-
readonly top_p?: number;
|
|
287
|
-
readonly top_k?: number;
|
|
288
|
-
readonly stop_sequences?: readonly string[];
|
|
289
|
-
readonly thinking?: {
|
|
290
|
-
readonly type: "enabled";
|
|
291
|
-
readonly budget_tokens: number;
|
|
292
|
-
};
|
|
293
|
-
}, string, {
|
|
294
|
-
readonly type: string;
|
|
295
|
-
readonly index?: number;
|
|
296
|
-
readonly message?: {
|
|
297
|
-
readonly usage?: {
|
|
298
|
-
readonly input_tokens?: number;
|
|
299
|
-
readonly output_tokens?: number;
|
|
300
|
-
readonly cache_creation_input_tokens?: number;
|
|
301
|
-
readonly cache_read_input_tokens?: number;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
readonly content_block?: {
|
|
305
|
-
readonly type: string;
|
|
306
|
-
readonly id?: string;
|
|
307
|
-
readonly name?: string;
|
|
308
|
-
readonly text?: string;
|
|
309
|
-
readonly thinking?: string;
|
|
310
|
-
readonly signature?: string;
|
|
311
|
-
readonly input?: unknown;
|
|
312
|
-
readonly tool_use_id?: string;
|
|
313
|
-
readonly content?: unknown;
|
|
314
|
-
};
|
|
315
|
-
readonly delta?: {
|
|
316
|
-
readonly type?: string;
|
|
317
|
-
readonly text?: string;
|
|
318
|
-
readonly thinking?: string;
|
|
319
|
-
readonly partial_json?: string;
|
|
320
|
-
readonly signature?: string;
|
|
321
|
-
readonly stop_reason?: string;
|
|
322
|
-
readonly stop_sequence?: string;
|
|
323
|
-
};
|
|
324
|
-
readonly usage?: {
|
|
325
|
-
readonly input_tokens?: number;
|
|
326
|
-
readonly output_tokens?: number;
|
|
327
|
-
readonly cache_creation_input_tokens?: number;
|
|
328
|
-
readonly cache_read_input_tokens?: number;
|
|
329
|
-
};
|
|
330
|
-
readonly error?: {
|
|
331
|
-
readonly type?: string;
|
|
332
|
-
readonly message?: string;
|
|
333
|
-
};
|
|
334
|
-
}, {
|
|
335
|
-
tools: Partial<Record<number, ToolStream.PendingTool>>;
|
|
336
|
-
lifecycle: Lifecycle.State;
|
|
337
|
-
}>;
|
|
338
|
-
export declare const route: Route<unknown, import("../route/transport/http").HttpPrepared<string>>;
|
|
339
|
-
export * as AnthropicMessages from "./anthropic-messages";
|
|
340
|
-
//# sourceMappingURL=anthropic-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-messages.d.ts","sourceRoot":"","sources":["../../src/protocols/anthropic-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAIvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAkB5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGhD,eAAO,MAAM,gBAAgB,iCAAiC,CAAA;AAC9D,eAAO,MAAM,IAAI,cAAc,CAAA;AA4I/B,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqC,CAAA;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAgpBpF;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnB,CAAA;AAEF,eAAO,MAAM,KAAK,wEAQhB,CAAA;AAEF,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAA"}
|