@wmaurer/effect-ai-amazon-bedrock 0.1.0 → 0.2.0
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/CHANGELOG.md +14 -0
- package/README.md +77 -9
- package/dist/AmazonBedrockClient.d.ts +135 -23
- package/dist/AmazonBedrockClient.d.ts.map +1 -1
- package/dist/AmazonBedrockClient.js +36 -92
- package/dist/AmazonBedrockClient.js.map +1 -1
- package/dist/AmazonBedrockConfig.d.ts +6 -6
- package/dist/AmazonBedrockConfig.js +4 -4
- package/dist/AmazonBedrockEventStream.d.ts +2 -2
- package/dist/AmazonBedrockEventStream.js +3 -3
- package/dist/AmazonBedrockLanguageModel.d.ts +22 -22
- package/dist/AmazonBedrockLanguageModel.js +7 -7
- package/dist/AmazonBedrockSchema.d.ts +52 -52
- package/dist/AmazonBedrockSchema.js +49 -49
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/internal/credentials.d.ts +79 -0
- package/dist/internal/credentials.d.ts.map +1 -0
- package/dist/internal/credentials.js +241 -0
- package/dist/internal/credentials.js.map +1 -0
- package/dist/internal/errors.d.ts +2 -0
- package/dist/internal/errors.d.ts.map +1 -1
- package/dist/internal/errors.js +6 -0
- package/dist/internal/errors.js.map +1 -1
- package/package.json +1 -1
- package/src/AmazonBedrockClient.ts +184 -95
- package/src/AmazonBedrockConfig.ts +6 -6
- package/src/AmazonBedrockEventStream.ts +3 -3
- package/src/AmazonBedrockLanguageModel.ts +23 -23
- package/src/AmazonBedrockSchema.ts +52 -52
- package/src/index.ts +6 -6
- package/src/internal/credentials.ts +319 -0
- package/src/internal/errors.ts +5 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* so decoding never fails on them.
|
|
12
12
|
*
|
|
13
13
|
* @stability unstable
|
|
14
|
-
* @since
|
|
14
|
+
* @since 0.1.0
|
|
15
15
|
*/
|
|
16
16
|
import * as Schema from "effect/Schema";
|
|
17
17
|
/**
|
|
@@ -19,7 +19,7 @@ import * as Schema from "effect/Schema";
|
|
|
19
19
|
*
|
|
20
20
|
* @stability unstable
|
|
21
21
|
* @category schemas
|
|
22
|
-
* @since
|
|
22
|
+
* @since 0.1.0
|
|
23
23
|
*/
|
|
24
24
|
export declare const IntZeroOrGreater: Schema.Int;
|
|
25
25
|
/**
|
|
@@ -27,7 +27,7 @@ export declare const IntZeroOrGreater: Schema.Int;
|
|
|
27
27
|
*
|
|
28
28
|
* @stability unstable
|
|
29
29
|
* @category schemas
|
|
30
|
-
* @since
|
|
30
|
+
* @since 0.1.0
|
|
31
31
|
*/
|
|
32
32
|
export declare const StopReason: Schema.Literals<readonly ["end_turn", "tool_use", "max_tokens", "stop_sequence", "guardrail_intervened", "content_filtered", "malformed_model_output", "malformed_tool_use", "model_context_window_exceeded"]>;
|
|
33
33
|
/**
|
|
@@ -35,7 +35,7 @@ export declare const StopReason: Schema.Literals<readonly ["end_turn", "tool_use
|
|
|
35
35
|
*
|
|
36
36
|
* @stability unstable
|
|
37
37
|
* @category schemas
|
|
38
|
-
* @since
|
|
38
|
+
* @since 0.1.0
|
|
39
39
|
*/
|
|
40
40
|
export type StopReason = typeof StopReason.Type;
|
|
41
41
|
declare const TokenUsage_base: Schema.Class<TokenUsage, Schema.Struct<{
|
|
@@ -50,7 +50,7 @@ declare const TokenUsage_base: Schema.Class<TokenUsage, Schema.Struct<{
|
|
|
50
50
|
*
|
|
51
51
|
* @stability unstable
|
|
52
52
|
* @category schemas
|
|
53
|
-
* @since
|
|
53
|
+
* @since 0.1.0
|
|
54
54
|
*/
|
|
55
55
|
export declare class TokenUsage extends TokenUsage_base {
|
|
56
56
|
}
|
|
@@ -64,7 +64,7 @@ declare const ToolUseBlock_base: Schema.Class<ToolUseBlock, Schema.Struct<{
|
|
|
64
64
|
*
|
|
65
65
|
* @stability unstable
|
|
66
66
|
* @category schemas
|
|
67
|
-
* @since
|
|
67
|
+
* @since 0.1.0
|
|
68
68
|
*/
|
|
69
69
|
export declare class ToolUseBlock extends ToolUseBlock_base {
|
|
70
70
|
}
|
|
@@ -80,7 +80,7 @@ declare const ToolResultBlock_base: Schema.Class<ToolResultBlock, Schema.Struct<
|
|
|
80
80
|
*
|
|
81
81
|
* @stability unstable
|
|
82
82
|
* @category schemas
|
|
83
|
-
* @since
|
|
83
|
+
* @since 0.1.0
|
|
84
84
|
*/
|
|
85
85
|
export declare class ToolResultBlock extends ToolResultBlock_base {
|
|
86
86
|
}
|
|
@@ -99,7 +99,7 @@ declare const ReasoningTextBlock_base: Schema.Class<ReasoningTextBlock, Schema.S
|
|
|
99
99
|
*
|
|
100
100
|
* @stability unstable
|
|
101
101
|
* @category schemas
|
|
102
|
-
* @since
|
|
102
|
+
* @since 0.1.0
|
|
103
103
|
*/
|
|
104
104
|
export declare class ReasoningTextBlock extends ReasoningTextBlock_base {
|
|
105
105
|
}
|
|
@@ -115,7 +115,7 @@ export declare class ReasoningTextBlock extends ReasoningTextBlock_base {
|
|
|
115
115
|
*
|
|
116
116
|
* @stability unstable
|
|
117
117
|
* @category schemas
|
|
118
|
-
* @since
|
|
118
|
+
* @since 0.1.0
|
|
119
119
|
*/
|
|
120
120
|
export declare const ReasoningContentBlock: Schema.Struct<{
|
|
121
121
|
readonly reasoningText: Schema.optional<typeof ReasoningTextBlock>;
|
|
@@ -142,7 +142,7 @@ declare const CachePointBlock_base: Schema.Class<CachePointBlock, Schema.Struct<
|
|
|
142
142
|
*
|
|
143
143
|
* @stability unstable
|
|
144
144
|
* @category schemas
|
|
145
|
-
* @since
|
|
145
|
+
* @since 0.1.0
|
|
146
146
|
*/
|
|
147
147
|
export declare class CachePointBlock extends CachePointBlock_base {
|
|
148
148
|
}
|
|
@@ -155,7 +155,7 @@ declare const S3Location_base: Schema.Class<S3Location, Schema.Struct<{
|
|
|
155
155
|
*
|
|
156
156
|
* @stability unstable
|
|
157
157
|
* @category schemas
|
|
158
|
-
* @since
|
|
158
|
+
* @since 0.1.0
|
|
159
159
|
*/
|
|
160
160
|
export declare class S3Location extends S3Location_base {
|
|
161
161
|
}
|
|
@@ -170,7 +170,7 @@ export declare class S3Location extends S3Location_base {
|
|
|
170
170
|
*
|
|
171
171
|
* @stability unstable
|
|
172
172
|
* @category schemas
|
|
173
|
-
* @since
|
|
173
|
+
* @since 0.1.0
|
|
174
174
|
*/
|
|
175
175
|
export declare const MediaSource: Schema.Struct<{
|
|
176
176
|
readonly bytes: Schema.optional<Schema.String>;
|
|
@@ -189,7 +189,7 @@ export declare const MediaSource: Schema.Struct<{
|
|
|
189
189
|
*
|
|
190
190
|
* @stability unstable
|
|
191
191
|
* @category schemas
|
|
192
|
-
* @since
|
|
192
|
+
* @since 0.1.0
|
|
193
193
|
*/
|
|
194
194
|
export declare const DocumentSource: Schema.Struct<{
|
|
195
195
|
readonly bytes: Schema.optional<Schema.String>;
|
|
@@ -208,7 +208,7 @@ declare const ImageBlock_base: Schema.Class<ImageBlock, Schema.Struct<{
|
|
|
208
208
|
*
|
|
209
209
|
* @stability unstable
|
|
210
210
|
* @category schemas
|
|
211
|
-
* @since
|
|
211
|
+
* @since 0.1.0
|
|
212
212
|
*/
|
|
213
213
|
export declare class ImageBlock extends ImageBlock_base {
|
|
214
214
|
}
|
|
@@ -225,7 +225,7 @@ declare const CitationsConfig_base: Schema.Class<CitationsConfig, Schema.Struct<
|
|
|
225
225
|
*
|
|
226
226
|
* @stability unstable
|
|
227
227
|
* @category schemas
|
|
228
|
-
* @since
|
|
228
|
+
* @since 0.1.0
|
|
229
229
|
*/
|
|
230
230
|
export declare class CitationsConfig extends CitationsConfig_base {
|
|
231
231
|
}
|
|
@@ -255,7 +255,7 @@ declare const DocumentBlock_base: Schema.Class<DocumentBlock, Schema.Struct<{
|
|
|
255
255
|
*
|
|
256
256
|
* @stability unstable
|
|
257
257
|
* @category schemas
|
|
258
|
-
* @since
|
|
258
|
+
* @since 0.1.0
|
|
259
259
|
*/
|
|
260
260
|
export declare class DocumentBlock extends DocumentBlock_base {
|
|
261
261
|
}
|
|
@@ -276,7 +276,7 @@ declare const DocumentLocation_base: Schema.Class<DocumentLocation, Schema.Struc
|
|
|
276
276
|
*
|
|
277
277
|
* @stability unstable
|
|
278
278
|
* @category schemas
|
|
279
|
-
* @since
|
|
279
|
+
* @since 0.1.0
|
|
280
280
|
*/
|
|
281
281
|
export declare class DocumentLocation extends DocumentLocation_base {
|
|
282
282
|
}
|
|
@@ -291,7 +291,7 @@ export declare class DocumentLocation extends DocumentLocation_base {
|
|
|
291
291
|
*
|
|
292
292
|
* @stability unstable
|
|
293
293
|
* @category schemas
|
|
294
|
-
* @since
|
|
294
|
+
* @since 0.1.0
|
|
295
295
|
*/
|
|
296
296
|
export declare const CitationLocation: Schema.Struct<{
|
|
297
297
|
readonly documentChar: Schema.optional<typeof DocumentLocation>;
|
|
@@ -309,7 +309,7 @@ export declare const CitationLocation: Schema.Struct<{
|
|
|
309
309
|
*
|
|
310
310
|
* @stability unstable
|
|
311
311
|
* @category schemas
|
|
312
|
-
* @since
|
|
312
|
+
* @since 0.1.0
|
|
313
313
|
*/
|
|
314
314
|
export declare const CitationTextContent: Schema.Struct<{
|
|
315
315
|
readonly text: Schema.optional<Schema.String>;
|
|
@@ -331,7 +331,7 @@ declare const Citation_base: Schema.Class<Citation, Schema.Struct<{
|
|
|
331
331
|
*
|
|
332
332
|
* @stability unstable
|
|
333
333
|
* @category schemas
|
|
334
|
-
* @since
|
|
334
|
+
* @since 0.1.0
|
|
335
335
|
*/
|
|
336
336
|
export declare class Citation extends Citation_base {
|
|
337
337
|
}
|
|
@@ -351,7 +351,7 @@ declare const CitationsContentBlock_base: Schema.Class<CitationsContentBlock, Sc
|
|
|
351
351
|
*
|
|
352
352
|
* @stability unstable
|
|
353
353
|
* @category schemas
|
|
354
|
-
* @since
|
|
354
|
+
* @since 0.1.0
|
|
355
355
|
*/
|
|
356
356
|
export declare class CitationsContentBlock extends CitationsContentBlock_base {
|
|
357
357
|
}
|
|
@@ -368,7 +368,7 @@ export declare class CitationsContentBlock extends CitationsContentBlock_base {
|
|
|
368
368
|
*
|
|
369
369
|
* @stability unstable
|
|
370
370
|
* @category schemas
|
|
371
|
-
* @since
|
|
371
|
+
* @since 0.1.0
|
|
372
372
|
*/
|
|
373
373
|
export declare const ContentBlock: Schema.Struct<{
|
|
374
374
|
readonly type: Schema.withDecodingDefaultKey<Schema.tag<"text">, never>;
|
|
@@ -406,7 +406,7 @@ declare const Message_base: Schema.Class<Message, Schema.Struct<{
|
|
|
406
406
|
*
|
|
407
407
|
* @stability unstable
|
|
408
408
|
* @category schemas
|
|
409
|
-
* @since
|
|
409
|
+
* @since 0.1.0
|
|
410
410
|
*/
|
|
411
411
|
export declare class Message extends Message_base {
|
|
412
412
|
}
|
|
@@ -420,7 +420,7 @@ export declare class Message extends Message_base {
|
|
|
420
420
|
*
|
|
421
421
|
* @stability unstable
|
|
422
422
|
* @category schemas
|
|
423
|
-
* @since
|
|
423
|
+
* @since 0.1.0
|
|
424
424
|
*/
|
|
425
425
|
export declare const SystemContentBlock: Schema.Struct<{
|
|
426
426
|
readonly text: Schema.optional<Schema.String>;
|
|
@@ -437,7 +437,7 @@ declare const InferenceConfiguration_base: Schema.Class<InferenceConfiguration,
|
|
|
437
437
|
*
|
|
438
438
|
* @stability unstable
|
|
439
439
|
* @category schemas
|
|
440
|
-
* @since
|
|
440
|
+
* @since 0.1.0
|
|
441
441
|
*/
|
|
442
442
|
export declare class InferenceConfiguration extends InferenceConfiguration_base {
|
|
443
443
|
}
|
|
@@ -453,7 +453,7 @@ declare const ToolSpecification_base: Schema.Class<ToolSpecification, Schema.Str
|
|
|
453
453
|
*
|
|
454
454
|
* @stability unstable
|
|
455
455
|
* @category schemas
|
|
456
|
-
* @since
|
|
456
|
+
* @since 0.1.0
|
|
457
457
|
*/
|
|
458
458
|
export declare class ToolSpecification extends ToolSpecification_base {
|
|
459
459
|
}
|
|
@@ -476,7 +476,7 @@ declare const Tool_base: Schema.Class<Tool, Schema.Struct<{
|
|
|
476
476
|
*
|
|
477
477
|
* @stability unstable
|
|
478
478
|
* @category schemas
|
|
479
|
-
* @since
|
|
479
|
+
* @since 0.1.0
|
|
480
480
|
*/
|
|
481
481
|
export declare class Tool extends Tool_base {
|
|
482
482
|
}
|
|
@@ -486,7 +486,7 @@ export declare class Tool extends Tool_base {
|
|
|
486
486
|
*
|
|
487
487
|
* @stability unstable
|
|
488
488
|
* @category schemas
|
|
489
|
-
* @since
|
|
489
|
+
* @since 0.1.0
|
|
490
490
|
*/
|
|
491
491
|
export declare const ToolChoice: Schema.Union<readonly [Schema.Struct<{
|
|
492
492
|
readonly auto: Schema.Struct<{}>;
|
|
@@ -502,7 +502,7 @@ export declare const ToolChoice: Schema.Union<readonly [Schema.Struct<{
|
|
|
502
502
|
*
|
|
503
503
|
* @stability unstable
|
|
504
504
|
* @category schemas
|
|
505
|
-
* @since
|
|
505
|
+
* @since 0.1.0
|
|
506
506
|
*/
|
|
507
507
|
export type ToolChoice = typeof ToolChoice.Type;
|
|
508
508
|
declare const ToolConfiguration_base: Schema.Class<ToolConfiguration, Schema.Struct<{
|
|
@@ -522,7 +522,7 @@ declare const ToolConfiguration_base: Schema.Class<ToolConfiguration, Schema.Str
|
|
|
522
522
|
*
|
|
523
523
|
* @stability unstable
|
|
524
524
|
* @category schemas
|
|
525
|
-
* @since
|
|
525
|
+
* @since 0.1.0
|
|
526
526
|
*/
|
|
527
527
|
export declare class ToolConfiguration extends ToolConfiguration_base {
|
|
528
528
|
}
|
|
@@ -536,7 +536,7 @@ export declare class ToolConfiguration extends ToolConfiguration_base {
|
|
|
536
536
|
*
|
|
537
537
|
* @stability unstable
|
|
538
538
|
* @category schemas
|
|
539
|
-
* @since
|
|
539
|
+
* @since 0.1.0
|
|
540
540
|
*/
|
|
541
541
|
export declare const JsonSchemaDefinition: Schema.Struct<{
|
|
542
542
|
readonly schema: Schema.String;
|
|
@@ -549,7 +549,7 @@ export declare const JsonSchemaDefinition: Schema.Struct<{
|
|
|
549
549
|
*
|
|
550
550
|
* @stability unstable
|
|
551
551
|
* @category schemas
|
|
552
|
-
* @since
|
|
552
|
+
* @since 0.1.0
|
|
553
553
|
*/
|
|
554
554
|
export declare const OutputFormatStructure: Schema.Struct<{
|
|
555
555
|
readonly jsonSchema: Schema.Struct<{
|
|
@@ -563,7 +563,7 @@ export declare const OutputFormatStructure: Schema.Struct<{
|
|
|
563
563
|
*
|
|
564
564
|
* @stability unstable
|
|
565
565
|
* @category schemas
|
|
566
|
-
* @since
|
|
566
|
+
* @since 0.1.0
|
|
567
567
|
*/
|
|
568
568
|
export declare const OutputFormat: Schema.Struct<{
|
|
569
569
|
readonly type: Schema.Literal<"json_schema">;
|
|
@@ -582,7 +582,7 @@ export declare const OutputFormat: Schema.Struct<{
|
|
|
582
582
|
*
|
|
583
583
|
* @stability unstable
|
|
584
584
|
* @category schemas
|
|
585
|
-
* @since
|
|
585
|
+
* @since 0.1.0
|
|
586
586
|
*/
|
|
587
587
|
export declare const OutputConfig: Schema.Struct<{
|
|
588
588
|
readonly textFormat: Schema.optionalKey<Schema.Struct<{
|
|
@@ -637,7 +637,7 @@ declare const ConverseRequest_base: Schema.Class<ConverseRequest, Schema.Struct<
|
|
|
637
637
|
*
|
|
638
638
|
* @stability unstable
|
|
639
639
|
* @category schemas
|
|
640
|
-
* @since
|
|
640
|
+
* @since 0.1.0
|
|
641
641
|
*/
|
|
642
642
|
export declare class ConverseRequest extends ConverseRequest_base {
|
|
643
643
|
}
|
|
@@ -649,7 +649,7 @@ declare const ConverseOutput_base: Schema.Class<ConverseOutput, Schema.Struct<{
|
|
|
649
649
|
*
|
|
650
650
|
* @stability unstable
|
|
651
651
|
* @category schemas
|
|
652
|
-
* @since
|
|
652
|
+
* @since 0.1.0
|
|
653
653
|
*/
|
|
654
654
|
export declare class ConverseOutput extends ConverseOutput_base {
|
|
655
655
|
}
|
|
@@ -661,7 +661,7 @@ declare const ConverseMetrics_base: Schema.Class<ConverseMetrics, Schema.Struct<
|
|
|
661
661
|
*
|
|
662
662
|
* @stability unstable
|
|
663
663
|
* @category schemas
|
|
664
|
-
* @since
|
|
664
|
+
* @since 0.1.0
|
|
665
665
|
*/
|
|
666
666
|
export declare class ConverseMetrics extends ConverseMetrics_base {
|
|
667
667
|
}
|
|
@@ -676,7 +676,7 @@ declare const ConverseResponse_base: Schema.Class<ConverseResponse, Schema.Struc
|
|
|
676
676
|
*
|
|
677
677
|
* @stability unstable
|
|
678
678
|
* @category schemas
|
|
679
|
-
* @since
|
|
679
|
+
* @since 0.1.0
|
|
680
680
|
*/
|
|
681
681
|
export declare class ConverseResponse extends ConverseResponse_base {
|
|
682
682
|
}
|
|
@@ -688,7 +688,7 @@ declare const MessageStartEvent_base: Schema.Class<MessageStartEvent, Schema.Str
|
|
|
688
688
|
*
|
|
689
689
|
* @stability unstable
|
|
690
690
|
* @category schemas
|
|
691
|
-
* @since
|
|
691
|
+
* @since 0.1.0
|
|
692
692
|
*/
|
|
693
693
|
export declare class MessageStartEvent extends MessageStartEvent_base {
|
|
694
694
|
}
|
|
@@ -699,7 +699,7 @@ export declare class MessageStartEvent extends MessageStartEvent_base {
|
|
|
699
699
|
*
|
|
700
700
|
* @stability unstable
|
|
701
701
|
* @category schemas
|
|
702
|
-
* @since
|
|
702
|
+
* @since 0.1.0
|
|
703
703
|
*/
|
|
704
704
|
export declare const ToolUseBlockDelta: Schema.Struct<{
|
|
705
705
|
readonly input: Schema.String;
|
|
@@ -715,7 +715,7 @@ export declare const ToolUseBlockDelta: Schema.Struct<{
|
|
|
715
715
|
*
|
|
716
716
|
* @stability unstable
|
|
717
717
|
* @category schemas
|
|
718
|
-
* @since
|
|
718
|
+
* @since 0.1.0
|
|
719
719
|
*/
|
|
720
720
|
export declare const ReasoningContentBlockDelta: Schema.Struct<{
|
|
721
721
|
readonly text: Schema.optional<Schema.String>;
|
|
@@ -744,7 +744,7 @@ declare const CitationsDelta_base: Schema.Class<CitationsDelta, Schema.Struct<{
|
|
|
744
744
|
*
|
|
745
745
|
* @stability unstable
|
|
746
746
|
* @category schemas
|
|
747
|
-
* @since
|
|
747
|
+
* @since 0.1.0
|
|
748
748
|
*/
|
|
749
749
|
export declare class CitationsDelta extends CitationsDelta_base {
|
|
750
750
|
}
|
|
@@ -761,7 +761,7 @@ export declare class CitationsDelta extends CitationsDelta_base {
|
|
|
761
761
|
*
|
|
762
762
|
* @stability unstable
|
|
763
763
|
* @category schemas
|
|
764
|
-
* @since
|
|
764
|
+
* @since 0.1.0
|
|
765
765
|
*/
|
|
766
766
|
export declare const ContentBlockDelta: Schema.Struct<{
|
|
767
767
|
readonly text: Schema.optional<Schema.String>;
|
|
@@ -795,7 +795,7 @@ declare const ContentBlockDeltaEvent_base: Schema.Class<ContentBlockDeltaEvent,
|
|
|
795
795
|
*
|
|
796
796
|
* @stability unstable
|
|
797
797
|
* @category schemas
|
|
798
|
-
* @since
|
|
798
|
+
* @since 0.1.0
|
|
799
799
|
*/
|
|
800
800
|
export declare class ContentBlockDeltaEvent extends ContentBlockDeltaEvent_base {
|
|
801
801
|
}
|
|
@@ -807,7 +807,7 @@ declare const ContentBlockStopEvent_base: Schema.Class<ContentBlockStopEvent, Sc
|
|
|
807
807
|
*
|
|
808
808
|
* @stability unstable
|
|
809
809
|
* @category schemas
|
|
810
|
-
* @since
|
|
810
|
+
* @since 0.1.0
|
|
811
811
|
*/
|
|
812
812
|
export declare class ContentBlockStopEvent extends ContentBlockStopEvent_base {
|
|
813
813
|
}
|
|
@@ -817,7 +817,7 @@ export declare class ContentBlockStopEvent extends ContentBlockStopEvent_base {
|
|
|
817
817
|
*
|
|
818
818
|
* @stability unstable
|
|
819
819
|
* @category schemas
|
|
820
|
-
* @since
|
|
820
|
+
* @since 0.1.0
|
|
821
821
|
*/
|
|
822
822
|
export declare const ToolUseBlockStart: Schema.Struct<{
|
|
823
823
|
readonly toolUseId: Schema.String;
|
|
@@ -834,7 +834,7 @@ export declare const ToolUseBlockStart: Schema.Struct<{
|
|
|
834
834
|
*
|
|
835
835
|
* @stability unstable
|
|
836
836
|
* @category schemas
|
|
837
|
-
* @since
|
|
837
|
+
* @since 0.1.0
|
|
838
838
|
*/
|
|
839
839
|
export declare const ContentBlockStart: Schema.Struct<{
|
|
840
840
|
readonly toolUse: Schema.optional<Schema.Struct<{
|
|
@@ -859,7 +859,7 @@ declare const ContentBlockStartEvent_base: Schema.Class<ContentBlockStartEvent,
|
|
|
859
859
|
*
|
|
860
860
|
* @stability unstable
|
|
861
861
|
* @category schemas
|
|
862
|
-
* @since
|
|
862
|
+
* @since 0.1.0
|
|
863
863
|
*/
|
|
864
864
|
export declare class ContentBlockStartEvent extends ContentBlockStartEvent_base {
|
|
865
865
|
}
|
|
@@ -871,7 +871,7 @@ declare const MessageStopEvent_base: Schema.Class<MessageStopEvent, Schema.Struc
|
|
|
871
871
|
*
|
|
872
872
|
* @stability unstable
|
|
873
873
|
* @category schemas
|
|
874
|
-
* @since
|
|
874
|
+
* @since 0.1.0
|
|
875
875
|
*/
|
|
876
876
|
export declare class MessageStopEvent extends MessageStopEvent_base {
|
|
877
877
|
}
|
|
@@ -884,7 +884,7 @@ declare const ConverseStreamMetadataEvent_base: Schema.Class<ConverseStreamMetad
|
|
|
884
884
|
*
|
|
885
885
|
* @stability unstable
|
|
886
886
|
* @category schemas
|
|
887
|
-
* @since
|
|
887
|
+
* @since 0.1.0
|
|
888
888
|
*/
|
|
889
889
|
export declare class ConverseStreamMetadataEvent extends ConverseStreamMetadataEvent_base {
|
|
890
890
|
}
|
|
@@ -899,7 +899,7 @@ export declare class ConverseStreamMetadataEvent extends ConverseStreamMetadataE
|
|
|
899
899
|
*
|
|
900
900
|
* @stability unstable
|
|
901
901
|
* @category schemas
|
|
902
|
-
* @since
|
|
902
|
+
* @since 0.1.0
|
|
903
903
|
*/
|
|
904
904
|
export declare const ConverseResponseStreamEvent: Schema.Union<readonly [Schema.Struct<{
|
|
905
905
|
readonly type: Schema.withDecodingDefaultKey<Schema.tag<"messageStart">, never>;
|
|
@@ -950,7 +950,7 @@ export declare const ConverseResponseStreamEvent: Schema.Union<readonly [Schema.
|
|
|
950
950
|
*
|
|
951
951
|
* @stability unstable
|
|
952
952
|
* @category schemas
|
|
953
|
-
* @since
|
|
953
|
+
* @since 0.1.0
|
|
954
954
|
*/
|
|
955
955
|
export type ConverseResponseStreamEvent = typeof ConverseResponseStreamEvent.Type;
|
|
956
956
|
export {};
|