@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 36 lines 1.2 KB
Raw
1 import type * as personalize from "@distilled.cloud/aws/personalize";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `personalize:CreateSolution` — Creates a solution (a recipe + configuration to train models with)
7 * for a dataset group — set `performAutoTraining` to keep models fresh
8 * automatically.
9 * Provide the implementation with
10 * `Effect.provide(AWS.Personalize.CreateSolutionHttp)`.
11 *
12 * ### Retraining Loop
13 * **Example:** Create a Solution
14 * ```typescript
15 * // init
16 * const createSolution = yield* Personalize.CreateSolution();
17 *
18 * const { solutionArn } = yield* createSolution({
19 * name: "user-personalization",
20 * recipeArn: "arn:aws:personalize:::recipe/aws-user-personalization",
21 * datasetGroupArn,
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface CreateSolution extends Binding.Service<
28 CreateSolution,
29 "AWS.Personalize.CreateSolution",
30 () => Effect.Effect<
31 (
32 request: personalize.CreateSolutionRequest,
33 ) => Effect.Effect<personalize.CreateSolutionResponse, personalize.CreateSolutionError>
34 >
35 > {}
36 export const CreateSolution = Binding.Service<CreateSolution>("AWS.Personalize.CreateSolution");