| 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 { 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 | ); |