@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16274

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 (42) hide show
  1. package/dist/llm.d.ts +60 -60
  2. package/dist/protocols/anthropic-messages.d.ts +303 -303
  3. package/dist/protocols/anthropic-messages.js +1 -0
  4. package/dist/protocols/bedrock-converse.d.ts +246 -242
  5. package/dist/protocols/gemini.d.ts +136 -132
  6. package/dist/protocols/gemini.js +1 -0
  7. package/dist/protocols/open-responses.d.ts +232 -232
  8. package/dist/protocols/openai-chat.d.ts +147 -141
  9. package/dist/protocols/openai-chat.js +1 -0
  10. package/dist/protocols/openai-compatible-chat.d.ts +48 -46
  11. package/dist/protocols/openai-compatible-responses.d.ts +56 -56
  12. package/dist/protocols/openai-responses.d.ts +388 -388
  13. package/dist/protocols/shared.d.ts +5 -4
  14. package/dist/protocols/shared.js +1 -0
  15. package/dist/protocols/utils/bedrock-media.d.ts +10 -10
  16. package/dist/protocols/utils/tool-stream.d.ts +180 -180
  17. package/dist/providers/amazon-bedrock.d.ts +109 -107
  18. package/dist/providers/anthropic-compatible.d.ts +145 -145
  19. package/dist/providers/anthropic.d.ts +145 -145
  20. package/dist/providers/azure.d.ts +112 -110
  21. package/dist/providers/cloudflare.d.ts +144 -138
  22. package/dist/providers/github-copilot.d.ts +112 -110
  23. package/dist/providers/google-vertex-chat.d.ts +48 -46
  24. package/dist/providers/google-vertex-messages.d.ts +145 -146
  25. package/dist/providers/google-vertex-responses.d.ts +56 -56
  26. package/dist/providers/google-vertex.d.ts +52 -50
  27. package/dist/providers/google.d.ts +52 -50
  28. package/dist/providers/openai-compatible-responses.d.ts +56 -56
  29. package/dist/providers/openai-compatible.d.ts +48 -46
  30. package/dist/providers/openai.d.ts +176 -174
  31. package/dist/providers/openrouter.d.ts +147 -141
  32. package/dist/providers/xai.d.ts +112 -110
  33. package/dist/route/client.d.ts +60 -60
  34. package/dist/schema/errors.d.ts +2 -6
  35. package/dist/schema/errors.js +2 -5
  36. package/dist/schema/events.d.ts +1117 -1115
  37. package/dist/schema/messages.d.ts +9 -9
  38. package/dist/schema/messages.js +3 -4
  39. package/dist/tool-runtime.js +1 -1
  40. package/dist/tool.d.ts +5 -4
  41. package/dist/tool.js +1 -0
  42. package/package.json +5 -5
