@effect/ai-amazon-bedrock 0.17.0 → 4.1.5

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.
Files changed (186) hide show
  1. package/AGENTS.md +434 -0
  2. package/CLAUDE.md +434 -0
  3. package/README.md +76 -3
  4. package/ai-docs/README.md +44 -0
  5. package/ai-docs/package.json +36 -0
  6. package/ai-docs/src/01_effect/01_basics/01_effect-gen.ts +30 -0
  7. package/ai-docs/src/01_effect/01_basics/02_effect-fn.ts +52 -0
  8. package/ai-docs/src/01_effect/01_basics/10_creating-effects.ts +74 -0
  9. package/ai-docs/src/01_effect/01_basics/index.md +7 -0
  10. package/ai-docs/src/01_effect/02_schema/10_schema-basics.ts +43 -0
  11. package/ai-docs/src/01_effect/02_schema/index.md +7 -0
  12. package/ai-docs/src/01_effect/03_services/01_service.ts +45 -0
  13. package/ai-docs/src/01_effect/03_services/10_reference.ts +10 -0
  14. package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +70 -0
  15. package/ai-docs/src/01_effect/03_services/20_layer-unwrap.ts +66 -0
  16. package/ai-docs/src/01_effect/03_services/index.md +5 -0
  17. package/ai-docs/src/01_effect/04_errors/01_error-handling.ts +30 -0
  18. package/ai-docs/src/01_effect/04_errors/10_catch-tags.ts +24 -0
  19. package/ai-docs/src/01_effect/04_errors/20_reason-errors.ts +64 -0
  20. package/ai-docs/src/01_effect/04_errors/index.md +1 -0
  21. package/ai-docs/src/01_effect/05_resources/10_acquire-release.ts +105 -0
  22. package/ai-docs/src/01_effect/05_resources/20_layer-side-effects.ts +31 -0
  23. package/ai-docs/src/01_effect/05_resources/30_layer-map.ts +86 -0
  24. package/ai-docs/src/01_effect/05_resources/index.md +3 -0
  25. package/ai-docs/src/01_effect/06_running/10_run-main.ts +30 -0
  26. package/ai-docs/src/01_effect/06_running/20_layer-launch.ts +27 -0
  27. package/ai-docs/src/01_effect/06_running/index.md +1 -0
  28. package/ai-docs/src/01_effect/07_pubsub/10_pubsub.ts +56 -0
  29. package/ai-docs/src/01_effect/07_pubsub/index.md +3 -0
  30. package/ai-docs/src/03_stream/10_creating-streams.ts +103 -0
  31. package/ai-docs/src/03_stream/20_consuming-streams.ts +137 -0
  32. package/ai-docs/src/03_stream/30_encoding.ts +163 -0
  33. package/ai-docs/src/03_stream/index.md +4 -0
  34. package/ai-docs/src/04_integration/10_managed-runtime.ts +129 -0
  35. package/ai-docs/src/04_integration/index.md +5 -0
  36. package/ai-docs/src/05_batching/10_request-resolver.ts +89 -0
  37. package/ai-docs/src/05_batching/index.md +3 -0
  38. package/ai-docs/src/06_schedule/10_schedules.ts +111 -0
  39. package/ai-docs/src/06_schedule/index.md +3 -0
  40. package/ai-docs/src/07_datetime/10_creating-and-formatting.ts +30 -0
  41. package/ai-docs/src/07_datetime/20_time-zones.ts +44 -0
  42. package/ai-docs/src/07_datetime/index.md +5 -0
  43. package/ai-docs/src/08_observability/10_logging.ts +66 -0
  44. package/ai-docs/src/08_observability/20_otlp-tracing.ts +95 -0
  45. package/ai-docs/src/08_observability/index.md +7 -0
  46. package/ai-docs/src/09_testing/10_effect-tests.ts +55 -0
  47. package/ai-docs/src/09_testing/20_layer-tests.ts +138 -0
  48. package/ai-docs/src/09_testing/index.md +1 -0
  49. package/ai-docs/src/10_predicate/01_basics.ts +14 -0
  50. package/ai-docs/src/10_predicate/index.md +9 -0
  51. package/ai-docs/src/40_sql/10_basics.ts +175 -0
  52. package/ai-docs/src/40_sql/index.md +6 -0
  53. package/ai-docs/src/50_http-client/10_basics.ts +102 -0
  54. package/ai-docs/src/50_http-client/index.md +3 -0
  55. package/ai-docs/src/51_http-server/10_basics.ts +118 -0
  56. package/ai-docs/src/51_http-server/20_testing.ts +100 -0
  57. package/ai-docs/src/51_http-server/fixtures/api/Api.ts +14 -0
  58. package/ai-docs/src/51_http-server/fixtures/api/Authorization.ts +36 -0
  59. package/ai-docs/src/51_http-server/fixtures/api/System.ts +10 -0
  60. package/ai-docs/src/51_http-server/fixtures/api/Users.ts +107 -0
  61. package/ai-docs/src/51_http-server/fixtures/domain/User.ts +21 -0
  62. package/ai-docs/src/51_http-server/fixtures/domain/UserErrors.ts +22 -0
  63. package/ai-docs/src/51_http-server/fixtures/server/Authorization.ts +37 -0
  64. package/ai-docs/src/51_http-server/fixtures/server/Users/http.ts +80 -0
  65. package/ai-docs/src/51_http-server/fixtures/server/Users.ts +183 -0
  66. package/ai-docs/src/51_http-server/index.md +3 -0
  67. package/ai-docs/src/52_graphql/10_basics.ts +117 -0
  68. package/ai-docs/src/52_graphql/20_testing.ts +45 -0
  69. package/ai-docs/src/52_graphql/30_batching.ts +118 -0
  70. package/ai-docs/src/52_graphql/40_aliased-batching.ts +124 -0
  71. package/ai-docs/src/52_graphql/50_errors-and-retries.ts +74 -0
  72. package/ai-docs/src/52_graphql/index.md +6 -0
  73. package/ai-docs/src/60_child-process/10_working-with-child-processes.ts +117 -0
  74. package/ai-docs/src/60_child-process/index.md +3 -0
  75. package/ai-docs/src/70_cli/10_basics.ts +162 -0
  76. package/ai-docs/src/70_cli/index.md +5 -0
  77. package/ai-docs/src/71_ai/10_language-model.ts +156 -0
  78. package/ai-docs/src/71_ai/20_tools.ts +226 -0
  79. package/ai-docs/src/71_ai/30_chat.ts +158 -0
  80. package/ai-docs/src/71_ai/fixtures/domain/LaunchPlan.ts +9 -0
  81. package/ai-docs/src/71_ai/index.md +5 -0
  82. package/ai-docs/src/80_cluster/10_entities.ts +97 -0
  83. package/ai-docs/src/80_cluster/index.md +4 -0
  84. package/ai-docs/src/index.md +10 -0
  85. package/ai-docs/tsconfig.json +28 -0
  86. package/dist/AmazonBedrockClient.d.ts +227 -0
  87. package/dist/AmazonBedrockClient.d.ts.map +1 -0
  88. package/dist/AmazonBedrockClient.js +281 -0
  89. package/dist/AmazonBedrockClient.js.map +1 -0
  90. package/dist/AmazonBedrockConfig.d.ts +76 -0
  91. package/dist/AmazonBedrockConfig.d.ts.map +1 -0
  92. package/dist/AmazonBedrockConfig.js +41 -0
  93. package/dist/AmazonBedrockConfig.js.map +1 -0
  94. package/dist/AmazonBedrockLanguageModel.d.ts +315 -0
  95. package/dist/AmazonBedrockLanguageModel.d.ts.map +1 -0
  96. package/dist/AmazonBedrockLanguageModel.js +997 -0
  97. package/dist/AmazonBedrockLanguageModel.js.map +1 -0
  98. package/dist/AmazonBedrockSchema.d.ts +918 -0
  99. package/dist/AmazonBedrockSchema.d.ts.map +1 -0
  100. package/dist/AmazonBedrockSchema.js +536 -0
  101. package/dist/AmazonBedrockSchema.js.map +1 -0
  102. package/dist/index.d.ts +25 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/{esm/index.js → index.js} +13 -12
  105. package/dist/index.js.map +1 -0
  106. package/dist/internal/errors.d.ts +2 -0
  107. package/dist/internal/errors.d.ts.map +1 -0
  108. package/dist/internal/errors.js +185 -0
  109. package/dist/internal/errors.js.map +1 -0
  110. package/dist/internal/eventStream.d.ts +2 -0
  111. package/dist/internal/eventStream.d.ts.map +1 -0
  112. package/dist/internal/eventStream.js +180 -0
  113. package/dist/internal/eventStream.js.map +1 -0
  114. package/dist/internal/sigv4.d.ts +2 -0
  115. package/dist/internal/sigv4.d.ts.map +1 -0
  116. package/dist/internal/sigv4.js +115 -0
  117. package/dist/internal/sigv4.js.map +1 -0
  118. package/dist/{dts/internal → internal}/utilities.d.ts.map +1 -1
  119. package/dist/internal/utilities.js +17 -0
  120. package/dist/internal/utilities.js.map +1 -0
  121. package/package.json +45 -84
  122. package/src/AmazonBedrockClient.ts +447 -263
  123. package/src/AmazonBedrockConfig.ts +55 -40
  124. package/src/AmazonBedrockLanguageModel.ts +957 -929
  125. package/src/AmazonBedrockSchema.ts +526 -970
  126. package/src/index.ts +15 -14
  127. package/src/internal/errors.ts +207 -0
  128. package/src/internal/eventStream.ts +208 -0
  129. package/src/internal/sigv4.ts +154 -0
  130. package/src/internal/utilities.ts +15 -17
  131. package/AmazonBedrockClient/package.json +0 -6
  132. package/AmazonBedrockConfig/package.json +0 -6
  133. package/AmazonBedrockLanguageModel/package.json +0 -6
  134. package/AmazonBedrockSchema/package.json +0 -6
  135. package/AmazonBedrockTool/package.json +0 -6
  136. package/EventStreamEncoding/package.json +0 -6
  137. package/dist/cjs/AmazonBedrockClient.js +0 -191
  138. package/dist/cjs/AmazonBedrockClient.js.map +0 -1
  139. package/dist/cjs/AmazonBedrockConfig.js +0 -30
  140. package/dist/cjs/AmazonBedrockConfig.js.map +0 -1
  141. package/dist/cjs/AmazonBedrockLanguageModel.js +0 -1051
  142. package/dist/cjs/AmazonBedrockLanguageModel.js.map +0 -1
  143. package/dist/cjs/AmazonBedrockSchema.js +0 -800
  144. package/dist/cjs/AmazonBedrockSchema.js.map +0 -1
  145. package/dist/cjs/AmazonBedrockTool.js +0 -53
  146. package/dist/cjs/AmazonBedrockTool.js.map +0 -1
  147. package/dist/cjs/EventStreamEncoding.js +0 -86
  148. package/dist/cjs/EventStreamEncoding.js.map +0 -1
  149. package/dist/cjs/index.js +0 -20
  150. package/dist/cjs/index.js.map +0 -1
  151. package/dist/cjs/internal/utilities.js +0 -27
  152. package/dist/cjs/internal/utilities.js.map +0 -1
  153. package/dist/dts/AmazonBedrockClient.d.ts +0 -95
  154. package/dist/dts/AmazonBedrockClient.d.ts.map +0 -1
  155. package/dist/dts/AmazonBedrockConfig.d.ts +0 -47
  156. package/dist/dts/AmazonBedrockConfig.d.ts.map +0 -1
  157. package/dist/dts/AmazonBedrockLanguageModel.d.ts +0 -147
  158. package/dist/dts/AmazonBedrockLanguageModel.d.ts.map +0 -1
  159. package/dist/dts/AmazonBedrockSchema.d.ts +0 -1875
  160. package/dist/dts/AmazonBedrockSchema.d.ts.map +0 -1
  161. package/dist/dts/AmazonBedrockTool.d.ts +0 -206
  162. package/dist/dts/AmazonBedrockTool.d.ts.map +0 -1
  163. package/dist/dts/EventStreamEncoding.d.ts +0 -16
  164. package/dist/dts/EventStreamEncoding.d.ts.map +0 -1
  165. package/dist/dts/index.d.ts +0 -25
  166. package/dist/dts/index.d.ts.map +0 -1
  167. package/dist/esm/AmazonBedrockClient.js +0 -179
  168. package/dist/esm/AmazonBedrockClient.js.map +0 -1
  169. package/dist/esm/AmazonBedrockConfig.js +0 -22
  170. package/dist/esm/AmazonBedrockConfig.js.map +0 -1
  171. package/dist/esm/AmazonBedrockLanguageModel.js +0 -1040
  172. package/dist/esm/AmazonBedrockLanguageModel.js.map +0 -1
  173. package/dist/esm/AmazonBedrockSchema.js +0 -731
  174. package/dist/esm/AmazonBedrockSchema.js.map +0 -1
  175. package/dist/esm/AmazonBedrockTool.js +0 -45
  176. package/dist/esm/AmazonBedrockTool.js.map +0 -1
  177. package/dist/esm/EventStreamEncoding.js +0 -78
  178. package/dist/esm/EventStreamEncoding.js.map +0 -1
  179. package/dist/esm/index.js.map +0 -1
  180. package/dist/esm/internal/utilities.js +0 -19
  181. package/dist/esm/internal/utilities.js.map +0 -1
  182. package/dist/esm/package.json +0 -4
  183. package/index/package.json +0 -6
  184. package/src/AmazonBedrockTool.ts +0 -273
  185. package/src/EventStreamEncoding.ts +0 -118
  186. /package/dist/{dts/internal → internal}/utilities.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmazonBedrockSchema.d.ts","sourceRoot":"","sources":["../src/AmazonBedrockSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAkBvC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,gNAU1B,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEzD;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,8QAAuE,CAAA;AAE9F;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAA;AAE/C;;;;;;GAMG;AAC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;6DAQ5B,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;6DAGjC,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;6DAEhC,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;6DAE3B,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;6DAItC,CAAA;AAeF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAA;AAE5F;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,wEAYtC,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAkF,CAAA;AAElH;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAA;AAEjE;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;6DAElC,CAAA"}
