@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.
@@ -11,7 +11,7 @@
11
11
  * so decoding never fails on them.
12
12
  *
13
13
  * @stability unstable
14
- * @since 4.0.0
14
+ * @since 0.1.0
15
15
  */
16
16
  import * as Schema from "effect/Schema"
17
17
 
@@ -24,7 +24,7 @@ const makeIdentifier = (name: string) => `${prefix}/${name}`
24
24
  *
25
25
  * @stability unstable
26
26
  * @category schemas
27
- * @since 4.0.0
27
+ * @since 0.1.0
28
28
  */
29
29
  export const IntZeroOrGreater = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))
30
30
 
@@ -33,7 +33,7 @@ export const IntZeroOrGreater = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0
33
33
  *
34
34
  * @stability unstable
35
35
  * @category schemas
36
- * @since 4.0.0
36
+ * @since 0.1.0
37
37
  */
38
38
  export const StopReason = Schema.Literals([
39
39
  "end_turn",
@@ -52,7 +52,7 @@ export const StopReason = Schema.Literals([
52
52
  *
53
53
  * @stability unstable
54
54
  * @category schemas
55
- * @since 4.0.0
55
+ * @since 0.1.0
56
56
  */
57
57
  export type StopReason = typeof StopReason.Type
58
58
 
@@ -61,7 +61,7 @@ export type StopReason = typeof StopReason.Type
61
61
  *
62
62
  * @stability unstable
63
63
  * @category schemas
64
- * @since 4.0.0
64
+ * @since 0.1.0
65
65
  */
66
66
  export class TokenUsage extends Schema.Class<TokenUsage>(makeIdentifier("TokenUsage"))({
67
67
  inputTokens: IntZeroOrGreater,
@@ -80,7 +80,7 @@ export class TokenUsage extends Schema.Class<TokenUsage>(makeIdentifier("TokenUs
80
80
  *
81
81
  * @stability unstable
82
82
  * @category schemas
83
- * @since 4.0.0
83
+ * @since 0.1.0
84
84
  */
85
85
  export class ToolUseBlock extends Schema.Class<ToolUseBlock>(makeIdentifier("ToolUseBlock"))({
86
86
  toolUseId: Schema.String,
@@ -94,7 +94,7 @@ export class ToolUseBlock extends Schema.Class<ToolUseBlock>(makeIdentifier("Too
94
94
  *
95
95
  * @stability unstable
96
96
  * @category schemas
97
- * @since 4.0.0
97
+ * @since 0.1.0
98
98
  */
99
99
  export class ToolResultBlock extends Schema.Class<ToolResultBlock>(makeIdentifier("ToolResultBlock"))({
100
100
  toolUseId: Schema.String,
@@ -112,7 +112,7 @@ export class ToolResultBlock extends Schema.Class<ToolResultBlock>(makeIdentifie
112
112
  *
113
113
  * @stability unstable
114
114
  * @category schemas
115
- * @since 4.0.0
115
+ * @since 0.1.0
116
116
  */
117
117
  export class ReasoningTextBlock extends Schema.Class<ReasoningTextBlock>(makeIdentifier("ReasoningTextBlock"))({
118
118
  text: Schema.String,
@@ -131,7 +131,7 @@ export class ReasoningTextBlock extends Schema.Class<ReasoningTextBlock>(makeIde
131
131
  *
132
132
  * @stability unstable
133
133
  * @category schemas
134
- * @since 4.0.0
134
+ * @since 0.1.0
135
135
  */
136
136
  export const ReasoningContentBlock = Schema.Struct({
137
137
  reasoningText: Schema.optional(ReasoningTextBlock),
@@ -155,7 +155,7 @@ export const ReasoningContentBlock = Schema.Struct({
155
155
  *
156
156
  * @stability unstable
157
157
  * @category schemas
158
- * @since 4.0.0
158
+ * @since 0.1.0
159
159
  */
160
160
  export class CachePointBlock extends Schema.Class<CachePointBlock>(makeIdentifier("CachePointBlock"))({
161
161
  type: Schema.Literal("default"),
@@ -167,7 +167,7 @@ export class CachePointBlock extends Schema.Class<CachePointBlock>(makeIdentifie
167
167
  *
168
168
  * @stability unstable
169
169
  * @category schemas
170
- * @since 4.0.0
170
+ * @since 0.1.0
171
171
  */
172
172
  export class S3Location extends Schema.Class<S3Location>(makeIdentifier("S3Location"))({
173
173
  uri: Schema.String,
@@ -185,7 +185,7 @@ export class S3Location extends Schema.Class<S3Location>(makeIdentifier("S3Locat
185
185
  *
186
186
  * @stability unstable
187
187
  * @category schemas
188
- * @since 4.0.0
188
+ * @since 0.1.0
189
189
  */
190
190
  export const MediaSource = Schema.Struct({
191
191
  bytes: Schema.optional(Schema.String),
@@ -205,7 +205,7 @@ export const MediaSource = Schema.Struct({
205
205
  *
206
206
  * @stability unstable
207
207
  * @category schemas
208
- * @since 4.0.0
208
+ * @since 0.1.0
209
209
  */
210
210
  export const DocumentSource = Schema.Struct({
211
211
  ...MediaSource.fields,
@@ -217,7 +217,7 @@ export const DocumentSource = Schema.Struct({
217
217
  *
218
218
  * @stability unstable
219
219
  * @category schemas
220
- * @since 4.0.0
220
+ * @since 0.1.0
221
221
  */
222
222
  export class ImageBlock extends Schema.Class<ImageBlock>(makeIdentifier("ImageBlock"))({
223
223
  format: Schema.Literals(["png", "jpeg", "gif", "webp"]),
@@ -234,7 +234,7 @@ export class ImageBlock extends Schema.Class<ImageBlock>(makeIdentifier("ImageBl
234
234
  *
235
235
  * @stability unstable
236
236
  * @category schemas
237
- * @since 4.0.0
237
+ * @since 0.1.0
238
238
  */
239
239
  export class CitationsConfig extends Schema.Class<CitationsConfig>(makeIdentifier("CitationsConfig"))({
240
240
  enabled: Schema.Boolean
@@ -255,7 +255,7 @@ export class CitationsConfig extends Schema.Class<CitationsConfig>(makeIdentifie
255
255
  *
256
256
  * @stability unstable
257
257
  * @category schemas
258
- * @since 4.0.0
258
+ * @since 0.1.0
259
259
  */
260
260
  export class DocumentBlock extends Schema.Class<DocumentBlock>(makeIdentifier("DocumentBlock"))({
261
261
  format: Schema.Literals(["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]),
@@ -277,7 +277,7 @@ export class DocumentBlock extends Schema.Class<DocumentBlock>(makeIdentifier("D
277
277
  *
278
278
  * @stability unstable
279
279
  * @category schemas
280
- * @since 4.0.0
280
+ * @since 0.1.0
281
281
  */
282
282
  export class DocumentLocation extends Schema.Class<DocumentLocation>(makeIdentifier("DocumentLocation"))({
283
283
  documentIndex: Schema.optional(Schema.Number),
@@ -296,7 +296,7 @@ export class DocumentLocation extends Schema.Class<DocumentLocation>(makeIdentif
296
296
  *
297
297
  * @stability unstable
298
298
  * @category schemas
299
- * @since 4.0.0
299
+ * @since 0.1.0
300
300
  */
301
301
  export const CitationLocation = Schema.Struct({
302
302
  documentChar: Schema.optional(DocumentLocation),
@@ -315,7 +315,7 @@ export const CitationLocation = Schema.Struct({
315
315
  *
316
316
  * @stability unstable
317
317
  * @category schemas
318
- * @since 4.0.0
318
+ * @since 0.1.0
319
319
  */
320
320
  export const CitationTextContent = Schema.Struct({
321
321
  text: Schema.optional(Schema.String)
@@ -326,7 +326,7 @@ export const CitationTextContent = Schema.Struct({
326
326
  *
327
327
  * @stability unstable
328
328
  * @category schemas
329
- * @since 4.0.0
329
+ * @since 0.1.0
330
330
  */
331
331
  export class Citation extends Schema.Class<Citation>(makeIdentifier("Citation"))({
332
332
  title: Schema.optional(Schema.String),
@@ -345,7 +345,7 @@ export class Citation extends Schema.Class<Citation>(makeIdentifier("Citation"))
345
345
  *
346
346
  * @stability unstable
347
347
  * @category schemas
348
- * @since 4.0.0
348
+ * @since 0.1.0
349
349
  */
350
350
  export class CitationsContentBlock extends Schema.Class<CitationsContentBlock>(
351
351
  makeIdentifier("CitationsContentBlock")
@@ -367,7 +367,7 @@ export class CitationsContentBlock extends Schema.Class<CitationsContentBlock>(
367
367
  *
368
368
  * @stability unstable
369
369
  * @category schemas
370
- * @since 4.0.0
370
+ * @since 0.1.0
371
371
  */
372
372
  export const ContentBlock = Schema.Struct({
373
373
  type: Schema.tagDefaultOmit("text"),
@@ -386,7 +386,7 @@ export const ContentBlock = Schema.Struct({
386
386
  *
387
387
  * @stability unstable
388
388
  * @category schemas
389
- * @since 4.0.0
389
+ * @since 0.1.0
390
390
  */
391
391
  export class Message extends Schema.Class<Message>(makeIdentifier("Message"))({
392
392
  role: Schema.Literals(["user", "assistant"]),
@@ -403,7 +403,7 @@ export class Message extends Schema.Class<Message>(makeIdentifier("Message"))({
403
403
  *
404
404
  * @stability unstable
405
405
  * @category schemas
406
- * @since 4.0.0
406
+ * @since 0.1.0
407
407
  */
408
408
  export const SystemContentBlock = Schema.Struct({
409
409
  text: Schema.optional(Schema.String),
@@ -415,7 +415,7 @@ export const SystemContentBlock = Schema.Struct({
415
415
  *
416
416
  * @stability unstable
417
417
  * @category schemas
418
- * @since 4.0.0
418
+ * @since 0.1.0
419
419
  */
420
420
  export class InferenceConfiguration extends Schema.Class<InferenceConfiguration>(
421
421
  makeIdentifier("InferenceConfiguration")
@@ -431,7 +431,7 @@ export class InferenceConfiguration extends Schema.Class<InferenceConfiguration>
431
431
  *
432
432
  * @stability unstable
433
433
  * @category schemas
434
- * @since 4.0.0
434
+ * @since 0.1.0
435
435
  */
436
436
  export class ToolSpecification extends Schema.Class<ToolSpecification>(makeIdentifier("ToolSpecification"))({
437
437
  name: Schema.String,
@@ -456,7 +456,7 @@ export class ToolSpecification extends Schema.Class<ToolSpecification>(makeIdent
456
456
  *
457
457
  * @stability unstable
458
458
  * @category schemas
459
- * @since 4.0.0
459
+ * @since 0.1.0
460
460
  */
461
461
  export class Tool extends Schema.Class<Tool>(makeIdentifier("Tool"))({
462
462
  toolSpec: Schema.optional(ToolSpecification),
@@ -469,7 +469,7 @@ export class Tool extends Schema.Class<Tool>(makeIdentifier("Tool"))({
469
469
  *
470
470
  * @stability unstable
471
471
  * @category schemas
472
- * @since 4.0.0
472
+ * @since 0.1.0
473
473
  */
474
474
  export const ToolChoice = Schema.Union([
475
475
  Schema.Struct({ auto: Schema.Struct({}) }),
@@ -482,7 +482,7 @@ export const ToolChoice = Schema.Union([
482
482
  *
483
483
  * @stability unstable
484
484
  * @category schemas
485
- * @since 4.0.0
485
+ * @since 0.1.0
486
486
  */
487
487
  export type ToolChoice = typeof ToolChoice.Type
488
488
 
@@ -491,7 +491,7 @@ export type ToolChoice = typeof ToolChoice.Type
491
491
  *
492
492
  * @stability unstable
493
493
  * @category schemas
494
- * @since 4.0.0
494
+ * @since 0.1.0
495
495
  */
496
496
  export class ToolConfiguration extends Schema.Class<ToolConfiguration>(makeIdentifier("ToolConfiguration"))({
497
497
  tools: Schema.Array(Tool),
@@ -508,7 +508,7 @@ export class ToolConfiguration extends Schema.Class<ToolConfiguration>(makeIdent
508
508
  *
509
509
  * @stability unstable
510
510
  * @category schemas
511
- * @since 4.0.0
511
+ * @since 0.1.0
512
512
  */
513
513
  export const JsonSchemaDefinition = Schema.Struct({
514
514
  schema: Schema.String,
@@ -522,7 +522,7 @@ export const JsonSchemaDefinition = Schema.Struct({
522
522
  *
523
523
  * @stability unstable
524
524
  * @category schemas
525
- * @since 4.0.0
525
+ * @since 0.1.0
526
526
  */
527
527
  export const OutputFormatStructure = Schema.Struct({
528
528
  jsonSchema: JsonSchemaDefinition
@@ -533,7 +533,7 @@ export const OutputFormatStructure = Schema.Struct({
533
533
  *
534
534
  * @stability unstable
535
535
  * @category schemas
536
- * @since 4.0.0
536
+ * @since 0.1.0
537
537
  */
538
538
  export const OutputFormat = Schema.Struct({
539
539
  type: Schema.Literal("json_schema"),
@@ -547,7 +547,7 @@ export const OutputFormat = Schema.Struct({
547
547
  *
548
548
  * @stability unstable
549
549
  * @category schemas
550
- * @since 4.0.0
550
+ * @since 0.1.0
551
551
  */
552
552
  export const OutputConfig = Schema.Struct({
553
553
  textFormat: Schema.optionalKey(OutputFormat),
@@ -570,7 +570,7 @@ export const OutputConfig = Schema.Struct({
570
570
  *
571
571
  * @stability unstable
572
572
  * @category schemas
573
- * @since 4.0.0
573
+ * @since 0.1.0
574
574
  */
575
575
  export class ConverseRequest extends Schema.Class<ConverseRequest>(makeIdentifier("ConverseRequest"))({
576
576
  modelId: Schema.String,
@@ -591,7 +591,7 @@ export class ConverseRequest extends Schema.Class<ConverseRequest>(makeIdentifie
591
591
  *
592
592
  * @stability unstable
593
593
  * @category schemas
594
- * @since 4.0.0
594
+ * @since 0.1.0
595
595
  */
596
596
  export class ConverseOutput extends Schema.Class<ConverseOutput>(makeIdentifier("ConverseOutput"))({
597
597
  message: Message
@@ -602,7 +602,7 @@ export class ConverseOutput extends Schema.Class<ConverseOutput>(makeIdentifier(
602
602
  *
603
603
  * @stability unstable
604
604
  * @category schemas
605
- * @since 4.0.0
605
+ * @since 0.1.0
606
606
  */
607
607
  export class ConverseMetrics extends Schema.Class<ConverseMetrics>(makeIdentifier("ConverseMetrics"))({
608
608
  latencyMs: Schema.Number
@@ -613,7 +613,7 @@ export class ConverseMetrics extends Schema.Class<ConverseMetrics>(makeIdentifie
613
613
  *
614
614
  * @stability unstable
615
615
  * @category schemas
616
- * @since 4.0.0
616
+ * @since 0.1.0
617
617
  */
618
618
  export class ConverseResponse extends Schema.Class<ConverseResponse>(makeIdentifier("ConverseResponse"))({
619
619
  output: ConverseOutput,
@@ -631,7 +631,7 @@ export class ConverseResponse extends Schema.Class<ConverseResponse>(makeIdentif
631
631
  *
632
632
  * @stability unstable
633
633
  * @category schemas
634
- * @since 4.0.0
634
+ * @since 0.1.0
635
635
  */
636
636
  export class MessageStartEvent extends Schema.Class<MessageStartEvent>(
637
637
  makeIdentifier("MessageStartEvent")
@@ -646,7 +646,7 @@ export class MessageStartEvent extends Schema.Class<MessageStartEvent>(
646
646
  *
647
647
  * @stability unstable
648
648
  * @category schemas
649
- * @since 4.0.0
649
+ * @since 0.1.0
650
650
  */
651
651
  export const ToolUseBlockDelta = Schema.Struct({
652
652
  input: Schema.String
@@ -663,7 +663,7 @@ export const ToolUseBlockDelta = Schema.Struct({
663
663
  *
664
664
  * @stability unstable
665
665
  * @category schemas
666
- * @since 4.0.0
666
+ * @since 0.1.0
667
667
  */
668
668
  export const ReasoningContentBlockDelta = Schema.Struct({
669
669
  text: Schema.optional(Schema.String),
@@ -681,7 +681,7 @@ export const ReasoningContentBlockDelta = Schema.Struct({
681
681
  *
682
682
  * @stability unstable
683
683
  * @category schemas
684
- * @since 4.0.0
684
+ * @since 0.1.0
685
685
  */
686
686
  export class CitationsDelta extends Schema.Class<CitationsDelta>(makeIdentifier("CitationsDelta"))({
687
687
  title: Schema.optional(Schema.String),
@@ -703,7 +703,7 @@ export class CitationsDelta extends Schema.Class<CitationsDelta>(makeIdentifier(
703
703
  *
704
704
  * @stability unstable
705
705
  * @category schemas
706
- * @since 4.0.0
706
+ * @since 0.1.0
707
707
  */
708
708
  export const ContentBlockDelta = Schema.Struct({
709
709
  text: Schema.optional(Schema.String),
@@ -717,7 +717,7 @@ export const ContentBlockDelta = Schema.Struct({
717
717
  *
718
718
  * @stability unstable
719
719
  * @category schemas
720
- * @since 4.0.0
720
+ * @since 0.1.0
721
721
  */
722
722
  export class ContentBlockDeltaEvent extends Schema.Class<ContentBlockDeltaEvent>(
723
723
  makeIdentifier("ContentBlockDeltaEvent")
@@ -731,7 +731,7 @@ export class ContentBlockDeltaEvent extends Schema.Class<ContentBlockDeltaEvent>
731
731
  *
732
732
  * @stability unstable
733
733
  * @category schemas
734
- * @since 4.0.0
734
+ * @since 0.1.0
735
735
  */
736
736
  export class ContentBlockStopEvent extends Schema.Class<ContentBlockStopEvent>(
737
737
  makeIdentifier("ContentBlockStopEvent")
@@ -745,7 +745,7 @@ export class ContentBlockStopEvent extends Schema.Class<ContentBlockStopEvent>(
745
745
  *
746
746
  * @stability unstable
747
747
  * @category schemas
748
- * @since 4.0.0
748
+ * @since 0.1.0
749
749
  */
750
750
  export const ToolUseBlockStart = Schema.Struct({
751
751
  toolUseId: Schema.String,
@@ -763,7 +763,7 @@ export const ToolUseBlockStart = Schema.Struct({
763
763
  *
764
764
  * @stability unstable
765
765
  * @category schemas
766
- * @since 4.0.0
766
+ * @since 0.1.0
767
767
  */
768
768
  export const ContentBlockStart = Schema.Struct({
769
769
  toolUse: Schema.optional(ToolUseBlockStart)
@@ -777,7 +777,7 @@ export const ContentBlockStart = Schema.Struct({
777
777
  *
778
778
  * @stability unstable
779
779
  * @category schemas
780
- * @since 4.0.0
780
+ * @since 0.1.0
781
781
  */
782
782
  export class ContentBlockStartEvent extends Schema.Class<ContentBlockStartEvent>(
783
783
  makeIdentifier("ContentBlockStartEvent")
@@ -791,7 +791,7 @@ export class ContentBlockStartEvent extends Schema.Class<ContentBlockStartEvent>
791
791
  *
792
792
  * @stability unstable
793
793
  * @category schemas
794
- * @since 4.0.0
794
+ * @since 0.1.0
795
795
  */
796
796
  export class MessageStopEvent extends Schema.Class<MessageStopEvent>(
797
797
  makeIdentifier("MessageStopEvent")
@@ -804,7 +804,7 @@ export class MessageStopEvent extends Schema.Class<MessageStopEvent>(
804
804
  *
805
805
  * @stability unstable
806
806
  * @category schemas
807
- * @since 4.0.0
807
+ * @since 0.1.0
808
808
  */
809
809
  export class ConverseStreamMetadataEvent extends Schema.Class<ConverseStreamMetadataEvent>(
810
810
  makeIdentifier("ConverseStreamMetadataEvent")
@@ -828,7 +828,7 @@ const ExceptionBody = Schema.Struct({
828
828
  *
829
829
  * @stability unstable
830
830
  * @category schemas
831
- * @since 4.0.0
831
+ * @since 0.1.0
832
832
  */
833
833
  export const ConverseResponseStreamEvent = Schema.Union([
834
834
  Schema.Struct({
@@ -882,6 +882,6 @@ export const ConverseResponseStreamEvent = Schema.Union([
882
882
  *
883
883
  * @stability unstable
884
884
  * @category schemas
885
- * @since 4.0.0
885
+ * @since 0.1.0
886
886
  */
887
887
  export type ConverseResponseStreamEvent = typeof ConverseResponseStreamEvent.Type
package/src/index.ts CHANGED
@@ -1,36 +1,36 @@
1
1
  /**
2
2
  * @stability unstable
3
- * @since 4.0.0
3
+ * @since 0.1.0
4
4
  */
5
5
 
6
6
  // @barrel: Auto-generated exports. Do not edit manually.
7
7
 
8
8
  /**
9
9
  * @stability unstable
10
- * @since 4.0.0
10
+ * @since 0.1.0
11
11
  */
12
12
  export * as AmazonBedrockClient from "./AmazonBedrockClient.ts"
13
13
 
14
14
  /**
15
15
  * @stability unstable
16
- * @since 4.0.0
16
+ * @since 0.1.0
17
17
  */
18
18
  export * as AmazonBedrockConfig from "./AmazonBedrockConfig.ts"
19
19
 
20
20
  /**
21
21
  * @stability unstable
22
- * @since 4.0.0
22
+ * @since 0.1.0
23
23
  */
24
24
  export * as AmazonBedrockEventStream from "./AmazonBedrockEventStream.ts"
25
25
 
26
26
  /**
27
27
  * @stability unstable
28
- * @since 4.0.0
28
+ * @since 0.1.0
29
29
  */
30
30
  export * as AmazonBedrockLanguageModel from "./AmazonBedrockLanguageModel.ts"
31
31
 
32
32
  /**
33
33
  * @stability unstable
34
- * @since 4.0.0
34
+ * @since 0.1.0
35
35
  */
36
36
  export * as AmazonBedrockSchema from "./AmazonBedrockSchema.ts"