@@ -402,68 +402,69 @@ export declare const fromRequestWithExtension: (request: LLMRequest, extension:
402
402
  export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
403
403
  readonly input: readonly ({
404
404
  readonly type: "reasoning";
405
- readonly summary: readonly Schema.Struct.ReadonlySide<{
406
- readonly type: Schema.tag<"summary_text">;
407
- readonly text: Schema.String;
408
- }, "Type">[];
405
+ readonly summary: readonly {
406
+ readonly type: "summary_text";
407
+ readonly text: string;
408
+ }[];
409
409
  readonly id?: string | undefined;
410
410
  readonly encrypted_content?: string | null | undefined;
411
- } | Schema.Struct.ReadonlySide<{
412
- readonly type: Schema.tag<"item_reference">;
413
- readonly id: Schema.String;
414
- }, "Type"> | Schema.Struct.ReadonlySide<{
415
- readonly role: Schema.tag<"system">;
416
- readonly content: Schema.String;
417
- }, "Type"> | Schema.Struct.ReadonlySide<{
418
- readonly role: Schema.tag<"user">;
419
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
420
- readonly type: Schema.tag<"input_text">;
421
- readonly text: Schema.String;
422
- }>, Schema.Union<readonly [Schema.Struct<{
423
- readonly type: Schema.tag<"input_image">;
424
- readonly image_url: Schema.String;
425
- }>, Schema.Struct<{
426
- readonly type: Schema.tag<"input_file">;
427
- readonly filename: Schema.String;
428
- readonly file_data: Schema.String;
429
- readonly mime_type: Schema.optional<Schema.String>;
430
- }>]>]>>;
431
- }, "Type"> | {
432
- readonly content: readonly Schema.Struct.ReadonlySide<{
433
- readonly type: Schema.tag<"output_text">;
434
- readonly text: Schema.String;
435
- }, "Type">[];
411
+ } | {
412
+ readonly type: "item_reference";
413
+ readonly id: string;
414
+ } | {
415
+ readonly role: "system";
416
+ readonly content: string;
417
+ } | {
418
+ readonly role: "user";
419
+ readonly content: readonly ({
420
+ readonly type: "input_image";
421
+ readonly image_url: string;
422
+ } | {
423
+ readonly type: "input_file";
424
+ readonly filename: string;
425
+ readonly file_data: string;
426
+ readonly mime_type?: string | undefined;
427
+ } | {
428
+ readonly type: "input_text";
429
+ readonly text: string;
430
+ })[];
431
+ } | {
432
+ readonly content: readonly {
433
+ readonly type: "output_text";
434
+ readonly text: string;
435
+ }[];
436
436
  readonly role: "assistant";
437
437
  readonly phase?: "commentary" | "final_answer" | undefined;
438
- } | Schema.Struct.ReadonlySide<{
439
- readonly type: Schema.tag<"function_call">;
440
- readonly call_id: Schema.String;
441
- readonly name: Schema.String;
442
- readonly arguments: Schema.String;
443
- }, "Type"> | Schema.Struct.ReadonlySide<{
444
- readonly type: Schema.tag<"function_call_output">;
445
- readonly call_id: Schema.String;
446
- readonly output: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.Struct<{
447
- readonly type: Schema.tag<"input_text">;
448
- readonly text: Schema.String;
449
- }>, Schema.Struct<{
450
- readonly type: Schema.tag<"input_image">;
451
- readonly image_url: Schema.String;
452
- }>, Schema.Struct<{
453
- readonly type: Schema.tag<"input_file">;
454
- readonly filename: Schema.String;
455
- readonly file_data: Schema.String;
456
- readonly mime_type: Schema.optional<Schema.String>;
457
- }>]>>]>;
458
- }, "Type">)[];
438
+ } | {
439
+ readonly type: "function_call";
440
+ readonly call_id: string;
441
+ readonly name: string;
442
+ readonly arguments: string;
443
+ } | {
444
+ readonly type: "function_call_output";
445
+ readonly call_id: string;
446
+ readonly output: string | readonly ({
447
+ readonly type: "input_image";
448
+ readonly image_url: string;
449
+ } | {
450
+ readonly type: "input_file";
451
+ readonly filename: string;
452
+ readonly file_data: string;
453
+ readonly mime_type?: string | undefined;
454
+ } | {
455
+ readonly type: "input_text";
456
+ readonly text: string;
457
+ })[];
458
+ })[];
459
459
  readonly model: string;
460
460
  readonly stream: true;
461
461
  readonly text?: {
462
462
  readonly verbosity?: "low" | "medium" | "high" | undefined;
463
463
  } | undefined;
464
+ readonly instructions?: string | undefined;
464
465
  readonly reasoning?: {
465
- readonly effort?: string | undefined;
466
466
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
467
+ readonly effort?: string | undefined;
467
468
  } | undefined;
468
469
  readonly tools?: readonly {
469
470
  readonly type: "function";
@@ -475,13 +476,12 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
475
476
  readonly strict?: boolean | undefined;
476
477
  }[] | undefined;
477
478
  readonly temperature?: number | undefined;
478
- readonly tool_choice?: "required" | "none" | "auto" | Schema.Struct.ReadonlySide<{
479
- readonly type: Schema.tag<"function">;
480
- readonly name: Schema.String;
481
- }, "Type"> | undefined;
479
+ readonly tool_choice?: "required" | "none" | "auto" | {
480
+ readonly type: "function";
481
+ readonly name: string;
482
+ } | undefined;
482
483
  readonly top_p?: number | undefined;
483
484
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
484
- readonly instructions?: string | undefined;
485
485
  readonly store?: boolean | undefined;
486
486
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
487
487
  readonly prompt_cache_key?: string | undefined;
