@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.
Files changed (218) hide show
  1. package/README.md +131 -131
  2. package/dist/cache-policy.js +1 -0
  3. package/dist/cache-policy.js.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/llm.js +1 -0
  7. package/dist/llm.js.map +1 -1
  8. package/dist/protocols/anthropic-messages.js +1 -0
  9. package/dist/protocols/anthropic-messages.js.map +1 -1
  10. package/dist/protocols/bedrock-converse.js +1 -0
  11. package/dist/protocols/bedrock-converse.js.map +1 -1
  12. package/dist/protocols/bedrock-event-stream.js +1 -0
  13. package/dist/protocols/bedrock-event-stream.js.map +1 -1
  14. package/dist/protocols/gemini.js +1 -0
  15. package/dist/protocols/gemini.js.map +1 -1
  16. package/dist/protocols/index.js +1 -0
  17. package/dist/protocols/index.js.map +1 -1
  18. package/dist/protocols/openai-chat.js +1 -0
  19. package/dist/protocols/openai-chat.js.map +1 -1
  20. package/dist/protocols/openai-compatible-chat.js +1 -0
  21. package/dist/protocols/openai-compatible-chat.js.map +1 -1
  22. package/dist/protocols/openai-responses.js +1 -0
  23. package/dist/protocols/openai-responses.js.map +1 -1
  24. package/dist/protocols/shared.js +1 -0
  25. package/dist/protocols/shared.js.map +1 -1
  26. package/dist/protocols/utils/bedrock-auth.js +1 -0
  27. package/dist/protocols/utils/bedrock-auth.js.map +1 -1
  28. package/dist/protocols/utils/bedrock-cache.js +1 -0
  29. package/dist/protocols/utils/bedrock-cache.js.map +1 -1
  30. package/dist/protocols/utils/bedrock-media.js +1 -0
  31. package/dist/protocols/utils/bedrock-media.js.map +1 -1
  32. package/dist/protocols/utils/cache.js +1 -3
  33. package/dist/protocols/utils/cache.js.map +1 -1
  34. package/dist/protocols/utils/gemini-tool-schema.js +1 -0
  35. package/dist/protocols/utils/gemini-tool-schema.js.map +1 -1
  36. package/dist/protocols/utils/lifecycle.js +1 -0
  37. package/dist/protocols/utils/lifecycle.js.map +1 -1
  38. package/dist/protocols/utils/openai-options.js +1 -0
  39. package/dist/protocols/utils/openai-options.js.map +1 -1
  40. package/dist/protocols/utils/tool-schema.js +1 -0
  41. package/dist/protocols/utils/tool-schema.js.map +1 -1
  42. package/dist/protocols/utils/tool-stream.js +1 -0
  43. package/dist/protocols/utils/tool-stream.js.map +1 -1
  44. package/dist/provider-error.js +1 -0
  45. package/dist/provider-error.js.map +1 -1
  46. package/dist/provider.js +1 -0
  47. package/dist/provider.js.map +1 -1
  48. package/dist/providers/amazon-bedrock.js +1 -0
  49. package/dist/providers/amazon-bedrock.js.map +1 -1
  50. package/dist/providers/anthropic.js +1 -0
  51. package/dist/providers/anthropic.js.map +1 -1
  52. package/dist/providers/azure.js +1 -0
  53. package/dist/providers/azure.js.map +1 -1
  54. package/dist/providers/cloudflare.js +1 -0
  55. package/dist/providers/cloudflare.js.map +1 -1
  56. package/dist/providers/github-copilot.js +1 -0
  57. package/dist/providers/github-copilot.js.map +1 -1
  58. package/dist/providers/google.js +1 -0
  59. package/dist/providers/google.js.map +1 -1
  60. package/dist/providers/index.js +1 -0
  61. package/dist/providers/index.js.map +1 -1
  62. package/dist/providers/openai-compatible-profile.js +1 -0
  63. package/dist/providers/openai-compatible-profile.js.map +1 -1
  64. package/dist/providers/openai-compatible.js +1 -0
  65. package/dist/providers/openai-compatible.js.map +1 -1
  66. package/dist/providers/openai-options.js +1 -0
  67. package/dist/providers/openai-options.js.map +1 -1
  68. package/dist/providers/openai.js +1 -0
  69. package/dist/providers/openai.js.map +1 -1
  70. package/dist/providers/openrouter.js +1 -0
  71. package/dist/providers/openrouter.js.map +1 -1
  72. package/dist/providers/xai.js +1 -0
  73. package/dist/providers/xai.js.map +1 -1
  74. package/dist/route/auth-options.js +1 -0
  75. package/dist/route/auth-options.js.map +1 -1
  76. package/dist/route/auth.js +1 -0
  77. package/dist/route/auth.js.map +1 -1
  78. package/dist/route/client.js +1 -0
  79. package/dist/route/client.js.map +1 -1
  80. package/dist/route/endpoint.js +1 -0
  81. package/dist/route/endpoint.js.map +1 -1
  82. package/dist/route/executor.js +1 -0
  83. package/dist/route/executor.js.map +1 -1
  84. package/dist/route/framing.js +1 -0
  85. package/dist/route/framing.js.map +1 -1
  86. package/dist/route/index.js +1 -0
  87. package/dist/route/index.js.map +1 -1
  88. package/dist/route/protocol.js +1 -0
  89. package/dist/route/protocol.js.map +1 -1
  90. package/dist/route/transport/http.js +1 -0
  91. package/dist/route/transport/http.js.map +1 -1
  92. package/dist/route/transport/index.js +1 -0
  93. package/dist/route/transport/index.js.map +1 -1
  94. package/dist/route/transport/websocket.js +1 -0
  95. package/dist/route/transport/websocket.js.map +1 -1
  96. package/dist/schema/errors.js +1 -0
  97. package/dist/schema/errors.js.map +1 -1
  98. package/dist/schema/events.js +1 -0
  99. package/dist/schema/events.js.map +1 -1
  100. package/dist/schema/ids.js +1 -0
  101. package/dist/schema/ids.js.map +1 -1
  102. package/dist/schema/index.js +1 -0
  103. package/dist/schema/index.js.map +1 -1
  104. package/dist/schema/messages.js +1 -0
  105. package/dist/schema/messages.js.map +1 -1
  106. package/dist/schema/options.js +1 -0
  107. package/dist/schema/options.js.map +1 -1
  108. package/dist/tool-runtime.js +1 -0
  109. package/dist/tool-runtime.js.map +1 -1
  110. package/dist/tool.js +1 -0
  111. package/dist/tool.js.map +1 -1
  112. package/dist/utils/record.js +1 -0
  113. package/dist/utils/record.js.map +1 -1
  114. package/package.json +107 -21
  115. package/dist/cache-policy.d.ts +0 -3
  116. package/dist/cache-policy.d.ts.map +0 -1
  117. package/dist/index.d.ts +0 -13
  118. package/dist/index.d.ts.map +0 -1
  119. package/dist/llm.d.ts +0 -205
  120. package/dist/llm.d.ts.map +0 -1
  121. package/dist/protocols/anthropic-messages.d.ts +0 -340
  122. package/dist/protocols/anthropic-messages.d.ts.map +0 -1
  123. package/dist/protocols/bedrock-converse.d.ts +0 -472
  124. package/dist/protocols/bedrock-converse.d.ts.map +0 -1
  125. package/dist/protocols/bedrock-event-stream.d.ts +0 -10
  126. package/dist/protocols/bedrock-event-stream.d.ts.map +0 -1
  127. package/dist/protocols/gemini.d.ts +0 -165
  128. package/dist/protocols/gemini.d.ts.map +0 -1
  129. package/dist/protocols/index.d.ts +0 -7
  130. package/dist/protocols/index.d.ts.map +0 -1
  131. package/dist/protocols/openai-chat.d.ts +0 -297
  132. package/dist/protocols/openai-chat.d.ts.map +0 -1
  133. package/dist/protocols/openai-compatible-chat.d.ts +0 -12
  134. package/dist/protocols/openai-compatible-chat.d.ts.map +0 -1
  135. package/dist/protocols/openai-responses.d.ts +0 -615
  136. package/dist/protocols/openai-responses.d.ts.map +0 -1
  137. package/dist/protocols/shared.d.ts +0 -193
  138. package/dist/protocols/shared.d.ts.map +0 -1
  139. package/dist/protocols/utils/bedrock-auth.d.ts +0 -19
  140. package/dist/protocols/utils/bedrock-auth.d.ts.map +0 -1
  141. package/dist/protocols/utils/bedrock-cache.d.ts +0 -16
  142. package/dist/protocols/utils/bedrock-cache.d.ts.map +0 -1
  143. package/dist/protocols/utils/bedrock-media.d.ts +0 -50
  144. package/dist/protocols/utils/bedrock-media.d.ts.map +0 -1
  145. package/dist/protocols/utils/cache.d.ts +0 -7
  146. package/dist/protocols/utils/cache.d.ts.map +0 -1
  147. package/dist/protocols/utils/gemini-tool-schema.d.ts +0 -3
  148. package/dist/protocols/utils/gemini-tool-schema.d.ts.map +0 -1
  149. package/dist/protocols/utils/lifecycle.d.ts +0 -20
  150. package/dist/protocols/utils/lifecycle.d.ts.map +0 -1
  151. package/dist/protocols/utils/openai-options.d.ts +0 -23
  152. package/dist/protocols/utils/openai-options.d.ts.map +0 -1
  153. package/dist/protocols/utils/tool-schema.d.ts +0 -8
  154. package/dist/protocols/utils/tool-schema.d.ts.map +0 -1
  155. package/dist/protocols/utils/tool-stream.d.ts +0 -156
  156. package/dist/protocols/utils/tool-stream.d.ts.map +0 -1
  157. package/dist/provider-error.d.ts +0 -3
  158. package/dist/provider-error.d.ts.map +0 -1
  159. package/dist/provider.d.ts +0 -24
  160. package/dist/provider.d.ts.map +0 -1
  161. package/dist/providers/amazon-bedrock.d.ts +0 -142
  162. package/dist/providers/amazon-bedrock.d.ts.map +0 -1
  163. package/dist/providers/anthropic.d.ts +0 -24
  164. package/dist/providers/anthropic.d.ts.map +0 -1
  165. package/dist/providers/azure.d.ts +0 -36
  166. package/dist/providers/azure.d.ts.map +0 -1
  167. package/dist/providers/cloudflare.d.ts +0 -47
  168. package/dist/providers/cloudflare.d.ts.map +0 -1
  169. package/dist/providers/github-copilot.d.ts +0 -30
  170. package/dist/providers/github-copilot.d.ts.map +0 -1
  171. package/dist/providers/google.d.ts +0 -24
  172. package/dist/providers/google.d.ts.map +0 -1
  173. package/dist/providers/index.d.ts +0 -12
  174. package/dist/providers/index.d.ts.map +0 -1
  175. package/dist/providers/openai-compatible-profile.d.ts +0 -44
  176. package/dist/providers/openai-compatible-profile.d.ts.map +0 -1
  177. package/dist/providers/openai-compatible.d.ts +0 -62
  178. package/dist/providers/openai-compatible.d.ts.map +0 -1
  179. package/dist/providers/openai-options.d.ts +0 -31
  180. package/dist/providers/openai-options.d.ts.map +0 -1
  181. package/dist/providers/openai.d.ts +0 -116
  182. package/dist/providers/openai.d.ts.map +0 -1
  183. package/dist/providers/openrouter.d.ts +0 -199
  184. package/dist/providers/openrouter.d.ts.map +0 -1
  185. package/dist/providers/xai.d.ts +0 -32
  186. package/dist/providers/xai.d.ts.map +0 -1
  187. package/dist/route/auth-options.d.ts +0 -35
  188. package/dist/route/auth-options.d.ts.map +0 -1
  189. package/dist/route/client.d.ts +0 -306
  190. package/dist/route/client.d.ts.map +0 -1
  191. package/dist/route/executor.d.ts +0 -13
  192. package/dist/route/executor.d.ts.map +0 -1
  193. package/dist/route/index.d.ts +0 -17
  194. package/dist/route/index.d.ts.map +0 -1
  195. package/dist/route/protocol.d.ts +0 -77
  196. package/dist/route/protocol.d.ts.map +0 -1
  197. package/dist/route/transport/http.d.ts +0 -34
  198. package/dist/route/transport/http.d.ts.map +0 -1
  199. package/dist/route/transport/index.d.ts +0 -28
  200. package/dist/route/transport/index.d.ts.map +0 -1
  201. package/dist/route/transport/websocket.d.ts +0 -57
  202. package/dist/route/transport/websocket.d.ts.map +0 -1
  203. package/dist/schema/errors.d.ts +0 -166
  204. package/dist/schema/errors.d.ts.map +0 -1
  205. package/dist/schema/events.d.ts +0 -3821
  206. package/dist/schema/events.d.ts.map +0 -1
  207. package/dist/schema/ids.d.ts +0 -31
  208. package/dist/schema/ids.d.ts.map +0 -1
  209. package/dist/schema/index.d.ts +0 -6
  210. package/dist/schema/index.d.ts.map +0 -1
  211. package/dist/schema/messages.d.ts +0 -294
  212. package/dist/schema/messages.d.ts.map +0 -1
  213. package/dist/schema/options.d.ts +0 -144
  214. package/dist/schema/options.d.ts.map +0 -1
  215. package/dist/tool-runtime.d.ts +0 -16
  216. package/dist/tool-runtime.d.ts.map +0 -1
  217. package/dist/utils/record.d.ts +0 -3
  218. package/dist/utils/record.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/schema/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,gBAAgB,EAAW,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvG,OAAO,EAAE,OAAO,EAAgB,UAAU,EAAkB,eAAe,EAAoB,MAAM,YAAY,CAAA;;;;;;;;;;;AAGjH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,qBAAa,KAAM,SAAQ,UASzB;IACA;;;;;OAKG;IACH,IAAI,mBAAmB,WAEtB;IAED,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU;CAG9B;AAED,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,qBAAqB,CAAC,OAA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3E,MAAM,QAAQ,GAAI,OAAO,KAAK,KAAG,WAAW,GAAG,SAQ9C,CAAA;IAER,gFAAgF;IACzE,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,QAAQ,CAAC,gBAA6C,CAAA;IAEvG,0EAA0E;IACnE,MAAM,IAAI,GAAI,UAAU,MAAM,WAAkC,CAAA;IAEvE,6EAA6E;IACtE,MAAM,KAAK,GAAI,UAAU,MAAM,UAAqD,CAAA;IAE3F,2EAA2E;IACpE,MAAM,SAAS,GAAI,UAAU,MAAM;;;;;;;;;;;OAAiD,CAAA;IAE3F,0EAA0E;IACnE,MAAM,SAAS,GAAI,UAAU,MAAM,WAAuC,CAAA;CAClF"}
