@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, 04:45 UTC

main
ts 48 lines 1.38 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 QueryReasoningEngineRequest extends Omit<
8 aiplatform.QueryReasoningEnginesRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Vertex AI `reasoningEngines.query`.
14 *
15 * Bind this operation to a {@link ReasoningEngine} in a Function/Action
16 * init phase. Provide {@link QueryReasoningEngineHttp}.
17 *
18 * ### Querying
19 * **Example:** Call the default query method
20 * ```typescript
21 * const query = yield* GCP.AIPlatform.QueryReasoningEngine(engine);
22 * const result = yield* query({
23 * body: { input: { input: "hello" } },
24 * });
25 * ```
26 *
27 * @binding
28 * @category AIPlatform
29 */
30 export interface QueryReasoningEngine extends Binding.Service<
31 QueryReasoningEngine,
32 "GCP.AIPlatform.QueryReasoningEngine",
33 (
34 engine: ReasoningEngine,
35 ) => Effect.Effect<
36 (
37 request?: QueryReasoningEngineRequest,
38 ) => Effect.Effect<
39 aiplatform.GoogleCloudAiplatformV1QueryReasoningEngineResponse,
40 aiplatform.QueryReasoningEnginesError,
41 RuntimeContext
42 >
43 >
44 > {}
45
46 export const QueryReasoningEngine = Binding.Service<QueryReasoningEngine>(
47 "GCP.AIPlatform.QueryReasoningEngine",
48 );