@@ -492,92 +492,92 @@ export type StepResult = readonly [ParserState, ReadonlyArray<LLMEvent>];
492
492
  export declare const terminal: (event: Event) => boolean;
493
493
  export declare const onReasoningDelta: (state: ParserState, event: Event, itemID: string) => StepResult;
494
494
  export declare const onReasoningDone: (state: ParserState, _event: Event) => StepResult;
495
- export declare const step: (state: ParserState, event: Event) => LLMError | Effect.Effect<StepResult, never, never> | Effect.Effect<[ParserState, readonly (Schema.Struct.ReadonlySide<{
496
- readonly type: Schema.tag<"step-start">;
497
- readonly index: Schema.Number;
498
- }, "Type"> | {
499
- readonly type: "text-start";
495
+ export declare const step: (state: ParserState, event: Event) => LLMError | Effect.Effect<StepResult, never, never> | Effect.Effect<[ParserState, readonly ({
496
+ readonly type: "step-start";
497
+ readonly index: number;
498
+ } | {
500
499
  readonly id: string;
500
+ readonly type: "text-start";
501
501
  readonly providerMetadata?: {
502
502
  readonly [x: string]: {
503
503
  readonly [x: string]: unknown;
504
504
  };
505
505
  } | undefined;
506
506
  } | {
507
+ readonly id: string;
507
508
  readonly type: "text-delta";
508
509
  readonly text: string;
509
- readonly id: string;
510
510
  readonly providerMetadata?: {
511
511
  readonly [x: string]: {
512
512
  readonly [x: string]: unknown;
513
513
  };
514
514
  } | undefined;
515
515
  } | {
516
- readonly type: "text-end";
517
516
  readonly id: string;
517
+ readonly type: "text-end";
518
518
  readonly providerMetadata?: {
519
519
  readonly [x: string]: {
520
520
  readonly [x: string]: unknown;
521
521
  };
522
522
  } | undefined;
523
523
  } | {
524
- readonly type: "reasoning-start";
525
524
  readonly id: string;
525
+ readonly type: "reasoning-start";
526
526
  readonly providerMetadata?: {
527
527
  readonly [x: string]: {
528
528
  readonly [x: string]: unknown;
529
529
  };
530
530
  } | undefined;
531
531
  } | {
532
+ readonly id: string;
532
533
  readonly type: "reasoning-delta";
533
534
  readonly text: string;
534
- readonly id: string;
535
535
  readonly providerMetadata?: {
536
536
  readonly [x: string]: {
537
537
  readonly [x: string]: unknown;
538
538
  };
539
539
  } | undefined;
540
540
  } | {
541
- readonly type: "reasoning-end";
542
541
  readonly id: string;
542
+ readonly type: "reasoning-end";
543
543
  readonly providerMetadata?: {
544
544
  readonly [x: string]: {
545
545
  readonly [x: string]: unknown;
546
546
  };
547
547
  } | undefined;
548
548
  } | {
549
+ readonly id: string;
549
550
  readonly type: "tool-input-start";
550
551
  readonly name: string;
551
- readonly id: string;
552
552
  readonly providerMetadata?: {
553
553
  readonly [x: string]: {
554
554
  readonly [x: string]: unknown;
555
555
  };
556
556
  } | undefined;
557
557
  readonly providerExecuted?: boolean | undefined;
558
- } | Schema.Struct.ReadonlySide<{
559
- readonly type: Schema.tag<"tool-input-delta">;
560
- readonly id: Schema.String;
561
- readonly name: Schema.String;
562
- readonly text: Schema.String;
563
- }, "Type"> | {
564
- readonly type: "tool-input-end";
558
+ } | {
559
+ readonly type: "tool-input-delta";
560
+ readonly id: string;
565
561
  readonly name: string;
562
+ readonly text: string;
563
+ } | {
566
564
  readonly id: string;
565
+ readonly type: "tool-input-end";
566
+ readonly name: string;
567
567
  readonly providerMetadata?: {
568
568
  readonly [x: string]: {
569
569
  readonly [x: string]: unknown;
570
570
  };
571
571
  } | undefined;
572
- } | Schema.Struct.ReadonlySide<{
573
- readonly type: Schema.tag<"tool-input-error">;
574
- readonly id: Schema.String;
575
- readonly name: Schema.String;
576
- readonly raw: Schema.String;
577
- }, "Type"> | {
578
- readonly type: "tool-call";
572
+ } | {
573
+ readonly type: "tool-input-error";
574
+ readonly id: string;
579
575
  readonly name: string;
576
+ readonly raw: string;
577
+ } | {
580
578
  readonly id: string;
579
+ readonly type: "tool-call";
580
+ readonly name: string;
581
581
  readonly input: unknown;
582
582
  readonly providerMetadata?: {
583
583
  readonly [x: string]: {
@@ -586,52 +586,52 @@ export declare const step: (state: ParserState, event: Event) => LLMError | Effe
586
586
  } | undefined;
587
587
  readonly providerExecuted?: boolean | undefined;
588
588
  } | {
589
+ readonly id: string;
589
590
  readonly type: "tool-result";
590
591
  readonly name: string;
591
- readonly id: string;
592
- readonly result: Schema.Struct.ReadonlySide<{
593
- readonly type: Schema.Literal<"json">;
594
- readonly value: Schema.Unknown;
595
- }, "Type"> | Schema.Struct.ReadonlySide<{
596
- readonly type: Schema.Literal<"text">;
597
- readonly value: Schema.Unknown;
598
- }, "Type"> | Schema.Struct.ReadonlySide<{
599
- readonly type: Schema.Literal<"error">;
600
- readonly value: Schema.Unknown;
601
- }, "Type"> | Schema.Struct.ReadonlySide<{
602
- readonly type: Schema.Literal<"content">;
603
- readonly value: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
604
- readonly type: Schema.Literal<"text">;
605
- readonly text: Schema.String;
606
- }>, Schema.Struct<{
607
- readonly type: Schema.Literal<"file">;
608
- readonly uri: Schema.String;
609
- readonly mime: Schema.String;
610
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
611
- }>]>>;
612
- }, "Type">;
592
+ readonly result: {
593
+ readonly type: "json";
594
+ readonly value: unknown;
595
+ } | {
596
+ readonly type: "text";
597
+ readonly value: unknown;
598
+ } | {
599
+ readonly type: "error";
600
+ readonly value: unknown;
601
+ } | {
602
+ readonly type: "content";
603
+ readonly value: readonly ({
604
+ readonly type: "text";
605
+ readonly text: string;
606
+ } | {
607
+ readonly type: "file";
608
+ readonly uri: string;
609
+ readonly mime: string;
610
+ readonly name?: string | undefined;
611
+ })[];
612
+ };
613
+ readonly output?: {
614
+ readonly structured: unknown;
615
+ readonly content: readonly ({
616
+ readonly type: "text";
617
+ readonly text: string;
618
+ } | {
619
+ readonly type: "file";
620
+ readonly uri: string;
621
+ readonly mime: string;
622
+ readonly name?: string | undefined;
623
+ })[];
624
+ } | undefined;
613
625
  readonly providerMetadata?: {
614
626
  readonly [x: string]: {
615
627
  readonly [x: string]: unknown;
616
628
  };
617
629
  } | undefined;
618
630
  readonly providerExecuted?: boolean | undefined;
619
- readonly output?: Schema.Struct.ReadonlySide<{
620
- readonly structured: Schema.Unknown;
621
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
622
- readonly type: Schema.Literal<"text">;
623
- readonly text: Schema.String;
624
- }>, Schema.Struct<{
625
- readonly type: Schema.Literal<"file">;
626
- readonly uri: Schema.String;
627
- readonly mime: Schema.String;
628
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
629
- }>]>>;
630
- }, "Type"> | undefined;
631
631
  } | {
632
+ readonly id: string;
632
633
  readonly type: "tool-error";
633
634
  readonly name: string;
634
- readonly id: string;
635
635
  readonly message: string;
636
636
  readonly error?: unknown;
637
637
  readonly providerMetadata?: {
@@ -682,68 +682,69 @@ export declare const initial: (request: LLMRequest, extension?: Extension) => Pa
682
682
  export declare const protocol: Protocol<{
683
683
  readonly input: readonly ({
684
684
  readonly type: "reasoning";
685
- readonly summary: readonly Schema.Struct.ReadonlySide<{
686
- readonly type: Schema.tag<"summary_text">;
687
- readonly text: Schema.String;
688
- }, "Type">[];
685
+ readonly summary: readonly {
686
+ readonly type: "summary_text";
687
+ readonly text: string;
688
+ }[];
689
689
  readonly id?: string | undefined;
690
690
  readonly encrypted_content?: string | null | undefined;
691
- } | Schema.Struct.ReadonlySide<{
692
- readonly type: Schema.tag<"item_reference">;
693
- readonly id: Schema.String;
694
- }, "Type"> | Schema.Struct.ReadonlySide<{
695
- readonly role: Schema.tag<"system">;
696
- readonly content: Schema.String;
697
- }, "Type"> | Schema.Struct.ReadonlySide<{
698
- readonly role: Schema.tag<"user">;
699
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
700
- readonly type: Schema.tag<"input_text">;
701
- readonly text: Schema.String;
702
- }>, Schema.Union<readonly [Schema.Struct<{
703
- readonly type: Schema.tag<"input_image">;
704
- readonly image_url: Schema.String;
705
- }>, Schema.Struct<{
706
- readonly type: Schema.tag<"input_file">;
707
- readonly filename: Schema.String;
708
- readonly file_data: Schema.String;
709
- readonly mime_type: Schema.optional<Schema.String>;
710
- }>]>]>>;
711
- }, "Type"> | {
712
- readonly content: readonly Schema.Struct.ReadonlySide<{
713
- readonly type: Schema.tag<"output_text">;
714
- readonly text: Schema.String;
715
- }, "Type">[];
691
+ } | {
692
+ readonly type: "item_reference";
693
+ readonly id: string;
694
+ } | {
695
+ readonly role: "system";
696
+ readonly content: string;
697
+ } | {
698
+ readonly role: "user";
699
+ readonly content: readonly ({
700
+ readonly type: "input_image";
701
+ readonly image_url: string;
702
+ } | {
703
+ readonly type: "input_file";
704
+ readonly filename: string;
705
+ readonly file_data: string;
706
+ readonly mime_type?: string | undefined;
707
+ } | {
708
+ readonly type: "input_text";
709
+ readonly text: string;
710
+ })[];
711
+ } | {
712
+ readonly content: readonly {
713
+ readonly type: "output_text";
714
+ readonly text: string;
715
+ }[];
716
716
  readonly role: "assistant";
717
717
  readonly phase?: "commentary" | "final_answer" | undefined;
718
- } | Schema.Struct.ReadonlySide<{
719
- readonly type: Schema.tag<"function_call">;
720
- readonly call_id: Schema.String;
721
- readonly name: Schema.String;
722
- readonly arguments: Schema.String;
723
- }, "Type"> | Schema.Struct.ReadonlySide<{
724
- readonly type: Schema.tag<"function_call_output">;
725
- readonly call_id: Schema.String;
726
- readonly output: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.Struct<{
727
- readonly type: Schema.tag<"input_text">;
728
- readonly text: Schema.String;
729
- }>, Schema.Struct<{
730
- readonly type: Schema.tag<"input_image">;
731
- readonly image_url: Schema.String;
732
- }>, Schema.Struct<{
733
- readonly type: Schema.tag<"input_file">;
734
- readonly filename: Schema.String;
735
- readonly file_data: Schema.String;
736
- readonly mime_type: Schema.optional<Schema.String>;
737
- }>]>>]>;
738
- }, "Type">)[];
718
+ } | {
719
+ readonly type: "function_call";
720
+ readonly call_id: string;
721
+ readonly name: string;
722
+ readonly arguments: string;
723
+ } | {
724
+ readonly type: "function_call_output";
725
+ readonly call_id: string;
726
+ readonly output: string | readonly ({
727
+ readonly type: "input_image";
728
+ readonly image_url: string;
729
+ } | {
730
+ readonly type: "input_file";
731
+ readonly filename: string;
732
+ readonly file_data: string;
733
+ readonly mime_type?: string | undefined;
734
+ } | {
735
+ readonly type: "input_text";
736
+ readonly text: string;
737
+ })[];
738
+ })[];
739
739
  readonly model: string;
