@smarter.sh/api 0.0.0-stage → 1.0.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.
Files changed (251) hide show
  1. package/LICENSE.txt +671 -0
  2. package/README.md +193 -2
  3. package/dist/client.d.ts +146 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +178 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/core/config.d.ts +148 -0
  8. package/dist/core/config.d.ts.map +1 -0
  9. package/dist/core/config.js +212 -0
  10. package/dist/core/config.js.map +1 -0
  11. package/dist/core/errors.d.ts +189 -0
  12. package/dist/core/errors.d.ts.map +1 -0
  13. package/dist/core/errors.js +187 -0
  14. package/dist/core/errors.js.map +1 -0
  15. package/dist/core/http.d.ts +207 -0
  16. package/dist/core/http.d.ts.map +1 -0
  17. package/dist/core/http.js +456 -0
  18. package/dist/core/http.js.map +1 -0
  19. package/dist/core/log.d.ts +62 -0
  20. package/dist/core/log.d.ts.map +1 -0
  21. package/dist/core/log.js +68 -0
  22. package/dist/core/log.js.map +1 -0
  23. package/dist/core/sse.d.ts +38 -0
  24. package/dist/core/sse.d.ts.map +1 -0
  25. package/dist/core/sse.js +79 -0
  26. package/dist/core/sse.js.map +1 -0
  27. package/dist/core/typing.d.ts +21 -0
  28. package/dist/core/typing.d.ts.map +1 -0
  29. package/dist/core/typing.js +13 -0
  30. package/dist/core/typing.js.map +1 -0
  31. package/dist/index.d.ts +51 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +51 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/models/account.d.ts +112 -0
  36. package/dist/models/account.d.ts.map +1 -0
  37. package/dist/models/account.js +55 -0
  38. package/dist/models/account.js.map +1 -0
  39. package/dist/models/base.d.ts +99 -0
  40. package/dist/models/base.d.ts.map +1 -0
  41. package/dist/models/base.js +111 -0
  42. package/dist/models/base.js.map +1 -0
  43. package/dist/models/chat.d.ts +2243 -0
  44. package/dist/models/chat.d.ts.map +1 -0
  45. package/dist/models/chat.js +451 -0
  46. package/dist/models/chat.js.map +1 -0
  47. package/dist/models/guardrail.d.ts +109 -0
  48. package/dist/models/guardrail.d.ts.map +1 -0
  49. package/dist/models/guardrail.js +68 -0
  50. package/dist/models/guardrail.js.map +1 -0
  51. package/dist/models/journal.d.ts +159 -0
  52. package/dist/models/journal.d.ts.map +1 -0
  53. package/dist/models/journal.js +115 -0
  54. package/dist/models/journal.js.map +1 -0
  55. package/dist/models/llmclient.d.ts +183 -0
  56. package/dist/models/llmclient.d.ts.map +1 -0
  57. package/dist/models/llmclient.js +105 -0
  58. package/dist/models/llmclient.js.map +1 -0
  59. package/dist/models/llmhost.d.ts +121 -0
  60. package/dist/models/llmhost.d.ts.map +1 -0
  61. package/dist/models/llmhost.js +79 -0
  62. package/dist/models/llmhost.js.map +1 -0
  63. package/dist/models/manifest.d.ts +211 -0
  64. package/dist/models/manifest.d.ts.map +1 -0
  65. package/dist/models/manifest.js +290 -0
  66. package/dist/models/manifest.js.map +1 -0
  67. package/dist/models/mcpclient.d.ts +99 -0
  68. package/dist/models/mcpclient.d.ts.map +1 -0
  69. package/dist/models/mcpclient.js +65 -0
  70. package/dist/models/mcpclient.js.map +1 -0
  71. package/dist/models/misc.d.ts +232 -0
  72. package/dist/models/misc.d.ts.map +1 -0
  73. package/dist/models/misc.js +110 -0
  74. package/dist/models/misc.js.map +1 -0
  75. package/dist/models/platform.d.ts +88 -0
  76. package/dist/models/platform.d.ts.map +1 -0
  77. package/dist/models/platform.js +35 -0
  78. package/dist/models/platform.js.map +1 -0
  79. package/dist/models/plugin.d.ts +36 -0
  80. package/dist/models/plugin.d.ts.map +1 -0
  81. package/dist/models/plugin.js +16 -0
  82. package/dist/models/plugin.js.map +1 -0
  83. package/dist/models/react.d.ts +104 -0
  84. package/dist/models/react.d.ts.map +1 -0
  85. package/dist/models/react.js +136 -0
  86. package/dist/models/react.js.map +1 -0
  87. package/dist/models/sam/account.d.ts +155 -0
  88. package/dist/models/sam/account.d.ts.map +1 -0
  89. package/dist/models/sam/account.js +7 -0
  90. package/dist/models/sam/account.js.map +1 -0
  91. package/dist/models/sam/apiconnection.d.ts +147 -0
  92. package/dist/models/sam/apiconnection.d.ts.map +1 -0
  93. package/dist/models/sam/apiconnection.js +7 -0
  94. package/dist/models/sam/apiconnection.js.map +1 -0
  95. package/dist/models/sam/apiplugin.d.ts +278 -0
  96. package/dist/models/sam/apiplugin.d.ts.map +1 -0
  97. package/dist/models/sam/apiplugin.js +7 -0
  98. package/dist/models/sam/apiplugin.js.map +1 -0
  99. package/dist/models/sam/budget.d.ts +219 -0
  100. package/dist/models/sam/budget.d.ts.map +1 -0
  101. package/dist/models/sam/budget.js +7 -0
  102. package/dist/models/sam/budget.js.map +1 -0
  103. package/dist/models/sam/customdomain.d.ts +139 -0
  104. package/dist/models/sam/customdomain.d.ts.map +1 -0
  105. package/dist/models/sam/customdomain.js +7 -0
  106. package/dist/models/sam/customdomain.js.map +1 -0
  107. package/dist/models/sam/guardrail.d.ts +222 -0
  108. package/dist/models/sam/guardrail.d.ts.map +1 -0
  109. package/dist/models/sam/guardrail.js +7 -0
  110. package/dist/models/sam/guardrail.js.map +1 -0
  111. package/dist/models/sam/imagesearchplugin.d.ts +235 -0
  112. package/dist/models/sam/imagesearchplugin.d.ts.map +1 -0
  113. package/dist/models/sam/imagesearchplugin.js +7 -0
  114. package/dist/models/sam/imagesearchplugin.js.map +1 -0
  115. package/dist/models/sam/index.d.ts +104 -0
  116. package/dist/models/sam/index.d.ts.map +1 -0
  117. package/dist/models/sam/index.js +50 -0
  118. package/dist/models/sam/index.js.map +1 -0
  119. package/dist/models/sam/llmclient.d.ts +490 -0
  120. package/dist/models/sam/llmclient.d.ts.map +1 -0
  121. package/dist/models/sam/llmclient.js +7 -0
  122. package/dist/models/sam/llmclient.js.map +1 -0
  123. package/dist/models/sam/llmhost.d.ts +429 -0
  124. package/dist/models/sam/llmhost.d.ts.map +1 -0
  125. package/dist/models/sam/llmhost.js +7 -0
  126. package/dist/models/sam/llmhost.js.map +1 -0
  127. package/dist/models/sam/llmhostcompute.d.ts +221 -0
  128. package/dist/models/sam/llmhostcompute.d.ts.map +1 -0
  129. package/dist/models/sam/llmhostcompute.js +7 -0
  130. package/dist/models/sam/llmhostcompute.js.map +1 -0
  131. package/dist/models/sam/mcpclient.d.ts +195 -0
  132. package/dist/models/sam/mcpclient.d.ts.map +1 -0
  133. package/dist/models/sam/mcpclient.js +7 -0
  134. package/dist/models/sam/mcpclient.js.map +1 -0
  135. package/dist/models/sam/orchestrator.d.ts +163 -0
  136. package/dist/models/sam/orchestrator.d.ts.map +1 -0
  137. package/dist/models/sam/orchestrator.js +7 -0
  138. package/dist/models/sam/orchestrator.js.map +1 -0
  139. package/dist/models/sam/plugin.d.ts +163 -0
  140. package/dist/models/sam/plugin.d.ts.map +1 -0
  141. package/dist/models/sam/plugin.js +7 -0
  142. package/dist/models/sam/plugin.js.map +1 -0
  143. package/dist/models/sam/prompt.d.ts +116 -0
  144. package/dist/models/sam/prompt.d.ts.map +1 -0
  145. package/dist/models/sam/prompt.js +7 -0
  146. package/dist/models/sam/prompt.js.map +1 -0
  147. package/dist/models/sam/provider.d.ts +195 -0
  148. package/dist/models/sam/provider.d.ts.map +1 -0
  149. package/dist/models/sam/provider.js +7 -0
  150. package/dist/models/sam/provider.js.map +1 -0
  151. package/dist/models/sam/proxy.d.ts +163 -0
  152. package/dist/models/sam/proxy.d.ts.map +1 -0
  153. package/dist/models/sam/proxy.js +7 -0
  154. package/dist/models/sam/proxy.js.map +1 -0
  155. package/dist/models/sam/schemas.d.ts +8 -0
  156. package/dist/models/sam/schemas.d.ts.map +1 -0
  157. package/dist/models/sam/schemas.js +6059 -0
  158. package/dist/models/sam/schemas.js.map +1 -0
  159. package/dist/models/sam/secret.d.ts +123 -0
  160. package/dist/models/sam/secret.d.ts.map +1 -0
  161. package/dist/models/sam/secret.js +7 -0
  162. package/dist/models/sam/secret.js.map +1 -0
  163. package/dist/models/sam/skillplugin.d.ts +181 -0
  164. package/dist/models/sam/skillplugin.d.ts.map +1 -0
  165. package/dist/models/sam/skillplugin.js +7 -0
  166. package/dist/models/sam/skillplugin.js.map +1 -0
  167. package/dist/models/sam/smarterauthtoken.d.ts +115 -0
  168. package/dist/models/sam/smarterauthtoken.d.ts.map +1 -0
  169. package/dist/models/sam/smarterauthtoken.js +7 -0
  170. package/dist/models/sam/smarterauthtoken.js.map +1 -0
  171. package/dist/models/sam/sqlconnection.d.ts +187 -0
  172. package/dist/models/sam/sqlconnection.d.ts.map +1 -0
  173. package/dist/models/sam/sqlconnection.js +7 -0
  174. package/dist/models/sam/sqlconnection.js.map +1 -0
  175. package/dist/models/sam/sqlplugin.d.ts +232 -0
  176. package/dist/models/sam/sqlplugin.d.ts.map +1 -0
  177. package/dist/models/sam/sqlplugin.js +7 -0
  178. package/dist/models/sam/sqlplugin.js.map +1 -0
  179. package/dist/models/sam/user.d.ts +135 -0
  180. package/dist/models/sam/user.d.ts.map +1 -0
  181. package/dist/models/sam/user.js +7 -0
  182. package/dist/models/sam/user.js.map +1 -0
  183. package/dist/models/sam/vectorsearch.d.ts +150 -0
  184. package/dist/models/sam/vectorsearch.d.ts.map +1 -0
  185. package/dist/models/sam/vectorsearch.js +7 -0
  186. package/dist/models/sam/vectorsearch.js.map +1 -0
  187. package/dist/models/sam/vectorstore.d.ts +291 -0
  188. package/dist/models/sam/vectorstore.d.ts.map +1 -0
  189. package/dist/models/sam/vectorstore.js +7 -0
  190. package/dist/models/sam/vectorstore.js.map +1 -0
  191. package/dist/models/sam/websearchplugin.d.ts +229 -0
  192. package/dist/models/sam/websearchplugin.d.ts.map +1 -0
  193. package/dist/models/sam/websearchplugin.js +7 -0
  194. package/dist/models/sam/websearchplugin.js.map +1 -0
  195. package/dist/models/vectorstore.d.ts +165 -0
  196. package/dist/models/vectorstore.d.ts.map +1 -0
  197. package/dist/models/vectorstore.js +90 -0
  198. package/dist/models/vectorstore.js.map +1 -0
  199. package/dist/resources/accounts.d.ts +107 -0
  200. package/dist/resources/accounts.d.ts.map +1 -0
  201. package/dist/resources/accounts.js +84 -0
  202. package/dist/resources/accounts.js.map +1 -0
  203. package/dist/resources/base.d.ts +127 -0
  204. package/dist/resources/base.d.ts.map +1 -0
  205. package/dist/resources/base.js +139 -0
  206. package/dist/resources/base.js.map +1 -0
  207. package/dist/resources/catalog.d.ts +209 -0
  208. package/dist/resources/catalog.d.ts.map +1 -0
  209. package/dist/resources/catalog.js +124 -0
  210. package/dist/resources/catalog.js.map +1 -0
  211. package/dist/resources/guardrails.d.ts +82 -0
  212. package/dist/resources/guardrails.d.ts.map +1 -0
  213. package/dist/resources/guardrails.js +46 -0
  214. package/dist/resources/guardrails.js.map +1 -0
  215. package/dist/resources/history.d.ts +97 -0
  216. package/dist/resources/history.d.ts.map +1 -0
  217. package/dist/resources/history.js +109 -0
  218. package/dist/resources/history.js.map +1 -0
  219. package/dist/resources/llmclients.d.ts +348 -0
  220. package/dist/resources/llmclients.d.ts.map +1 -0
  221. package/dist/resources/llmclients.js +367 -0
  222. package/dist/resources/llmclients.js.map +1 -0
  223. package/dist/resources/llmhosts.d.ts +146 -0
  224. package/dist/resources/llmhosts.d.ts.map +1 -0
  225. package/dist/resources/llmhosts.js +128 -0
  226. package/dist/resources/llmhosts.js.map +1 -0
  227. package/dist/resources/manifests.d.ts +153 -0
  228. package/dist/resources/manifests.d.ts.map +1 -0
  229. package/dist/resources/manifests.js +203 -0
  230. package/dist/resources/manifests.js.map +1 -0
  231. package/dist/resources/mcpclients.d.ts +90 -0
  232. package/dist/resources/mcpclients.d.ts.map +1 -0
  233. package/dist/resources/mcpclients.js +57 -0
  234. package/dist/resources/mcpclients.js.map +1 -0
  235. package/dist/resources/providers.d.ts +33 -0
  236. package/dist/resources/providers.d.ts.map +1 -0
  237. package/dist/resources/providers.js +39 -0
  238. package/dist/resources/providers.js.map +1 -0
  239. package/dist/resources/proxies.d.ts +61 -0
  240. package/dist/resources/proxies.d.ts.map +1 -0
  241. package/dist/resources/proxies.js +57 -0
  242. package/dist/resources/proxies.js.map +1 -0
  243. package/dist/resources/vectorstores.d.ts +194 -0
  244. package/dist/resources/vectorstores.d.ts.map +1 -0
  245. package/dist/resources/vectorstores.js +200 -0
  246. package/dist/resources/vectorstores.js.map +1 -0
  247. package/dist/version.d.ts +3 -0
  248. package/dist/version.d.ts.map +1 -0
  249. package/dist/version.js +5 -0
  250. package/dist/version.js.map +1 -0
  251. package/package.json +81 -4
