| 1 | import type * as aiplatform from "@distilled.cloud/gcp/aiplatform_v1"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { RuntimeContext } from "../../RuntimeContext.ts"; |
| 5 | import type { ReasoningEnginesSandboxEnvironmentTemplate } from "./ReasoningEnginesSandboxEnvironmentTemplate.ts"; |
| 6 | |
| 7 | export interface GetSandboxEnvironmentTemplateRequest extends Omit< |
| 8 | aiplatform.GetReasoningEnginesSandboxEnvironmentTemplatesRequest, |
| 9 | "name" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Vertex AI `sandboxEnvironmentTemplates.get`. |
| 14 | * |
| 15 | * Bind this operation to a |
| 16 | * {@link ReasoningEnginesSandboxEnvironmentTemplate} in a Function/Action |
| 17 | * init phase. Provide {@link GetSandboxEnvironmentTemplateHttp}. |
| 18 | * |
| 19 | * ### Observing Templates |
| 20 | * **Example:** Read the bound template |
| 21 | * ```typescript |
| 22 | * const getTemplate = yield* GCP.AIPlatform.GetSandboxEnvironmentTemplate(template); |
| 23 | * const live = yield* getTemplate(); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | * @category AIPlatform |
| 28 | */ |
| 29 | export interface GetSandboxEnvironmentTemplate extends Binding.Service< |
| 30 | GetSandboxEnvironmentTemplate, |
| 31 | "GCP.AIPlatform.GetSandboxEnvironmentTemplate", |
| 32 | ( |
| 33 | template: ReasoningEnginesSandboxEnvironmentTemplate, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request?: GetSandboxEnvironmentTemplateRequest, |
| 37 | ) => Effect.Effect< |
| 38 | aiplatform.GoogleCloudAiplatformV1SandboxEnvironmentTemplate, |
| 39 | aiplatform.GetReasoningEnginesSandboxEnvironmentTemplatesError, |
| 40 | RuntimeContext |
| 41 | > |
| 42 | > |
| 43 | > {} |
| 44 | |
| 45 | export const GetSandboxEnvironmentTemplate = |
| 46 | Binding.Service<GetSandboxEnvironmentTemplate>( |
| 47 | "GCP.AIPlatform.GetSandboxEnvironmentTemplate", |
| 48 | ); |