740
740
  readonly stream: true;
741
741
  readonly text?: {
742
742
  readonly verbosity?: "low" | "medium" | "high" | undefined;
743
743
  } | undefined;
744
+ readonly instructions?: string | undefined;
744
745
  readonly reasoning?: {
745
- readonly effort?: string | undefined;
746
746
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
747
+ readonly effort?: string | undefined;
747
748
  } | undefined;
748
749
  readonly tools?: readonly {
749
750
  readonly type: "function";
@@ -755,13 +756,12 @@ export declare const protocol: Protocol<{
755
756
  readonly strict?: boolean | undefined;
756
757
  }[] | undefined;
757
758
  readonly temperature?: number | undefined;
758
- readonly tool_choice?: "required" | "none" | "auto" | Schema.Struct.ReadonlySide<{
759
- readonly type: Schema.tag<"function">;
760
- readonly name: Schema.String;
761
- }, "Type"> | undefined;
759
+ readonly tool_choice?: "required" | "none" | "auto" | {
760
+ readonly type: "function";
761
+ readonly name: string;
762
+ } | undefined;
762
763
  readonly top_p?: number | undefined;
763
764
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
764
- readonly instructions?: string | undefined;
765
765
  readonly store?: boolean | undefined;
766
766
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
767
767
  readonly prompt_cache_key?: string | undefined;
@@ -775,6 +775,9 @@ export declare const protocol: Protocol<{
775
775
  readonly param?: string | null | undefined;
776
776
  } | null | undefined;
777
777
  readonly text?: string | undefined;
778
+ readonly message?: string | undefined;
779
+ readonly code?: string | null | undefined;
780
+ readonly delta?: string | undefined;
778
781
  readonly response?: {
779
782
  readonly [x: string]: unknown;
780
783
  readonly error?: {
@@ -800,18 +803,15 @@ export declare const protocol: Protocol<{
800
803
  readonly reason?: string | undefined;
801
804
  } | null | undefined;
802
805
  } | undefined;
803
- readonly message?: string | undefined;
804
- readonly code?: string | null | undefined;
805
806
  readonly item?: {
806
807
  readonly [x: string]: unknown;
807
808
  readonly type: string;
808
- readonly name?: string | undefined;
809
809
  readonly id?: string | undefined;
810
+ readonly name?: string | undefined;
810
811
  readonly arguments?: string | undefined;
811
812
  readonly encrypted_content?: string | null | undefined;
812
813
  readonly call_id?: string | undefined;
813
814
  } | undefined;
814
- readonly delta?: string | undefined;
815
815
  readonly param?: string | null | undefined;
816
816
  readonly item_id?: string | undefined;
817
817
  readonly summary_index?: number | undefined;
@@ -819,68 +819,69 @@ export declare const protocol: Protocol<{
819
819
  export declare const httpTransport: HttpTransport.HttpJsonTransport<{
820
820
  readonly input: readonly ({
821
821
  readonly type: "reasoning";
822
- readonly summary: readonly Schema.Struct.ReadonlySide<{
823
- readonly type: Schema.tag<"summary_text">;
824
- readonly text: Schema.String;
825
- }, "Type">[];
822
+ readonly summary: readonly {
823
+ readonly type: "summary_text";
824
+ readonly text: string;
825
+ }[];
826
826
  readonly id?: string | undefined;
827
827
  readonly encrypted_content?: string | null | undefined;
828
- } | Schema.Struct.ReadonlySide<{
829
- readonly type: Schema.tag<"item_reference">;
830
- readonly id: Schema.String;
831
- }, "Type"> | Schema.Struct.ReadonlySide<{
832
- readonly role: Schema.tag<"system">;
833
- readonly content: Schema.String;
834
- }, "Type"> | Schema.Struct.ReadonlySide<{
835
- readonly role: Schema.tag<"user">;
836
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
837
- readonly type: Schema.tag<"input_text">;
838
- readonly text: Schema.String;
839
- }>, Schema.Union<readonly [Schema.Struct<{
840
- readonly type: Schema.tag<"input_image">;
841
- readonly image_url: Schema.String;
842
- }>, Schema.Struct<{
843
- readonly type: Schema.tag<"input_file">;
844
- readonly filename: Schema.String;
845
- readonly file_data: Schema.String;
846
- readonly mime_type: Schema.optional<Schema.String>;
847
- }>]>]>>;
848
- }, "Type"> | {
849
- readonly content: readonly Schema.Struct.ReadonlySide<{
850
- readonly type: Schema.tag<"output_text">;
851
- readonly text: Schema.String;
852
- }, "Type">[];
828
+ } | {
829
+ readonly type: "item_reference";
830
+ readonly id: string;
831
+ } | {
832
+ readonly role: "system";
833
+ readonly content: string;
834
+ } | {
835
+ readonly role: "user";
836
+ readonly content: readonly ({
837
+ readonly type: "input_image";
838
+ readonly image_url: string;
839
+ } | {
840
+ readonly type: "input_file";
841
+ readonly filename: string;
842
+ readonly file_data: string;
843
+ readonly mime_type?: string | undefined;
844
+ } | {
845
+ readonly type: "input_text";
846
+ readonly text: string;
847
+ })[];
848
+ } | {
849
+ readonly content: readonly {
850
+ readonly type: "output_text";
851
+ readonly text: string;
852
+ }[];
853
853
  readonly role: "assistant";
854
854
  readonly phase?: "commentary" | "final_answer" | undefined;
855
- } | Schema.Struct.ReadonlySide<{
856
- readonly type: Schema.tag<"function_call">;
857
- readonly call_id: Schema.String;
858
- readonly name: Schema.String;
859
- readonly arguments: Schema.String;
860
- }, "Type"> | Schema.Struct.ReadonlySide<{
861
- readonly type: Schema.tag<"function_call_output">;
862
- readonly call_id: Schema.String;
863
- readonly output: Schema.Union<readonly [Schema.String, Schema.$Array<Schema.Union<readonly [Schema.Struct<{
864
- readonly type: Schema.tag<"input_text">;
865
- readonly text: Schema.String;
866
- }>, Schema.Struct<{
867
- readonly type: Schema.tag<"input_image">;
868
- readonly image_url: Schema.String;
869
- }>, Schema.Struct<{
870
- readonly type: Schema.tag<"input_file">;
871
- readonly filename: Schema.String;
872
- readonly file_data: Schema.String;
873
- readonly mime_type: Schema.optional<Schema.String>;
874
- }>]>>]>;
875
- }, "Type">)[];
855
+ } | {
856
+ readonly type: "function_call";
857
+ readonly call_id: string;
858
+ readonly name: string;
859
+ readonly arguments: string;
860
+ } | {
861
+ readonly type: "function_call_output";
862
+ readonly call_id: string;
863
+ readonly output: string | readonly ({
864
+ readonly type: "input_image";
865
+ readonly image_url: string;
866
+ } | {
867
+ readonly type: "input_file";
868
+ readonly filename: string;
869
+ readonly file_data: string;
870
+ readonly mime_type?: string | undefined;
871
+ } | {
872
+ readonly type: "input_text";
873
+ readonly text: string;
874
+ })[];
875
+ })[];
876
876
  readonly model: string;
