The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type * as ml from "@distilled.cloud/gcp/ml_v1"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type { RuntimeContext } from "alchemy/RuntimeContext"; |
| 4 | import type * as Effect from "effect/Effect"; |
| 5 | import type { ModelsVersion } from "./ModelsVersion.ts"; |
| 6 | |
| 7 | export interface GetVersionRequest extends Omit<ml.GetProjectsModelsVersionsRequest, "name"> {} |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for AI Platform (legacy ML Engine) `versions.get`. |
| 11 | * |
| 12 | * Bind this operation to a {@link ModelsVersion} in a Function/Action |
| 13 | * init phase. Provide {@link GetVersionHttp}. |
| 14 | * |
| 15 | * ### Reading a Version |
| 16 | * **Example:** Get the bound version |
| 17 | * ```typescript |
| 18 | * const getVersion = yield* GCP.ML.GetVersion(version); |
| 19 | * const live = yield* getVersion(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | * @category ML |
| 24 | */ |
| 25 | export interface GetVersion extends Binding.Service< |
| 26 | GetVersion, |
| 27 | "GCP.ML.GetVersion", |
| 28 | ( |
| 29 | version: ModelsVersion, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request?: GetVersionRequest, |
| 33 | ) => Effect.Effect< |
| 34 | ml.GoogleCloudMlV1__Version, |
| 35 | ml.GetProjectsModelsVersionsError, |
| 36 | RuntimeContext |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | |
| 41 | export const GetVersion = Binding.Service<GetVersion>("GCP.ML.GetVersion"); |