The best way to control Claude Code, Codex and more from any computer or phone

main
ts 47 lines 1.6 KB
Raw
1 import type * as aiplatform from "@distilled.cloud/gcp/aiplatform_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 { 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 = Binding.Service<GetSandboxEnvironmentTemplate>(
46 "GCP.AIPlatform.GetSandboxEnvironmentTemplate",
47 );