877
877
  readonly stream: true;
878
878
  readonly text?: {
879
879
  readonly verbosity?: "low" | "medium" | "high" | undefined;
880
880
  } | undefined;
881
+ readonly instructions?: string | undefined;
881
882
  readonly reasoning?: {
882
- readonly effort?: string | undefined;
883
883
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
884
+ readonly effort?: string | undefined;
884
885
  } | undefined;
885
886
  readonly tools?: readonly {
886
887
  readonly type: "function";
@@ -892,13 +893,12 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
892
893
  readonly strict?: boolean | undefined;
893
894
  }[] | undefined;
894
895
  readonly temperature?: number | undefined;
895
- readonly tool_choice?: "required" | "none" | "auto" | Schema.Struct.ReadonlySide<{
896
- readonly type: Schema.tag<"function">;
897
- readonly name: Schema.String;
898
- }, "Type"> | undefined;
896
+ readonly tool_choice?: "required" | "none" | "auto" | {
897
+ readonly type: "function";
898
+ readonly name: string;
899
+ } | undefined;
899
900
  readonly top_p?: number | undefined;
900
901
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
901
- readonly instructions?: string | undefined;
902
902
  readonly store?: boolean | undefined;
903
903
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
904
904
  readonly prompt_cache_key?: string | undefined;