@@ -0,0 +1,429 @@
1
+ /**
2
+ * The SAM type of the `LLMHost` kind, generated from the Smarter platform's JSON Schema.
3
+ *
4
+ * Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
5
+ */
6
+ /**
7
+ * Smarter API Manifest - LLMHost.
8
+ */
9
+ export interface SAMLLMHost {
10
+ /**
11
+ * apiVersion[String]: Required. The API version of the AbstractSAMBase.
12
+ */
13
+ apiVersion: string;
14
+ /**
15
+ * kind[String]: Required. The kind of resource described by the manifest.
16
+ */
17
+ kind: string;
18
+ metadata: SAMLLMHostMetadata;
19
+ spec: SAMLLMHostSpec;
20
+ /**
21
+ * LLMHost.status[obj]: Optional, Read-only. Stateful status information about the LLMHost.
22
+ */
23
+ status?: SAMLLMHostStatus | null;
24
+ [k: string]: unknown | undefined;
25
+ }
26
+ /**
27
+ * LLMHost.metadata[obj]: Required, the LLMHost metadata.
28
+ */
29
+ export interface SAMLLMHostMetadata {
30
+ /**
31
+ * Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
32
+ */
33
+ annotations?: {
34
+ [k: string]: string | undefined;
35
+ } | null;
36
+ /**
37
+ * The description for this resource. Be brief. Keep it under 255 characters.
38
+ */
39
+ description: string | null;
40
+ /**
41
+ * The camelCase name of the manifest resource
42
+ */
43
+ name: string;
44
+ /**
45
+ * The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
46
+ */
47
+ tags?: string[] | null;
48
+ /**
49
+ * The semantic version of the manifest. Example: 0.1.0
50
+ */
51
+ version: string | null;
52
+ [k: string]: unknown | undefined;
53
+ }
54
+ /**
55
+ * LLMHost.spec[obj]: Required, the LLMHost specification.
56
+ */
57
+ export interface SAMLLMHostSpec {
58
+ /**
59
+ * LLMHost.spec.compute[str]: the LLMHostCompute that the LLMHost runs on, e.g. gpu_l4_1x. Defaults to the cheapest one that its resources fit.
60
+ */
61
+ compute?: string | null;
62
+ engine: SAMLLMHostEngineConfig;
63
+ healthCheck?: SAMLLMHostHealthCheck;
64
+ model: SAMLLMHostModel;
65
+ network?: SAMLLMHostNetwork;
66
+ resources?: SAMLLMHostResources;
67
+ scaling?: SAMLLMHostScaling;
68
+ storage?: SAMLLMHostStorage;
69
+ [k: string]: unknown | undefined;
70
+ }
71
+ /**
72
+ * LLMHost.spec.engine[object]: the inference server.
73
+ */
74
+ export interface SAMLLMHostEngineConfig {
75
+ /**
76
+ * LLMHost.spec.engine.apiFormat[str]: the wire protocol. One of: ['openai_compatible', 'huggingface', 'ollama_native', 'custom'].
77
+ */
78
+ apiFormat?: "openai_compatible" | "huggingface" | "ollama_native" | "custom";
79
+ /**
80
+ * LLMHost.spec.engine.args[list]: additional arguments, passed to the engine as they are.
81
+ */
82
+ args?: string[];
83
+ /**
84
+ * LLMHost.spec.engine.command[list]: overrides the image's entrypoint. For custom engines.
85
+ */
86
+ command?: string[] | null;
87
+ /**
88
+ * LLMHost.spec.engine.contextLength[int]: the maximum context the server allocates, in tokens.
89
+ */
90
+ contextLength?: number | null;
91
+ /**
92
+ * LLMHost.spec.engine.dtype[str]: e.g. auto, bfloat16, float16.
93
+ */
94
+ dtype?: string | null;
95
+ /**
96
+ * LLMHost.spec.engine.env[dict]: additional environment variables.
97
+ */
98
+ env?: {
99
+ [k: string]: string | undefined;
100
+ };
101
+ /**
102
+ * LLMHost.spec.engine.gpuMemoryUtilization[float]: the fraction of GPU memory the server may use.
103
+ */
104
+ gpuMemoryUtilization?: number | null;
105
+ /**
106
+ * LLMHost.spec.engine.image[str]: the container image. Defaults to the engine's official image. Pin a version in production. Required for custom.
107
+ */
108
+ image?: string | null;
109
+ /**
110
+ * LLMHost.spec.engine.maxConcurrentRequests[int]: the requests that one replica serves at once.
111
+ */
112
+ maxConcurrentRequests?: number | null;
113
+ /**
114
+ * LLMHost.spec.engine.name[str]: the inference server. One of: ['vllm', 'tgi', 'sglang', 'llama_cpp', 'ollama', 'tei', 'custom'].
115
+ */
116
+ name: "vllm" | "tgi" | "sglang" | "llama_cpp" | "ollama" | "tei" | "custom";
117
+ /**
118
+ * LLMHost.spec.engine.port[int]: the container port. Defaults to the engine's port. Required for custom.
119
+ */
120
+ port?: number | null;
121
+ /**
122
+ * LLMHost.spec.engine.tensorParallelSize[int]: the GPUs that one replica shards the model across.
123
+ */
124
+ tensorParallelSize?: number | null;
125
+ /**
126
+ * LLMHost.spec.engine.trustRemoteCode[bool]: run Python code from the model repository. Only for repositories that you trust.
127
+ */
128
+ trustRemoteCode?: boolean;
129
+ [k: string]: unknown | undefined;
130
+ }
131
+ /**
132
+ * LLMHost.spec.healthCheck[object]: probes.
133
+ */
134
+ export interface SAMLLMHostHealthCheck {
135
+ /**
136
+ * LLMHost.spec.healthCheck.path[str]: the HTTP health path. Defaults to the engine's, e.g. /health.
137
+ */
138
+ path?: string | null;
139
+ /**
140
+ * LLMHost.spec.healthCheck.periodSeconds[int]: how often the probes run.
141
+ */
142
+ periodSeconds?: number;
143
+ /**
144
+ * LLMHost.spec.healthCheck.startupTimeoutSeconds[int]: the time the server has to download and load the weights before it is restarted. Large models need more.
145
+ */
146
+ startupTimeoutSeconds?: number;
147
+ [k: string]: unknown | undefined;
148
+ }
149
+ /**
150
+ * LLMHost.spec.model[object]: what is served.
151
+ */
152
+ export interface SAMLLMHostModel {
153
+ /**
154
+ * LLMHost.spec.model.architecture[str]: e.g. llama, qwen3, gemma3.
155
+ */
156
+ architecture?: string | null;
157
+ capabilities?: SAMLLMHostModelCapabilities;
158
+ /**
159
+ * LLMHost.spec.model.contextWindow[int]: the model's maximum context, in tokens.
160
+ */
161
+ contextWindow?: number | null;
162
+ /**
163
+ * LLMHost.spec.model.embeddingDimensions[int]: for embedding models.
164
+ */
165
+ embeddingDimensions?: number | null;
166
+ /**
167
+ * LLMHost.spec.model.file[str]: a single weights file within the repository, e.g. a GGUF file for llama_cpp. For ollama with a Hugging Face source, the quantization tag, e.g. Q4_K_M.
168
+ */
169
+ file?: string | null;
170
+ /**
171
+ * LLMHost.spec.model.license[str]: e.g. apache-2.0.
172
+ */
173
+ license?: string | null;
174
+ /**
175
+ * LLMHost.spec.model.parameterCount[int]: the number of parameters.
176
+ */
177
+ parameterCount?: number | null;
178
+ /**
179
+ * LLMHost.spec.model.quantization[str]: the weights' precision. One of: ['none', 'fp32', 'fp16', 'bf16', 'fp8', 'mxfp4', 'int8', 'int4', 'gguf', 'awq', 'gptq'].
180
+ */
181
+ quantization?: "none" | "fp32" | "fp16" | "bf16" | "fp8" | "mxfp4" | "int8" | "int4" | "gguf" | "awq" | "gptq";
182
+ /**
183
+ * LLMHost.spec.model.repository[str]: the model, in the source's terms: a Hugging Face repository id, e.g. Qwen/Qwen3-8B; an Ollama tag, e.g. llama3.1:8b; an S3 prefix, e.g. s3://bucket/models/qwen3; a URL; or, for pvc, a path within the volume.
184
+ */
185
+ repository: string;
186
+ /**
187
+ * LLMHost.spec.model.revision[str]: a Hugging Face branch, tag or commit SHA. Pin a commit SHA for reproducible deployments. Defaults to main.
188
+ */
189
+ revision?: string | null;
190
+ /**
191
+ * LLMHost.spec.model.servedName[str]: the model name that clients send in their requests. Defaults to the LLMHost's name. Ollama always uses repository.
192
+ */
193
+ servedName?: string | null;
194
+ /**
195
+ * LLMHost.spec.model.source[str]: where the weights come from. One of: ['huggingface', 'ollama', 's3', 'url', 'pvc'].
196
+ */
197
+ source?: "huggingface" | "ollama" | "s3" | "url" | "pvc";
198
+ /**
199
+ * LLMHost.spec.model.task[str]: what the model does. One of: ['text-generation', 'embedding'].
200
+ */
201
+ task?: "text-generation" | "embedding";
202
+ /**
203
+ * LLMHost.spec.model.tokenSecret[str]: the name of a Smarter Secret with a Hugging Face access token, for gated models, e.g. Llama and Gemma. You must also accept the model's license on huggingface.co.
204
+ */
205
+ tokenSecret?: string | null;
206
+ [k: string]: unknown | undefined;
207
+ }
208
+ /**
209
+ * LLMHost.spec.model.capabilities[object]: what the model can do.
210
+ */
211
+ export interface SAMLLMHostModelCapabilities {
212
+ /**
213
+ * LLMHost.spec.model.capabilities.functionCalling[bool]: supports tool calls. Some engines also require args, e.g. vLLM's --enable-auto-tool-choice and --tool-call-parser.
214
+ */
215
+ functionCalling?: boolean;
216
+ /**
217
+ * LLMHost.spec.model.capabilities.reasoning[bool]: a reasoning model.
218
+ */
219
+ reasoning?: boolean;
220
+ /**
221
+ * LLMHost.spec.model.capabilities.streaming[bool]: streams responses.
222
+ */
223
+ streaming?: boolean;
224
+ /**
225
+ * LLMHost.spec.model.capabilities.vision[bool]: accepts images.
226
+ */
227
+ vision?: boolean;
228
+ [k: string]: unknown | undefined;
229
+ }
230
+ /**
231
+ * LLMHost.spec.network[object]: reachability.
232
+ */
233
+ export interface SAMLLMHostNetwork {
234
+ /**
235
+ * LLMHost.spec.network.allowUnauthenticated[bool]: permit an Ingress for an engine that does not authenticate requests, e.g. tgi and ollama. Anyone who knows the hostname can use the model.
236
+ */
237
+ allowUnauthenticated?: boolean;
238
+ /**
239
+ * LLMHost.spec.network.apiKeySecret[str]: the name of a Smarter Secret with the API key that clients must send as a Bearer token. If omitted, Smarter generates one when the LLMHost is launched, and stores it in the Secret llmhost_<name>_api_key.
240
+ */
241
+ apiKeySecret?: string | null;
242
+ /**
243
+ * LLMHost.spec.network.hostname[str]: the Ingress hostname. Defaults to <name>.llmhost.<account number>.<environment API domain>.
244
+ */
245
+ hostname?: string | null;
246
+ /**
247
+ * LLMHost.spec.network.ingress[bool]: create an Ingress.
248
+ */
249
+ ingress?: boolean;
250
+ [k: string]: unknown | undefined;
251
+ }
252
+ /**
253
+ * LLMHost.spec.resources[object]: compute.
254
+ */
255
+ export interface SAMLLMHostResources {
256
+ /**
257
+ * LLMHost.spec.resources.cpu[str]: the pod's CPU request, e.g. 4 or 3500m.
258
+ */
259
+ cpu?: string | null;
260
+ /**
261
+ * LLMHost.spec.resources.gpuCount[int]: the GPUs per replica. 0 runs on CPU.
262
+ */
263
+ gpuCount?: number;
264
+ /**
265
+ * LLMHost.spec.resources.gpuResource[str]: the Kubernetes extended resource, e.g. nvidia.com/gpu.
266
+ */
267
+ gpuResource?: string;
268
+ /**
269
+ * LLMHost.spec.resources.memory[str]: the pod's memory request and limit, e.g. 24Gi.
270
+ */
271
+ memory?: string | null;
272
+ /**
273
+ * LLMHost.spec.resources.nodeSelector[dict]: additional node labels.
274
+ */
275
+ nodeSelector?: {
276
+ [k: string]: string | undefined;
277
+ };
278
+ /**
279
+ * LLMHost.spec.resources.serviceAccountName[str]: e.g. for IRSA access to an S3 model source.
280
+ */
281
+ serviceAccountName?: string | null;
282
+ /**
283
+ * LLMHost.spec.resources.shmSize[str]: the size of /dev/shm.
284
+ */
285
+ shmSize?: string;
286
+ /**
287
+ * LLMHost.spec.resources.tolerations[list]: Kubernetes tolerations. When gpuCount > 0, a toleration of the gpuResource taint is added.
288
+ */
289
+ tolerations?: {
290
+ [k: string]: unknown | undefined;
291
+ }[];
292
+ /**
293
+ * LLMHost.spec.resources.vramRequiredGb[int]: the GPU memory the model requires. Informational.
294
+ */
295
+ vramRequiredGb?: number | null;
296
+ [k: string]: unknown | undefined;
297
+ }
298
+ /**
299
+ * LLMHost.spec.scaling[object]: replicas.
300
+ */
301
+ export interface SAMLLMHostScaling {
302
+ /**
303
+ * LLMHost.spec.scaling.replicas[int]: the replicas. More than one requires storage.accessMode ReadWriteMany or ReadOnlyMany.
304
+ */
305
+ replicas?: number;
306
+ [k: string]: unknown | undefined;
307
+ }
308
+ /**
309
+ * LLMHost.spec.storage[object]: the model volume.
310
+ */
311
+ export interface SAMLLMHostStorage {
312
+ /**
313
+ * LLMHost.spec.storage.accessMode[str]: One of: ['ReadWriteOnce', 'ReadWriteMany', 'ReadOnlyMany'].
314
+ */
315
+ accessMode?: "ReadWriteOnce" | "ReadWriteMany" | "ReadOnlyMany";
316
+ /**
317
+ * LLMHost.spec.storage.existingClaim[str]: an existing PersistentVolumeClaim to mount, instead of creating one. Required when model.source is pvc.
318
+ */
319
+ existingClaim?: string | null;
320
+ /**
321
+ * LLMHost.spec.storage.retain[bool]: keep the volume, and its downloaded weights, on undeploy. It is always deleted when the LLMHost is deleted.
322
+ */
323
+ retain?: boolean;
324
+ /**
325
+ * LLMHost.spec.storage.size[str]: e.g. 50Gi.
326
+ */
327
+ size?: string;
328
+ /**
329
+ * LLMHost.spec.storage.storageClass[str]: defaults to the cluster's default class.
330
+ */
331
+ storageClass?: string | null;
332
+ [k: string]: unknown | undefined;
333
+ }
334
+ /**
335
+ * Smarter API LLMHost Manifest - Status class.
336
+ *
337
+ * Read only. Besides ownership, it reports the LLMHost's lifecycle state, where it can be
338
+ * reached, and its accumulated cost, as of its most recent status check.
339
+ */
340
+ export interface SAMLLMHostStatus {
341
+ /**
342
+ * LLMHost.status.account_number: The account owner of this LLMHost. Read only.
343
+ */
344
+ accountNumber: string;
345
+ /**
346
+ * LLMHost.status.apiKeySecret: the Smarter Secret with the API key, if any. Read only.
347
+ */
348
+ apiKeySecret?: string | null;
349
+ /**
350
+ * The date in which this resource was created. Read only.
351
+ */
352
+ created: string;
353
+ /**
354
+ * dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
355
+ */
356
+ dependencies?: SAMDependency[] | null;
357
+ /**
358
+ * LLMHost.status.deployedAt: when it was last launched. Read only.
359
+ */
360
+ deployedAt?: string | null;
361
+ /**
362
+ * LLMHost.status.endpoint: the base URL inside the cluster, e.g. for LLMClients. Read only.
363
+ */
364
+ endpoint?: string | null;
365
+ /**
366
+ * LLMHost.status.estimatedCost: uptimeHours times replicas times each replica's share of its compute's node price. Read only.
367
+ */
368
+ estimatedCost?: number | string | null;
369
+ /**
370
+ * LLMHost.status.healthy: the result of the last health check. Read only.
371
+ */
372
+ healthy?: boolean | null;
373
+ /**
374
+ * LLMHost.status.hostStatus: the lifecycle state, e.g. pending, active or error. Read only.
375
+ */
376
+ hostStatus?: string | null;
377
+ /**
378
+ * LLMHost.status.lastCheckedAt: when its status was last checked. Read only.
379
+ */
380
+ lastCheckedAt?: string | null;
381
+ /**
382
+ * LLMHost.status.message: why the LLMHost is in its state, e.g. a container error. Read only.
383
+ */
384
+ message?: string | null;
385
+ /**
386
+ * The date in which this resource was most recently changed. Read only.
387
+ */
388
+ modified: string;
389
+ /**
390
+ * LLMHost.status.publicUrl: the base URL of the Ingress, if any. Read only.
391
+ */
392
+ publicUrl?: string | null;
393
+ /**
394
+ * LLMHost.status.readyReplicas: ready. Read only.
395
+ */
396
+ readyReplicas?: number | null;
397
+ /**
398
+ * recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
399
+ */
400
+ recordLocator: string;
401
+ /**
402
+ * LLMHost.status.replicas: desired. Read only.
403
+ */
404
+ replicas?: number | null;
405
+ /**
406
+ * LLMHost.status.uptimeHours: hours since deployedAt. Read only.
407
+ */
408
+ uptimeHours?: number | null;
409
+ /**
410
+ * LLMHost.status.username: The Smarter user who created this LLMHost. Read only.
411
+ */
412
+ username: string;
413
+ [k: string]: unknown | undefined;
414
+ }
415
+ /**
416
+ * A resource that depends on the resource that a manifest describes.
417
+ */
418
+ export interface SAMDependency {
419
+ /**
420
+ * kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
421
+ */
422
+ kind: string;
423
+ /**
424
+ * name[String]: The name of the resource that depends on this resource. Read only.
425
+ */
426
+ name: string;
427
+ [k: string]: unknown | undefined;
428
+ }
429
+ //# sourceMappingURL=llmhost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmhost.d.ts","sourceRoot":"","sources":["../../../src/models/sam/llmhost.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACjC,GAAG,IAAI,CAAC;IACT;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,WAAW,CAAC,EAAE,qBAAqB,CAAC;IAC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AC;IACvC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The SAM type of the `LLMHost` kind, generated from the Smarter platform's JSON Schema.
3
+ *
4
+ * Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=llmhost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmhost.js","sourceRoot":"","sources":["../../../src/models/sam/llmhost.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,221 @@
1
+ /**
2
+ * The SAM type of the `LLMHostCompute` kind, generated from the Smarter platform's JSON Schema.
3
+ *
4
+ * Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
5
+ */
6
+ /**
7
+ * Smarter API Manifest - LLMHostCompute.
8
+ */
9
+ export interface SAMLLMHostCompute {
10
+ /**
11
+ * apiVersion[String]: Required. The API version of the AbstractSAMBase.
12
+ */
13
+ apiVersion: string;
14
+ /**
15
+ * kind[String]: Required. The kind of resource described by the manifest.
16
+ */
17
+ kind: string;
18
+ metadata: SAMLLMHostComputeMetadata;
19
+ spec: SAMLLMHostComputeSpec;
20
+ /**
21
+ * LLMHostCompute.status[obj]: Optional, Read-only. Stateful status information about the LLMHostCompute.
22
+ */
23
+ status?: SAMLLMHostComputeStatus | null;
24
+ [k: string]: unknown | undefined;
25
+ }
26
+ /**
27
+ * LLMHostCompute.metadata[obj]: Required, the LLMHostCompute metadata.
28
+ */
29
+ export interface SAMLLMHostComputeMetadata {
30
+ /**
31
+ * Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
32
+ */
33
+ annotations?: {
34
+ [k: string]: string | undefined;
35
+ } | null;
36
+ /**
37
+ * The description for this resource. Be brief. Keep it under 255 characters.
38
+ */
39
+ description: string | null;
40
+ /**
41
+ * The camelCase name of the manifest resource
42
+ */
43
+ name: string;
44
+ /**
45
+ * The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
46
+ */
47
+ tags?: string[] | null;
48
+ /**
49
+ * The semantic version of the manifest. Example: 0.1.0
50
+ */
51
+ version: string | null;
52
+ [k: string]: unknown | undefined;
53
+ }
54
+ /**
55
+ * LLMHostCompute.spec[obj]: Required, the LLMHostCompute specification.
56
+ */
57
+ export interface SAMLLMHostComputeSpec {
58
+ cost?: SAMLLMHostComputeCost;
59
+ node: SAMLLMHostComputeNode;
60
+ nodeGroup?: SAMLLMHostComputeNodeGroup;
61
+ [k: string]: unknown | undefined;
62
+ }
63
+ /**
64
+ * LLMHostCompute.spec.cost[object]: for reporting.
65
+ */
66
+ export interface SAMLLMHostComputeCost {
67
+ /**
68
+ * LLMHostCompute.spec.cost.currency[str]: e.g. USD.
69
+ */
70
+ currency?: string;
71
+ /**
72
+ * LLMHostCompute.spec.cost.perHour[decimal]: the cost per hour of one node, e.g. its on-demand price.
73
+ */
74
+ perHour?: number | string | null;
75
+ [k: string]: unknown | undefined;
76
+ }
77
+ /**
78
+ * LLMHostCompute.spec.node[object]: the kind of node.
79
+ */
80
+ export interface SAMLLMHostComputeNode {
81
+ /**
82
+ * LLMHostCompute.spec.node.amiType[str]: e.g. AL2023_x86_64_NVIDIA. Defaults to the NVIDIA AMI for a GPU node, else the standard AMI.
83
+ */
84
+ amiType?: string | null;
85
+ /**
86
+ * LLMHostCompute.spec.node.capacityType[str]: ON_DEMAND or SPOT.
87
+ */
88
+ capacityType?: string;
89
+ /**
90
+ * LLMHostCompute.spec.node.cpu[int]: the node's vCPUs.
91
+ */
92
+ cpu: number;
93
+ /**
94
+ * LLMHostCompute.spec.node.diskSizeGb[int]: the node's root volume, for container images. Model weights are on the LLMHosts' own volumes.
95
+ */
96
+ diskSizeGb?: number;
97
+ /**
98
+ * LLMHostCompute.spec.node.gpu[object]: the node's GPUs. None for a CPU node.
99
+ */
100
+ gpu?: SAMLLMHostComputeGpu | null;
101
+ /**
102
+ * LLMHostCompute.spec.node.instanceType[str]: e.g. g6.2xlarge.
103
+ */
104
+ instanceType: string;
105
+ /**
106
+ * LLMHostCompute.spec.node.memoryGb[int]: the node's memory, in GiB.
107
+ */
108
+ memoryGb: number;
109
+ [k: string]: unknown | undefined;
110
+ }
111
+ /**
112
+ * Spec.node.gpu: the node's GPUs.
113
+ */
114
+ export interface SAMLLMHostComputeGpu {
115
+ /**
116
+ * LLMHostCompute.spec.node.gpu.count[int]: the node's GPUs.
117
+ */
118
+ count: number;
119
+ /**
120
+ * LLMHostCompute.spec.node.gpu.memoryGb[int]: the memory of one GPU, in GB.
121
+ */
122
+ memoryGb: number;
123
+ /**
124
+ * LLMHostCompute.spec.node.gpu.resource[str]: the Kubernetes extended resource that advertises the GPUs.
125
+ */
126
+ resource?: string;
127
+ /**
128
+ * LLMHostCompute.spec.node.gpu.type[str]: the GPU model, e.g. L4, A10G, H100-80GB.
129
+ */
130
+ type: string;
131
+ [k: string]: unknown | undefined;
132
+ }
133
+ /**
134
+ * LLMHostCompute.spec.nodeGroup[object]: the node group of the nodes.
135
+ */
136
+ export interface SAMLLMHostComputeNodeGroup {
137
+ /**
138
+ * LLMHostCompute.spec.nodeGroup.maxNodes[int]: the most nodes that Smarter adds to the node group.
139
+ */
140
+ maxNodes?: number;
141
+ /**
142
+ * LLMHostCompute.spec.nodeGroup.subnetIds[list]: the node group's subnets. Defaults to the platform's. One subnet keeps the nodes in one availability zone, with the LLMHosts' model volumes.
143
+ */
144
+ subnetIds?: string[];
145
+ [k: string]: unknown | undefined;
146
+ }
147
+ /**
148
+ * Smarter API LLMHostCompute Manifest - Status class.
149
+ *
150
+ * Read only. Besides ownership, it reports the node group, as of its most recent reconcile.
151
+ */
152
+ export interface SAMLLMHostComputeStatus {
153
+ /**
154
+ * LLMHostCompute.status.account_number: The account owner of this LLMHostCompute. Read only.
155
+ */
156
+ accountNumber: string;
157
+ /**
158
+ * The date in which this resource was created. Read only.
159
+ */
160
+ created: string;
161
+ /**
162
+ * dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
163
+ */
164
+ dependencies?: SAMDependency[] | null;
165
+ /**
166
+ * LLMHostCompute.status.desiredNodes: the node group's desired size. Read only.
167
+ */
168
+ desiredNodes?: number | null;
169
+ /**
170
+ * LLMHostCompute.status.lastReconciledAt: when it was last reconciled. Read only.
171
+ */
172
+ lastReconciledAt?: string | null;
173
+ /**
174
+ * LLMHostCompute.status.llmhosts: the LLMHosts that run on it. Read only.
175
+ */
176
+ llmhosts?: number | null;
177
+ /**
178
+ * LLMHostCompute.status.message: the result of the last reconcile. Read only.
179
+ */
180
+ message?: string | null;
181
+ /**
182
+ * The date in which this resource was most recently changed. Read only.
183
+ */
184
+ modified: string;
185
+ /**
186
+ * LLMHostCompute.status.nodeGroupName: the cloud's name of the node group. Read only.
187
+ */
188
+ nodeGroupName?: string | null;
189
+ /**
190
+ * LLMHostCompute.status.nodeGroupStatus: e.g. absent, CREATING or ACTIVE. Read only.
191
+ */
192
+ nodeGroupStatus?: string | null;
193
+ /**
194
+ * LLMHostCompute.status.readyNodes: the nodes that have joined the cluster. Read only.
195
+ */
196
+ readyNodes?: number | null;
197
+ /**
198
+ * recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
199
+ */
200
+ recordLocator: string;
201
+ /**
202
+ * LLMHostCompute.status.username: The Smarter user who created this LLMHostCompute. Read only.
203
+ */
204
+ username: string;
205
+ [k: string]: unknown | undefined;
206
+ }
207
+ /**
208
+ * A resource that depends on the resource that a manifest describes.
209
+ */
210
+ export interface SAMDependency {
211
+ /**
212
+ * kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
213
+ */
214
+ kind: string;
215
+ /**
216
+ * name[String]: The name of the resource that depends on this resource. Read only.
217
+ */
218
+ name: string;
219
+ [k: string]: unknown | undefined;
220
+ }
221
+ //# sourceMappingURL=llmhostcompute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmhostcompute.d.ts","sourceRoot":"","sources":["../../../src/models/sam/llmhostcompute.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;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AAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The SAM type of the `LLMHostCompute` kind, generated from the Smarter platform's JSON Schema.
3
+ *
4
+ * Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=llmhostcompute.js.map