@effect/ai-amazon-bedrock 0.16.1 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +434 -0
- package/CLAUDE.md +434 -0
- package/README.md +76 -3
- package/ai-docs/README.md +44 -0
- package/ai-docs/package.json +36 -0
- package/ai-docs/src/01_effect/01_basics/01_effect-gen.ts +30 -0
- package/ai-docs/src/01_effect/01_basics/02_effect-fn.ts +52 -0
- package/ai-docs/src/01_effect/01_basics/10_creating-effects.ts +74 -0
- package/ai-docs/src/01_effect/01_basics/index.md +7 -0
- package/ai-docs/src/01_effect/02_schema/10_schema-basics.ts +43 -0
- package/ai-docs/src/01_effect/02_schema/index.md +7 -0
- package/ai-docs/src/01_effect/03_services/01_service.ts +45 -0
- package/ai-docs/src/01_effect/03_services/10_reference.ts +10 -0
- package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +70 -0
- package/ai-docs/src/01_effect/03_services/20_layer-unwrap.ts +66 -0
- package/ai-docs/src/01_effect/03_services/index.md +5 -0
- package/ai-docs/src/01_effect/04_errors/01_error-handling.ts +30 -0
- package/ai-docs/src/01_effect/04_errors/10_catch-tags.ts +24 -0
- package/ai-docs/src/01_effect/04_errors/20_reason-errors.ts +64 -0
- package/ai-docs/src/01_effect/04_errors/index.md +1 -0
- package/ai-docs/src/01_effect/05_resources/10_acquire-release.ts +105 -0
- package/ai-docs/src/01_effect/05_resources/20_layer-side-effects.ts +31 -0
- package/ai-docs/src/01_effect/05_resources/30_layer-map.ts +86 -0
- package/ai-docs/src/01_effect/05_resources/index.md +3 -0
- package/ai-docs/src/01_effect/06_running/10_run-main.ts +30 -0
- package/ai-docs/src/01_effect/06_running/20_layer-launch.ts +27 -0
- package/ai-docs/src/01_effect/06_running/index.md +1 -0
- package/ai-docs/src/01_effect/07_pubsub/10_pubsub.ts +56 -0
- package/ai-docs/src/01_effect/07_pubsub/index.md +3 -0
- package/ai-docs/src/03_stream/10_creating-streams.ts +103 -0
- package/ai-docs/src/03_stream/20_consuming-streams.ts +137 -0
- package/ai-docs/src/03_stream/30_encoding.ts +163 -0
- package/ai-docs/src/03_stream/index.md +4 -0
- package/ai-docs/src/04_integration/10_managed-runtime.ts +129 -0
- package/ai-docs/src/04_integration/index.md +5 -0
- package/ai-docs/src/05_batching/10_request-resolver.ts +89 -0
- package/ai-docs/src/05_batching/index.md +3 -0
- package/ai-docs/src/06_schedule/10_schedules.ts +111 -0
- package/ai-docs/src/06_schedule/index.md +3 -0
- package/ai-docs/src/07_datetime/10_creating-and-formatting.ts +30 -0
- package/ai-docs/src/07_datetime/20_time-zones.ts +44 -0
- package/ai-docs/src/07_datetime/index.md +5 -0
- package/ai-docs/src/08_observability/10_logging.ts +66 -0
- package/ai-docs/src/08_observability/20_otlp-tracing.ts +95 -0
- package/ai-docs/src/08_observability/index.md +7 -0
- package/ai-docs/src/09_testing/10_effect-tests.ts +55 -0
- package/ai-docs/src/09_testing/20_layer-tests.ts +138 -0
- package/ai-docs/src/09_testing/index.md +1 -0
- package/ai-docs/src/10_predicate/01_basics.ts +14 -0
- package/ai-docs/src/10_predicate/index.md +9 -0
- package/ai-docs/src/40_sql/10_basics.ts +175 -0
- package/ai-docs/src/40_sql/index.md +6 -0
- package/ai-docs/src/50_http-client/10_basics.ts +102 -0
- package/ai-docs/src/50_http-client/index.md +3 -0
- package/ai-docs/src/51_http-server/10_basics.ts +118 -0
- package/ai-docs/src/51_http-server/20_testing.ts +100 -0
- package/ai-docs/src/51_http-server/fixtures/api/Api.ts +14 -0
- package/ai-docs/src/51_http-server/fixtures/api/Authorization.ts +36 -0
- package/ai-docs/src/51_http-server/fixtures/api/System.ts +10 -0
- package/ai-docs/src/51_http-server/fixtures/api/Users.ts +107 -0
- package/ai-docs/src/51_http-server/fixtures/domain/User.ts +21 -0
- package/ai-docs/src/51_http-server/fixtures/domain/UserErrors.ts +22 -0
- package/ai-docs/src/51_http-server/fixtures/server/Authorization.ts +37 -0
- package/ai-docs/src/51_http-server/fixtures/server/Users/http.ts +80 -0
- package/ai-docs/src/51_http-server/fixtures/server/Users.ts +183 -0
- package/ai-docs/src/51_http-server/index.md +3 -0
- package/ai-docs/src/52_graphql/10_basics.ts +117 -0
- package/ai-docs/src/52_graphql/20_testing.ts +45 -0
- package/ai-docs/src/52_graphql/30_batching.ts +118 -0
- package/ai-docs/src/52_graphql/40_aliased-batching.ts +124 -0
- package/ai-docs/src/52_graphql/50_errors-and-retries.ts +74 -0
- package/ai-docs/src/52_graphql/index.md +6 -0
- package/ai-docs/src/60_child-process/10_working-with-child-processes.ts +117 -0
- package/ai-docs/src/60_child-process/index.md +3 -0
- package/ai-docs/src/70_cli/10_basics.ts +162 -0
- package/ai-docs/src/70_cli/index.md +5 -0
- package/ai-docs/src/71_ai/10_language-model.ts +156 -0
- package/ai-docs/src/71_ai/20_tools.ts +226 -0
- package/ai-docs/src/71_ai/30_chat.ts +158 -0
- package/ai-docs/src/71_ai/fixtures/domain/LaunchPlan.ts +9 -0
- package/ai-docs/src/71_ai/index.md +5 -0
- package/ai-docs/src/80_cluster/10_entities.ts +97 -0
- package/ai-docs/src/80_cluster/index.md +4 -0
- package/ai-docs/src/index.md +10 -0
- package/ai-docs/tsconfig.json +28 -0
- package/dist/AmazonBedrockClient.d.ts +227 -0
- package/dist/AmazonBedrockClient.d.ts.map +1 -0
- package/dist/AmazonBedrockClient.js +281 -0
- package/dist/AmazonBedrockClient.js.map +1 -0
- package/dist/AmazonBedrockConfig.d.ts +76 -0
- package/dist/AmazonBedrockConfig.d.ts.map +1 -0
- package/dist/AmazonBedrockConfig.js +41 -0
- package/dist/AmazonBedrockConfig.js.map +1 -0
- package/dist/AmazonBedrockLanguageModel.d.ts +315 -0
- package/dist/AmazonBedrockLanguageModel.d.ts.map +1 -0
- package/dist/AmazonBedrockLanguageModel.js +991 -0
- package/dist/AmazonBedrockLanguageModel.js.map +1 -0
- package/dist/AmazonBedrockSchema.d.ts +918 -0
- package/dist/AmazonBedrockSchema.d.ts.map +1 -0
- package/dist/AmazonBedrockSchema.js +536 -0
- package/dist/AmazonBedrockSchema.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/{esm/index.js → index.js} +13 -12
- package/dist/index.js.map +1 -0
- package/dist/internal/errors.d.ts +2 -0
- package/dist/internal/errors.d.ts.map +1 -0
- package/dist/internal/errors.js +185 -0
- package/dist/internal/errors.js.map +1 -0
- package/dist/internal/eventStream.d.ts +2 -0
- package/dist/internal/eventStream.d.ts.map +1 -0
- package/dist/internal/eventStream.js +180 -0
- package/dist/internal/eventStream.js.map +1 -0
- package/dist/internal/sigv4.d.ts +2 -0
- package/dist/internal/sigv4.d.ts.map +1 -0
- package/dist/internal/sigv4.js +115 -0
- package/dist/internal/sigv4.js.map +1 -0
- package/dist/{dts/internal → internal}/utilities.d.ts.map +1 -1
- package/dist/internal/utilities.js +17 -0
- package/dist/internal/utilities.js.map +1 -0
- package/package.json +45 -84
- package/src/AmazonBedrockClient.ts +447 -263
- package/src/AmazonBedrockConfig.ts +55 -40
- package/src/AmazonBedrockLanguageModel.ts +950 -929
- package/src/AmazonBedrockSchema.ts +526 -970
- package/src/index.ts +15 -14
- package/src/internal/errors.ts +207 -0
- package/src/internal/eventStream.ts +208 -0
- package/src/internal/sigv4.ts +154 -0
- package/src/internal/utilities.ts +15 -17
- package/AmazonBedrockClient/package.json +0 -6
- package/AmazonBedrockConfig/package.json +0 -6
- package/AmazonBedrockLanguageModel/package.json +0 -6
- package/AmazonBedrockSchema/package.json +0 -6
- package/AmazonBedrockTool/package.json +0 -6
- package/EventStreamEncoding/package.json +0 -6
- package/dist/cjs/AmazonBedrockClient.js +0 -191
- package/dist/cjs/AmazonBedrockClient.js.map +0 -1
- package/dist/cjs/AmazonBedrockConfig.js +0 -30
- package/dist/cjs/AmazonBedrockConfig.js.map +0 -1
- package/dist/cjs/AmazonBedrockLanguageModel.js +0 -1051
- package/dist/cjs/AmazonBedrockLanguageModel.js.map +0 -1
- package/dist/cjs/AmazonBedrockSchema.js +0 -800
- package/dist/cjs/AmazonBedrockSchema.js.map +0 -1
- package/dist/cjs/AmazonBedrockTool.js +0 -53
- package/dist/cjs/AmazonBedrockTool.js.map +0 -1
- package/dist/cjs/EventStreamEncoding.js +0 -86
- package/dist/cjs/EventStreamEncoding.js.map +0 -1
- package/dist/cjs/index.js +0 -20
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/internal/utilities.js +0 -27
- package/dist/cjs/internal/utilities.js.map +0 -1
- package/dist/dts/AmazonBedrockClient.d.ts +0 -95
- package/dist/dts/AmazonBedrockClient.d.ts.map +0 -1
- package/dist/dts/AmazonBedrockConfig.d.ts +0 -47
- package/dist/dts/AmazonBedrockConfig.d.ts.map +0 -1
- package/dist/dts/AmazonBedrockLanguageModel.d.ts +0 -147
- package/dist/dts/AmazonBedrockLanguageModel.d.ts.map +0 -1
- package/dist/dts/AmazonBedrockSchema.d.ts +0 -1875
- package/dist/dts/AmazonBedrockSchema.d.ts.map +0 -1
- package/dist/dts/AmazonBedrockTool.d.ts +0 -206
- package/dist/dts/AmazonBedrockTool.d.ts.map +0 -1
- package/dist/dts/EventStreamEncoding.d.ts +0 -16
- package/dist/dts/EventStreamEncoding.d.ts.map +0 -1
- package/dist/dts/index.d.ts +0 -25
- package/dist/dts/index.d.ts.map +0 -1
- package/dist/esm/AmazonBedrockClient.js +0 -179
- package/dist/esm/AmazonBedrockClient.js.map +0 -1
- package/dist/esm/AmazonBedrockConfig.js +0 -22
- package/dist/esm/AmazonBedrockConfig.js.map +0 -1
- package/dist/esm/AmazonBedrockLanguageModel.js +0 -1040
- package/dist/esm/AmazonBedrockLanguageModel.js.map +0 -1
- package/dist/esm/AmazonBedrockSchema.js +0 -731
- package/dist/esm/AmazonBedrockSchema.js.map +0 -1
- package/dist/esm/AmazonBedrockTool.js +0 -45
- package/dist/esm/AmazonBedrockTool.js.map +0 -1
- package/dist/esm/EventStreamEncoding.js +0 -78
- package/dist/esm/EventStreamEncoding.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/internal/utilities.js +0 -19
- package/dist/esm/internal/utilities.js.map +0 -1
- package/dist/esm/package.json +0 -4
- package/index/package.json +0 -6
- package/src/AmazonBedrockTool.ts +0 -273
- package/src/EventStreamEncoding.ts +0 -118
- /package/dist/{dts/internal → internal}/utilities.d.ts +0 -0
|
@@ -1,1875 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import * as Schema from "effect/Schema";
|
|
5
|
-
declare const BedrockFoundationModelId_base: Schema.Literal<["amazon.titan-tg1-large", "amazon.titan-image-generator-v1:0", "amazon.titan-image-generator-v1", "amazon.titan-image-generator-v2:0", "amazon.nova-premier-v1:0:8k", "amazon.nova-premier-v1:0:20k", "amazon.nova-premier-v1:0:1000k", "amazon.nova-premier-v1:0:mm", "amazon.nova-premier-v1:0", "amazon.titan-text-premier-v1:0", "amazon.nova-pro-v1:0:24k", "amazon.nova-pro-v1:0:300k", "amazon.nova-pro-v1:0", "amazon.nova-lite-v1:0:24k", "amazon.nova-lite-v1:0:300k", "amazon.nova-lite-v1:0", "amazon.nova-canvas-v1:0", "amazon.nova-reel-v1:0", "amazon.nova-reel-v1:1", "amazon.nova-micro-v1:0:24k", "amazon.nova-micro-v1:0:128k", "amazon.nova-micro-v1:0", "amazon.nova-sonic-v1:0", "amazon.titan-embed-g1-text-02", "amazon.titan-text-lite-v1:0:4k", "amazon.titan-text-lite-v1", "amazon.titan-text-express-v1:0:8k", "amazon.titan-text-express-v1", "amazon.titan-embed-text-v1:2:8k", "amazon.titan-embed-text-v1", "amazon.titan-embed-text-v2:0:8k", "amazon.titan-embed-text-v2:0", "amazon.titan-embed-image-v1:0", "amazon.titan-embed-image-v1", "stability.stable-diffusion-xl-v1:0", "stability.stable-diffusion-xl-v1", "ai21.jamba-instruct-v1:0", "ai21.jamba-1-5-large-v1:0", "ai21.jamba-1-5-mini-v1:0", "anthropic.claude-instant-v1:2:100k", "anthropic.claude-instant-v1", "anthropic.claude-v2:0:18k", "anthropic.claude-v2:0:100k", "anthropic.claude-v2:1:18k", "anthropic.claude-v2:1:200k", "anthropic.claude-v2:1", "anthropic.claude-v2", "anthropic.claude-3-sonnet-20240229-v1:0:28k", "anthropic.claude-3-sonnet-20240229-v1:0:200k", "anthropic.claude-3-sonnet-20240229-v1:0", "anthropic.claude-3-haiku-20240307-v1:0:48k", "anthropic.claude-3-haiku-20240307-v1:0:200k", "anthropic.claude-3-haiku-20240307-v1:0", "anthropic.claude-3-opus-20240229-v1:0:12k", "anthropic.claude-3-opus-20240229-v1:0:28k", "anthropic.claude-3-opus-20240229-v1:0:200k", "anthropic.claude-3-opus-20240229-v1:0", "anthropic.claude-3-5-sonnet-20240620-v1:0", "anthropic.claude-3-5-sonnet-20241022-v2:0", "anthropic.claude-3-7-sonnet-20250219-v1:0", "anthropic.claude-3-5-haiku-20241022-v1:0", "anthropic.claude-opus-4-20250514-v1:0", "anthropic.claude-sonnet-4-20250514-v1:0", "cohere.command-text-v14:7:4k", "cohere.command-text-v14", "cohere.command-r-v1:0", "cohere.command-r-plus-v1:0", "cohere.command-light-text-v14:7:4k", "cohere.command-light-text-v14", "cohere.embed-english-v3:0:512", "cohere.embed-english-v3", "cohere.embed-multilingual-v3:0:512", "cohere.embed-multilingual-v3", "deepseek.r1-v1:0", "meta.llama3-8b-instruct-v1:0", "meta.llama3-70b-instruct-v1:0", "meta.llama3-1-8b-instruct-v1:0", "meta.llama3-1-70b-instruct-v1:0", "meta.llama3-2-11b-instruct-v1:0", "meta.llama3-2-90b-instruct-v1:0", "meta.llama3-2-1b-instruct-v1:0", "meta.llama3-2-3b-instruct-v1:0", "meta.llama3-3-70b-instruct-v1:0", "meta.llama4-scout-17b-instruct-v1:0", "meta.llama4-maverick-17b-instruct-v1:0", "mistral.mistral-7b-instruct-v0:2", "mistral.mixtral-8x7b-instruct-v0:1", "mistral.mistral-large-2402-v1:0", "mistral.mistral-small-2402-v1:0", "mistral.pixtral-large-2502-v1:0"]>;
|
|
6
|
-
/**
|
|
7
|
-
* The foundation models supported by Amazon Bedrock.
|
|
8
|
-
*
|
|
9
|
-
* An up-to-date list can be generated with the following command:
|
|
10
|
-
*
|
|
11
|
-
* ```sh
|
|
12
|
-
* aws bedrock list-foundation-models --output json | jq '[.modelSummaries[].modelId]'
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @since 1.0.0
|
|
16
|
-
* @category Schemas
|
|
17
|
-
*/
|
|
18
|
-
export declare class BedrockFoundationModelId extends BedrockFoundationModelId_base {
|
|
19
|
-
}
|
|
20
|
-
declare const CachePointBlock_base: Schema.Class<CachePointBlock, {
|
|
21
|
-
type: Schema.Literal<["default"]>;
|
|
22
|
-
}, Schema.Struct.Encoded<{
|
|
23
|
-
type: Schema.Literal<["default"]>;
|
|
24
|
-
}>, never, {
|
|
25
|
-
readonly type: "default";
|
|
26
|
-
}, {}, {}>;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
* @category Schemas
|
|
30
|
-
*/
|
|
31
|
-
export declare class CachePointBlock extends CachePointBlock_base {
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category Schemas
|
|
36
|
-
*/
|
|
37
|
-
export declare const DocumentFormat: Schema.Literal<["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]>;
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category Schemas
|
|
41
|
-
*/
|
|
42
|
-
export type DocumentFormat = typeof DocumentFormat.Type;
|
|
43
|
-
declare const DocumentBlock_base: Schema.Class<DocumentBlock, {
|
|
44
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
45
|
-
format: Schema.Literal<["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]>;
|
|
46
|
-
source: Schema.Struct<{
|
|
47
|
-
bytes: typeof Schema.NonEmptyString;
|
|
48
|
-
}>;
|
|
49
|
-
}, Schema.Struct.Encoded<{
|
|
50
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
51
|
-
format: Schema.Literal<["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]>;
|
|
52
|
-
source: Schema.Struct<{
|
|
53
|
-
bytes: typeof Schema.NonEmptyString;
|
|
54
|
-
}>;
|
|
55
|
-
}>, never, {
|
|
56
|
-
readonly format: "csv" | "doc" | "docx" | "html" | "md" | "pdf" | "txt" | "xls" | "xlsx";
|
|
57
|
-
} & {
|
|
58
|
-
readonly name: string;
|
|
59
|
-
} & {
|
|
60
|
-
readonly source: {
|
|
61
|
-
readonly bytes: string;
|
|
62
|
-
};
|
|
63
|
-
}, {}, {}>;
|
|
64
|
-
/**
|
|
65
|
-
* @since 1.0.0
|
|
66
|
-
* @category Schemas
|
|
67
|
-
*/
|
|
68
|
-
export declare class DocumentBlock extends DocumentBlock_base {
|
|
69
|
-
}
|
|
70
|
-
declare const GuardrailConverseImageBlock_base: Schema.Class<GuardrailConverseImageBlock, {
|
|
71
|
-
format: Schema.Literal<["png", "jpg"]>;
|
|
72
|
-
source: Schema.Struct<{
|
|
73
|
-
bytes: typeof Schema.NonEmptyString;
|
|
74
|
-
}>;
|
|
75
|
-
}, Schema.Struct.Encoded<{
|
|
76
|
-
format: Schema.Literal<["png", "jpg"]>;
|
|
77
|
-
source: Schema.Struct<{
|
|
78
|
-
bytes: typeof Schema.NonEmptyString;
|
|
79
|
-
}>;
|
|
80
|
-
}>, never, {
|
|
81
|
-
readonly format: "png" | "jpg";
|
|
82
|
-
} & {
|
|
83
|
-
readonly source: {
|
|
84
|
-
readonly bytes: string;
|
|
85
|
-
};
|
|
86
|
-
}, {}, {}>;
|
|
87
|
-
/**
|
|
88
|
-
* @since 1.0.0
|
|
89
|
-
* @category Schemas
|
|
90
|
-
*/
|
|
91
|
-
export declare class GuardrailConverseImageBlock extends GuardrailConverseImageBlock_base {
|
|
92
|
-
}
|
|
93
|
-
declare const GuardrailConverseTextBlock_base: Schema.Class<GuardrailConverseTextBlock, {
|
|
94
|
-
text: typeof Schema.String;
|
|
95
|
-
qualifiers: Schema.optional<Schema.Array$<Schema.Literal<["guard_content", "grounding_source", "query"]>>>;
|
|
96
|
-
}, Schema.Struct.Encoded<{
|
|
97
|
-
text: typeof Schema.String;
|
|
98
|
-
qualifiers: Schema.optional<Schema.Array$<Schema.Literal<["guard_content", "grounding_source", "query"]>>>;
|
|
99
|
-
}>, never, {
|
|
100
|
-
readonly text: string;
|
|
101
|
-
} & {
|
|
102
|
-
readonly qualifiers?: readonly ("guard_content" | "grounding_source" | "query")[] | undefined;
|
|
103
|
-
}, {}, {}>;
|
|
104
|
-
/**
|
|
105
|
-
* @since 1.0.0
|
|
106
|
-
* @category Schemas
|
|
107
|
-
*/
|
|
108
|
-
export declare class GuardrailConverseTextBlock extends GuardrailConverseTextBlock_base {
|
|
109
|
-
}
|
|
110
|
-
declare const GuardrailConverseContentBlock_base: Schema.Union<[typeof GuardrailConverseImageBlock, typeof GuardrailConverseTextBlock]>;
|
|
111
|
-
/**
|
|
112
|
-
* @since 1.0.0
|
|
113
|
-
* @category Schemas
|
|
114
|
-
*/
|
|
115
|
-
export declare class GuardrailConverseContentBlock extends GuardrailConverseContentBlock_base {
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @since 1.0.0
|
|
119
|
-
* @category Schemas
|
|
120
|
-
*/
|
|
121
|
-
export declare const ImageFormat: Schema.Literal<["gif", "jpeg", "png", "webp"]>;
|
|
122
|
-
/**
|
|
123
|
-
* @since 1.0.0
|
|
124
|
-
* @category Schemas
|
|
125
|
-
*/
|
|
126
|
-
export type ImageFormat = typeof ImageFormat.Type;
|
|
127
|
-
declare const ImageBlock_base: Schema.Class<ImageBlock, {
|
|
128
|
-
format: Schema.Literal<["gif", "jpeg", "png", "webp"]>;
|
|
129
|
-
source: Schema.Struct<{
|
|
130
|
-
bytes: typeof Schema.NonEmptyString;
|
|
131
|
-
}>;
|
|
132
|
-
}, Schema.Struct.Encoded<{
|
|
133
|
-
format: Schema.Literal<["gif", "jpeg", "png", "webp"]>;
|
|
134
|
-
source: Schema.Struct<{
|
|
135
|
-
bytes: typeof Schema.NonEmptyString;
|
|
136
|
-
}>;
|
|
137
|
-
}>, never, {
|
|
138
|
-
readonly format: "png" | "gif" | "jpeg" | "webp";
|
|
139
|
-
} & {
|
|
140
|
-
readonly source: {
|
|
141
|
-
readonly bytes: string;
|
|
142
|
-
};
|
|
143
|
-
}, {}, {}>;
|
|
144
|
-
/**
|
|
145
|
-
* @since 1.0.0
|
|
146
|
-
* @category Schemas
|
|
147
|
-
*/
|
|
148
|
-
export declare class ImageBlock extends ImageBlock_base {
|
|
149
|
-
}
|
|
150
|
-
declare const JsonBlock_base: Schema.Class<JsonBlock, {
|
|
151
|
-
json: typeof Schema.Unknown;
|
|
152
|
-
}, Schema.Struct.Encoded<{
|
|
153
|
-
json: typeof Schema.Unknown;
|
|
154
|
-
}>, never, {
|
|
155
|
-
readonly json: unknown;
|
|
156
|
-
}, {}, {}>;
|
|
157
|
-
/**
|
|
158
|
-
* @since 1.0.0
|
|
159
|
-
* @category Schemas
|
|
160
|
-
*/
|
|
161
|
-
export declare class JsonBlock extends JsonBlock_base {
|
|
162
|
-
}
|
|
163
|
-
declare const ReasoningContentBlock_base: Schema.Union<[Schema.SchemaClass<{
|
|
164
|
-
readonly reasoningText: {
|
|
165
|
-
readonly text: string;
|
|
166
|
-
readonly signature?: string | undefined;
|
|
167
|
-
};
|
|
168
|
-
} & {
|
|
169
|
-
readonly type: "reasoning";
|
|
170
|
-
}, {
|
|
171
|
-
readonly reasoningText: {
|
|
172
|
-
readonly text: string;
|
|
173
|
-
readonly signature?: string | undefined;
|
|
174
|
-
};
|
|
175
|
-
}, never>, Schema.SchemaClass<{
|
|
176
|
-
readonly redactedContent: string;
|
|
177
|
-
} & {
|
|
178
|
-
readonly type: "redacted-reasoning";
|
|
179
|
-
}, {
|
|
180
|
-
readonly redactedContent: string;
|
|
181
|
-
}, never>]>;
|
|
182
|
-
/**
|
|
183
|
-
* @since 1.0.0
|
|
184
|
-
* @category Schemas
|
|
185
|
-
*/
|
|
186
|
-
export declare class ReasoningContentBlock extends ReasoningContentBlock_base {
|
|
187
|
-
}
|
|
188
|
-
declare const VideoBlock_base: Schema.Class<VideoBlock, {
|
|
189
|
-
format: Schema.Literal<["flv", "mkv", "mov", "mp4", "mpg", "mpeg", "three_gp", "webm"]>;
|
|
190
|
-
source: Schema.Union<[Schema.Struct<{
|
|
191
|
-
bytes: typeof Schema.NonEmptyString;
|
|
192
|
-
}>, Schema.Struct<{
|
|
193
|
-
s3Location: Schema.Struct<{
|
|
194
|
-
uri: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
195
|
-
bucketOwner: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
196
|
-
}>;
|
|
197
|
-
}>]>;
|
|
198
|
-
}, Schema.Struct.Encoded<{
|
|
199
|
-
format: Schema.Literal<["flv", "mkv", "mov", "mp4", "mpg", "mpeg", "three_gp", "webm"]>;
|
|
200
|
-
source: Schema.Union<[Schema.Struct<{
|
|
201
|
-
bytes: typeof Schema.NonEmptyString;
|
|
202
|
-
}>, Schema.Struct<{
|
|
203
|
-
s3Location: Schema.Struct<{
|
|
204
|
-
uri: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
205
|
-
bucketOwner: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
206
|
-
}>;
|
|
207
|
-
}>]>;
|
|
208
|
-
}>, never, {
|
|
209
|
-
readonly format: "flv" | "mkv" | "mov" | "mp4" | "mpg" | "mpeg" | "three_gp" | "webm";
|
|
210
|
-
} & {
|
|
211
|
-
readonly source: {
|
|
212
|
-
readonly bytes: string;
|
|
213
|
-
} | {
|
|
214
|
-
readonly s3Location: {
|
|
215
|
-
readonly uri: string;
|
|
216
|
-
readonly bucketOwner?: string | undefined;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
}, {}, {}>;
|
|
220
|
-
/**
|
|
221
|
-
* @since 1.0.0
|
|
222
|
-
* @category Schemas
|
|
223
|
-
*/
|
|
224
|
-
export declare class VideoBlock extends VideoBlock_base {
|
|
225
|
-
}
|
|
226
|
-
declare const ToolResultBlock_base: Schema.Class<ToolResultBlock, {
|
|
227
|
-
content: Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
228
|
-
document: typeof DocumentBlock;
|
|
229
|
-
}>, Schema.Struct<{
|
|
230
|
-
image: typeof ImageBlock;
|
|
231
|
-
}>, Schema.Struct<{
|
|
232
|
-
text: typeof Schema.String;
|
|
233
|
-
}>, Schema.Struct<{
|
|
234
|
-
json: typeof JsonBlock;
|
|
235
|
-
}>, Schema.Struct<{
|
|
236
|
-
video: typeof VideoBlock;
|
|
237
|
-
}>]>>;
|
|
238
|
-
toolUseId: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
239
|
-
status: Schema.optional<Schema.Literal<["success", "error"]>>;
|
|
240
|
-
}, Schema.Struct.Encoded<{
|
|
241
|
-
content: Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
242
|
-
document: typeof DocumentBlock;
|
|
243
|
-
}>, Schema.Struct<{
|
|
244
|
-
image: typeof ImageBlock;
|
|
245
|
-
}>, Schema.Struct<{
|
|
246
|
-
text: typeof Schema.String;
|
|
247
|
-
}>, Schema.Struct<{
|
|
248
|
-
json: typeof JsonBlock;
|
|
249
|
-
}>, Schema.Struct<{
|
|
250
|
-
video: typeof VideoBlock;
|
|
251
|
-
}>]>>;
|
|
252
|
-
toolUseId: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
253
|
-
status: Schema.optional<Schema.Literal<["success", "error"]>>;
|
|
254
|
-
}>, never, {
|
|
255
|
-
readonly content: readonly ({
|
|
256
|
-
readonly document: DocumentBlock;
|
|
257
|
-
} | {
|
|
258
|
-
readonly image: ImageBlock;
|
|
259
|
-
} | {
|
|
260
|
-
readonly text: string;
|
|
261
|
-
} | {
|
|
262
|
-
readonly json: JsonBlock;
|
|
263
|
-
} | {
|
|
264
|
-
readonly video: VideoBlock;
|
|
265
|
-
})[];
|
|
266
|
-
} & {
|
|
267
|
-
readonly toolUseId: string;
|
|
268
|
-
} & {
|
|
269
|
-
readonly status?: "success" | "error" | undefined;
|
|
270
|
-
}, {}, {}>;
|
|
271
|
-
/**
|
|
272
|
-
* @since 1.0.0
|
|
273
|
-
* @category Schemas
|
|
274
|
-
*/
|
|
275
|
-
export declare class ToolResultBlock extends ToolResultBlock_base {
|
|
276
|
-
}
|
|
277
|
-
declare const ToolUseBlock_base: Schema.Class<ToolUseBlock, {
|
|
278
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
279
|
-
input: typeof Schema.Unknown;
|
|
280
|
-
toolUseId: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
281
|
-
}, Schema.Struct.Encoded<{
|
|
282
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
283
|
-
input: typeof Schema.Unknown;
|
|
284
|
-
toolUseId: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
285
|
-
}>, never, {
|
|
286
|
-
readonly name: string;
|
|
287
|
-
} & {
|
|
288
|
-
readonly toolUseId: string;
|
|
289
|
-
} & {
|
|
290
|
-
readonly input: unknown;
|
|
291
|
-
}, {}, {}>;
|
|
292
|
-
/**
|
|
293
|
-
* @since 1.0.0
|
|
294
|
-
* @category Schemas
|
|
295
|
-
*/
|
|
296
|
-
export declare class ToolUseBlock extends ToolUseBlock_base {
|
|
297
|
-
}
|
|
298
|
-
declare const ContentBlock_base: Schema.Union<[Schema.SchemaClass<{
|
|
299
|
-
readonly cachePoint: CachePointBlock;
|
|
300
|
-
} & {
|
|
301
|
-
readonly type: "cachePoint";
|
|
302
|
-
}, {
|
|
303
|
-
readonly cachePoint: {
|
|
304
|
-
readonly type: "default";
|
|
305
|
-
};
|
|
306
|
-
}, never>, Schema.SchemaClass<{
|
|
307
|
-
readonly document: DocumentBlock;
|
|
308
|
-
} & {
|
|
309
|
-
readonly type: "document";
|
|
310
|
-
}, {
|
|
311
|
-
readonly document: {
|
|
312
|
-
readonly format: "csv" | "doc" | "docx" | "html" | "md" | "pdf" | "txt" | "xls" | "xlsx";
|
|
313
|
-
readonly name: string;
|
|
314
|
-
readonly source: {
|
|
315
|
-
readonly bytes: string;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
}, never>, Schema.SchemaClass<{
|
|
319
|
-
readonly guardContent: GuardrailConverseImageBlock | GuardrailConverseTextBlock;
|
|
320
|
-
} & {
|
|
321
|
-
readonly type: "guardContent";
|
|
322
|
-
}, {
|
|
323
|
-
readonly guardContent: {
|
|
324
|
-
readonly format: "png" | "jpg";
|
|
325
|
-
readonly source: {
|
|
326
|
-
readonly bytes: string;
|
|
327
|
-
};
|
|
328
|
-
} | {
|
|
329
|
-
readonly text: string;
|
|
330
|
-
readonly qualifiers?: readonly ("guard_content" | "grounding_source" | "query")[] | undefined;
|
|
331
|
-
};
|
|
332
|
-
}, never>, Schema.SchemaClass<{
|
|
333
|
-
readonly image: ImageBlock;
|
|
334
|
-
} & {
|
|
335
|
-
readonly type: "image";
|
|
336
|
-
}, {
|
|
337
|
-
readonly image: {
|
|
338
|
-
readonly format: "png" | "gif" | "jpeg" | "webp";
|
|
339
|
-
readonly source: {
|
|
340
|
-
readonly bytes: string;
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
}, never>, Schema.SchemaClass<{
|
|
344
|
-
readonly reasoningContent: ({
|
|
345
|
-
readonly reasoningText: {
|
|
346
|
-
readonly text: string;
|
|
347
|
-
readonly signature?: string | undefined;
|
|
348
|
-
};
|
|
349
|
-
} & {
|
|
350
|
-
readonly type: "reasoning";
|
|
351
|
-
}) | ({
|
|
352
|
-
readonly redactedContent: string;
|
|
353
|
-
} & {
|
|
354
|
-
readonly type: "redacted-reasoning";
|
|
355
|
-
});
|
|
356
|
-
} & {
|
|
357
|
-
readonly type: "reasoningContent";
|
|
358
|
-
}, {
|
|
359
|
-
readonly reasoningContent: {
|
|
360
|
-
readonly reasoningText: {
|
|
361
|
-
readonly text: string;
|
|
362
|
-
readonly signature?: string | undefined;
|
|
363
|
-
};
|
|
364
|
-
} | {
|
|
365
|
-
readonly redactedContent: string;
|
|
366
|
-
};
|
|
367
|
-
}, never>, Schema.SchemaClass<{
|
|
368
|
-
readonly text: string;
|
|
369
|
-
} & {
|
|
370
|
-
readonly type: "text";
|
|
371
|
-
}, {
|
|
372
|
-
readonly text: string;
|
|
373
|
-
}, never>, Schema.SchemaClass<{
|
|
374
|
-
readonly toolResult: ToolResultBlock;
|
|
375
|
-
} & {
|
|
376
|
-
readonly type: "toolResult";
|
|
377
|
-
}, {
|
|
378
|
-
readonly toolResult: {
|
|
379
|
-
readonly content: readonly ({
|
|
380
|
-
readonly document: {
|
|
381
|
-
readonly format: "csv" | "doc" | "docx" | "html" | "md" | "pdf" | "txt" | "xls" | "xlsx";
|
|
382
|
-
readonly name: string;
|
|
383
|
-
readonly source: {
|
|
384
|
-
readonly bytes: string;
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
} | {
|
|
388
|
-
readonly image: {
|
|
389
|
-
readonly format: "png" | "gif" | "jpeg" | "webp";
|
|
390
|
-
readonly source: {
|
|
391
|
-
readonly bytes: string;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
} | {
|
|
395
|
-
readonly text: string;
|
|
396
|
-
} | {
|
|
397
|
-
readonly json: {
|
|
398
|
-
readonly json: unknown;
|
|
399
|
-
};
|
|
400
|
-
} | {
|
|
401
|
-
readonly video: {
|
|
402
|
-
readonly format: "flv" | "mkv" | "mov" | "mp4" | "mpg" | "mpeg" | "three_gp" | "webm";
|
|
403
|
-
readonly source: {
|
|
404
|
-
readonly bytes: string;
|
|
405
|
-
} | {
|
|
406
|
-
readonly s3Location: {
|
|
407
|
-
readonly uri: string;
|
|
408
|
-
readonly bucketOwner?: string | undefined;
|
|
409
|
-
};
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
})[];
|
|
413
|
-
readonly toolUseId: string;
|
|
414
|
-
readonly status?: "success" | "error" | undefined;
|
|
415
|
-
};
|
|
416
|
-
}, never>, Schema.SchemaClass<{
|
|
417
|
-
readonly toolUse: ToolUseBlock;
|
|
418
|
-
} & {
|
|
419
|
-
readonly type: "toolUse";
|
|
420
|
-
}, {
|
|
421
|
-
readonly toolUse: {
|
|
422
|
-
readonly name: string;
|
|
423
|
-
readonly toolUseId: string;
|
|
424
|
-
readonly input: unknown;
|
|
425
|
-
};
|
|
426
|
-
}, never>, Schema.SchemaClass<{
|
|
427
|
-
readonly video: VideoBlock;
|
|
428
|
-
} & {
|
|
429
|
-
readonly type: "video";
|
|
430
|
-
}, {
|
|
431
|
-
readonly video: {
|
|
432
|
-
readonly format: "flv" | "mkv" | "mov" | "mp4" | "mpg" | "mpeg" | "three_gp" | "webm";
|
|
433
|
-
readonly source: {
|
|
434
|
-
readonly bytes: string;
|
|
435
|
-
} | {
|
|
436
|
-
readonly s3Location: {
|
|
437
|
-
readonly uri: string;
|
|
438
|
-
readonly bucketOwner?: string | undefined;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
}, never>]>;
|
|
443
|
-
/**
|
|
444
|
-
* @since 1.0.0
|
|
445
|
-
* @category Schemas
|
|
446
|
-
*/
|
|
447
|
-
export declare class ContentBlock extends ContentBlock_base {
|
|
448
|
-
}
|
|
449
|
-
declare const Message_base: Schema.Class<Message, {
|
|
450
|
-
role: Schema.Literal<["user", "assistant"]>;
|
|
451
|
-
content: Schema.Array$<typeof ContentBlock>;
|
|
452
|
-
}, Schema.Struct.Encoded<{
|
|
453
|
-
role: Schema.Literal<["user", "assistant"]>;
|
|
454
|
-
content: Schema.Array$<typeof ContentBlock>;
|
|
455
|
-
}>, never, {
|
|
456
|
-
readonly content: readonly (({
|
|
457
|
-
readonly cachePoint: CachePointBlock;
|
|
458
|
-
} & {
|
|
459
|
-
readonly type: "cachePoint";
|
|
460
|
-
}) | ({
|
|
461
|
-
readonly document: DocumentBlock;
|
|
462
|
-
} & {
|
|
463
|
-
readonly type: "document";
|
|
464
|
-
}) | ({
|
|
465
|
-
readonly guardContent: GuardrailConverseImageBlock | GuardrailConverseTextBlock;
|
|
466
|
-
} & {
|
|
467
|
-
readonly type: "guardContent";
|
|
468
|
-
}) | ({
|
|
469
|
-
readonly image: ImageBlock;
|
|
470
|
-
} & {
|
|
471
|
-
readonly type: "image";
|
|
472
|
-
}) | ({
|
|
473
|
-
readonly reasoningContent: ({
|
|
474
|
-
readonly reasoningText: {
|
|
475
|
-
readonly text: string;
|
|
476
|
-
readonly signature?: string | undefined;
|
|
477
|
-
};
|
|
478
|
-
} & {
|
|
479
|
-
readonly type: "reasoning";
|
|
480
|
-
}) | ({
|
|
481
|
-
readonly redactedContent: string;
|
|
482
|
-
} & {
|
|
483
|
-
readonly type: "redacted-reasoning";
|
|
484
|
-
});
|
|
485
|
-
} & {
|
|
486
|
-
readonly type: "reasoningContent";
|
|
487
|
-
}) | ({
|
|
488
|
-
readonly text: string;
|
|
489
|
-
} & {
|
|
490
|
-
readonly type: "text";
|
|
491
|
-
}) | ({
|
|
492
|
-
readonly toolResult: ToolResultBlock;
|
|
493
|
-
} & {
|
|
494
|
-
readonly type: "toolResult";
|
|
495
|
-
}) | ({
|
|
496
|
-
readonly toolUse: ToolUseBlock;
|
|
497
|
-
} & {
|
|
498
|
-
readonly type: "toolUse";
|
|
499
|
-
}) | ({
|
|
500
|
-
readonly video: VideoBlock;
|
|
501
|
-
} & {
|
|
502
|
-
readonly type: "video";
|
|
503
|
-
}))[];
|
|
504
|
-
} & {
|
|
505
|
-
readonly role: "user" | "assistant";
|
|
506
|
-
}, {}, {}>;
|
|
507
|
-
/**
|
|
508
|
-
* @since 1.0.0
|
|
509
|
-
* @category Schemas
|
|
510
|
-
*/
|
|
511
|
-
export declare class Message extends Message_base {
|
|
512
|
-
}
|
|
513
|
-
declare const ConverseOutput_base: Schema.Class<ConverseOutput, {
|
|
514
|
-
message: typeof Message;
|
|
515
|
-
}, Schema.Struct.Encoded<{
|
|
516
|
-
message: typeof Message;
|
|
517
|
-
}>, never, {
|
|
518
|
-
readonly message: Message;
|
|
519
|
-
}, {}, {}>;
|
|
520
|
-
/**
|
|
521
|
-
* @since 1.0.0
|
|
522
|
-
* @category Schemas
|
|
523
|
-
*/
|
|
524
|
-
export declare class ConverseOutput extends ConverseOutput_base {
|
|
525
|
-
}
|
|
526
|
-
declare const ConverseMetrics_base: Schema.Class<ConverseMetrics, {
|
|
527
|
-
latencyMs: typeof Schema.DurationFromMillis;
|
|
528
|
-
}, Schema.Struct.Encoded<{
|
|
529
|
-
latencyMs: typeof Schema.DurationFromMillis;
|
|
530
|
-
}>, never, {
|
|
531
|
-
readonly latencyMs: import("effect/Duration").Duration;
|
|
532
|
-
}, {}, {}>;
|
|
533
|
-
/**
|
|
534
|
-
* @since 1.0.0
|
|
535
|
-
* @category Schemas
|
|
536
|
-
*/
|
|
537
|
-
export declare class ConverseMetrics extends ConverseMetrics_base {
|
|
538
|
-
}
|
|
539
|
-
declare const GuardrailContentFilter_base: Schema.Class<GuardrailContentFilter, {
|
|
540
|
-
type: Schema.Literal<["HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK", "SEXUAL", "VIOLENCE"]>;
|
|
541
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
542
|
-
confidence: Schema.Literal<["NONE", "LOW", "MEDIUM", "HIGH"]>;
|
|
543
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
544
|
-
filterStrength: Schema.optional<Schema.Literal<["NONE", "LOW", "MEDIUM", "HIGH"]>>;
|
|
545
|
-
}, Schema.Struct.Encoded<{
|
|
546
|
-
type: Schema.Literal<["HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK", "SEXUAL", "VIOLENCE"]>;
|
|
547
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
548
|
-
confidence: Schema.Literal<["NONE", "LOW", "MEDIUM", "HIGH"]>;
|
|
549
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
550
|
-
filterStrength: Schema.optional<Schema.Literal<["NONE", "LOW", "MEDIUM", "HIGH"]>>;
|
|
551
|
-
}>, never, {
|
|
552
|
-
readonly type: "HATE" | "INSULTS" | "MISCONDUCT" | "PROMPT_ATTACK" | "SEXUAL" | "VIOLENCE";
|
|
553
|
-
} & {
|
|
554
|
-
readonly action: "BLOCKED" | "NONE";
|
|
555
|
-
} & {
|
|
556
|
-
readonly confidence: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
557
|
-
} & {
|
|
558
|
-
readonly detected?: boolean | undefined;
|
|
559
|
-
} & {
|
|
560
|
-
readonly filterStrength?: "NONE" | "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
561
|
-
}, {}, {}>;
|
|
562
|
-
/**
|
|
563
|
-
* @since 1.0.0
|
|
564
|
-
* @category Schemas
|
|
565
|
-
*/
|
|
566
|
-
export declare class GuardrailContentFilter extends GuardrailContentFilter_base {
|
|
567
|
-
}
|
|
568
|
-
declare const GuardrailContentPolicyAssessment_base: Schema.Class<GuardrailContentPolicyAssessment, {
|
|
569
|
-
filters: Schema.Array$<typeof GuardrailContentFilter>;
|
|
570
|
-
}, Schema.Struct.Encoded<{
|
|
571
|
-
filters: Schema.Array$<typeof GuardrailContentFilter>;
|
|
572
|
-
}>, never, {
|
|
573
|
-
readonly filters: readonly GuardrailContentFilter[];
|
|
574
|
-
}, {}, {}>;
|
|
575
|
-
/**
|
|
576
|
-
* @since 1.0.0
|
|
577
|
-
* @category Schemas
|
|
578
|
-
*/
|
|
579
|
-
export declare class GuardrailContentPolicyAssessment extends GuardrailContentPolicyAssessment_base {
|
|
580
|
-
}
|
|
581
|
-
declare const GuardrailContextualGroundingFilter_base: Schema.Class<GuardrailContextualGroundingFilter, {
|
|
582
|
-
type: Schema.Literal<["GROUNDING", "RELEVANCE"]>;
|
|
583
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
584
|
-
score: Schema.filter<typeof Schema.Number>;
|
|
585
|
-
threshold: Schema.filter<typeof Schema.Number>;
|
|
586
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
587
|
-
}, Schema.Struct.Encoded<{
|
|
588
|
-
type: Schema.Literal<["GROUNDING", "RELEVANCE"]>;
|
|
589
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
590
|
-
score: Schema.filter<typeof Schema.Number>;
|
|
591
|
-
threshold: Schema.filter<typeof Schema.Number>;
|
|
592
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
593
|
-
}>, never, {
|
|
594
|
-
readonly type: "GROUNDING" | "RELEVANCE";
|
|
595
|
-
} & {
|
|
596
|
-
readonly action: "BLOCKED" | "NONE";
|
|
597
|
-
} & {
|
|
598
|
-
readonly detected?: boolean | undefined;
|
|
599
|
-
} & {
|
|
600
|
-
readonly score: number;
|
|
601
|
-
} & {
|
|
602
|
-
readonly threshold: number;
|
|
603
|
-
}, {}, {}>;
|
|
604
|
-
/**
|
|
605
|
-
* @since 1.0.0
|
|
606
|
-
* @category Schemas
|
|
607
|
-
*/
|
|
608
|
-
export declare class GuardrailContextualGroundingFilter extends GuardrailContextualGroundingFilter_base {
|
|
609
|
-
}
|
|
610
|
-
declare const GuardrailContextualGroundingPolicyAssessment_base: Schema.Class<GuardrailContextualGroundingPolicyAssessment, {
|
|
611
|
-
filters: Schema.optional<Schema.Array$<typeof GuardrailContextualGroundingFilter>>;
|
|
612
|
-
}, Schema.Struct.Encoded<{
|
|
613
|
-
filters: Schema.optional<Schema.Array$<typeof GuardrailContextualGroundingFilter>>;
|
|
614
|
-
}>, never, {
|
|
615
|
-
readonly filters?: readonly GuardrailContextualGroundingFilter[] | undefined;
|
|
616
|
-
}, {}, {}>;
|
|
617
|
-
/**
|
|
618
|
-
* @since 1.0.0
|
|
619
|
-
* @category Schemas
|
|
620
|
-
*/
|
|
621
|
-
export declare class GuardrailContextualGroundingPolicyAssessment extends GuardrailContextualGroundingPolicyAssessment_base {
|
|
622
|
-
}
|
|
623
|
-
declare const GuardrailImageCoverage_base: Schema.Class<GuardrailImageCoverage, {
|
|
624
|
-
guarded: Schema.optional<typeof Schema.Int>;
|
|
625
|
-
total: Schema.optional<typeof Schema.Int>;
|
|
626
|
-
}, Schema.Struct.Encoded<{
|
|
627
|
-
guarded: Schema.optional<typeof Schema.Int>;
|
|
628
|
-
total: Schema.optional<typeof Schema.Int>;
|
|
629
|
-
}>, never, {
|
|
630
|
-
readonly guarded?: number | undefined;
|
|
631
|
-
} & {
|
|
632
|
-
readonly total?: number | undefined;
|
|
633
|
-
}, {}, {}>;
|
|
634
|
-
/**
|
|
635
|
-
* @since 1.0.0
|
|
636
|
-
* @category Schemas
|
|
637
|
-
*/
|
|
638
|
-
export declare class GuardrailImageCoverage extends GuardrailImageCoverage_base {
|
|
639
|
-
}
|
|
640
|
-
declare const GuardrailTextCharactersCoverage_base: Schema.Class<GuardrailTextCharactersCoverage, {
|
|
641
|
-
guarded: Schema.optional<typeof Schema.Int>;
|
|
642
|
-
total: Schema.optional<typeof Schema.Int>;
|
|
643
|
-
}, Schema.Struct.Encoded<{
|
|
644
|
-
guarded: Schema.optional<typeof Schema.Int>;
|
|
645
|
-
total: Schema.optional<typeof Schema.Int>;
|
|
646
|
-
}>, never, {
|
|
647
|
-
readonly guarded?: number | undefined;
|
|
648
|
-
} & {
|
|
649
|
-
readonly total?: number | undefined;
|
|
650
|
-
}, {}, {}>;
|
|
651
|
-
/**
|
|
652
|
-
* @since 1.0.0
|
|
653
|
-
* @category Schemas
|
|
654
|
-
*/
|
|
655
|
-
export declare class GuardrailTextCharactersCoverage extends GuardrailTextCharactersCoverage_base {
|
|
656
|
-
}
|
|
657
|
-
declare const GuardrailCoverage_base: Schema.Class<GuardrailCoverage, {
|
|
658
|
-
images: Schema.optional<typeof GuardrailImageCoverage>;
|
|
659
|
-
textCharacters: Schema.optional<typeof GuardrailTextCharactersCoverage>;
|
|
660
|
-
}, Schema.Struct.Encoded<{
|
|
661
|
-
images: Schema.optional<typeof GuardrailImageCoverage>;
|
|
662
|
-
textCharacters: Schema.optional<typeof GuardrailTextCharactersCoverage>;
|
|
663
|
-
}>, never, {
|
|
664
|
-
readonly images?: GuardrailImageCoverage | undefined;
|
|
665
|
-
} & {
|
|
666
|
-
readonly textCharacters?: GuardrailTextCharactersCoverage | undefined;
|
|
667
|
-
}, {}, {}>;
|
|
668
|
-
/**
|
|
669
|
-
* @since 1.0.0
|
|
670
|
-
* @category Schemas
|
|
671
|
-
*/
|
|
672
|
-
export declare class GuardrailCoverage extends GuardrailCoverage_base {
|
|
673
|
-
}
|
|
674
|
-
declare const GuardrailUsage_base: Schema.Class<GuardrailUsage, {
|
|
675
|
-
contentPolicyUnits: typeof Schema.Int;
|
|
676
|
-
contextualGroundingPolicyUnits: typeof Schema.Int;
|
|
677
|
-
sensitiveInformationPolicyFreeUnits: typeof Schema.Int;
|
|
678
|
-
sensitiveInformationPolicyUnits: typeof Schema.Int;
|
|
679
|
-
topicPolicyUnits: typeof Schema.Int;
|
|
680
|
-
wordPolicyUnits: typeof Schema.Int;
|
|
681
|
-
contentPolicyImageUnits: Schema.optional<typeof Schema.Int>;
|
|
682
|
-
}, Schema.Struct.Encoded<{
|
|
683
|
-
contentPolicyUnits: typeof Schema.Int;
|
|
684
|
-
contextualGroundingPolicyUnits: typeof Schema.Int;
|
|
685
|
-
sensitiveInformationPolicyFreeUnits: typeof Schema.Int;
|
|
686
|
-
sensitiveInformationPolicyUnits: typeof Schema.Int;
|
|
687
|
-
topicPolicyUnits: typeof Schema.Int;
|
|
688
|
-
wordPolicyUnits: typeof Schema.Int;
|
|
689
|
-
contentPolicyImageUnits: Schema.optional<typeof Schema.Int>;
|
|
690
|
-
}>, never, {
|
|
691
|
-
readonly contentPolicyUnits: number;
|
|
692
|
-
} & {
|
|
693
|
-
readonly contextualGroundingPolicyUnits: number;
|
|
694
|
-
} & {
|
|
695
|
-
readonly sensitiveInformationPolicyFreeUnits: number;
|
|
696
|
-
} & {
|
|
697
|
-
readonly sensitiveInformationPolicyUnits: number;
|
|
698
|
-
} & {
|
|
699
|
-
readonly topicPolicyUnits: number;
|
|
700
|
-
} & {
|
|
701
|
-
readonly wordPolicyUnits: number;
|
|
702
|
-
} & {
|
|
703
|
-
readonly contentPolicyImageUnits?: number | undefined;
|
|
704
|
-
}, {}, {}>;
|
|
705
|
-
/**
|
|
706
|
-
* @since 1.0.0
|
|
707
|
-
* @category Schemas
|
|
708
|
-
*/
|
|
709
|
-
export declare class GuardrailUsage extends GuardrailUsage_base {
|
|
710
|
-
}
|
|
711
|
-
declare const GuardrailInvocationMetrics_base: Schema.Class<GuardrailInvocationMetrics, {
|
|
712
|
-
guardrailCoverage: Schema.optional<typeof GuardrailCoverage>;
|
|
713
|
-
guardrailProcessingLatency: Schema.optional<typeof Schema.Number>;
|
|
714
|
-
usage: Schema.optional<typeof GuardrailUsage>;
|
|
715
|
-
}, Schema.Struct.Encoded<{
|
|
716
|
-
guardrailCoverage: Schema.optional<typeof GuardrailCoverage>;
|
|
717
|
-
guardrailProcessingLatency: Schema.optional<typeof Schema.Number>;
|
|
718
|
-
usage: Schema.optional<typeof GuardrailUsage>;
|
|
719
|
-
}>, never, {
|
|
720
|
-
readonly guardrailCoverage?: GuardrailCoverage | undefined;
|
|
721
|
-
} & {
|
|
722
|
-
readonly guardrailProcessingLatency?: number | undefined;
|
|
723
|
-
} & {
|
|
724
|
-
readonly usage?: GuardrailUsage | undefined;
|
|
725
|
-
}, {}, {}>;
|
|
726
|
-
/**
|
|
727
|
-
* @since 1.0.0
|
|
728
|
-
* @category Schemas
|
|
729
|
-
*/
|
|
730
|
-
export declare class GuardrailInvocationMetrics extends GuardrailInvocationMetrics_base {
|
|
731
|
-
}
|
|
732
|
-
declare const GuardrailPiiEntityFilter_base: Schema.Class<GuardrailPiiEntityFilter, {
|
|
733
|
-
type: Schema.Literal<["ADDRESS", "AGE", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "DRIVER_ID", "EMAIL", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "IP_ADDRESS", "LICENSE_PLATE", "MAC_ADDRESS", "NAME", "PASSWORD", "PHONE", "PIN", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "URL", "USERNAME", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER"]>;
|
|
734
|
-
action: Schema.Literal<["ANONYMIZED", "BLOCKED", "NONE"]>;
|
|
735
|
-
match: typeof Schema.String;
|
|
736
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
737
|
-
}, Schema.Struct.Encoded<{
|
|
738
|
-
type: Schema.Literal<["ADDRESS", "AGE", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "DRIVER_ID", "EMAIL", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "IP_ADDRESS", "LICENSE_PLATE", "MAC_ADDRESS", "NAME", "PASSWORD", "PHONE", "PIN", "SWIFT_CODE", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", "URL", "USERNAME", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER"]>;
|
|
739
|
-
action: Schema.Literal<["ANONYMIZED", "BLOCKED", "NONE"]>;
|
|
740
|
-
match: typeof Schema.String;
|
|
741
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
742
|
-
}>, never, {
|
|
743
|
-
readonly type: "ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER";
|
|
744
|
-
} & {
|
|
745
|
-
readonly action: "BLOCKED" | "NONE" | "ANONYMIZED";
|
|
746
|
-
} & {
|
|
747
|
-
readonly detected?: boolean | undefined;
|
|
748
|
-
} & {
|
|
749
|
-
readonly match: string;
|
|
750
|
-
}, {}, {}>;
|
|
751
|
-
/**
|
|
752
|
-
* @since 1.0.0
|
|
753
|
-
* @category Schemas
|
|
754
|
-
*/
|
|
755
|
-
export declare class GuardrailPiiEntityFilter extends GuardrailPiiEntityFilter_base {
|
|
756
|
-
}
|
|
757
|
-
declare const GuardrailRegexFilter_base: Schema.Class<GuardrailRegexFilter, {
|
|
758
|
-
action: Schema.Literal<["ANONYMIZED", "BLOCKED", "NONE"]>;
|
|
759
|
-
name: Schema.optional<typeof Schema.String>;
|
|
760
|
-
match: Schema.optional<typeof Schema.String>;
|
|
761
|
-
regex: Schema.optional<typeof Schema.String>;
|
|
762
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
763
|
-
}, Schema.Struct.Encoded<{
|
|
764
|
-
action: Schema.Literal<["ANONYMIZED", "BLOCKED", "NONE"]>;
|
|
765
|
-
name: Schema.optional<typeof Schema.String>;
|
|
766
|
-
match: Schema.optional<typeof Schema.String>;
|
|
767
|
-
regex: Schema.optional<typeof Schema.String>;
|
|
768
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
769
|
-
}>, never, {
|
|
770
|
-
readonly name?: string | undefined;
|
|
771
|
-
} & {
|
|
772
|
-
readonly action: "BLOCKED" | "NONE" | "ANONYMIZED";
|
|
773
|
-
} & {
|
|
774
|
-
readonly detected?: boolean | undefined;
|
|
775
|
-
} & {
|
|
776
|
-
readonly match?: string | undefined;
|
|
777
|
-
} & {
|
|
778
|
-
readonly regex?: string | undefined;
|
|
779
|
-
}, {}, {}>;
|
|
780
|
-
/**
|
|
781
|
-
* @since 1.0.0
|
|
782
|
-
* @category Schemas
|
|
783
|
-
*/
|
|
784
|
-
export declare class GuardrailRegexFilter extends GuardrailRegexFilter_base {
|
|
785
|
-
}
|
|
786
|
-
declare const GuardrailSensitiveInformationPolicyAssessment_base: Schema.Class<GuardrailSensitiveInformationPolicyAssessment, {
|
|
787
|
-
piiEntities: Schema.Array$<typeof GuardrailPiiEntityFilter>;
|
|
788
|
-
regexes: Schema.Array$<typeof GuardrailRegexFilter>;
|
|
789
|
-
}, Schema.Struct.Encoded<{
|
|
790
|
-
piiEntities: Schema.Array$<typeof GuardrailPiiEntityFilter>;
|
|
791
|
-
regexes: Schema.Array$<typeof GuardrailRegexFilter>;
|
|
792
|
-
}>, never, {
|
|
793
|
-
readonly piiEntities: readonly GuardrailPiiEntityFilter[];
|
|
794
|
-
} & {
|
|
795
|
-
readonly regexes: readonly GuardrailRegexFilter[];
|
|
796
|
-
}, {}, {}>;
|
|
797
|
-
/**
|
|
798
|
-
* @since 1.0.0
|
|
799
|
-
* @category Schemas
|
|
800
|
-
*/
|
|
801
|
-
export declare class GuardrailSensitiveInformationPolicyAssessment extends GuardrailSensitiveInformationPolicyAssessment_base {
|
|
802
|
-
}
|
|
803
|
-
declare const GuardrailTopic_base: Schema.Class<GuardrailTopic, {
|
|
804
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
805
|
-
name: typeof Schema.String;
|
|
806
|
-
type: Schema.Literal<["DENY"]>;
|
|
807
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
808
|
-
}, Schema.Struct.Encoded<{
|
|
809
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
810
|
-
name: typeof Schema.String;
|
|
811
|
-
type: Schema.Literal<["DENY"]>;
|
|
812
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
813
|
-
}>, never, {
|
|
814
|
-
readonly type: "DENY";
|
|
815
|
-
} & {
|
|
816
|
-
readonly name: string;
|
|
817
|
-
} & {
|
|
818
|
-
readonly action: "BLOCKED" | "NONE";
|
|
819
|
-
} & {
|
|
820
|
-
readonly detected?: boolean | undefined;
|
|
821
|
-
}, {}, {}>;
|
|
822
|
-
/**
|
|
823
|
-
* @since 1.0.0
|
|
824
|
-
* @category Schemas
|
|
825
|
-
*/
|
|
826
|
-
export declare class GuardrailTopic extends GuardrailTopic_base {
|
|
827
|
-
}
|
|
828
|
-
declare const GuardrailTopicPolicyAssessment_base: Schema.Class<GuardrailTopicPolicyAssessment, {
|
|
829
|
-
topics: Schema.Array$<typeof GuardrailTopic>;
|
|
830
|
-
}, Schema.Struct.Encoded<{
|
|
831
|
-
topics: Schema.Array$<typeof GuardrailTopic>;
|
|
832
|
-
}>, never, {
|
|
833
|
-
readonly topics: readonly GuardrailTopic[];
|
|
834
|
-
}, {}, {}>;
|
|
835
|
-
/**
|
|
836
|
-
* @since 1.0.0
|
|
837
|
-
* @category Schemas
|
|
838
|
-
*/
|
|
839
|
-
export declare class GuardrailTopicPolicyAssessment extends GuardrailTopicPolicyAssessment_base {
|
|
840
|
-
}
|
|
841
|
-
declare const GuardrailCustomWord_base: Schema.Class<GuardrailCustomWord, {
|
|
842
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
843
|
-
match: typeof Schema.String;
|
|
844
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
845
|
-
}, Schema.Struct.Encoded<{
|
|
846
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
847
|
-
match: typeof Schema.String;
|
|
848
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
849
|
-
}>, never, {
|
|
850
|
-
readonly action: "BLOCKED" | "NONE";
|
|
851
|
-
} & {
|
|
852
|
-
readonly detected?: boolean | undefined;
|
|
853
|
-
} & {
|
|
854
|
-
readonly match: string;
|
|
855
|
-
}, {}, {}>;
|
|
856
|
-
/**
|
|
857
|
-
* @since 1.0.0
|
|
858
|
-
* @category Schemas
|
|
859
|
-
*/
|
|
860
|
-
export declare class GuardrailCustomWord extends GuardrailCustomWord_base {
|
|
861
|
-
}
|
|
862
|
-
declare const GuardrailManagedWord_base: Schema.Class<GuardrailManagedWord, {
|
|
863
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
864
|
-
match: typeof Schema.String;
|
|
865
|
-
type: Schema.Literal<["PROFANITY"]>;
|
|
866
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
867
|
-
}, Schema.Struct.Encoded<{
|
|
868
|
-
action: Schema.Literal<["BLOCKED", "NONE"]>;
|
|
869
|
-
match: typeof Schema.String;
|
|
870
|
-
type: Schema.Literal<["PROFANITY"]>;
|
|
871
|
-
detected: Schema.optional<typeof Schema.Boolean>;
|
|
872
|
-
}>, never, {
|
|
873
|
-
readonly type: "PROFANITY";
|
|
874
|
-
} & {
|
|
875
|
-
readonly action: "BLOCKED" | "NONE";
|
|
876
|
-
} & {
|
|
877
|
-
readonly detected?: boolean | undefined;
|
|
878
|
-
} & {
|
|
879
|
-
readonly match: string;
|
|
880
|
-
}, {}, {}>;
|
|
881
|
-
/**
|
|
882
|
-
* @since 1.0.0
|
|
883
|
-
* @category Schemas
|
|
884
|
-
*/
|
|
885
|
-
export declare class GuardrailManagedWord extends GuardrailManagedWord_base {
|
|
886
|
-
}
|
|
887
|
-
declare const GuardrailWordPolicyAssessment_base: Schema.Class<GuardrailWordPolicyAssessment, {
|
|
888
|
-
customWords: typeof GuardrailCustomWord;
|
|
889
|
-
managedWordLists: typeof GuardrailManagedWord;
|
|
890
|
-
}, Schema.Struct.Encoded<{
|
|
891
|
-
customWords: typeof GuardrailCustomWord;
|
|
892
|
-
managedWordLists: typeof GuardrailManagedWord;
|
|
893
|
-
}>, never, {
|
|
894
|
-
readonly customWords: GuardrailCustomWord;
|
|
895
|
-
} & {
|
|
896
|
-
readonly managedWordLists: GuardrailManagedWord;
|
|
897
|
-
}, {}, {}>;
|
|
898
|
-
/**
|
|
899
|
-
* @since 1.0.0
|
|
900
|
-
* @category Schemas
|
|
901
|
-
*/
|
|
902
|
-
export declare class GuardrailWordPolicyAssessment extends GuardrailWordPolicyAssessment_base {
|
|
903
|
-
}
|
|
904
|
-
declare const GuardrailAssessment_base: Schema.Class<GuardrailAssessment, {
|
|
905
|
-
contentPolicy: Schema.optional<typeof GuardrailContentPolicyAssessment>;
|
|
906
|
-
contextualGroundingPolicy: Schema.optional<typeof GuardrailContextualGroundingPolicyAssessment>;
|
|
907
|
-
invocationMetrics: Schema.optional<typeof GuardrailInvocationMetrics>;
|
|
908
|
-
sensitiveInformationPolicy: Schema.optional<typeof GuardrailSensitiveInformationPolicyAssessment>;
|
|
909
|
-
topicPolicy: Schema.optional<typeof GuardrailTopicPolicyAssessment>;
|
|
910
|
-
wordPolicy: Schema.optional<typeof GuardrailWordPolicyAssessment>;
|
|
911
|
-
}, Schema.Struct.Encoded<{
|
|
912
|
-
contentPolicy: Schema.optional<typeof GuardrailContentPolicyAssessment>;
|
|
913
|
-
contextualGroundingPolicy: Schema.optional<typeof GuardrailContextualGroundingPolicyAssessment>;
|
|
914
|
-
invocationMetrics: Schema.optional<typeof GuardrailInvocationMetrics>;
|
|
915
|
-
sensitiveInformationPolicy: Schema.optional<typeof GuardrailSensitiveInformationPolicyAssessment>;
|
|
916
|
-
topicPolicy: Schema.optional<typeof GuardrailTopicPolicyAssessment>;
|
|
917
|
-
wordPolicy: Schema.optional<typeof GuardrailWordPolicyAssessment>;
|
|
918
|
-
}>, never, {
|
|
919
|
-
readonly contentPolicy?: GuardrailContentPolicyAssessment | undefined;
|
|
920
|
-
} & {
|
|
921
|
-
readonly contextualGroundingPolicy?: GuardrailContextualGroundingPolicyAssessment | undefined;
|
|
922
|
-
} & {
|
|
923
|
-
readonly invocationMetrics?: GuardrailInvocationMetrics | undefined;
|
|
924
|
-
} & {
|
|
925
|
-
readonly sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicyAssessment | undefined;
|
|
926
|
-
} & {
|
|
927
|
-
readonly topicPolicy?: GuardrailTopicPolicyAssessment | undefined;
|
|
928
|
-
} & {
|
|
929
|
-
readonly wordPolicy?: GuardrailWordPolicyAssessment | undefined;
|
|
930
|
-
}, {}, {}>;
|
|
931
|
-
/**
|
|
932
|
-
* @since 1.0.0
|
|
933
|
-
* @category Schemas
|
|
934
|
-
*/
|
|
935
|
-
export declare class GuardrailAssessment extends GuardrailAssessment_base {
|
|
936
|
-
}
|
|
937
|
-
declare const GuardrailTraceAssessment_base: Schema.Class<GuardrailTraceAssessment, {
|
|
938
|
-
actionReason: Schema.optional<typeof Schema.String>;
|
|
939
|
-
inputAssessment: Schema.optional<Schema.Record$<typeof Schema.String, typeof GuardrailAssessment>>;
|
|
940
|
-
modelOutput: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
941
|
-
outputAssessments: Schema.optional<Schema.Record$<typeof Schema.String, typeof GuardrailAssessment>>;
|
|
942
|
-
}, Schema.Struct.Encoded<{
|
|
943
|
-
actionReason: Schema.optional<typeof Schema.String>;
|
|
944
|
-
inputAssessment: Schema.optional<Schema.Record$<typeof Schema.String, typeof GuardrailAssessment>>;
|
|
945
|
-
modelOutput: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
946
|
-
outputAssessments: Schema.optional<Schema.Record$<typeof Schema.String, typeof GuardrailAssessment>>;
|
|
947
|
-
}>, never, {
|
|
948
|
-
readonly actionReason?: string | undefined;
|
|
949
|
-
} & {
|
|
950
|
-
readonly inputAssessment?: {
|
|
951
|
-
readonly [x: string]: GuardrailAssessment;
|
|
952
|
-
} | undefined;
|
|
953
|
-
} & {
|
|
954
|
-
readonly modelOutput?: readonly string[] | undefined;
|
|
955
|
-
} & {
|
|
956
|
-
readonly outputAssessments?: {
|
|
957
|
-
readonly [x: string]: GuardrailAssessment;
|
|
958
|
-
} | undefined;
|
|
959
|
-
}, {}, {}>;
|
|
960
|
-
/**
|
|
961
|
-
* @since 1.0.0
|
|
962
|
-
* @category Schemas
|
|
963
|
-
*/
|
|
964
|
-
export declare class GuardrailTraceAssessment extends GuardrailTraceAssessment_base {
|
|
965
|
-
}
|
|
966
|
-
declare const PromptRouterTrace_base: Schema.Class<PromptRouterTrace, {
|
|
967
|
-
invokedModelId: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
968
|
-
}, Schema.Struct.Encoded<{
|
|
969
|
-
invokedModelId: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
970
|
-
}>, never, {
|
|
971
|
-
readonly invokedModelId?: string | undefined;
|
|
972
|
-
}, {}, {}>;
|
|
973
|
-
/**
|
|
974
|
-
* @since 1.0.0
|
|
975
|
-
* @category Schemas
|
|
976
|
-
*/
|
|
977
|
-
export declare class PromptRouterTrace extends PromptRouterTrace_base {
|
|
978
|
-
}
|
|
979
|
-
declare const ConverseTrace_base: Schema.Class<ConverseTrace, {
|
|
980
|
-
guardrail: Schema.optional<typeof GuardrailTraceAssessment>;
|
|
981
|
-
promptRouter: Schema.optional<typeof PromptRouterTrace>;
|
|
982
|
-
}, Schema.Struct.Encoded<{
|
|
983
|
-
guardrail: Schema.optional<typeof GuardrailTraceAssessment>;
|
|
984
|
-
promptRouter: Schema.optional<typeof PromptRouterTrace>;
|
|
985
|
-
}>, never, {
|
|
986
|
-
readonly guardrail?: GuardrailTraceAssessment | undefined;
|
|
987
|
-
} & {
|
|
988
|
-
readonly promptRouter?: PromptRouterTrace | undefined;
|
|
989
|
-
}, {}, {}>;
|
|
990
|
-
/**
|
|
991
|
-
* @since 1.0.0
|
|
992
|
-
* @category Schemas
|
|
993
|
-
*/
|
|
994
|
-
export declare class ConverseTrace extends ConverseTrace_base {
|
|
995
|
-
}
|
|
996
|
-
/**
|
|
997
|
-
* @since 1.0.0
|
|
998
|
-
* @category Schemas
|
|
999
|
-
*/
|
|
1000
|
-
export declare const IntZeroOrGreater: Schema.filter<typeof Schema.Int>;
|
|
1001
|
-
declare const TokenUsage_base: Schema.Class<TokenUsage, {
|
|
1002
|
-
inputTokens: Schema.filter<typeof Schema.Int>;
|
|
1003
|
-
outputTokens: Schema.filter<typeof Schema.Int>;
|
|
1004
|
-
totalTokens: Schema.filter<typeof Schema.Int>;
|
|
1005
|
-
cacheReadInputTokens: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
1006
|
-
cacheWriteInputTokens: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
1007
|
-
}, Schema.Struct.Encoded<{
|
|
1008
|
-
inputTokens: Schema.filter<typeof Schema.Int>;
|
|
1009
|
-
outputTokens: Schema.filter<typeof Schema.Int>;
|
|
1010
|
-
totalTokens: Schema.filter<typeof Schema.Int>;
|
|
1011
|
-
cacheReadInputTokens: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
1012
|
-
cacheWriteInputTokens: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
1013
|
-
}>, never, {
|
|
1014
|
-
readonly inputTokens: number;
|
|
1015
|
-
} & {
|
|
1016
|
-
readonly outputTokens: number;
|
|
1017
|
-
} & {
|
|
1018
|
-
readonly totalTokens: number;
|
|
1019
|
-
} & {
|
|
1020
|
-
readonly cacheReadInputTokens?: number | undefined;
|
|
1021
|
-
} & {
|
|
1022
|
-
readonly cacheWriteInputTokens?: number | undefined;
|
|
1023
|
-
}, {}, {}>;
|
|
1024
|
-
/**
|
|
1025
|
-
* @since 1.0.0
|
|
1026
|
-
* @category Schemas
|
|
1027
|
-
*/
|
|
1028
|
-
export declare class TokenUsage extends TokenUsage_base {
|
|
1029
|
-
}
|
|
1030
|
-
declare const SystemContentBlock_base: Schema.Union<[Schema.Struct<{
|
|
1031
|
-
cachePoint: typeof CachePointBlock;
|
|
1032
|
-
}>, Schema.Struct<{
|
|
1033
|
-
guardContent: typeof GuardrailConverseContentBlock;
|
|
1034
|
-
}>, Schema.Struct<{
|
|
1035
|
-
text: Schema.filter<typeof Schema.String>;
|
|
1036
|
-
}>]>;
|
|
1037
|
-
/**
|
|
1038
|
-
* @since 1.0.0
|
|
1039
|
-
* @category Schemas
|
|
1040
|
-
*/
|
|
1041
|
-
export declare class SystemContentBlock extends SystemContentBlock_base {
|
|
1042
|
-
}
|
|
1043
|
-
declare const GuardrailConfiguration_base: Schema.Class<GuardrailConfiguration, {
|
|
1044
|
-
guardrailIdentifier: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1045
|
-
guardrailVersion: Schema.filter<typeof Schema.String>;
|
|
1046
|
-
trace: Schema.optional<Schema.Literal<["enabled", "disabled", "enabled_full"]>>;
|
|
1047
|
-
}, Schema.Struct.Encoded<{
|
|
1048
|
-
guardrailIdentifier: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1049
|
-
guardrailVersion: Schema.filter<typeof Schema.String>;
|
|
1050
|
-
trace: Schema.optional<Schema.Literal<["enabled", "disabled", "enabled_full"]>>;
|
|
1051
|
-
}>, never, {
|
|
1052
|
-
readonly guardrailIdentifier: string;
|
|
1053
|
-
} & {
|
|
1054
|
-
readonly guardrailVersion: string;
|
|
1055
|
-
} & {
|
|
1056
|
-
readonly trace?: "enabled" | "disabled" | "enabled_full" | undefined;
|
|
1057
|
-
}, {}, {}>;
|
|
1058
|
-
/**
|
|
1059
|
-
* @since 1.0.0
|
|
1060
|
-
* @category Schemas
|
|
1061
|
-
*/
|
|
1062
|
-
export declare class GuardrailConfiguration extends GuardrailConfiguration_base {
|
|
1063
|
-
}
|
|
1064
|
-
declare const InferenceConfiguration_base: Schema.Class<InferenceConfiguration, {
|
|
1065
|
-
maxTokens: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
1066
|
-
stopSequences: Schema.optional<Schema.filter<Schema.Array$<Schema.filter<typeof Schema.String>>>>;
|
|
1067
|
-
temperature: Schema.optional<Schema.filter<typeof Schema.Number>>;
|
|
1068
|
-
topP: Schema.optional<Schema.filter<typeof Schema.Number>>;
|
|
1069
|
-
}, Schema.Struct.Encoded<{
|
|
1070
|
-
maxTokens: Schema.optional<Schema.filter<typeof Schema.Int>>;
|
|
1071
|
-
stopSequences: Schema.optional<Schema.filter<Schema.Array$<Schema.filter<typeof Schema.String>>>>;
|
|
1072
|
-
temperature: Schema.optional<Schema.filter<typeof Schema.Number>>;
|
|
1073
|
-
topP: Schema.optional<Schema.filter<typeof Schema.Number>>;
|
|
1074
|
-
}>, never, {
|
|
1075
|
-
readonly maxTokens?: number | undefined;
|
|
1076
|
-
} & {
|
|
1077
|
-
readonly stopSequences?: readonly string[] | undefined;
|
|
1078
|
-
} & {
|
|
1079
|
-
readonly temperature?: number | undefined;
|
|
1080
|
-
} & {
|
|
1081
|
-
readonly topP?: number | undefined;
|
|
1082
|
-
}, {}, {}>;
|
|
1083
|
-
/**
|
|
1084
|
-
* @since 1.0.0
|
|
1085
|
-
* @category Schemas
|
|
1086
|
-
*/
|
|
1087
|
-
export declare class InferenceConfiguration extends InferenceConfiguration_base {
|
|
1088
|
-
}
|
|
1089
|
-
declare const PerformanceConfiguration_base: Schema.Class<PerformanceConfiguration, {
|
|
1090
|
-
latency: Schema.optional<Schema.Literal<["standard", "optimized"]>>;
|
|
1091
|
-
}, Schema.Struct.Encoded<{
|
|
1092
|
-
latency: Schema.optional<Schema.Literal<["standard", "optimized"]>>;
|
|
1093
|
-
}>, never, {
|
|
1094
|
-
readonly latency?: "standard" | "optimized" | undefined;
|
|
1095
|
-
}, {}, {}>;
|
|
1096
|
-
/**
|
|
1097
|
-
* @since 1.0.0
|
|
1098
|
-
* @category Schemas
|
|
1099
|
-
*/
|
|
1100
|
-
export declare class PerformanceConfiguration extends PerformanceConfiguration_base {
|
|
1101
|
-
}
|
|
1102
|
-
declare const ToolSpecification_base: Schema.Class<ToolSpecification, {
|
|
1103
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1104
|
-
inputSchema: Schema.Struct<{
|
|
1105
|
-
json: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1106
|
-
}>;
|
|
1107
|
-
description: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
1108
|
-
}, Schema.Struct.Encoded<{
|
|
1109
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1110
|
-
inputSchema: Schema.Struct<{
|
|
1111
|
-
json: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
1112
|
-
}>;
|
|
1113
|
-
description: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
1114
|
-
}>, never, {
|
|
1115
|
-
readonly name: string;
|
|
1116
|
-
} & {
|
|
1117
|
-
readonly inputSchema: {
|
|
1118
|
-
readonly json: {
|
|
1119
|
-
readonly [x: string]: unknown;
|
|
1120
|
-
};
|
|
1121
|
-
};
|
|
1122
|
-
} & {
|
|
1123
|
-
readonly description?: string | undefined;
|
|
1124
|
-
}, {}, {}>;
|
|
1125
|
-
/**
|
|
1126
|
-
* @since 1.0.0
|
|
1127
|
-
* @category Schemas
|
|
1128
|
-
*/
|
|
1129
|
-
export declare class ToolSpecification extends ToolSpecification_base {
|
|
1130
|
-
}
|
|
1131
|
-
declare const Tool_base: Schema.Class<Tool, {
|
|
1132
|
-
cachePoint: Schema.optional<typeof CachePointBlock>;
|
|
1133
|
-
toolSpec: Schema.optional<typeof ToolSpecification>;
|
|
1134
|
-
}, Schema.Struct.Encoded<{
|
|
1135
|
-
cachePoint: Schema.optional<typeof CachePointBlock>;
|
|
1136
|
-
toolSpec: Schema.optional<typeof ToolSpecification>;
|
|
1137
|
-
}>, never, {
|
|
1138
|
-
readonly cachePoint?: CachePointBlock | undefined;
|
|
1139
|
-
} & {
|
|
1140
|
-
readonly toolSpec?: ToolSpecification | undefined;
|
|
1141
|
-
}, {}, {}>;
|
|
1142
|
-
/**
|
|
1143
|
-
* @since 1.0.0
|
|
1144
|
-
* @category Schemas
|
|
1145
|
-
*/
|
|
1146
|
-
export declare class Tool extends Tool_base {
|
|
1147
|
-
}
|
|
1148
|
-
declare const ToolChoice_base: Schema.Union<[Schema.Struct<{
|
|
1149
|
-
any: Schema.Struct<{}>;
|
|
1150
|
-
}>, Schema.Struct<{
|
|
1151
|
-
auto: Schema.Struct<{}>;
|
|
1152
|
-
}>, Schema.Struct<{
|
|
1153
|
-
tool: Schema.Struct<{
|
|
1154
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1155
|
-
}>;
|
|
1156
|
-
}>]>;
|
|
1157
|
-
/**
|
|
1158
|
-
* @since 1.0.0
|
|
1159
|
-
* @category Schemas
|
|
1160
|
-
*/
|
|
1161
|
-
export declare class ToolChoice extends ToolChoice_base {
|
|
1162
|
-
}
|
|
1163
|
-
declare const ToolConfiguration_base: Schema.Class<ToolConfiguration, {
|
|
1164
|
-
tools: Schema.filter<Schema.Array$<typeof Tool>>;
|
|
1165
|
-
toolChoice: Schema.optional<typeof ToolChoice>;
|
|
1166
|
-
}, Schema.Struct.Encoded<{
|
|
1167
|
-
tools: Schema.filter<Schema.Array$<typeof Tool>>;
|
|
1168
|
-
toolChoice: Schema.optional<typeof ToolChoice>;
|
|
1169
|
-
}>, never, {
|
|
1170
|
-
readonly tools: readonly Tool[];
|
|
1171
|
-
} & {
|
|
1172
|
-
readonly toolChoice?: {
|
|
1173
|
-
readonly any: {};
|
|
1174
|
-
} | {
|
|
1175
|
-
readonly auto: {};
|
|
1176
|
-
} | {
|
|
1177
|
-
readonly tool: {
|
|
1178
|
-
readonly name: string;
|
|
1179
|
-
};
|
|
1180
|
-
} | undefined;
|
|
1181
|
-
}, {}, {}>;
|
|
1182
|
-
/**
|
|
1183
|
-
* @since 1.0.0
|
|
1184
|
-
* @category Schemas
|
|
1185
|
-
*/
|
|
1186
|
-
export declare class ToolConfiguration extends ToolConfiguration_base {
|
|
1187
|
-
}
|
|
1188
|
-
declare const ConverseRequest_base: Schema.Class<ConverseRequest, {
|
|
1189
|
-
modelId: typeof Schema.String;
|
|
1190
|
-
messages: Schema.Array$<typeof Message>;
|
|
1191
|
-
system: Schema.optional<Schema.Array$<typeof SystemContentBlock>>;
|
|
1192
|
-
toolConfig: Schema.optional<typeof ToolConfiguration>;
|
|
1193
|
-
guardrailConfig: Schema.optional<typeof GuardrailConfiguration>;
|
|
1194
|
-
inferenceConfig: Schema.optional<typeof InferenceConfiguration>;
|
|
1195
|
-
performanceConfig: Schema.optional<typeof PerformanceConfiguration>;
|
|
1196
|
-
promptVariables: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Struct<{
|
|
1197
|
-
text: typeof Schema.String;
|
|
1198
|
-
}>>>;
|
|
1199
|
-
requestMetadata: Schema.optional<Schema.Record$<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>, Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
|
|
1200
|
-
additionalModelRequestFields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
1201
|
-
additionalModelResponseFieldPaths: Schema.optional<Schema.filter<Schema.Array$<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
|
|
1202
|
-
}, Schema.Struct.Encoded<{
|
|
1203
|
-
modelId: typeof Schema.String;
|
|
1204
|
-
messages: Schema.Array$<typeof Message>;
|
|
1205
|
-
system: Schema.optional<Schema.Array$<typeof SystemContentBlock>>;
|
|
1206
|
-
toolConfig: Schema.optional<typeof ToolConfiguration>;
|
|
1207
|
-
guardrailConfig: Schema.optional<typeof GuardrailConfiguration>;
|
|
1208
|
-
inferenceConfig: Schema.optional<typeof InferenceConfiguration>;
|
|
1209
|
-
performanceConfig: Schema.optional<typeof PerformanceConfiguration>;
|
|
1210
|
-
promptVariables: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Struct<{
|
|
1211
|
-
text: typeof Schema.String;
|
|
1212
|
-
}>>>;
|
|
1213
|
-
requestMetadata: Schema.optional<Schema.Record$<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>, Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
|
|
1214
|
-
additionalModelRequestFields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
1215
|
-
additionalModelResponseFieldPaths: Schema.optional<Schema.filter<Schema.Array$<Schema.filter<Schema.filter<typeof Schema.String>>>>>;
|
|
1216
|
-
}>, never, {
|
|
1217
|
-
readonly modelId: string;
|
|
1218
|
-
} & {
|
|
1219
|
-
readonly messages: readonly Message[];
|
|
1220
|
-
} & {
|
|
1221
|
-
readonly system?: readonly ({
|
|
1222
|
-
readonly cachePoint: CachePointBlock;
|
|
1223
|
-
} | {
|
|
1224
|
-
readonly guardContent: GuardrailConverseImageBlock | GuardrailConverseTextBlock;
|
|
1225
|
-
} | {
|
|
1226
|
-
readonly text: string;
|
|
1227
|
-
})[] | undefined;
|
|
1228
|
-
} & {
|
|
1229
|
-
readonly toolConfig?: ToolConfiguration | undefined;
|
|
1230
|
-
} & {
|
|
1231
|
-
readonly guardrailConfig?: GuardrailConfiguration | undefined;
|
|
1232
|
-
} & {
|
|
1233
|
-
readonly inferenceConfig?: InferenceConfiguration | undefined;
|
|
1234
|
-
} & {
|
|
1235
|
-
readonly performanceConfig?: PerformanceConfiguration | undefined;
|
|
1236
|
-
} & {
|
|
1237
|
-
readonly promptVariables?: {
|
|
1238
|
-
readonly [x: string]: {
|
|
1239
|
-
readonly text: string;
|
|
1240
|
-
};
|
|
1241
|
-
} | undefined;
|
|
1242
|
-
} & {
|
|
1243
|
-
readonly requestMetadata?: {
|
|
1244
|
-
readonly [x: string]: string;
|
|
1245
|
-
} | undefined;
|
|
1246
|
-
} & {
|
|
1247
|
-
readonly additionalModelRequestFields?: {
|
|
1248
|
-
readonly [x: string]: unknown;
|
|
1249
|
-
} | undefined;
|
|
1250
|
-
} & {
|
|
1251
|
-
readonly additionalModelResponseFieldPaths?: readonly string[] | undefined;
|
|
1252
|
-
}, {}, {}>;
|
|
1253
|
-
/**
|
|
1254
|
-
* @since 1.0.0
|
|
1255
|
-
* @category Schemas
|
|
1256
|
-
*/
|
|
1257
|
-
export declare class ConverseRequest extends ConverseRequest_base {
|
|
1258
|
-
}
|
|
1259
|
-
declare const ConverseResponse_base: Schema.Class<ConverseResponse, {
|
|
1260
|
-
output: typeof ConverseOutput;
|
|
1261
|
-
metrics: typeof ConverseMetrics;
|
|
1262
|
-
usage: typeof TokenUsage;
|
|
1263
|
-
stopReason: Schema.Literal<["content_filtered", "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened"]>;
|
|
1264
|
-
trace: Schema.optional<typeof ConverseTrace>;
|
|
1265
|
-
performanceConfig: Schema.optional<Schema.Struct<{
|
|
1266
|
-
latency: Schema.Literal<["standard", "optimized"]>;
|
|
1267
|
-
}>>;
|
|
1268
|
-
additionalModelResponseFields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
1269
|
-
}, Schema.Struct.Encoded<{
|
|
1270
|
-
output: typeof ConverseOutput;
|
|
1271
|
-
metrics: typeof ConverseMetrics;
|
|
1272
|
-
usage: typeof TokenUsage;
|
|
1273
|
-
stopReason: Schema.Literal<["content_filtered", "end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened"]>;
|
|
1274
|
-
trace: Schema.optional<typeof ConverseTrace>;
|
|
1275
|
-
performanceConfig: Schema.optional<Schema.Struct<{
|
|
1276
|
-
latency: Schema.Literal<["standard", "optimized"]>;
|
|
1277
|
-
}>>;
|
|
1278
|
-
additionalModelResponseFields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
1279
|
-
}>, never, {
|
|
1280
|
-
readonly usage: TokenUsage;
|
|
1281
|
-
} & {
|
|
1282
|
-
readonly trace?: ConverseTrace | undefined;
|
|
1283
|
-
} & {
|
|
1284
|
-
readonly performanceConfig?: {
|
|
1285
|
-
readonly latency: "standard" | "optimized";
|
|
1286
|
-
} | undefined;
|
|
1287
|
-
} & {
|
|
1288
|
-
readonly output: ConverseOutput;
|
|
1289
|
-
} & {
|
|
1290
|
-
readonly metrics: ConverseMetrics;
|
|
1291
|
-
} & {
|
|
1292
|
-
readonly stopReason: "content_filtered" | "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened";
|
|
1293
|
-
} & {
|
|
1294
|
-
readonly additionalModelResponseFields?: {
|
|
1295
|
-
readonly [x: string]: unknown;
|
|
1296
|
-
} | undefined;
|
|
1297
|
-
}, {}, {}>;
|
|
1298
|
-
/**
|
|
1299
|
-
* @since 1.0.0
|
|
1300
|
-
* @category Schemas
|
|
1301
|
-
*/
|
|
1302
|
-
export declare class ConverseResponse extends ConverseResponse_base {
|
|
1303
|
-
}
|
|
1304
|
-
declare const ReasoningContentBlockDelta_base: Schema.Union<[Schema.Struct<{
|
|
1305
|
-
redactedContent: typeof Schema.String;
|
|
1306
|
-
}>, Schema.Struct<{
|
|
1307
|
-
signature: typeof Schema.String;
|
|
1308
|
-
}>, Schema.Struct<{
|
|
1309
|
-
text: typeof Schema.String;
|
|
1310
|
-
}>]>;
|
|
1311
|
-
/**
|
|
1312
|
-
* @since 1.0.0
|
|
1313
|
-
* @category Schemas
|
|
1314
|
-
*/
|
|
1315
|
-
export declare class ReasoningContentBlockDelta extends ReasoningContentBlockDelta_base {
|
|
1316
|
-
}
|
|
1317
|
-
declare const ToolUseBlockStart_base: Schema.Class<ToolUseBlockStart, {
|
|
1318
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1319
|
-
toolUseId: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1320
|
-
}, Schema.Struct.Encoded<{
|
|
1321
|
-
name: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1322
|
-
toolUseId: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
1323
|
-
}>, never, {
|
|
1324
|
-
readonly name: string;
|
|
1325
|
-
} & {
|
|
1326
|
-
readonly toolUseId: string;
|
|
1327
|
-
}, {}, {}>;
|
|
1328
|
-
/**
|
|
1329
|
-
* @since 1.0.0
|
|
1330
|
-
* @category Schemas
|
|
1331
|
-
*/
|
|
1332
|
-
export declare class ToolUseBlockStart extends ToolUseBlockStart_base {
|
|
1333
|
-
}
|
|
1334
|
-
declare const ContentBlockStart_base: Schema.Class<ContentBlockStart, {
|
|
1335
|
-
toolUse: Schema.optional<typeof ToolUseBlockStart>;
|
|
1336
|
-
}, Schema.Struct.Encoded<{
|
|
1337
|
-
toolUse: Schema.optional<typeof ToolUseBlockStart>;
|
|
1338
|
-
}>, never, {
|
|
1339
|
-
readonly toolUse?: ToolUseBlockStart | undefined;
|
|
1340
|
-
}, {}, {}>;
|
|
1341
|
-
/**
|
|
1342
|
-
* @since 1.0.0
|
|
1343
|
-
* @category Schemas
|
|
1344
|
-
*/
|
|
1345
|
-
export declare class ContentBlockStart extends ContentBlockStart_base {
|
|
1346
|
-
}
|
|
1347
|
-
declare const ContentBlockStartEvent_base: Schema.Class<ContentBlockStartEvent, {
|
|
1348
|
-
contentBlockIndex: Schema.filter<typeof Schema.Int>;
|
|
1349
|
-
start: typeof ContentBlockStart;
|
|
1350
|
-
}, Schema.Struct.Encoded<{
|
|
1351
|
-
contentBlockIndex: Schema.filter<typeof Schema.Int>;
|
|
1352
|
-
start: typeof ContentBlockStart;
|
|
1353
|
-
}>, never, {
|
|
1354
|
-
readonly start: ContentBlockStart;
|
|
1355
|
-
} & {
|
|
1356
|
-
readonly contentBlockIndex: number;
|
|
1357
|
-
}, {}, {}>;
|
|
1358
|
-
/**
|
|
1359
|
-
* @since 1.0.0
|
|
1360
|
-
* @category Schemas
|
|
1361
|
-
*/
|
|
1362
|
-
export declare class ContentBlockStartEvent extends ContentBlockStartEvent_base {
|
|
1363
|
-
}
|
|
1364
|
-
declare const ContentBlockStopEvent_base: Schema.Class<ContentBlockStopEvent, {
|
|
1365
|
-
contentBlockIndex: Schema.filter<typeof Schema.Int>;
|
|
1366
|
-
}, Schema.Struct.Encoded<{
|
|
1367
|
-
contentBlockIndex: Schema.filter<typeof Schema.Int>;
|
|
1368
|
-
}>, never, {
|
|
1369
|
-
readonly contentBlockIndex: number;
|
|
1370
|
-
}, {}, {}>;
|
|
1371
|
-
/**
|
|
1372
|
-
* @since 1.0.0
|
|
1373
|
-
* @category Schemas
|
|
1374
|
-
*/
|
|
1375
|
-
export declare class ContentBlockStopEvent extends ContentBlockStopEvent_base {
|
|
1376
|
-
}
|
|
1377
|
-
declare const ToolUseBlockDelta_base: Schema.Class<ToolUseBlockDelta, {
|
|
1378
|
-
input: typeof Schema.String;
|
|
1379
|
-
}, Schema.Struct.Encoded<{
|
|
1380
|
-
input: typeof Schema.String;
|
|
1381
|
-
}>, never, {
|
|
1382
|
-
readonly input: string;
|
|
1383
|
-
}, {}, {}>;
|
|
1384
|
-
/**
|
|
1385
|
-
* @since 1.0.0
|
|
1386
|
-
* @category Schemas
|
|
1387
|
-
*/
|
|
1388
|
-
export declare class ToolUseBlockDelta extends ToolUseBlockDelta_base {
|
|
1389
|
-
}
|
|
1390
|
-
declare const ContentBlockDelta_base: Schema.Union<[Schema.SchemaClass<{
|
|
1391
|
-
readonly reasoningContent: {
|
|
1392
|
-
readonly redactedContent: string;
|
|
1393
|
-
} | {
|
|
1394
|
-
readonly signature: string;
|
|
1395
|
-
} | {
|
|
1396
|
-
readonly text: string;
|
|
1397
|
-
};
|
|
1398
|
-
} & {
|
|
1399
|
-
readonly type: "reasoningContent";
|
|
1400
|
-
}, {
|
|
1401
|
-
readonly reasoningContent: {
|
|
1402
|
-
readonly redactedContent: string;
|
|
1403
|
-
} | {
|
|
1404
|
-
readonly signature: string;
|
|
1405
|
-
} | {
|
|
1406
|
-
readonly text: string;
|
|
1407
|
-
};
|
|
1408
|
-
}, never>, Schema.SchemaClass<{
|
|
1409
|
-
readonly text: string;
|
|
1410
|
-
} & {
|
|
1411
|
-
readonly type: "text";
|
|
1412
|
-
}, {
|
|
1413
|
-
readonly text: string;
|
|
1414
|
-
}, never>, Schema.SchemaClass<{
|
|
1415
|
-
readonly toolUse: ToolUseBlockDelta;
|
|
1416
|
-
} & {
|
|
1417
|
-
readonly type: "toolUse";
|
|
1418
|
-
}, {
|
|
1419
|
-
readonly toolUse: {
|
|
1420
|
-
readonly input: string;
|
|
1421
|
-
};
|
|
1422
|
-
}, never>]>;
|
|
1423
|
-
/**
|
|
1424
|
-
* @since 1.0.0
|
|
1425
|
-
* @category Schemas
|
|
1426
|
-
*/
|
|
1427
|
-
export declare class ContentBlockDelta extends ContentBlockDelta_base {
|
|
1428
|
-
}
|
|
1429
|
-
declare const ContentBlockDeltaEvent_base: Schema.Class<ContentBlockDeltaEvent, {
|
|
1430
|
-
contentBlockIndex: Schema.filter<typeof Schema.Int>;
|
|
1431
|
-
delta: typeof ContentBlockDelta;
|
|
1432
|
-
}, Schema.Struct.Encoded<{
|
|
1433
|
-
contentBlockIndex: Schema.filter<typeof Schema.Int>;
|
|
1434
|
-
delta: typeof ContentBlockDelta;
|
|
1435
|
-
}>, never, {
|
|
1436
|
-
readonly contentBlockIndex: number;
|
|
1437
|
-
} & {
|
|
1438
|
-
readonly delta: ({
|
|
1439
|
-
readonly reasoningContent: {
|
|
1440
|
-
readonly redactedContent: string;
|
|
1441
|
-
} | {
|
|
1442
|
-
readonly signature: string;
|
|
1443
|
-
} | {
|
|
1444
|
-
readonly text: string;
|
|
1445
|
-
};
|
|
1446
|
-
} & {
|
|
1447
|
-
readonly type: "reasoningContent";
|
|
1448
|
-
}) | ({
|
|
1449
|
-
readonly text: string;
|
|
1450
|
-
} & {
|
|
1451
|
-
readonly type: "text";
|
|
1452
|
-
}) | ({
|
|
1453
|
-
readonly toolUse: ToolUseBlockDelta;
|
|
1454
|
-
} & {
|
|
1455
|
-
readonly type: "toolUse";
|
|
1456
|
-
});
|
|
1457
|
-
}, {}, {}>;
|
|
1458
|
-
/**
|
|
1459
|
-
* @since 1.0.0
|
|
1460
|
-
* @category Schemas
|
|
1461
|
-
*/
|
|
1462
|
-
export declare class ContentBlockDeltaEvent extends ContentBlockDeltaEvent_base {
|
|
1463
|
-
}
|
|
1464
|
-
declare const MessageStartEvent_base: Schema.Class<MessageStartEvent, {
|
|
1465
|
-
role: Schema.Literal<["user", "assistant"]>;
|
|
1466
|
-
}, Schema.Struct.Encoded<{
|
|
1467
|
-
role: Schema.Literal<["user", "assistant"]>;
|
|
1468
|
-
}>, never, {
|
|
1469
|
-
readonly role: "user" | "assistant";
|
|
1470
|
-
}, {}, {}>;
|
|
1471
|
-
/**
|
|
1472
|
-
* @since 1.0.0
|
|
1473
|
-
* @category Schemas
|
|
1474
|
-
*/
|
|
1475
|
-
export declare class MessageStartEvent extends MessageStartEvent_base {
|
|
1476
|
-
}
|
|
1477
|
-
/**
|
|
1478
|
-
* @since 1.0.0
|
|
1479
|
-
* @category Schemas
|
|
1480
|
-
*/
|
|
1481
|
-
export declare const StopReason: Schema.Literal<["end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered"]>;
|
|
1482
|
-
/**
|
|
1483
|
-
* @since 1.0.0
|
|
1484
|
-
* @category Schemas
|
|
1485
|
-
*/
|
|
1486
|
-
export type StopReason = typeof StopReason.Type;
|
|
1487
|
-
declare const MessageStopEvent_base: Schema.Class<MessageStopEvent, {
|
|
1488
|
-
stopReason: Schema.Literal<["end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered"]>;
|
|
1489
|
-
additionalModelResponseFields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
1490
|
-
}, Schema.Struct.Encoded<{
|
|
1491
|
-
stopReason: Schema.Literal<["end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered"]>;
|
|
1492
|
-
additionalModelResponseFields: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
1493
|
-
}>, never, {
|
|
1494
|
-
readonly stopReason: "content_filtered" | "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened";
|
|
1495
|
-
} & {
|
|
1496
|
-
readonly additionalModelResponseFields?: {
|
|
1497
|
-
readonly [x: string]: unknown;
|
|
1498
|
-
} | undefined;
|
|
1499
|
-
}, {}, {}>;
|
|
1500
|
-
/**
|
|
1501
|
-
* @since 1.0.0
|
|
1502
|
-
* @category Schemas
|
|
1503
|
-
*/
|
|
1504
|
-
export declare class MessageStopEvent extends MessageStopEvent_base {
|
|
1505
|
-
}
|
|
1506
|
-
declare const ConverseStreamMetrics_base: Schema.Class<ConverseStreamMetrics, {
|
|
1507
|
-
latencyMs: typeof Schema.DurationFromMillis;
|
|
1508
|
-
}, Schema.Struct.Encoded<{
|
|
1509
|
-
latencyMs: typeof Schema.DurationFromMillis;
|
|
1510
|
-
}>, never, {
|
|
1511
|
-
readonly latencyMs: import("effect/Duration").Duration;
|
|
1512
|
-
}, {}, {}>;
|
|
1513
|
-
/**
|
|
1514
|
-
* @since 1.0.0
|
|
1515
|
-
* @category Schemas
|
|
1516
|
-
*/
|
|
1517
|
-
export declare class ConverseStreamMetrics extends ConverseStreamMetrics_base {
|
|
1518
|
-
}
|
|
1519
|
-
declare const ConverseStreamTrace_base: Schema.Class<ConverseStreamTrace, {
|
|
1520
|
-
guardrail: Schema.optional<typeof GuardrailTraceAssessment>;
|
|
1521
|
-
promptRouter: Schema.optional<typeof PromptRouterTrace>;
|
|
1522
|
-
}, Schema.Struct.Encoded<{
|
|
1523
|
-
guardrail: Schema.optional<typeof GuardrailTraceAssessment>;
|
|
1524
|
-
promptRouter: Schema.optional<typeof PromptRouterTrace>;
|
|
1525
|
-
}>, never, {
|
|
1526
|
-
readonly guardrail?: GuardrailTraceAssessment | undefined;
|
|
1527
|
-
} & {
|
|
1528
|
-
readonly promptRouter?: PromptRouterTrace | undefined;
|
|
1529
|
-
}, {}, {}>;
|
|
1530
|
-
/**
|
|
1531
|
-
* @since 1.0.0
|
|
1532
|
-
* @category Schemas
|
|
1533
|
-
*/
|
|
1534
|
-
export declare class ConverseStreamTrace extends ConverseStreamTrace_base {
|
|
1535
|
-
}
|
|
1536
|
-
declare const ConverseStreamMetadataEvent_base: Schema.Class<ConverseStreamMetadataEvent, {
|
|
1537
|
-
metrics: typeof ConverseStreamMetrics;
|
|
1538
|
-
usage: typeof TokenUsage;
|
|
1539
|
-
performanceConfig: Schema.optional<typeof PerformanceConfiguration>;
|
|
1540
|
-
trace: Schema.optional<typeof ConverseStreamTrace>;
|
|
1541
|
-
}, Schema.Struct.Encoded<{
|
|
1542
|
-
metrics: typeof ConverseStreamMetrics;
|
|
1543
|
-
usage: typeof TokenUsage;
|
|
1544
|
-
performanceConfig: Schema.optional<typeof PerformanceConfiguration>;
|
|
1545
|
-
trace: Schema.optional<typeof ConverseStreamTrace>;
|
|
1546
|
-
}>, never, {
|
|
1547
|
-
readonly usage: TokenUsage;
|
|
1548
|
-
} & {
|
|
1549
|
-
readonly trace?: ConverseStreamTrace | undefined;
|
|
1550
|
-
} & {
|
|
1551
|
-
readonly performanceConfig?: PerformanceConfiguration | undefined;
|
|
1552
|
-
} & {
|
|
1553
|
-
readonly metrics: ConverseStreamMetrics;
|
|
1554
|
-
}, {}, {}>;
|
|
1555
|
-
/**
|
|
1556
|
-
* @since 1.0.0
|
|
1557
|
-
* @category Schemas
|
|
1558
|
-
*/
|
|
1559
|
-
export declare class ConverseStreamMetadataEvent extends ConverseStreamMetadataEvent_base {
|
|
1560
|
-
}
|
|
1561
|
-
/**
|
|
1562
|
-
* @since 1.0.0
|
|
1563
|
-
* @category Schemas
|
|
1564
|
-
*/
|
|
1565
|
-
export declare const ConverseResponseStreamEvent: Schema.Schema<({
|
|
1566
|
-
readonly messageStart: MessageStartEvent;
|
|
1567
|
-
} & {
|
|
1568
|
-
readonly type: "messageStart";
|
|
1569
|
-
}) | ({
|
|
1570
|
-
readonly messageStop: MessageStopEvent;
|
|
1571
|
-
} & {
|
|
1572
|
-
readonly type: "messageStop";
|
|
1573
|
-
}) | ({
|
|
1574
|
-
readonly contentBlockStart: ContentBlockStartEvent;
|
|
1575
|
-
} & {
|
|
1576
|
-
readonly type: "contentBlockStart";
|
|
1577
|
-
}) | ({
|
|
1578
|
-
readonly contentBlockDelta: ContentBlockDeltaEvent;
|
|
1579
|
-
} & {
|
|
1580
|
-
readonly type: "contentBlockDelta";
|
|
1581
|
-
}) | ({
|
|
1582
|
-
readonly contentBlockStop: ContentBlockStopEvent;
|
|
1583
|
-
} & {
|
|
1584
|
-
readonly type: "contentBlockStop";
|
|
1585
|
-
}) | ({
|
|
1586
|
-
readonly metadata: ConverseStreamMetadataEvent;
|
|
1587
|
-
} & {
|
|
1588
|
-
readonly type: "metadata";
|
|
1589
|
-
}) | ({
|
|
1590
|
-
readonly internalServerException: {
|
|
1591
|
-
readonly [x: string]: unknown;
|
|
1592
|
-
};
|
|
1593
|
-
} & {
|
|
1594
|
-
readonly type: "internalServerException";
|
|
1595
|
-
}) | ({
|
|
1596
|
-
readonly modelStreamErrorException: {
|
|
1597
|
-
readonly [x: string]: unknown;
|
|
1598
|
-
};
|
|
1599
|
-
} & {
|
|
1600
|
-
readonly type: "modelStreamErrorException";
|
|
1601
|
-
}) | ({
|
|
1602
|
-
readonly serviceUnavailableException: {
|
|
1603
|
-
readonly [x: string]: unknown;
|
|
1604
|
-
};
|
|
1605
|
-
} & {
|
|
1606
|
-
readonly type: "serviceUnavailableException";
|
|
1607
|
-
}) | ({
|
|
1608
|
-
readonly throttlingException: {
|
|
1609
|
-
readonly [x: string]: unknown;
|
|
1610
|
-
};
|
|
1611
|
-
} & {
|
|
1612
|
-
readonly type: "throttlingException";
|
|
1613
|
-
}) | ({
|
|
1614
|
-
readonly validationException: {
|
|
1615
|
-
readonly [x: string]: unknown;
|
|
1616
|
-
};
|
|
1617
|
-
} & {
|
|
1618
|
-
readonly type: "validationException";
|
|
1619
|
-
}), {
|
|
1620
|
-
readonly messageStart: {
|
|
1621
|
-
readonly role: "user" | "assistant";
|
|
1622
|
-
};
|
|
1623
|
-
} | {
|
|
1624
|
-
readonly messageStop: {
|
|
1625
|
-
readonly stopReason: "content_filtered" | "end_turn" | "tool_use" | "max_tokens" | "stop_sequence" | "guardrail_intervened";
|
|
1626
|
-
readonly additionalModelResponseFields?: {
|
|
1627
|
-
readonly [x: string]: unknown;
|
|
1628
|
-
} | undefined;
|
|
1629
|
-
};
|
|
1630
|
-
} | {
|
|
1631
|
-
readonly contentBlockStart: {
|
|
1632
|
-
readonly start: {
|
|
1633
|
-
readonly toolUse?: {
|
|
1634
|
-
readonly name: string;
|
|
1635
|
-
readonly toolUseId: string;
|
|
1636
|
-
} | undefined;
|
|
1637
|
-
};
|
|
1638
|
-
readonly contentBlockIndex: number;
|
|
1639
|
-
};
|
|
1640
|
-
} | {
|
|
1641
|
-
readonly contentBlockDelta: {
|
|
1642
|
-
readonly contentBlockIndex: number;
|
|
1643
|
-
readonly delta: {
|
|
1644
|
-
readonly reasoningContent: {
|
|
1645
|
-
readonly redactedContent: string;
|
|
1646
|
-
} | {
|
|
1647
|
-
readonly signature: string;
|
|
1648
|
-
} | {
|
|
1649
|
-
readonly text: string;
|
|
1650
|
-
};
|
|
1651
|
-
} | {
|
|
1652
|
-
readonly text: string;
|
|
1653
|
-
} | {
|
|
1654
|
-
readonly toolUse: {
|
|
1655
|
-
readonly input: string;
|
|
1656
|
-
};
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
} | {
|
|
1660
|
-
readonly contentBlockStop: {
|
|
1661
|
-
readonly contentBlockIndex: number;
|
|
1662
|
-
};
|
|
1663
|
-
} | {
|
|
1664
|
-
readonly metadata: {
|
|
1665
|
-
readonly usage: {
|
|
1666
|
-
readonly inputTokens: number;
|
|
1667
|
-
readonly outputTokens: number;
|
|
1668
|
-
readonly totalTokens: number;
|
|
1669
|
-
readonly cacheReadInputTokens?: number | undefined;
|
|
1670
|
-
readonly cacheWriteInputTokens?: number | undefined;
|
|
1671
|
-
};
|
|
1672
|
-
readonly metrics: {
|
|
1673
|
-
readonly latencyMs: number;
|
|
1674
|
-
};
|
|
1675
|
-
readonly trace?: {
|
|
1676
|
-
readonly guardrail?: {
|
|
1677
|
-
readonly actionReason?: string | undefined;
|
|
1678
|
-
readonly inputAssessment?: {
|
|
1679
|
-
readonly [x: string]: {
|
|
1680
|
-
readonly contentPolicy?: {
|
|
1681
|
-
readonly filters: readonly {
|
|
1682
|
-
readonly type: "HATE" | "INSULTS" | "MISCONDUCT" | "PROMPT_ATTACK" | "SEXUAL" | "VIOLENCE";
|
|
1683
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1684
|
-
readonly confidence: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
1685
|
-
readonly detected?: boolean | undefined;
|
|
1686
|
-
readonly filterStrength?: "NONE" | "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
1687
|
-
}[];
|
|
1688
|
-
} | undefined;
|
|
1689
|
-
readonly contextualGroundingPolicy?: {
|
|
1690
|
-
readonly filters?: readonly {
|
|
1691
|
-
readonly type: "GROUNDING" | "RELEVANCE";
|
|
1692
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1693
|
-
readonly score: number;
|
|
1694
|
-
readonly threshold: number;
|
|
1695
|
-
readonly detected?: boolean | undefined;
|
|
1696
|
-
}[] | undefined;
|
|
1697
|
-
} | undefined;
|
|
1698
|
-
readonly invocationMetrics?: {
|
|
1699
|
-
readonly guardrailCoverage?: {
|
|
1700
|
-
readonly images?: {
|
|
1701
|
-
readonly guarded?: number | undefined;
|
|
1702
|
-
readonly total?: number | undefined;
|
|
1703
|
-
} | undefined;
|
|
1704
|
-
readonly textCharacters?: {
|
|
1705
|
-
readonly guarded?: number | undefined;
|
|
1706
|
-
readonly total?: number | undefined;
|
|
1707
|
-
} | undefined;
|
|
1708
|
-
} | undefined;
|
|
1709
|
-
readonly guardrailProcessingLatency?: number | undefined;
|
|
1710
|
-
readonly usage?: {
|
|
1711
|
-
readonly contentPolicyUnits: number;
|
|
1712
|
-
readonly contextualGroundingPolicyUnits: number;
|
|
1713
|
-
readonly sensitiveInformationPolicyFreeUnits: number;
|
|
1714
|
-
readonly sensitiveInformationPolicyUnits: number;
|
|
1715
|
-
readonly topicPolicyUnits: number;
|
|
1716
|
-
readonly wordPolicyUnits: number;
|
|
1717
|
-
readonly contentPolicyImageUnits?: number | undefined;
|
|
1718
|
-
} | undefined;
|
|
1719
|
-
} | undefined;
|
|
1720
|
-
readonly sensitiveInformationPolicy?: {
|
|
1721
|
-
readonly piiEntities: readonly {
|
|
1722
|
-
readonly type: "ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER";
|
|
1723
|
-
readonly action: "BLOCKED" | "NONE" | "ANONYMIZED";
|
|
1724
|
-
readonly match: string;
|
|
1725
|
-
readonly detected?: boolean | undefined;
|
|
1726
|
-
}[];
|
|
1727
|
-
readonly regexes: readonly {
|
|
1728
|
-
readonly action: "BLOCKED" | "NONE" | "ANONYMIZED";
|
|
1729
|
-
readonly name?: string | undefined;
|
|
1730
|
-
readonly detected?: boolean | undefined;
|
|
1731
|
-
readonly match?: string | undefined;
|
|
1732
|
-
readonly regex?: string | undefined;
|
|
1733
|
-
}[];
|
|
1734
|
-
} | undefined;
|
|
1735
|
-
readonly topicPolicy?: {
|
|
1736
|
-
readonly topics: readonly {
|
|
1737
|
-
readonly type: "DENY";
|
|
1738
|
-
readonly name: string;
|
|
1739
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1740
|
-
readonly detected?: boolean | undefined;
|
|
1741
|
-
}[];
|
|
1742
|
-
} | undefined;
|
|
1743
|
-
readonly wordPolicy?: {
|
|
1744
|
-
readonly customWords: {
|
|
1745
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1746
|
-
readonly match: string;
|
|
1747
|
-
readonly detected?: boolean | undefined;
|
|
1748
|
-
};
|
|
1749
|
-
readonly managedWordLists: {
|
|
1750
|
-
readonly type: "PROFANITY";
|
|
1751
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1752
|
-
readonly match: string;
|
|
1753
|
-
readonly detected?: boolean | undefined;
|
|
1754
|
-
};
|
|
1755
|
-
} | undefined;
|
|
1756
|
-
};
|
|
1757
|
-
} | undefined;
|
|
1758
|
-
readonly modelOutput?: readonly string[] | undefined;
|
|
1759
|
-
readonly outputAssessments?: {
|
|
1760
|
-
readonly [x: string]: {
|
|
1761
|
-
readonly contentPolicy?: {
|
|
1762
|
-
readonly filters: readonly {
|
|
1763
|
-
readonly type: "HATE" | "INSULTS" | "MISCONDUCT" | "PROMPT_ATTACK" | "SEXUAL" | "VIOLENCE";
|
|
1764
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1765
|
-
readonly confidence: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
1766
|
-
readonly detected?: boolean | undefined;
|
|
1767
|
-
readonly filterStrength?: "NONE" | "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
1768
|
-
}[];
|
|
1769
|
-
} | undefined;
|
|
1770
|
-
readonly contextualGroundingPolicy?: {
|
|
1771
|
-
readonly filters?: readonly {
|
|
1772
|
-
readonly type: "GROUNDING" | "RELEVANCE";
|
|
1773
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1774
|
-
readonly score: number;
|
|
1775
|
-
readonly threshold: number;
|
|
1776
|
-
readonly detected?: boolean | undefined;
|
|
1777
|
-
}[] | undefined;
|
|
1778
|
-
} | undefined;
|
|
1779
|
-
readonly invocationMetrics?: {
|
|
1780
|
-
readonly guardrailCoverage?: {
|
|
1781
|
-
readonly images?: {
|
|
1782
|
-
readonly guarded?: number | undefined;
|
|
1783
|
-
readonly total?: number | undefined;
|
|
1784
|
-
} | undefined;
|
|
1785
|
-
readonly textCharacters?: {
|
|
1786
|
-
readonly guarded?: number | undefined;
|
|
1787
|
-
readonly total?: number | undefined;
|
|
1788
|
-
} | undefined;
|
|
1789
|
-
} | undefined;
|
|
1790
|
-
readonly guardrailProcessingLatency?: number | undefined;
|
|
1791
|
-
readonly usage?: {
|
|
1792
|
-
readonly contentPolicyUnits: number;
|
|
1793
|
-
readonly contextualGroundingPolicyUnits: number;
|
|
1794
|
-
readonly sensitiveInformationPolicyFreeUnits: number;
|
|
1795
|
-
readonly sensitiveInformationPolicyUnits: number;
|
|
1796
|
-
readonly topicPolicyUnits: number;
|
|
1797
|
-
readonly wordPolicyUnits: number;
|
|
1798
|
-
readonly contentPolicyImageUnits?: number | undefined;
|
|
1799
|
-
} | undefined;
|
|
1800
|
-
} | undefined;
|
|
1801
|
-
readonly sensitiveInformationPolicy?: {
|
|
1802
|
-
readonly piiEntities: readonly {
|
|
1803
|
-
readonly type: "ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER";
|
|
1804
|
-
readonly action: "BLOCKED" | "NONE" | "ANONYMIZED";
|
|
1805
|
-
readonly match: string;
|
|
1806
|
-
readonly detected?: boolean | undefined;
|
|
1807
|
-
}[];
|
|
1808
|
-
readonly regexes: readonly {
|
|
1809
|
-
readonly action: "BLOCKED" | "NONE" | "ANONYMIZED";
|
|
1810
|
-
readonly name?: string | undefined;
|
|
1811
|
-
readonly detected?: boolean | undefined;
|
|
1812
|
-
readonly match?: string | undefined;
|
|
1813
|
-
readonly regex?: string | undefined;
|
|
1814
|
-
}[];
|
|
1815
|
-
} | undefined;
|
|
1816
|
-
readonly topicPolicy?: {
|
|
1817
|
-
readonly topics: readonly {
|
|
1818
|
-
readonly type: "DENY";
|
|
1819
|
-
readonly name: string;
|
|
1820
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1821
|
-
readonly detected?: boolean | undefined;
|
|
1822
|
-
}[];
|
|
1823
|
-
} | undefined;
|
|
1824
|
-
readonly wordPolicy?: {
|
|
1825
|
-
readonly customWords: {
|
|
1826
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1827
|
-
readonly match: string;
|
|
1828
|
-
readonly detected?: boolean | undefined;
|
|
1829
|
-
};
|
|
1830
|
-
readonly managedWordLists: {
|
|
1831
|
-
readonly type: "PROFANITY";
|
|
1832
|
-
readonly action: "BLOCKED" | "NONE";
|
|
1833
|
-
readonly match: string;
|
|
1834
|
-
readonly detected?: boolean | undefined;
|
|
1835
|
-
};
|
|
1836
|
-
} | undefined;
|
|
1837
|
-
};
|
|
1838
|
-
} | undefined;
|
|
1839
|
-
} | undefined;
|
|
1840
|
-
readonly promptRouter?: {
|
|
1841
|
-
readonly invokedModelId?: string | undefined;
|
|
1842
|
-
} | undefined;
|
|
1843
|
-
} | undefined;
|
|
1844
|
-
readonly performanceConfig?: {
|
|
1845
|
-
readonly latency?: "standard" | "optimized" | undefined;
|
|
1846
|
-
} | undefined;
|
|
1847
|
-
};
|
|
1848
|
-
} | {
|
|
1849
|
-
readonly internalServerException: {
|
|
1850
|
-
readonly [x: string]: unknown;
|
|
1851
|
-
};
|
|
1852
|
-
} | {
|
|
1853
|
-
readonly modelStreamErrorException: {
|
|
1854
|
-
readonly [x: string]: unknown;
|
|
1855
|
-
};
|
|
1856
|
-
} | {
|
|
1857
|
-
readonly serviceUnavailableException: {
|
|
1858
|
-
readonly [x: string]: unknown;
|
|
1859
|
-
};
|
|
1860
|
-
} | {
|
|
1861
|
-
readonly throttlingException: {
|
|
1862
|
-
readonly [x: string]: unknown;
|
|
1863
|
-
};
|
|
1864
|
-
} | {
|
|
1865
|
-
readonly validationException: {
|
|
1866
|
-
readonly [x: string]: unknown;
|
|
1867
|
-
};
|
|
1868
|
-
}, never>;
|
|
1869
|
-
/**
|
|
1870
|
-
* @since 1.0.0
|
|
1871
|
-
* @category Models
|
|
1872
|
-
*/
|
|
1873
|
-
export type ConverseResponseStreamEvent = typeof ConverseResponseStreamEvent.Type;
|
|
1874
|
-
export {};
|
|
1875
|
-
//# sourceMappingURL=AmazonBedrockSchema.d.ts.map
|