@@ -0,0 +1,536 @@
1
+ import * as Predicate from "effect/Predicate";
2
+ import * as Schema from "effect/Schema";
3
+ /**
4
+ * The rest of every response struct: fields this provider does not model are
5
+ * decoded as they are, so a low-level consumer can read them.
6
+ */
7
+ const UnknownRecord = /*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown);
8
+ /**
9
+ * A struct that Bedrock can send back, with {@link UnknownRecord} as its rest.
10
+ */
11
+ const ResponseStruct = fields => Schema.StructWithRest(Schema.Struct(fields), [UnknownRecord]);
12
+ // =============================================================================
13
+ // Common
14
+ // =============================================================================
15
+ /**
16
+ * The stop reasons that the Smithy model of the Converse API names.
17
+ *
18
+ * @stability unstable
19
+ * @category schemas
20
+ * @since 4.0.0
21
+ */
22
+ export const KnownStopReason = /*#__PURE__*/Schema.Literals(["end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered", "malformed_model_output", "malformed_tool_use", "model_context_window_exceeded"]);
23
+ /**
24
+ * The reason the model stopped generating a response. Any string decodes, so a
25
+ * reason that Bedrock adds later does not fail the response.
26
+ *
27
+ * @stability unstable
28
+ * @category schemas
29
+ * @since 4.0.0
30
+ */
31
+ export const StopReason = /*#__PURE__*/Schema.Union([KnownStopReason, Schema.StringForLiteralAutocomplete]);
32
+ /**
33
+ * Token usage statistics returned by the Converse API.
34
+ *
35
+ * @stability unstable
36
+ * @category schemas
37
+ * @since 4.0.0
38
+ */
39
+ export const TokenUsage = /*#__PURE__*/ResponseStruct({
40
+ inputTokens: Schema.Int,
41
+ outputTokens: Schema.Int,
42
+ totalTokens: Schema.Int,
43
+ cacheReadInputTokens: /*#__PURE__*/Schema.optional(Schema.Int),
44
+ cacheWriteInputTokens: /*#__PURE__*/Schema.optional(Schema.Int)
45
+ });
46
+ // =============================================================================
47
+ // Content Blocks
48
+ // =============================================================================
49
+ /**
50
+ * A tool-use content block: the model's request to invoke a tool.
51
+ *
52
+ * @stability unstable
53
+ * @category schemas
54
+ * @since 4.0.0
55
+ */
56
+ export const ToolUseBlock = /*#__PURE__*/ResponseStruct({
57
+ toolUseId: Schema.String,
58
+ name: Schema.String,
59
+ input: Schema.Unknown
60
+ });
61
+ /**
62
+ * One piece of the content of a tool result: text or a JSON document.
63
+ *
64
+ * @stability unstable
65
+ * @category schemas
66
+ * @since 4.0.0
67
+ */
68
+ export const ToolResultContentBlock = /*#__PURE__*/ResponseStruct({
69
+ text: /*#__PURE__*/Schema.optional(Schema.String),
70
+ json: /*#__PURE__*/Schema.optional(Schema.Unknown)
71
+ });
72
+ /**
73
+ * A tool-result content block: the outcome of a tool invocation fed back to
74
+ * the model.
75
+ *
76
+ * @stability unstable
77
+ * @category schemas
78
+ * @since 4.0.0
79
+ */
80
+ export const ToolResultBlock = /*#__PURE__*/ResponseStruct({
81
+ toolUseId: Schema.String,
82
+ content: /*#__PURE__*/Schema.Array(ToolResultContentBlock),
83
+ status: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Literals(["success", "error"]))
84
+ });
85
+ /**
86
+ * The reasoning text produced by a model, with the signature that verifies
87
+ * the model generated it. The signature must be echoed back unmodified when
88
+ * the block is sent in a later turn.
89
+ *
90
+ * @stability unstable
91
+ * @category schemas
92
+ * @since 4.0.0
93
+ */
94
+ export const ReasoningTextBlock = /*#__PURE__*/ResponseStruct({
95
+ text: Schema.String,
96
+ signature: /*#__PURE__*/Schema.optional(Schema.String)
97
+ });
98
+ /**
99
+ * A reasoning content block: either reasoning text or reasoning that the
100
+ * model provider redacted, as a base64 string.
101
+ *
102
+ * @stability unstable
103
+ * @category schemas
104
+ * @since 4.0.0
105
+ */
106
+ export const ReasoningContentBlock = /*#__PURE__*/ResponseStruct({
107
+ reasoningText: /*#__PURE__*/Schema.optional(ReasoningTextBlock),
108
+ redactedContent: /*#__PURE__*/Schema.optional(Schema.String)
109
+ });
110
+ /**
111
+ * A cache point marking the end of a reusable prefix of a request.
112
+ *
113
+ * **Details**
114
+ *
115
+ * Converse caches everything preceding the block, so a cache point is its own
116
+ * content block appended after the content it should cover. `ttl` opts into
117
+ * extended caching; when omitted Bedrock uses the default lifetime.
118
+ * Bedrock does not send cache points back, so unlike the response structs
119
+ * this one keeps no unmodelled fields and stays exact as a request option.
120
+ *
121
+ * @stability unstable
122
+ * @category schemas
123
+ * @since 4.0.0
124
+ */
125
+ export const CachePointBlock = /*#__PURE__*/Schema.Struct({
126
+ type: /*#__PURE__*/Schema.Literal("default"),
127
+ ttl: /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Literals(["5m", "1h"]))
128
+ });
129
+ /**
130
+ * The image formats the Converse API accepts.
131
+ *
132
+ * @stability unstable
133
+ * @category schemas
134
+ * @since 4.0.0
135
+ */
136
+ export const ImageFormat = /*#__PURE__*/Schema.Literals(["png", "jpeg", "gif", "webp"]);
137
+ /**
138
+ * An image content block. The image is sent as base64 bytes.
139
+ *
140
+ * @stability unstable
141
+ * @category schemas
142
+ * @since 4.0.0
143
+ */
144
+ export const ImageBlock = /*#__PURE__*/ResponseStruct({
145
+ format: ImageFormat,
146
+ source: /*#__PURE__*/ResponseStruct({
147
+ bytes: Schema.String
148
+ })
149
+ });
150
+ /**
151
+ * The document formats the Converse API accepts.
152
+ *
153
+ * @stability unstable
154
+ * @category schemas
155
+ * @since 4.0.0
156
+ */
157
+ export const DocumentFormat = /*#__PURE__*/Schema.Literals(["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]);
158
+ /**
159
+ * A document content block. Bedrock restricts `name` to alphanumerics, single
160
+ * runs of whitespace, hyphens, parentheses and square brackets.
161
+ *
162
+ * @stability unstable
163
+ * @category schemas
164
+ * @since 4.0.0
165
+ */
166
+ export const DocumentBlock = /*#__PURE__*/ResponseStruct({
167
+ format: DocumentFormat,
168
+ name: Schema.String,
169
+ source: /*#__PURE__*/ResponseStruct({
170
+ bytes: Schema.String
171
+ })
172
+ });
173
+ /**
174
+ * A content block within a Converse message. A block member this provider
175
+ * does not model, such as `citationsContent`, is kept as it was sent.
176
+ *
177
+ * @stability unstable
178
+ * @category schemas
179
+ * @since 4.0.0
180
+ */
181
+ export const ContentBlock = /*#__PURE__*/ResponseStruct({
182
+ text: /*#__PURE__*/Schema.optional(Schema.String),
183
+ toolUse: /*#__PURE__*/Schema.optional(ToolUseBlock),
184
+ toolResult: /*#__PURE__*/Schema.optional(ToolResultBlock),
185
+ reasoningContent: /*#__PURE__*/Schema.optional(ReasoningContentBlock),
186
+ image: /*#__PURE__*/Schema.optional(ImageBlock),
187
+ document: /*#__PURE__*/Schema.optional(DocumentBlock),
188
+ cachePoint: /*#__PURE__*/Schema.optional(CachePointBlock)
189
+ });
190
+ /**
191
+ * A message within a Converse conversation.
192
+ *
193
+ * @stability unstable
194
+ * @category schemas
195
+ * @since 4.0.0
196
+ */
197
+ export const Message = /*#__PURE__*/ResponseStruct({
198
+ role: /*#__PURE__*/Schema.Literals(["user", "assistant"]),
199
+ content: /*#__PURE__*/Schema.Array(ContentBlock)
200
+ });
201
+ /**
202
+ * A system content block: system text or a cache point.
203
+ *
204
+ * @stability unstable
205
+ * @category schemas
206
+ * @since 4.0.0
207
+ */
208
+ export const SystemContentBlock = /*#__PURE__*/Schema.Struct({
209
+ text: /*#__PURE__*/Schema.optional(Schema.String),
210
+ cachePoint: /*#__PURE__*/Schema.optional(CachePointBlock)
211
+ });
212
+ // =============================================================================
213
+ // Request
214
+ // =============================================================================
215
+ /**
216
+ * Base inference parameters to pass to a model in a Converse call.
217
+ *
218
+ * @stability unstable
219
+ * @category schemas
220
+ * @since 4.0.0
221
+ */
222
+ export const InferenceConfiguration = /*#__PURE__*/Schema.Struct({
223
+ maxTokens: /*#__PURE__*/Schema.optional(Schema.Int),
224
+ stopSequences: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Array(Schema.String)),
225
+ temperature: /*#__PURE__*/Schema.optional(Schema.Number),
226
+ topP: /*#__PURE__*/Schema.optional(Schema.Number)
227
+ });
228
+ /**
229
+ * The JSON Schema specification of a tool the model may call.
230
+ *
231
+ * @stability unstable
232
+ * @category schemas
233
+ * @since 4.0.0
234
+ */
235
+ export const ToolSpecification = /*#__PURE__*/Schema.Struct({
236
+ name: Schema.String,
237
+ description: /*#__PURE__*/Schema.optionalKey(Schema.String),
238
+ inputSchema: /*#__PURE__*/Schema.Struct({
239
+ json: /*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown)
240
+ })
241
+ });
242
+ /**
243
+ * A tool entry within a {@link ToolConfiguration}: a tool specification, or a
244
+ * cache point marking the end of the cacheable prefix of the tool list.
245
+ *
246
+ * @stability unstable
247
+ * @category schemas
248
+ * @since 4.0.0
249
+ */
250
+ export const Tool = /*#__PURE__*/Schema.Struct({
251
+ toolSpec: /*#__PURE__*/Schema.optional(ToolSpecification),
252
+ cachePoint: /*#__PURE__*/Schema.optional(CachePointBlock)
253
+ });
254
+ /**
255
+ * Controls how the model selects a tool: let it decide (`auto`), force any
256
+ * tool (`any`), or force a specific tool (`tool`).
257
+ *
258
+ * @stability unstable
259
+ * @category schemas
260
+ * @since 4.0.0
261
+ */
262
+ export const ToolChoice = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Struct({
263
+ auto: /*#__PURE__*/Schema.Struct({})
264
+ }), /*#__PURE__*/Schema.Struct({
265
+ any: /*#__PURE__*/Schema.Struct({})
266
+ }), /*#__PURE__*/Schema.Struct({
267
+ tool: /*#__PURE__*/Schema.Struct({
268
+ name: Schema.String
269
+ })
270
+ })]);
271
+ /**
272
+ * The tool configuration for a Converse request.
273
+ *
274
+ * @stability unstable
275
+ * @category schemas
276
+ * @since 4.0.0
277
+ */
278
+ export const ToolConfiguration = /*#__PURE__*/Schema.Struct({
279
+ tools: /*#__PURE__*/Schema.Array(Tool),
280
+ toolChoice: /*#__PURE__*/Schema.optionalKey(ToolChoice)
281
+ });
282
+ /**
283
+ * A JSON Schema the model's output must conform to. `schema` is the JSON
284
+ * Schema serialized to a string, as Converse requires.
285
+ *
286
+ * @stability unstable
287
+ * @category schemas
288
+ * @since 4.0.0
289
+ */
290
+ export const JsonSchemaDefinition = /*#__PURE__*/Schema.Struct({
291
+ schema: Schema.String,
292
+ name: /*#__PURE__*/Schema.optionalKey(Schema.String),
293
+ description: /*#__PURE__*/Schema.optionalKey(Schema.String)
294
+ });
295
+ /**
296
+ * Structured output parameters for a Converse request.
297
+ *
298
+ * @stability unstable
299
+ * @category schemas
300
+ * @since 4.0.0
301
+ */
302
+ export const OutputFormat = /*#__PURE__*/Schema.Struct({
303
+ type: /*#__PURE__*/Schema.Literal("json_schema"),
304
+ structure: /*#__PURE__*/Schema.Struct({
305
+ jsonSchema: JsonSchemaDefinition
306
+ })
307
+ });
308
+ /**
309
+ * Output configuration for a Converse request: native structured output
310
+ * (`textFormat`) and the model's effort level (`effort`, on the models that
311
+ * accept it).
312
+ *
313
+ * @stability unstable
314
+ * @category schemas
315
+ * @since 4.0.0
316
+ */
317
+ export const OutputConfig = /*#__PURE__*/Schema.Struct({
318
+ textFormat: /*#__PURE__*/Schema.optionalKey(OutputFormat),
319
+ effort: /*#__PURE__*/Schema.optionalKey(Schema.String)
320
+ });
321
+ /**
322
+ * The guardrail of a Converse request. `streamProcessingMode` applies to
323
+ * ConverseStream only and is removed from Converse requests.
324
+ *
325
+ * @stability unstable
326
+ * @category schemas
327
+ * @since 4.0.0
328
+ */
329
+ export const GuardrailConfiguration = /*#__PURE__*/Schema.Struct({
330
+ guardrailIdentifier: Schema.String,
331
+ guardrailVersion: Schema.String,
332
+ trace: /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Literals(["enabled", "disabled", "enabled_full"])),
333
+ streamProcessingMode: /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Literals(["sync", "async"]))
334
+ });
335
+ /**
336
+ * The request payload for the Converse and ConverseStream operations.
337
+ *
338
+ * **Details**
339
+ *
340
+ * `modelId` travels in the URL, not in the body. `additionalModelRequestFields`
341
+ * carries inference parameters specific to the target model; extended
342
+ * thinking on an Anthropic model is enabled through it.
343
+ *
344
+ * @stability unstable
345
+ * @category schemas
346
+ * @since 4.0.0
347
+ */
348
+ export const ConverseRequest = /*#__PURE__*/Schema.Struct({
349
+ modelId: Schema.String,
350
+ messages: /*#__PURE__*/Schema.Array(Message),
351
+ system: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Array(SystemContentBlock)),
352
+ toolConfig: /*#__PURE__*/Schema.optionalKey(ToolConfiguration),
353
+ inferenceConfig: /*#__PURE__*/Schema.optional(InferenceConfiguration),
354
+ outputConfig: /*#__PURE__*/Schema.optionalKey(OutputConfig),
355
+ additionalModelRequestFields: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown)),
356
+ guardrailConfig: /*#__PURE__*/Schema.optional(GuardrailConfiguration)
357
+ });
358
+ // =============================================================================
359
+ // Response
360
+ // =============================================================================
361
+ /**
362
+ * Metrics about a Converse call.
363
+ *
364
+ * @stability unstable
365
+ * @category schemas
366
+ * @since 4.0.0
367
+ */
368
+ export const ConverseMetrics = /*#__PURE__*/ResponseStruct({
369
+ latencyMs: Schema.Number
370
+ });
371
+ /**
372
+ * The response from a successful Converse call. `trace` and any field this
373
+ * provider does not model, such as `additionalModelResponseFields`, are kept
374
+ * as Bedrock sent them.
375
+ *
376
+ * @stability unstable
377
+ * @category schemas
378
+ * @since 4.0.0
379
+ */
380
+ export const ConverseResponse = /*#__PURE__*/ResponseStruct({
381
+ output: /*#__PURE__*/ResponseStruct({
382
+ message: Message
383
+ }),
384
+ usage: TokenUsage,
385
+ stopReason: StopReason,
386
+ metrics: /*#__PURE__*/Schema.optional(ConverseMetrics),
387
+ trace: /*#__PURE__*/Schema.optional(Schema.Unknown)
388
+ });
389
+ // =============================================================================
390
+ // Stream Events
391
+ // =============================================================================
392
+ /**
393
+ * The start of a streamed message.
394
+ *
395
+ * @stability unstable
396
+ * @category schemas
397
+ * @since 4.0.0
398
+ */
399
+ export const MessageStartEvent = /*#__PURE__*/ResponseStruct({
400
+ role: /*#__PURE__*/Schema.Literals(["user", "assistant"])
401
+ });
402
+ /**
403
+ * The start of a streamed content block. Tool-use blocks announce their id and
404
+ * name here; text and reasoning blocks start directly with deltas.
405
+ *
406
+ * @stability unstable
407
+ * @category schemas
408
+ * @since 4.0.0
409
+ */
410
+ export const ContentBlockStartEvent = /*#__PURE__*/ResponseStruct({
411
+ contentBlockIndex: Schema.Int,
412
+ start: /*#__PURE__*/Schema.optional(/*#__PURE__*/ResponseStruct({
413
+ toolUse: /*#__PURE__*/Schema.optional(/*#__PURE__*/ResponseStruct({
414
+ toolUseId: Schema.String,
415
+ name: Schema.String
416
+ }))
417
+ }))
418
+ });
419
+ /**
420
+ * A delta within a streamed content block: text, a fragment of tool input
421
+ * JSON, or reasoning text, signature or redacted content. A delta member this
422
+ * provider does not model, such as `citation`, is kept as it was sent.
423
+ *
424
+ * @stability unstable
425
+ * @category schemas
426
+ * @since 4.0.0
427
+ */
428
+ export const ContentBlockDelta = /*#__PURE__*/ResponseStruct({
429
+ text: /*#__PURE__*/Schema.optional(Schema.String),
430
+ toolUse: /*#__PURE__*/Schema.optional(/*#__PURE__*/ResponseStruct({
431
+ input: Schema.String
432
+ })),
433
+ reasoningContent: /*#__PURE__*/Schema.optional(/*#__PURE__*/ResponseStruct({
434
+ text: /*#__PURE__*/Schema.optional(Schema.String),
435
+ signature: /*#__PURE__*/Schema.optional(Schema.String),
436
+ redactedContent: /*#__PURE__*/Schema.optional(Schema.String)
437
+ }))
438
+ });
439
+ /**
440
+ * A streamed delta event for a content block.
441
+ *
442
+ * @stability unstable
443
+ * @category schemas
444
+ * @since 4.0.0
445
+ */
446
+ export const ContentBlockDeltaEvent = /*#__PURE__*/ResponseStruct({
447
+ contentBlockIndex: Schema.Int,
448
+ delta: ContentBlockDelta
449
+ });
450
+ /**
451
+ * A streamed stop event for a content block.
452
+ *
453
+ * @stability unstable
454
+ * @category schemas
455
+ * @since 4.0.0
456
+ */
457
+ export const ContentBlockStopEvent = /*#__PURE__*/ResponseStruct({
458
+ contentBlockIndex: Schema.Int
459
+ });
460
+ /**
461
+ * The stop event for a streamed message.
462
+ *
463
+ * @stability unstable
464
+ * @category schemas
465
+ * @since 4.0.0
466
+ */
467
+ export const MessageStopEvent = /*#__PURE__*/ResponseStruct({
468
+ stopReason: StopReason
469
+ });
470
+ /**
471
+ * The trailing metadata event of a stream, carrying usage and metrics. Bedrock
472
+ * sends it after `messageStop`.
473
+ *
474
+ * @stability unstable
475
+ * @category schemas
476
+ * @since 4.0.0
477
+ */
478
+ export const ConverseStreamMetadataEvent = /*#__PURE__*/ResponseStruct({
479
+ usage: TokenUsage,
480
+ metrics: /*#__PURE__*/Schema.optional(ConverseMetrics),
481
+ trace: /*#__PURE__*/Schema.optional(Schema.Unknown)
482
+ });
483
+ const KnownConverseStreamEvent = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Struct({
484
+ messageStart: MessageStartEvent
485
+ }), /*#__PURE__*/Schema.Struct({
486
+ contentBlockStart: ContentBlockStartEvent
487
+ }), /*#__PURE__*/Schema.Struct({
488
+ contentBlockDelta: ContentBlockDeltaEvent
489
+ }), /*#__PURE__*/Schema.Struct({
490
+ contentBlockStop: ContentBlockStopEvent
491
+ }), /*#__PURE__*/Schema.Struct({
492
+ messageStop: MessageStopEvent
493
+ }), /*#__PURE__*/Schema.Struct({
494
+ metadata: ConverseStreamMetadataEvent
495
+ })]);
496
+ const knownStreamEventTypes = /*#__PURE__*/new Set(/*#__PURE__*/KnownConverseStreamEvent.members.flatMap(member => Object.keys(member.fields)));
497
+ /**
498
+ * Fallback schema for a ConverseStream event this provider does not model.
499
+ *
500
+ * @stability unstable
501
+ * @category schemas
502
+ * @since 4.0.0
503
+ */
504
+ export const UnknownConverseStreamEvent = /*#__PURE__*/Schema.declare(value => {
505
+ if (!Predicate.isObject(value)) {
506
+ return false;
507
+ }
508
+ const keys = Object.keys(value);
509
+ return keys.length === 1 && !knownStreamEventTypes.has(keys[0]);
510
+ }, {
511
+ identifier: "UnknownConverseStreamEvent",
512
+ description: "Fallback for unknown future stream events"
513
+ });
514
+ /**
515
+ * A ConverseStream event, keyed by its event-stream `:event-type`, as the AWS
516
+ * SDK shapes it: `{ messageStart: ... }`, `{ contentBlockDelta: ... }` and so
517
+ * on. An event type this provider does not model decodes through
518
+ * {@link UnknownConverseStreamEvent}; a malformed known event still fails.
519
+ *
520
+ * @stability unstable
521
+ * @category schemas
522
+ * @since 4.0.0
523
+ */
524
+ export const ConverseStreamEvent = /*#__PURE__*/Schema.Union([...KnownConverseStreamEvent.members, UnknownConverseStreamEvent]);
525
+ /**
526
+ * The body of an exception frame in a ConverseStream response, such as a
527
+ * `throttlingException`.
528
+ *
529
+ * @stability unstable
530
+ * @category schemas
531
+ * @since 4.0.0
532
+ */
533
+ export const ConverseStreamException = /*#__PURE__*/ResponseStruct({
534
+ message: /*#__PURE__*/Schema.optional(Schema.String)
535
+ });
536
+ //# sourceMappingURL=AmazonBedrockSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmazonBedrockSchema.js","names":[],"sources":["../src/AmazonBedrockSchema.ts"],"sourcesContent":[null],"mappings":"AAkBA,OAAO,KAAK,SAAS,MAAM,kBAAkB;AAC7C,OAAO,KAAK,MAAM,MAAM,eAAe;AAEvC;;;;AAIA,MAAM,aAAa,gBAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;AAElE;;;AAGA,MAAM,cAAc,GAA+C,MAAc,IAC/E,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;AAE/D;AACA;AACA;AAEA;;;;;;;AAOA,OAAO,MAAM,eAAe,gBAAG,MAAM,CAAC,QAAQ,CAAC,CAC7C,UAAU,EACV,UAAU,EACV,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,CAChC,CAAC;AAWF;;;;;;;;AAQA,OAAO,MAAM,UAAU,gBAAG,MAAM,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAW9F;;;;;;;AAOA,OAAO,MAAM,UAAU,gBAAG,cAAc,CAAC;EACvC,WAAW,EAAE,MAAM,CAAC,GAAG;EACvB,YAAY,EAAE,MAAM,CAAC,GAAG;EACxB,WAAW,EAAE,MAAM,CAAC,GAAG;EACvB,oBAAoB,eAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC;EACjD,qBAAqB,eAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG;CAClD,CAAC;AAWF;AACA;AACA;AAEA;;;;;;;AAOA,OAAO,MAAM,YAAY,gBAAG,cAAc,CAAC;EACzC,SAAS,EAAE,MAAM,CAA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AC,EAAE;IAC9B,OAAO,KAAK;EACd;EACA,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;EAC/B,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC,EACD;EACE,UAAU,EAAE,4BAA4B;EACxC,WAAW,EAAE;CACd,CACF;AAED;;;;;;;;;;AAUA,OAAO,MAAM,mBAAmB,gBAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,wBAAwB,CAAC,OAAO,EAAE,0BAA0B,CAAC,CAAC;AAWlH;;;;;;;;AAQA,OAAO,MAAM,uBAAuB,gBAAG,cAAc,CAAC;EACpD,OAAO,eAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM;CACvC,CAAC","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @stability unstable
3
+ * @since 4.0.0
4
+ */
5
+ /**
6
+ * @stability unstable
7
+ * @since 4.0.0
8
+ */
9
+ export * as AmazonBedrockClient from "./AmazonBedrockClient.ts";
10
+ /**
11
+ * @stability unstable
12
+ * @since 4.0.0
13
+ */
14
+ export * as AmazonBedrockConfig from "./AmazonBedrockConfig.ts";
15
+ /**
16
+ * @stability unstable
17
+ * @since 4.0.0
18
+ */
19
+ export * as AmazonBedrockLanguageModel from "./AmazonBedrockLanguageModel.ts";
20
+ /**
21
+ * @stability unstable
22
+ * @since 4.0.0
23
+ */
24
+ export * as AmazonBedrockSchema from "./AmazonBedrockSchema.ts";
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;GAGG;AACH,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAE/D;;;GAGG;AACH,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA;AAE/D;;;GAGG;AACH,OAAO,KAAK,0BAA0B,MAAM,iCAAiC,CAAA;AAE7E;;;GAGG;AACH,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAA"}
@@ -1,25 +1,26 @@
1
1
  /**
2
- * @since 1.0.0
2
+ * @stability unstable
3
+ * @since 4.0.0
4
+ */
5
+ // @barrel
6
+ /**
7
+ * @stability unstable
8
+ * @since 4.0.0
3
9
  */
