@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 39 lines 1.22 KB
Raw
1 import type * as comprehend from "@distilled.cloud/aws/comprehend";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `comprehend:DetectKeyPhrases` — extract the key noun
7 * phrases of the input text with confidence scores and offsets.
8 *
9 * The binding takes no arguments and grants the action on `*` (the action
10 * has no resource-level IAM).
11 *
12 * ### Real-Time Analysis
13 * **Example:** Extract Key Phrases
14 * ```typescript
15 * // init
16 * const detectKeyPhrases = yield* AWS.Comprehend.DetectKeyPhrases();
17 *
18 * // runtime
19 * const result = yield* detectKeyPhrases({
20 * Text: "The quarterly earnings report exceeded analyst expectations.",
21 * LanguageCode: "en",
22 * });
23 * // result.KeyPhrases: [{ Text: "The quarterly earnings report" }, …]
24 * ```
25 *
26 * @binding
27 */
28 export interface DetectKeyPhrases extends Binding.Service<
29 DetectKeyPhrases,
30 "AWS.Comprehend.DetectKeyPhrases",
31 () => Effect.Effect<
32 (
33 request: comprehend.DetectKeyPhrasesRequest,
34 ) => Effect.Effect<comprehend.DetectKeyPhrasesResponse, comprehend.DetectKeyPhrasesError>
35 >
36 > {}
37 export const DetectKeyPhrases = Binding.Service<DetectKeyPhrases>(
38 "AWS.Comprehend.DetectKeyPhrases",
39 );