@devries-cameron20 / t3code Mirror · read-only
Fork 0

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, 06:00 UTC

main
ts 46 lines 1.45 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 { ReasoningEnginesSandboxEnvironment } from "./ReasoningEnginesSandboxEnvironment.ts";
6
7 export interface GetSandboxEnvironmentRequest extends Omit<
8 aiplatform.GetReasoningEnginesSandboxEnvironmentsRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Vertex AI `sandboxEnvironments.get`.
14 *
15 * Bind this operation to a {@link ReasoningEnginesSandboxEnvironment} in
16 * a Function/Action init phase. Provide {@link GetSandboxEnvironmentHttp}.
17 *
18 * ### Observing Sandboxes
19 * **Example:** Read the bound sandbox
20 * ```typescript
21 * const getSandbox = yield* GCP.AIPlatform.GetSandboxEnvironment(sandbox);
22 * const live = yield* getSandbox();
23 * ```
24 *
25 * @binding
26 * @category AIPlatform
27 */
28 export interface GetSandboxEnvironment extends Binding.Service<
29 GetSandboxEnvironment,
30 "GCP.AIPlatform.GetSandboxEnvironment",
31 (
32 sandbox: ReasoningEnginesSandboxEnvironment,
33 ) => Effect.Effect<
34 (
35 request?: GetSandboxEnvironmentRequest,
36 ) => Effect.Effect<
37 aiplatform.GoogleCloudAiplatformV1SandboxEnvironment,
38 aiplatform.GetReasoningEnginesSandboxEnvironmentsError,
39 RuntimeContext
40 >
41 >
42 > {}
43
44 export const GetSandboxEnvironment = Binding.Service<GetSandboxEnvironment>(
45 "GCP.AIPlatform.GetSandboxEnvironment",
46 );