4
10
  export * as AmazonBedrockClient from "./AmazonBedrockClient.js";
5
11
  /**
6
- * @since 1.0.0
12
+ * @stability unstable
13
+ * @since 4.0.0
7
14
  */
8
15
  export * as AmazonBedrockConfig from "./AmazonBedrockConfig.js";
9
16
  /**
10
- * @since 1.0.0
17
+ * @stability unstable
18
+ * @since 4.0.0
11
19
  */
12
20
  export * as AmazonBedrockLanguageModel from "./AmazonBedrockLanguageModel.js";
13
21
  /**
14
- * @since 1.0.0
22
+ * @stability unstable
23
+ * @since 4.0.0
15
24
  */
16
25
  export * as AmazonBedrockSchema from "./AmazonBedrockSchema.js";
17
- /**
18
- * @since 1.0.0
19
- */
20
- export * as AmazonBedrockTool from "./AmazonBedrockTool.js";
21
- /**
22
- * @since 1.0.0
23
- */
24
- export * as EventStreamEncoding from "./EventStreamEncoding.js";
25
26
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;AAKA;AAEA;;;;AAIA,OAAO,KAAK,mBAAmB,MAAM,0BAA0B;AAE/D;;;;AAIA,OAAO,KAAK,mBAAmB,MAAM,0BAA0B;AAE/D;;;;AAIA,OAAO,KAAK,0BAA0B,MAAM,iCAAiC;AAE7E;;;;AAIA,OAAO,KAAK,mBAAmB,MAAM,0BAA0B","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/internal/errors.ts"],"names":[],"mappings":""}