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

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