@@ -1,31 +0,0 @@
1
- import { Schema } from "effect";
2
- import { ProviderMetadata } from "@zyraxon-ai/schema/llm";
3
- export { ProviderMetadata };
4
- /** Stable string identifier for a protocol implementation. */
5
- export declare const ProtocolID: Schema.String;
6
- export type ProtocolID = Schema.Schema.Type<typeof ProtocolID>;
7
- /** Stable string identifier for the runnable route. */
8
- export declare const RouteID: Schema.String;
9
- export type RouteID = Schema.Schema.Type<typeof RouteID>;
10
- export declare const ModelID: Schema.brand<Schema.String, "LLM.ModelID">;
11
- export type ModelID = typeof ModelID.Type;
12
- export declare const ProviderID: Schema.brand<Schema.String, "LLM.ProviderID">;
13
- export type ProviderID = typeof ProviderID.Type;
14
- export declare const ResponseID: Schema.String;
15
- export type ResponseID = Schema.Schema.Type<typeof ResponseID>;
16
- export declare const ContentBlockID: Schema.String;
17
- export type ContentBlockID = Schema.Schema.Type<typeof ContentBlockID>;
18
- export declare const ToolCallID: Schema.String;
19
- export type ToolCallID = Schema.Schema.Type<typeof ToolCallID>;
20
- export declare const ReasoningEfforts: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
21
- export declare const ReasoningEffort: Schema.Literals<readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"]>;
22
- export type ReasoningEffort = Schema.Schema.Type<typeof ReasoningEffort>;
23
- export declare const TextVerbosity: Schema.Literals<readonly ["low", "medium", "high"]>;
24
- export type TextVerbosity = Schema.Schema.Type<typeof TextVerbosity>;
25
- export declare const MessageRole: Schema.Literals<readonly ["system", "user", "assistant", "tool"]>;
26
- export type MessageRole = Schema.Schema.Type<typeof MessageRole>;
27
- export declare const FinishReason: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
28
- export type FinishReason = Schema.Schema.Type<typeof FinishReason>;
29
- export declare const JsonSchema: Schema.$Record<Schema.String, Schema.Unknown>;
30
- export type JsonSchema = Schema.Schema.Type<typeof JsonSchema>;
31
- //# sourceMappingURL=ids.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../src/schema/ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAE3B,8DAA8D;AAC9D,eAAO,MAAM,UAAU,eAAgB,CAAA;AACvC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9D,uDAAuD;AACvD,eAAO,MAAM,OAAO,eAAgB,CAAA;AACpC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAExD,eAAO,MAAM,OAAO,4CAAkD,CAAA;AACtE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAEzC,eAAO,MAAM,UAAU,+CAAqD,CAAA;AAC5E,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAA;AAE/C,eAAO,MAAM,UAAU,eAAgB,CAAA;AACvC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9D,eAAO,MAAM,cAAc,eAAgB,CAAA;AAC3C,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAA;AAEtE,eAAO,MAAM,UAAU,eAAgB,CAAA;AACvC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAE9D,eAAO,MAAM,gBAAgB,uEAAwE,CAAA;AACrG,eAAO,MAAM,eAAe,wFAAoC,CAAA;AAChE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAA;AAExE,eAAO,MAAM,aAAa,qDAA6C,CAAA;AACvE,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAA;AAEpE,eAAO,MAAM,WAAW,mEAA2D,CAAA;AACnF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAA;AAEhE,eAAO,MAAM,YAAY,kGAA0F,CAAA;AACnH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAA;AAElE,eAAO,MAAM,UAAU,+CAA+C,CAAA;AACtE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from "./ids";
2
- export * from "./options";
3
- export * from "./messages";
4
- export * from "./events";
5
- export * from "./errors";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA"}
@@ -1,294 +0,0 @@
1
- import { Schema } from "effect";
2
- import { ToolContent, ToolFileContent, ToolTextContent } from "@zyraxon-ai/schema/llm";
3
- import { CacheHint, GenerationOptions, HttpOptions } from "./options";
4
- declare const systemPartSchema: Schema.Struct<{
5
- readonly type: Schema.Literal<"text">;
6
- readonly text: Schema.String;
7
- readonly cache: Schema.optional<typeof CacheHint>;
8
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
9
- }>;
10
- export type SystemPart = Schema.Schema.Type<typeof systemPartSchema>;
11
- export declare const SystemPart: Schema.Struct<{
12
- readonly type: Schema.Literal<"text">;
13
- readonly text: Schema.String;
14
- readonly cache: Schema.optional<typeof CacheHint>;
15
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
16
- }> & {
17
- make: (text: string) => SystemPart;
18
- content: (input?: string | SystemPart | ReadonlyArray<SystemPart>) => any[];
19
- };
20
- export declare const TextPart: Schema.Struct<{
21
- readonly type: Schema.Literal<"text">;
22
- readonly text: Schema.String;
23
- readonly cache: Schema.optional<typeof CacheHint>;
24
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
25
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
26
- }>;
27
- export type TextPart = Schema.Schema.Type<typeof TextPart>;
28
- export declare const MediaPart: Schema.Struct<{
29
- readonly type: Schema.Literal<"media">;
30
- readonly mediaType: Schema.String;
31
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array]>;
32
- readonly filename: Schema.optional<Schema.String>;
33
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
34
- }>;
35
- export type MediaPart = Schema.Schema.Type<typeof MediaPart>;
36
- export { ToolContent, ToolFileContent, ToolTextContent };
37
- export declare const ToolResultValue: any;
38
- export type ToolResultValue = Schema.Schema.Type<typeof ToolResultValue>;
39
- export interface ToolOutput {
40
- readonly structured: unknown;
41
- readonly content: ReadonlyArray<ToolContent>;
42
- }
43
- export declare const ToolOutput: Schema.Struct<{
44
- readonly structured: Schema.Unknown;
45
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
46
- readonly type: Schema.Literal<"text">;
47
- readonly text: Schema.String;
48
- }>, Schema.Struct<{
49
- readonly type: Schema.Literal<"file">;
50
- readonly uri: Schema.String;
51
- readonly mime: Schema.String;
52
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
53
- }>]>>;
54
- }> & {
55
- make: (structured: unknown, content?: ReadonlyArray<ToolContent>) => ToolOutput;
56
- fromResultValue: (result: ToolResultValue) => ToolOutput | undefined;
57
- toResultValue: (output: ToolOutput) => ToolResultValue;
58
- };
59
- export declare const ToolCallPart: Schema.Struct<{
60
- readonly type: Schema.Literal<"tool-call">;
61
- readonly id: Schema.String;
62
- readonly name: Schema.String;
63
- readonly input: Schema.Unknown;
64
- readonly providerExecuted: Schema.optional<Schema.Boolean>;
65
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
66
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
67
- }> & {
68
- make: (input: Omit<ToolCallPart, "type">) => ToolCallPart;
69
- };
70
- export type ToolCallPart = Schema.Schema.Type<typeof ToolCallPart>;
71
- export declare const ToolResultPart: Schema.Struct<{
72
- readonly type: Schema.Literal<"tool-result">;
73
- readonly id: Schema.String;
74
- readonly name: Schema.String;
75
- readonly result: any;
76
- readonly providerExecuted: Schema.optional<Schema.Boolean>;
77
- readonly cache: Schema.optional<typeof CacheHint>;
78
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
79
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
80
- }> & {
81
- make: (input: Omit<ToolResultPart, "type" | "result"> & {
82
- readonly result: unknown;
83
- readonly resultType?: ToolResultValue["type"];
84
- }) => ToolResultPart;
85
- };
86
- export type ToolResultPart = Schema.Schema.Type<typeof ToolResultPart>;
87
- export declare const ReasoningPart: Schema.Struct<{
88
- readonly type: Schema.Literal<"reasoning">;
89
- readonly text: Schema.String;
90
- readonly encrypted: Schema.optional<Schema.String>;
91
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
92
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
93
- }>;
94
- export type ReasoningPart = Schema.Schema.Type<typeof ReasoningPart>;
95
- export declare const ContentPart: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
96
- readonly type: Schema.Literal<"text">;
97
- readonly text: Schema.String;
98
- readonly cache: Schema.optional<typeof CacheHint>;
99
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
100
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
101
- }>, Schema.Struct<{
102
- readonly type: Schema.Literal<"media">;
103
- readonly mediaType: Schema.String;
104
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array]>;
105
- readonly filename: Schema.optional<Schema.String>;
106
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
107
- }>, Schema.Struct<{
108
- readonly type: Schema.Literal<"tool-call">;
109
- readonly id: Schema.String;
110
- readonly name: Schema.String;
111
- readonly input: Schema.Unknown;
112
- readonly providerExecuted: Schema.optional<Schema.Boolean>;
113
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
114
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
115
- }> & {
116
- make: (input: Omit<ToolCallPart, "type">) => ToolCallPart;
117
- }, Schema.Struct<{
118
- readonly type: Schema.Literal<"tool-result">;
119
- readonly id: Schema.String;
120
- readonly name: Schema.String;
121
- readonly result: any;
122
- readonly providerExecuted: Schema.optional<Schema.Boolean>;
123
- readonly cache: Schema.optional<typeof CacheHint>;
124
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
125
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
126
- }> & {
127
- make: (input: Omit<ToolResultPart, "type" | "result"> & {
128
- readonly result: unknown;
129
- readonly resultType?: ToolResultValue["type"];
130
- }) => ToolResultPart;
131
- }, Schema.Struct<{
132
- readonly type: Schema.Literal<"reasoning">;
133
- readonly text: Schema.String;
134
- readonly encrypted: Schema.optional<Schema.String>;
135
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
136
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
137
- }>]>;
138
- export type ContentPart = Schema.Schema.Type<typeof ContentPart>;
139
- declare const Message_base: Schema.Class<Message, Schema.Struct<{
140
- readonly id: Schema.optional<Schema.String>;
141
- readonly role: Schema.Literals<readonly ["system", "user", "assistant", "tool"]>;
142
- readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
143
- readonly type: Schema.Literal<"text">;
144
- readonly text: Schema.String;
145
- readonly cache: Schema.optional<typeof CacheHint>;
146
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
147
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
148
- }>, Schema.Struct<{
149
- readonly type: Schema.Literal<"media">;
150
- readonly mediaType: Schema.String;
151
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array]>;
152
- readonly filename: Schema.optional<Schema.String>;
153
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
154
- }>, Schema.Struct<{
155
- readonly type: Schema.Literal<"tool-call">;
156
- readonly id: Schema.String;
157
- readonly name: Schema.String;
158
- readonly input: Schema.Unknown;
159
- readonly providerExecuted: Schema.optional<Schema.Boolean>;
160
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
161
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
162
- }> & {
163
- make: (input: Omit<ToolCallPart, "type">) => ToolCallPart;
164
- }, Schema.Struct<{
165
- readonly type: Schema.Literal<"tool-result">;
166
- readonly id: Schema.String;
167
- readonly name: Schema.String;
168
- readonly result: any;
169
- readonly providerExecuted: Schema.optional<Schema.Boolean>;
170
- readonly cache: Schema.optional<typeof CacheHint>;
171
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
172
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
173
- }> & {
174
- make: (input: Omit<ToolResultPart, "type" | "result"> & {
175
- readonly result: unknown;
176
- readonly resultType?: ToolResultValue["type"];
177
- }) => ToolResultPart;
178
- }, Schema.Struct<{
179
- readonly type: Schema.Literal<"reasoning">;
180
- readonly text: Schema.String;
181
- readonly encrypted: Schema.optional<Schema.String>;
182
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
183
- readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
184
- }>]>>;
185
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
186
- readonly native: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
187
- }>, {}>;
188
- export declare class Message extends Message_base {
189
- }
190
- export declare namespace Message {
191
- type ContentInput = string | ContentPart | ReadonlyArray<ContentPart>;
192
- type SystemContentInput = string | TextPart | ReadonlyArray<TextPart>;
193
- type Input = Omit<ConstructorParameters<typeof Message>[0], "content"> & {
194
- readonly content: ContentInput;
195
- };
196
- const text: (value: string) => ContentPart;
197
- const content: (input: ContentInput) => any[];
198
- const make: (input: Message | Input) => Message;
199
- const user: (content: ContentInput) => Message;
200
- const assistant: (content: ContentInput) => Message;
201
- /**
202
- * Add an operator-authored instruction at this chronological point in the
203
- * conversation. This is distinct from the initial `LLMRequest.system`
204
- * prompt. Keep raw retrieved, tool, and web content out of privileged system
205
- * updates; pass that untrusted content through ordinary user/tool channels.
206
- */
207
- const system: (content: SystemContentInput) => Message;
208
- const tool: (result: ToolResultPart | Parameters<typeof ToolResultPart.make>[0]) => Message;
209
- }
210
- declare const ToolDefinition_base: Schema.Class<ToolDefinition, Schema.Struct<{
211
- readonly name: Schema.String;
212
- readonly description: Schema.String;
213
- readonly inputSchema: Schema.$Record<Schema.String, Schema.Unknown>;
214
- readonly outputSchema: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
215
- readonly cache: Schema.optional<typeof CacheHint>;
216
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
217
- readonly native: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
218
- }>, {}>;
219
- export declare class ToolDefinition extends ToolDefinition_base {
220
- }
221
- export declare namespace ToolDefinition {
222
- type Input = ToolDefinition | ConstructorParameters<typeof ToolDefinition>[0];
223
- /** Normalize tool definition input into the canonical `ToolDefinition` class. */
224
- const make: (input: Input) => ToolDefinition;
225
- }
226
- declare const ToolChoice_base: Schema.Class<ToolChoice, Schema.Struct<{
227
- readonly type: Schema.Literals<readonly ["auto", "none", "required", "tool"]>;
228
- readonly name: Schema.optional<Schema.String>;
229
- }>, {}>;
230
- export declare class ToolChoice extends ToolChoice_base {
231
- }
232
- export declare namespace ToolChoice {
233
- type Mode = Exclude<ToolChoice["type"], "tool">;
234
- type Input = ToolChoice | ConstructorParameters<typeof ToolChoice>[0] | ToolDefinition | string;
235
- /** Select a specific named tool. */
236
- const named: (value: string) => ToolChoice;
237
- /** Normalize ergonomic tool-choice inputs into the canonical `ToolChoice` class. */
238
- const make: (input: Input) => ToolChoice;
239
- }
240
- export declare const ResponseFormat: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
241
- readonly type: Schema.Literal<"text">;
242
- }>, Schema.Struct<{
243
- readonly type: Schema.Literal<"json">;
244
- readonly schema: Schema.$Record<Schema.String, Schema.Unknown>;
245
- }>, Schema.Struct<{
246
- readonly type: Schema.Literal<"tool">;
247
- readonly tool: typeof ToolDefinition;
248
- }>]>;
249
- export type ResponseFormat = Schema.Schema.Type<typeof ResponseFormat>;
250
- declare const LLMRequest_base: Schema.Class<LLMRequest, Schema.Struct<{
251
- readonly id: Schema.optional<Schema.String>;
252
- readonly model: Schema.declare<import("./options").Model, import("./options").Model>;
253
- readonly system: Schema.$Array<Schema.Struct<{
254
- readonly type: Schema.Literal<"text">;
255
- readonly text: Schema.String;
256
- readonly cache: Schema.optional<typeof CacheHint>;
257
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
258
- }> & {
259
- make: (text: string) => SystemPart;
260
- content: (input?: string | SystemPart | ReadonlyArray<SystemPart>) => any[];
261
- }>;
262
- readonly messages: Schema.$Array<typeof Message>;
263
- readonly tools: Schema.$Array<typeof ToolDefinition>;
264
- readonly toolChoice: Schema.optional<typeof ToolChoice>;
265
- readonly generation: Schema.optional<typeof GenerationOptions>;
266
- readonly providerOptions: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
267
- readonly http: Schema.optional<typeof HttpOptions>;
268
- readonly responseFormat: Schema.optional<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
269
- readonly type: Schema.Literal<"text">;
270
- }>, Schema.Struct<{
271
- readonly type: Schema.Literal<"json">;
272
- readonly schema: Schema.$Record<Schema.String, Schema.Unknown>;
273
- }>, Schema.Struct<{
274
- readonly type: Schema.Literal<"tool">;
275
- readonly tool: typeof ToolDefinition;
276
- }>]>>;
277
- readonly cache: Schema.optional<Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"none">, Schema.Struct<{
278
- readonly tools: Schema.optional<Schema.Boolean>;
279
- readonly system: Schema.optional<Schema.Boolean>;
280
- readonly messages: Schema.optional<Schema.Union<readonly [Schema.Literal<"latest-user-message">, Schema.Literal<"latest-assistant">, Schema.Struct<{
281
- readonly tail: Schema.Number;
282
- }>]>>;
283
- readonly ttlSeconds: Schema.optional<Schema.Number>;
284
- }>]>>;
285
- readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
286
- }>, {}>;
287
- export declare class LLMRequest extends LLMRequest_base {
288
- }
289
- export declare namespace LLMRequest {
290
- type Input = ConstructorParameters<typeof LLMRequest>[0];
291
- const input: (request: LLMRequest) => Input;
292
- const update: (request: LLMRequest, patch: Partial<Input>) => LLMRequest;
293
- }
294
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/schema/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAEtF,OAAO,EAAE,SAAS,EAAe,iBAAiB,EAAE,WAAW,EAAgC,MAAM,WAAW,CAAA;AAGhH,QAAA,MAAM,gBAAgB;;;;;EAKuB,CAAA;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAIpE,eAAO,MAAM,UAAU;;;;;;iBAFO,MAAM,KAAG,UAAU;sBAI7B,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;CAIjE,CAAA;AAEF,eAAO,MAAM,QAAQ;;;;;;EAM0B,CAAA;AAC/C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AA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I,GAAI,OAAO,KAAK,eAKhC,CAAA;CACF;AAED,eAAO,MAAM,cAAc;;;;;;;;IAIU,CAAA;AACrC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAA;;;;;;;;;;qBA9PxC,MAAM,KAAG,UAAU;0BAI7B,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4PnE,qBAAa,UAAW,SAAQ,eAa9B;CAAG;AAEL,yBAAiB,UAAU,CAAC;IAC1B,KAAY,KAAK,GAAG,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAExD,MAAM,KAAK,GAAI,SAAS,UAAU,KAAG,KAa1C,CAAA;IAEK,MAAM,MAAM,GAAI,SAAS,UAAU,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,eAOhE,CAAA;CACF"}
@@ -1,144 +0,0 @@
1
- import { Schema } from "effect";
2
- import { ModelID, ProviderID } from "./ids";
3
- import type { AnyRoute } from "../route/client";
4
- export declare const mergeJsonRecords: (...items: ReadonlyArray<Record<string, unknown> | undefined>) => Record<string, unknown> | undefined;
5
- export declare const ProviderOptions: Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>;
6
- export type ProviderOptions = Schema.Schema.Type<typeof ProviderOptions>;
7
- export declare const mergeProviderOptions: (...items: ReadonlyArray<ProviderOptions | undefined>) => ProviderOptions | undefined;
8
- declare const HttpOptions_base: Schema.Class<HttpOptions, Schema.Struct<{
9
- readonly body: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
10
- readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
11
- readonly query: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
12
- }>, {}>;
13
- export declare class HttpOptions extends HttpOptions_base {
14
- }
15
- export declare namespace HttpOptions {
16
- type Input = HttpOptions | ConstructorParameters<typeof HttpOptions>[0];
17
- /** Normalize HTTP option input into the canonical `HttpOptions` class. */
18
- const make: (input: Input) => HttpOptions;
19
- }
20
- export declare const mergeHttpOptions: (...items: ReadonlyArray<HttpOptions | undefined>) => HttpOptions | undefined;
21
- declare const GenerationOptions_base: Schema.Class<GenerationOptions, Schema.Struct<{
22
- readonly maxTokens: Schema.optional<Schema.Number>;
23
- readonly temperature: Schema.optional<Schema.Number>;
24
- readonly topP: Schema.optional<Schema.Number>;
25
- readonly topK: Schema.optional<Schema.Number>;
26
- readonly frequencyPenalty: Schema.optional<Schema.Number>;
27
- readonly presencePenalty: Schema.optional<Schema.Number>;
28
- readonly seed: Schema.optional<Schema.Number>;
29
- readonly stop: Schema.optional<Schema.$Array<Schema.String>>;
30
- }>, {}>;
31
- export declare class GenerationOptions extends GenerationOptions_base {
32
- }
33
- export declare namespace GenerationOptions {
34
- type Input = GenerationOptions | ConstructorParameters<typeof GenerationOptions>[0];
35
- /** Normalize generation option input into the canonical `GenerationOptions` class. */
36
- const make: (input?: Input) => GenerationOptions;
37
- }
38
- export type GenerationOptionsFields = {
39
- readonly maxTokens?: number;
40
- readonly temperature?: number;
41
- readonly topP?: number;
42
- readonly topK?: number;
43
- readonly frequencyPenalty?: number;
44
- readonly presencePenalty?: number;
45
- readonly seed?: number;
46
- readonly stop?: ReadonlyArray<string>;
47
- };
48
- export type GenerationOptionsInput = GenerationOptions | GenerationOptionsFields;
49
- export declare const mergeGenerationOptions: (...items: ReadonlyArray<GenerationOptionsInput | undefined>) => GenerationOptions;
50
- declare const ModelLimits_base: Schema.Class<ModelLimits, Schema.Struct<{
51
- readonly context: Schema.optional<Schema.Number>;
52
- readonly output: Schema.optional<Schema.Number>;
53
- }>, {}>;
54
- export declare class ModelLimits extends ModelLimits_base {
55
- }
56
- export declare namespace ModelLimits {
57
- type Input = ModelLimits | ConstructorParameters<typeof ModelLimits>[0];
58
- /** Normalize model limit input into the canonical `ModelLimits` class. */
59
- const make: (input: Input | undefined) => ModelLimits;
60
- }
61
- declare const ModelDefaults_base: Schema.Class<ModelDefaults, Schema.Struct<{
62
- readonly limits: Schema.optional<typeof ModelLimits>;
63
- readonly generation: Schema.optional<typeof GenerationOptions>;
64
- readonly providerOptions: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
65
- readonly http: Schema.optional<typeof HttpOptions>;
66
- }>, {}>;
67
- export declare class ModelDefaults extends ModelDefaults_base {
68
- }
69
- export declare namespace ModelDefaults {
70
- type Input = ModelDefaults | {
71
- readonly limits?: ModelLimits.Input;
72
- readonly generation?: GenerationOptions.Input;
73
- readonly providerOptions?: ProviderOptions;
74
- readonly http?: HttpOptions.Input;
75
- };
76
- /** Normalize selected-model request defaults without applying precedence. */
77
- const make: (input: Input) => ModelDefaults;
78
- }
79
- export declare const ModelToolSchemaCompatibility: Schema.Literals<readonly ["gemini", "moonshot"]>;
80
- export type ModelToolSchemaCompatibility = Schema.Schema.Type<typeof ModelToolSchemaCompatibility>;
81
- declare const ModelCompatibility_base: Schema.Class<ModelCompatibility, Schema.Struct<{
82
- readonly toolSchema: Schema.optional<Schema.Literals<readonly ["gemini", "moonshot"]>>;
83
- }>, {}>;
84
- export declare class ModelCompatibility extends ModelCompatibility_base {
85
- }
86
- export declare namespace ModelCompatibility {
87
- type Input = ModelCompatibility | ConstructorParameters<typeof ModelCompatibility>[0];
88
- /** Normalize model/upstream compatibility metadata without projecting requests. */
89
- const make: (input: Input) => ModelCompatibility;
90
- }
91
- export declare class Model {
92
- readonly id: ModelID;
93
- readonly provider: ProviderID;
94
- readonly route: AnyRoute;
95
- readonly defaults?: ModelDefaults;
96
- readonly compatibility?: ModelCompatibility;
97
- constructor(input: Model.ConstructorInput);
98
- static make(input: Model.Input): Model;
99
- static input(model: Model): Model.ConstructorInput;
100
- static update(model: Model, patch: Partial<Model.Input>): Model;
101
- }
102
- export declare namespace Model {
103
- type ConstructorInput = {
104
- readonly id: ModelID;
105
- readonly provider: ProviderID;
106
- readonly route: AnyRoute;
107
- readonly defaults?: ModelDefaults;
108
- readonly compatibility?: ModelCompatibility;
109
- };
110
- type Input = Omit<ConstructorInput, "id" | "provider" | "defaults" | "compatibility"> & {
111
- readonly id: string | ModelID;
112
- readonly provider: string | ProviderID;
113
- readonly defaults?: ModelDefaults.Input;
114
- readonly compatibility?: ModelCompatibility.Input;
115
- };
116
- }
117
- export type ModelInput = Model.Input;
118
- export declare const ModelSchema: Schema.declare<Model, Model>;
119
- declare const CacheHint_base: Schema.Class<CacheHint, Schema.Struct<{
120
- readonly type: Schema.Literals<readonly ["ephemeral", "persistent"]>;
121
- readonly ttlSeconds: Schema.optional<Schema.Number>;
122
- }>, {}>;
123
- export declare class CacheHint extends CacheHint_base {
124
- }
125
- export declare const CachePolicyObject: Schema.Struct<{
126
- readonly tools: Schema.optional<Schema.Boolean>;
127
- readonly system: Schema.optional<Schema.Boolean>;
128
- readonly messages: Schema.optional<Schema.Union<readonly [Schema.Literal<"latest-user-message">, Schema.Literal<"latest-assistant">, Schema.Struct<{
129
- readonly tail: Schema.Number;
130
- }>]>>;
131
- readonly ttlSeconds: Schema.optional<Schema.Number>;
132
- }>;
133
- export type CachePolicyObject = Schema.Schema.Type<typeof CachePolicyObject>;
134
- export declare const CachePolicy: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"none">, Schema.Struct<{
135
- readonly tools: Schema.optional<Schema.Boolean>;
136
- readonly system: Schema.optional<Schema.Boolean>;
137
- readonly messages: Schema.optional<Schema.Union<readonly [Schema.Literal<"latest-user-message">, Schema.Literal<"latest-assistant">, Schema.Struct<{
138
- readonly tail: Schema.Number;
139
- }>]>>;
140
- readonly ttlSeconds: Schema.optional<Schema.Number>;
141
- }>]>;
142
- export type CachePolicy = Schema.Schema.Type<typeof CachePolicy>;
143
- export {};
144
- //# sourceMappingURL=options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/schema/options.ts"],"names":[],"mappings":"AAAA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C,CAAA;IAED,KAAY,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,CAAC,GAAG;QAC7F,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;QAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;QACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAA;QACvC,QAAQ,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAA;KAClD,CAAA;CACF;AAED,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAA;AAEpC,eAAO,MAAM,WAAW,8BAA+F,CAAA;;;;;AAEvH,qBAAa,SAAU,SAAQ,cAG7B;CAAG;AAaL,eAAO,MAAM,iBAAiB;;;;;;;EAW5B,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE5E,eAAO,MAAM,WAAW;;;;;;;IAAoF,CAAA;AAC5G,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- import { Effect } from "effect";
2
- import { LLMEvent, type ToolCallPart, type ToolOutput as ToolOutputType, type ToolResultValue as ToolResultValueType } from "./schema";
3
- import { type Tools } from "./tool";
4
- export interface ToolSettlement {
5
- readonly result: ToolResultValueType;
6
- readonly output?: ToolOutputType;
7
- }
8
- export interface DispatchResult extends ToolSettlement {
9
- readonly events: ReadonlyArray<LLMEvent>;
10
- }
11
- /** Execute one canonical tool call without owning provider IO or continuation. */
12
- export declare const dispatch: (tools: Tools, call: ToolCallPart) => Effect.Effect<DispatchResult>;
13
- export declare const ToolRuntime: {
14
- readonly dispatch: (tools: Tools, call: ToolCallPart) => Effect.Effect<DispatchResult>;
15
- };
16
- //# sourceMappingURL=tool-runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-runtime.d.ts","sourceRoot":"","sources":["../src/tool-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EAIjB,KAAK,UAAU,IAAI,cAAc,EACjC,KAAK,eAAe,IAAI,mBAAmB,EAC5C,MAAM,UAAU,CAAA;AACjB,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAA;AAEjD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAA;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;CACjC;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;CACzC;AAED,kFAAkF;AAClF,eAAO,MAAM,QAAQ,GAAI,OAAO,KAAK,EAAE,MAAM,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAYvF,CAAA;AA2CD,eAAO,MAAM,WAAW;+BAvDQ,KAAK,QAAQ,YAAY,KAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC;CAuDzC,CAAA"}
@@ -1,3 +0,0 @@
1
- /** Plain-record narrowing. Excludes arrays so JSON object checks don't accept tuples as key/value bags. */
2
- export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
3
- //# sourceMappingURL=record.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/utils/record.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CACH,CAAA"}