@opencode/ai 0.0.0-dev-21106 → 0.0.0-dev-21108

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 (126) hide show
  1. package/dist/ai-client.d.ts +2 -2
  2. package/dist/experimental/evaluation-client.d.ts +1 -1
  3. package/dist/experimental/evaluation.d.ts +20 -20
  4. package/dist/experimental/realtime.d.ts +1 -13
  5. package/dist/experimental/system-one.d.ts +1 -1
  6. package/dist/image-client.d.ts +8 -8
  7. package/dist/image.d.ts +593 -437
  8. package/dist/llm.d.ts +51 -51
  9. package/dist/media-client.d.ts +1 -1
  10. package/dist/media.d.ts +4 -4
  11. package/dist/promise.d.ts +199 -198
  12. package/dist/protocols/alibaba-chat.d.ts +81 -81
  13. package/dist/protocols/alibaba-messages.d.ts +99 -99
  14. package/dist/protocols/alibaba-responses.d.ts +119 -119
  15. package/dist/protocols/anthropic-messages.d.ts +187 -187
  16. package/dist/protocols/assemblyai-transcription.d.ts +1 -1
  17. package/dist/protocols/bedrock-converse.d.ts +75 -79
  18. package/dist/protocols/bfl-images.d.ts +1 -1
  19. package/dist/protocols/cartesia-speech.d.ts +17 -17
  20. package/dist/protocols/cohere-chat.d.ts +26 -25
  21. package/dist/protocols/deepgram-speech.d.ts +17 -17
  22. package/dist/protocols/deepgram-transcription.d.ts +1 -1
  23. package/dist/protocols/elevenlabs-speech.d.ts +17 -17
  24. package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
  25. package/dist/protocols/fal-images.d.ts +1 -1
  26. package/dist/protocols/fal-video.d.ts +1 -1
  27. package/dist/protocols/gemini.d.ts +55 -55
  28. package/dist/protocols/google-images.d.ts +1 -1
  29. package/dist/protocols/google-interactions.d.ts +64 -64
  30. package/dist/protocols/google-speech.d.ts +17 -17
  31. package/dist/protocols/google-transcription.d.ts +47 -47
  32. package/dist/protocols/google-video.d.ts +1 -1
  33. package/dist/protocols/meta-messages.d.ts +121 -121
  34. package/dist/protocols/meta-responses.d.ts +200 -200
  35. package/dist/protocols/mistral-chat.d.ts +45 -45
  36. package/dist/protocols/open-responses-channel.d.ts +1 -1
  37. package/dist/protocols/open-responses.d.ts +394 -394
  38. package/dist/protocols/openai-chat.d.ts +248 -248
  39. package/dist/protocols/openai-compatible-chat.d.ts +32 -32
  40. package/dist/protocols/openai-compatible-responses.d.ts +88 -88
  41. package/dist/protocols/openai-images.d.ts +17 -17
  42. package/dist/protocols/openai-responses.d.ts +566 -566
  43. package/dist/protocols/openai-responses.js +1 -1
  44. package/dist/protocols/openai-speech.d.ts +17 -17
  45. package/dist/protocols/openai-transcription.d.ts +47 -47
  46. package/dist/protocols/replicate-images.d.ts +1 -1
  47. package/dist/protocols/runway-video.d.ts +1 -1
  48. package/dist/protocols/shared.d.ts +1 -1
  49. package/dist/protocols/stability-images.d.ts +2 -2
  50. package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
  51. package/dist/protocols/utils/bedrock-media.d.ts +4 -4
  52. package/dist/protocols/utils/openai-options.d.ts +1 -1
  53. package/dist/protocols/utils/speech-stream.d.ts +1 -1
  54. package/dist/protocols/utils/tool-schema.d.ts +10 -5
  55. package/dist/protocols/utils/tool-stream.d.ts +152 -152
  56. package/dist/protocols/venice-chat.d.ts +109 -109
  57. package/dist/protocols/xai-images.d.ts +1 -1
  58. package/dist/protocols/xai-responses.d.ts +78 -78
  59. package/dist/protocols/xai-video.d.ts +1 -1
  60. package/dist/protocols/zai-chat.d.ts +77 -77
  61. package/dist/protocols/zai-images.d.ts +1 -1
  62. package/dist/protocols/zai-messages.d.ts +97 -97
  63. package/dist/providers/alibaba.d.ts +222 -283
  64. package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
  65. package/dist/providers/amazon-bedrock.d.ts +22 -28
  66. package/dist/providers/anthropic-compatible.d.ts +86 -90
  67. package/dist/providers/anthropic.d.ts +86 -90
  68. package/dist/providers/assemblyai.d.ts +2 -6
  69. package/dist/providers/azure.d.ts +228 -238
  70. package/dist/providers/baseten.d.ts +66 -70
  71. package/dist/providers/black-forest-labs.d.ts +2 -6
  72. package/dist/providers/cartesia.d.ts +2 -6
  73. package/dist/providers/cerebras.d.ts +66 -70
  74. package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
  75. package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
  76. package/dist/providers/cohere.d.ts +122 -132
  77. package/dist/providers/deepgram.d.ts +2 -7
  78. package/dist/providers/deepinfra.d.ts +66 -70
  79. package/dist/providers/deepseek.d.ts +66 -70
  80. package/dist/providers/digitalocean.d.ts +137 -141
  81. package/dist/providers/elevenlabs.d.ts +2 -7
  82. package/dist/providers/fal.d.ts +2 -7
  83. package/dist/providers/fireworks.d.ts +66 -70
  84. package/dist/providers/google-vertex-chat.d.ts +34 -38
  85. package/dist/providers/google-vertex-interactions.d.ts +31 -41
  86. package/dist/providers/google-vertex-messages.d.ts +81 -85
  87. package/dist/providers/google-vertex-mistral.d.ts +23 -27
  88. package/dist/providers/google-vertex-responses.d.ts +90 -94
  89. package/dist/providers/google-vertex.d.ts +26 -30
  90. package/dist/providers/google.d.ts +94 -109
  91. package/dist/providers/groq.d.ts +111 -115
  92. package/dist/providers/meta.d.ts +309 -317
  93. package/dist/providers/minimax.d.ts +296 -303
  94. package/dist/providers/mistral.d.ts +22 -26
  95. package/dist/providers/moonshot.d.ts +296 -303
  96. package/dist/providers/openai-compatible-responses.d.ts +90 -94
  97. package/dist/providers/openai-compatible.d.ts +34 -38
  98. package/dist/providers/openai.d.ts +93 -108
  99. package/dist/providers/opencode.d.ts +2 -8
  100. package/dist/providers/openrouter.d.ts +137 -144
  101. package/dist/providers/replicate.d.ts +2 -6
  102. package/dist/providers/runway.d.ts +2 -6
  103. package/dist/providers/stability.d.ts +2 -7
  104. package/dist/providers/togetherai.d.ts +66 -70
  105. package/dist/providers/typesafe-ai.d.ts +2 -8
  106. package/dist/providers/venice.d.ts +58 -63
  107. package/dist/providers/vercel-ai-gateway.d.ts +2 -12
  108. package/dist/providers/xai.d.ts +38 -50
  109. package/dist/providers/zai-coding-plan.d.ts +206 -213
  110. package/dist/providers/zai.d.ts +40 -46
  111. package/dist/route/client.d.ts +51 -51
  112. package/dist/route/media-protocol.d.ts +1 -1
  113. package/dist/route/transport/http.d.ts +1 -1
  114. package/dist/route/transport/websocket.d.ts +8 -8
  115. package/dist/schema/errors.d.ts +19 -19
  116. package/dist/schema/events.d.ts +3090 -3288
  117. package/dist/schema/messages.d.ts +8 -7
  118. package/dist/speech-client.d.ts +8 -8
  119. package/dist/speech.d.ts +434 -398
  120. package/dist/testing.d.ts +338 -338
  121. package/dist/tool-runtime.d.ts +1 -1
  122. package/dist/transcription-client.d.ts +23 -23
  123. package/dist/transcription.d.ts +562 -646
  124. package/dist/video-client.d.ts +8 -8
  125. package/dist/video.d.ts +416 -372
  126. package/package.json +6 -6
@@ -397,7 +397,6 @@ export declare const coreFields: {
397
397
  frequency_penalty: Schema.optional<Schema.Number>;
398
398
  };
399
399
  export declare const OpenResponsesBody: Schema.Struct<{
400
- readonly stream: Schema.Literal<true>;
401
400
  readonly model: Schema.String;
402
401
  readonly input: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
403
402
  readonly type: Schema.Literal<"compaction">;
@@ -557,6 +556,7 @@ export declare const OpenResponsesBody: Schema.Struct<{
557
556
  readonly top_p: Schema.optional<Schema.Number>;
558
557
  readonly presence_penalty: Schema.optional<Schema.Number>;
559
558
  readonly frequency_penalty: Schema.optional<Schema.Number>;
559
+ readonly stream: Schema.Literal<true>;
560
560
  }>;
561
561
  export type OpenResponsesBody = Schema.Schema.Type<typeof OpenResponsesBody>;
562
562
  export declare const OpenResponsesUsage: Schema.StructWithRest<Schema.Struct<{
@@ -697,60 +697,60 @@ export type NormalizedEvent = Event & {
697
697
  export declare const decodeChannelEvent: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
698
698
  readonly [x: string]: unknown;
699
699
  readonly type: string;
700
- readonly status?: unknown;
701
- readonly message?: unknown;
702
- readonly code?: unknown;
700
+ readonly delta?: string | undefined;
701
+ readonly arguments?: string | undefined;
703
702
  readonly text?: string | undefined;
704
- readonly error?: unknown;
703
+ readonly item_id?: string | undefined;
704
+ readonly output_index?: number | undefined;
705
+ readonly summary_index?: number | undefined;
706
+ readonly item?: {
707
+ readonly [x: string]: unknown;
708
+ readonly type: string;
709
+ readonly id?: string | undefined;
710
+ readonly call_id?: string | undefined;
711
+ readonly name?: string | undefined;
712
+ readonly namespace?: string | null | undefined;
713
+ readonly arguments?: string | undefined;
714
+ readonly encrypted_content?: string | null | undefined;
715
+ } | null | undefined;
705
716
  readonly response?: {
706
717
  readonly [x: string]: unknown;
707
718
  readonly id?: string | undefined;
719
+ readonly service_tier?: string | null | undefined;
720
+ readonly incomplete_details?: {
721
+ readonly reason?: string | undefined;
722
+ } | null | undefined;
708
723
  readonly output?: readonly {
709
724
  readonly [x: string]: unknown;
710
725
  readonly type: string;
711
726
  readonly id?: string | undefined;
727
+ readonly call_id?: string | undefined;
712
728
  readonly name?: string | undefined;
713
729
  readonly namespace?: string | null | undefined;
714
730
  readonly arguments?: string | undefined;
715
- readonly call_id?: string | undefined;
716
731
  readonly encrypted_content?: string | null | undefined;
717
732
  }[] | undefined;
718
- readonly error?: unknown;
719
733
  readonly usage?: {
720
734
  readonly [x: string]: unknown;
721
735
  readonly input_tokens?: number | undefined;
736
+ readonly input_tokens_details?: {
737
+ readonly [x: string]: unknown;
738
+ readonly cached_tokens?: number | undefined;
739
+ readonly cache_write_tokens?: number | undefined;
740
+ } | null | undefined;
722
741
  readonly output_tokens?: number | undefined;
723
742
  readonly output_tokens_details?: {
724
743
  readonly [x: string]: unknown;
725
744
  readonly reasoning_tokens?: number | undefined;
726
745
  } | null | undefined;
727
746
  readonly total_tokens?: number | undefined;
728
- readonly input_tokens_details?: {
729
- readonly [x: string]: unknown;
730
- readonly cached_tokens?: number | undefined;
731
- readonly cache_write_tokens?: number | undefined;
732
- } | null | undefined;
733
- } | null | undefined;
734
- readonly service_tier?: string | null | undefined;
735
- readonly incomplete_details?: {
736
- readonly reason?: string | undefined;
737
747
  } | null | undefined;
748
+ readonly error?: unknown;
738
749
  } | undefined;
739
- readonly item?: {
740
- readonly [x: string]: unknown;
741
- readonly type: string;
742
- readonly id?: string | undefined;
743
- readonly name?: string | undefined;
744
- readonly namespace?: string | null | undefined;
745
- readonly arguments?: string | undefined;
746
- readonly call_id?: string | undefined;
747
- readonly encrypted_content?: string | null | undefined;
748
- } | null | undefined;
749
- readonly delta?: string | undefined;
750
- readonly arguments?: string | undefined;
751
- readonly item_id?: string | undefined;
752
- readonly output_index?: number | undefined;
753
- readonly summary_index?: number | undefined;
750
+ readonly code?: unknown;
751
+ readonly message?: unknown;
752
+ readonly error?: unknown;
753
+ readonly status?: unknown;
754
754
  readonly status_code?: unknown;
755
755
  }, Schema.SchemaError, never>;
756
756
  export interface ProviderAdapter {
@@ -800,34 +800,33 @@ export declare const lowerTools: (tools: ReadonlyArray<ToolDefinition>, adapter:
800
800
  readonly type: string;
801
801
  } | {
802
802
  readonly type: "function";
803
- readonly description: string;
804
803
  readonly name: string;
804
+ readonly description: string;
805
805
  readonly parameters: {
806
806
  readonly [x: string]: unknown;
807
807
  };
808
808
  readonly strict?: boolean | undefined;
809
809
  })[], AIError, never>;
810
- export declare const lowerToolChoice: (protocolName: string, toolChoice: NonNullable<LLMRequest["toolChoice"]>) => Effect.Effect<"required" | "auto" | "none" | {
810
+ export declare const lowerToolChoice: (protocolName: string, toolChoice: NonNullable<LLMRequest["toolChoice"]>) => Effect.Effect<"auto" | "none" | "required" | {
811
811
  type: "function";
812
812
  name: string;
813
813
  }, AIError, never>;
814
814
  export declare const lowerConversation: (request: LLMRequest<import("../schema/options.js").LanguageModel<{
815
815
  readonly [x: string]: unknown;
816
816
  }, import("../route.js").CompactionOperations | undefined>>, adapter: ProviderAdapter) => Effect.Effect<{
817
- instructions?: string | undefined;
818
817
  model: string & import("effect/Brand").Brand<"AI.ModelID">;
819
818
  input: ({
820
819
  readonly [x: string]: unknown;
821
- readonly id: string;
822
820
  readonly type: "web_search_call";
821
+ readonly id: string;
823
822
  readonly status?: string | undefined;
824
823
  readonly action?: {
825
824
  readonly [x: string]: unknown;
826
825
  } | null | undefined;
827
826
  } | {
828
827
  readonly [x: string]: unknown;
829
- readonly id: string;
830
828
  readonly type: "file_search_call";
829
+ readonly id: string;
831
830
  readonly status?: string | undefined;
832
831
  readonly queries?: readonly string[] | undefined;
833
832
  readonly results?: readonly {
@@ -835,8 +834,8 @@ export declare const lowerConversation: (request: LLMRequest<import("../schema/o
835
834
  }[] | null | undefined;
836
835
  } | {
837
836
  readonly [x: string]: unknown;
838
- readonly id: string;
839
837
  readonly type: "code_interpreter_call";
838
+ readonly id: string;
840
839
  readonly status?: string | undefined;
841
840
  readonly code?: string | null | undefined;
842
841
  readonly container_id?: string | null | undefined;
@@ -845,14 +844,14 @@ export declare const lowerConversation: (request: LLMRequest<import("../schema/o
845
844
  }[] | null | undefined;
846
845
  } | {
847
846
  readonly [x: string]: unknown;
848
- readonly id: string;
849
847
  readonly type: "mcp_call";
848
+ readonly id: string;
850
849
  readonly status?: string | undefined;
850
+ readonly server_label?: string | undefined;
851
851
  readonly name?: string | undefined;
852
+ readonly arguments?: string | undefined;
852
853
  readonly output?: string | null | undefined;
853
854
  readonly error?: unknown;
854
- readonly arguments?: string | undefined;
855
- readonly server_label?: string | undefined;
856
855
  } | {
857
856
  readonly type: "configuration_update";
858
857
  readonly reasoning: {
@@ -862,18 +861,10 @@ export declare const lowerConversation: (request: LLMRequest<import("../schema/o
862
861
  readonly [x: string]: unknown;
863
862
  readonly type: string;
864
863
  readonly id: string;
865
- } | {
866
- readonly type: "reasoning";
867
- readonly summary: readonly {
868
- readonly type: "summary_text";
869
- readonly text: string;
870
- }[];
871
- readonly id?: string | undefined;
872
- readonly encrypted_content?: string | null | undefined;
873
864
  } | {
874
865
  readonly type: "compaction";
875
- readonly encrypted_content: string;
876
866
  readonly id?: string | null | undefined;
867
+ readonly encrypted_content: string;
877
868
  } | {
878
869
  readonly type: "message";
879
870
  readonly role: "system";
@@ -884,6 +875,7 @@ export declare const lowerConversation: (request: LLMRequest<import("../schema/o
884
875
  readonly content: string;
885
876
  } | {
886
877
  readonly type: "message";
878
+ readonly role: "user";
887
879
  readonly content: readonly ({
888
880
  readonly type: "input_image";
889
881
  readonly image_url: string;
@@ -898,26 +890,33 @@ export declare const lowerConversation: (request: LLMRequest<import("../schema/o
898
890
  readonly type: "input_text";
899
891
  readonly text: string;
900
892
  })[];
901
- readonly role: "user";
902
893
  readonly id?: string | undefined;
903
894
  readonly status?: string | undefined;
904
895
  } | {
905
896
  readonly type: "message";
897
+ readonly id?: string | undefined;
898
+ readonly role: "assistant";
906
899
  readonly content: readonly {
907
900
  readonly type: "output_text";
908
901
  readonly text: string;
909
902
  }[];
910
- readonly role: "assistant";
911
- readonly id?: string | undefined;
912
- readonly status?: string | undefined;
913
903
  readonly phase?: "commentary" | "final_answer" | null | undefined;
904
+ readonly status?: string | undefined;
905
+ } | {
906
+ readonly type: "reasoning";
907
+ readonly id?: string | undefined;
908
+ readonly summary: readonly {
909
+ readonly type: "summary_text";
910
+ readonly text: string;
911
+ }[];
912
+ readonly encrypted_content?: string | null | undefined;
914
913
  } | {
915
914
  readonly type: "function_call";
916
- readonly name: string;
917
- readonly arguments: string;
918
- readonly call_id: string;
919
915
  readonly id?: string | undefined;
916
+ readonly call_id: string;
917
+ readonly name: string;
920
918
  readonly namespace?: string | undefined;
919
+ readonly arguments: string;
921
920
  } | {
922
921
  readonly type: "function_call_output";
923
922
  readonly call_id: string;
@@ -939,41 +938,42 @@ export declare const lowerConversation: (request: LLMRequest<import("../schema/o
939
938
  readonly video_url: string;
940
939
  })[];
941
940
  })[];
941
+ instructions?: string | undefined;
942
942
  }, AIError, never>;
943
943
  export declare const lowerGeneration: (request: LLMRequest, options?: OpenResponsesOptions.Resolved) => {
944
- truncation?: "auto" | "disabled" | undefined;
945
- parallel_tool_calls?: boolean | undefined;
946
- max_tool_calls?: number | undefined;
947
- service_tier?: OpenResponsesOptions.ServiceTier | undefined;
948
- text?: {
949
- verbosity: OpenResponsesOptions.TextVerbosity;
950
- } | undefined;
951
- reasoning?: {
952
- effort: OpenResponsesOptions.ReasoningEffort | undefined;
953
- summary: "auto" | "concise" | "detailed" | undefined;
954
- } | undefined;
955
- include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
956
- prompt_cache_key?: string | undefined;
957
- top_logprobs?: number | undefined;
958
- stream_options?: {
959
- include_obfuscation: boolean;
960
- } | undefined;
961
- safety_identifier?: string | undefined;
962
- metadata?: {
963
- readonly [x: string]: string;
964
- } | undefined;
965
- store?: boolean | undefined;
966
944
  stream: true;
967
945
  max_output_tokens: number | undefined;
968
946
  temperature: number | undefined;
969
947
  top_p: number | undefined;
970
948
  presence_penalty: number | undefined;
971
949
  frequency_penalty: number | undefined;
950
+ store?: boolean | undefined;
951
+ metadata?: {
952
+ readonly [x: string]: string;
953
+ } | undefined;
954
+ safety_identifier?: string | undefined;
955
+ stream_options?: {
956
+ include_obfuscation: boolean;
957
+ } | undefined;
958
+ top_logprobs?: number | undefined;
959
+ prompt_cache_key?: string | undefined;
960
+ include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
961
+ reasoning?: {
962
+ effort: OpenResponsesOptions.ReasoningEffort | undefined;
963
+ summary: "auto" | "concise" | "detailed" | undefined;
964
+ } | undefined;
965
+ text?: {
966
+ verbosity: OpenResponsesOptions.TextVerbosity;
967
+ } | undefined;
968
+ service_tier?: OpenResponsesOptions.ServiceTier | undefined;
969
+ max_tool_calls?: number | undefined;
970
+ parallel_tool_calls?: boolean | undefined;
971
+ truncation?: "auto" | "disabled" | undefined;
972
972
  };
973
973
  export declare const resolveParallelToolCalls: (request: LLMRequest) => boolean | undefined;
974
974
  export declare const allowedToolChoice: (request: LLMRequest) => {
975
975
  type: "allowed_tools";
976
- mode: "required" | "auto" | "none";
976
+ mode: "auto" | "none" | "required";
977
977
  tools: {
978
978
  type: "function";
979
979
  name: string;
@@ -982,71 +982,19 @@ export declare const allowedToolChoice: (request: LLMRequest) => {
982
982
  export declare const fromRequestWithAdapter: (request: LLMRequest<import("../schema/options.js").LanguageModel<{
983
983
  readonly [x: string]: unknown;
984
984
  }, import("../route.js").CompactionOperations | undefined>>, adapter: ProviderAdapter) => Effect.Effect<{
985
- tools: ({
986
- readonly [x: string]: unknown;
987
- readonly type: string;
988
- } | {
989
- readonly type: "function";
990
- readonly description: string;
991
- readonly name: string;
992
- readonly parameters: {
993
- readonly [x: string]: unknown;
994
- };
995
- readonly strict?: boolean | undefined;
996
- })[] | undefined;
997
- tool_choice: "required" | "auto" | "none" | {
998
- type: "allowed_tools";
999
- mode: "required" | "auto" | "none";
1000
- tools: {
1001
- type: "function";
1002
- name: string;
1003
- }[];
1004
- } | {
1005
- type: "function";
1006
- name: string;
1007
- } | undefined;
1008
- truncation?: "auto" | "disabled" | undefined;
1009
- parallel_tool_calls?: boolean | undefined;
1010
- max_tool_calls?: number | undefined;
1011
- service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1012
- text?: {
1013
- verbosity: OpenResponsesOptions.TextVerbosity;
1014
- } | undefined;
1015
- reasoning?: {
1016
- effort: OpenResponsesOptions.ReasoningEffort | undefined;
1017
- summary: "auto" | "concise" | "detailed" | undefined;
1018
- } | undefined;
1019
- include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1020
- prompt_cache_key?: string | undefined;
1021
- top_logprobs?: number | undefined;
1022
- stream_options?: {
1023
- include_obfuscation: boolean;
1024
- } | undefined;
1025
- safety_identifier?: string | undefined;
1026
- metadata?: {
1027
- readonly [x: string]: string;
1028
- } | undefined;
1029
- store?: boolean | undefined;
1030
- stream: true;
1031
- max_output_tokens: number | undefined;
1032
- temperature: number | undefined;
1033
- top_p: number | undefined;
1034
- presence_penalty: number | undefined;
1035
- frequency_penalty: number | undefined;
1036
- instructions?: string | undefined;
1037
985
  model: string & import("effect/Brand").Brand<"AI.ModelID">;
1038
986
  input: ({
1039
987
  readonly [x: string]: unknown;
1040
- readonly id: string;
1041
988
  readonly type: "web_search_call";
989
+ readonly id: string;
1042
990
  readonly status?: string | undefined;
1043
991
  readonly action?: {
1044
992
  readonly [x: string]: unknown;
1045
993
  } | null | undefined;
1046
994
  } | {
1047
995
  readonly [x: string]: unknown;
1048
- readonly id: string;
1049
996
  readonly type: "file_search_call";
997
+ readonly id: string;
1050
998
  readonly status?: string | undefined;
1051
999
  readonly queries?: readonly string[] | undefined;
1052
1000
  readonly results?: readonly {
@@ -1054,8 +1002,8 @@ export declare const fromRequestWithAdapter: (request: LLMRequest<import("../sch
1054
1002
  }[] | null | undefined;
1055
1003
  } | {
1056
1004
  readonly [x: string]: unknown;
1057
- readonly id: string;
1058
1005
  readonly type: "code_interpreter_call";
1006
+ readonly id: string;
1059
1007
  readonly status?: string | undefined;
1060
1008
  readonly code?: string | null | undefined;
1061
1009
  readonly container_id?: string | null | undefined;
@@ -1064,14 +1012,14 @@ export declare const fromRequestWithAdapter: (request: LLMRequest<import("../sch
1064
1012
  }[] | null | undefined;
1065
1013
  } | {
1066
1014
  readonly [x: string]: unknown;
1067
- readonly id: string;
1068
1015
  readonly type: "mcp_call";
1016
+ readonly id: string;
1069
1017
  readonly status?: string | undefined;
1018
+ readonly server_label?: string | undefined;
1070
1019
  readonly name?: string | undefined;
1020
+ readonly arguments?: string | undefined;
1071
1021
  readonly output?: string | null | undefined;
1072
1022
  readonly error?: unknown;
1073
- readonly arguments?: string | undefined;
1074
- readonly server_label?: string | undefined;
1075
1023
  } | {
1076
1024
  readonly type: "configuration_update";
1077
1025
  readonly reasoning: {
@@ -1081,18 +1029,10 @@ export declare const fromRequestWithAdapter: (request: LLMRequest<import("../sch
1081
1029
  readonly [x: string]: unknown;
1082
1030
  readonly type: string;
1083
1031
  readonly id: string;
1084
- } | {
1085
- readonly type: "reasoning";
1086
- readonly summary: readonly {
1087
- readonly type: "summary_text";
1088
- readonly text: string;
1089
- }[];
1090
- readonly id?: string | undefined;
1091
- readonly encrypted_content?: string | null | undefined;
1092
1032
  } | {
1093
1033
  readonly type: "compaction";
1094
- readonly encrypted_content: string;
1095
1034
  readonly id?: string | null | undefined;
1035
+ readonly encrypted_content: string;
1096
1036
  } | {
1097
1037
  readonly type: "message";
1098
1038
  readonly role: "system";
@@ -1103,6 +1043,7 @@ export declare const fromRequestWithAdapter: (request: LLMRequest<import("../sch
1103
1043
  readonly content: string;
1104
1044
  } | {
1105
1045
  readonly type: "message";
1046
+ readonly role: "user";
1106
1047
  readonly content: readonly ({
1107
1048
  readonly type: "input_image";
1108
1049
  readonly image_url: string;
@@ -1117,26 +1058,33 @@ export declare const fromRequestWithAdapter: (request: LLMRequest<import("../sch
1117
1058
  readonly type: "input_text";
1118
1059
  readonly text: string;
1119
1060
  })[];
1120
- readonly role: "user";
1121
1061
  readonly id?: string | undefined;
1122
1062
  readonly status?: string | undefined;
1123
1063
  } | {
1124
1064
  readonly type: "message";
1065
+ readonly id?: string | undefined;
1066
+ readonly role: "assistant";
1125
1067
  readonly content: readonly {
1126
1068
  readonly type: "output_text";
1127
1069
  readonly text: string;
1128
1070
  }[];
1129
- readonly role: "assistant";
1130
- readonly id?: string | undefined;
1131
- readonly status?: string | undefined;
1132
1071
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1072
+ readonly status?: string | undefined;
1073
+ } | {
1074
+ readonly type: "reasoning";
1075
+ readonly id?: string | undefined;
1076
+ readonly summary: readonly {
1077
+ readonly type: "summary_text";
1078
+ readonly text: string;
1079
+ }[];
1080
+ readonly encrypted_content?: string | null | undefined;
1133
1081
  } | {
1134
1082
  readonly type: "function_call";
1135
- readonly name: string;
1136
- readonly arguments: string;
1137
- readonly call_id: string;
1138
1083
  readonly id?: string | undefined;
1084
+ readonly call_id: string;
1085
+ readonly name: string;
1139
1086
  readonly namespace?: string | undefined;
1087
+ readonly arguments: string;
1140
1088
  } | {
1141
1089
  readonly type: "function_call_output";
1142
1090
  readonly call_id: string;
@@ -1158,73 +1106,73 @@ export declare const fromRequestWithAdapter: (request: LLMRequest<import("../sch
1158
1106
  readonly video_url: string;
1159
1107
  })[];
1160
1108
  })[];
1161
- }, AIError, never>;
1162
- export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1163
- tools: ({
1164
- readonly [x: string]: unknown;
1165
- readonly type: string;
1166
- } | {
1167
- readonly type: "function";
1168
- readonly description: string;
1109
+ instructions?: string | undefined;
1110
+ stream: true;
1111
+ max_output_tokens: number | undefined;
1112
+ temperature: number | undefined;
1113
+ top_p: number | undefined;
1114
+ presence_penalty: number | undefined;
1115
+ frequency_penalty: number | undefined;
1116
+ store?: boolean | undefined;
1117
+ metadata?: {
1118
+ readonly [x: string]: string;
1119
+ } | undefined;
1120
+ safety_identifier?: string | undefined;
1121
+ stream_options?: {
1122
+ include_obfuscation: boolean;
1123
+ } | undefined;
1124
+ top_logprobs?: number | undefined;
1125
+ prompt_cache_key?: string | undefined;
1126
+ include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1127
+ reasoning?: {
1128
+ effort: OpenResponsesOptions.ReasoningEffort | undefined;
1129
+ summary: "auto" | "concise" | "detailed" | undefined;
1130
+ } | undefined;
1131
+ text?: {
1132
+ verbosity: OpenResponsesOptions.TextVerbosity;
1133
+ } | undefined;
1134
+ service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1135
+ max_tool_calls?: number | undefined;
1136
+ parallel_tool_calls?: boolean | undefined;
1137
+ truncation?: "auto" | "disabled" | undefined;
1138
+ tools: ({
1139
+ readonly [x: string]: unknown;
1140
+ readonly type: string;
1141
+ } | {
1142
+ readonly type: "function";
1169
1143
  readonly name: string;
1144
+ readonly description: string;
1170
1145
  readonly parameters: {
1171
1146
  readonly [x: string]: unknown;
1172
1147
  };
1173
1148
  readonly strict?: boolean | undefined;
1174
1149
  })[] | undefined;
1175
- tool_choice: "required" | "auto" | "none" | {
1150
+ tool_choice: "auto" | "none" | "required" | {
1151
+ type: "function";
1152
+ name: string;
1153
+ } | {
1176
1154
  type: "allowed_tools";
1177
- mode: "required" | "auto" | "none";
1155
+ mode: "auto" | "none" | "required";
1178
1156
  tools: {
1179
1157
  type: "function";
1180
1158
  name: string;
1181
1159
  }[];
1182
- } | {
1183
- type: "function";
1184
- name: string;
1185
- } | undefined;
1186
- truncation?: "auto" | "disabled" | undefined;
1187
- parallel_tool_calls?: boolean | undefined;
1188
- max_tool_calls?: number | undefined;
1189
- service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1190
- text?: {
1191
- verbosity: OpenResponsesOptions.TextVerbosity;
1192
1160
  } | undefined;
1193
- reasoning?: {
1194
- effort: OpenResponsesOptions.ReasoningEffort | undefined;
1195
- summary: "auto" | "concise" | "detailed" | undefined;
1196
- } | undefined;
1197
- include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1198
- prompt_cache_key?: string | undefined;
1199
- top_logprobs?: number | undefined;
1200
- stream_options?: {
1201
- include_obfuscation: boolean;
1202
- } | undefined;
1203
- safety_identifier?: string | undefined;
1204
- metadata?: {
1205
- readonly [x: string]: string;
1206
- } | undefined;
1207
- store?: boolean | undefined;
1208
- stream: true;
1209
- max_output_tokens: number | undefined;
1210
- temperature: number | undefined;
1211
- top_p: number | undefined;
1212
- presence_penalty: number | undefined;
1213
- frequency_penalty: number | undefined;
1214
- instructions?: string | undefined;
1161
+ }, AIError, never>;
1162
+ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1215
1163
  model: string & import("effect/Brand").Brand<"AI.ModelID">;
1216
1164
  input: ({
1217
1165
  readonly [x: string]: unknown;
1218
- readonly id: string;
1219
1166
  readonly type: "web_search_call";
1167
+ readonly id: string;
1220
1168
  readonly status?: string | undefined;
1221
1169
  readonly action?: {
1222
1170
  readonly [x: string]: unknown;
1223
1171
  } | null | undefined;
1224
1172
  } | {
1225
1173
  readonly [x: string]: unknown;
1226
- readonly id: string;
1227
1174
  readonly type: "file_search_call";
1175
+ readonly id: string;
1228
1176
  readonly status?: string | undefined;
1229
1177
  readonly queries?: readonly string[] | undefined;
1230
1178
  readonly results?: readonly {
@@ -1232,8 +1180,8 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1232
1180
  }[] | null | undefined;
1233
1181
  } | {
1234
1182
  readonly [x: string]: unknown;
1235
- readonly id: string;
1236
1183
  readonly type: "code_interpreter_call";
1184
+ readonly id: string;
1237
1185
  readonly status?: string | undefined;
1238
1186
  readonly code?: string | null | undefined;
1239
1187
  readonly container_id?: string | null | undefined;
@@ -1242,14 +1190,14 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1242
1190
  }[] | null | undefined;
1243
1191
  } | {
1244
1192
  readonly [x: string]: unknown;
1245
- readonly id: string;
1246
1193
  readonly type: "mcp_call";
1194
+ readonly id: string;
1247
1195
  readonly status?: string | undefined;
1196
+ readonly server_label?: string | undefined;
1248
1197
  readonly name?: string | undefined;
1198
+ readonly arguments?: string | undefined;
1249
1199
  readonly output?: string | null | undefined;
1250
1200
  readonly error?: unknown;
1251
- readonly arguments?: string | undefined;
1252
- readonly server_label?: string | undefined;
1253
1201
  } | {
1254
1202
  readonly type: "configuration_update";
1255
1203
  readonly reasoning: {
@@ -1259,18 +1207,10 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1259
1207
  readonly [x: string]: unknown;
1260
1208
  readonly type: string;
1261
1209
  readonly id: string;
1262
- } | {
1263
- readonly type: "reasoning";
1264
- readonly summary: readonly {
1265
- readonly type: "summary_text";
1266
- readonly text: string;
1267
- }[];
1268
- readonly id?: string | undefined;
1269
- readonly encrypted_content?: string | null | undefined;
1270
1210
  } | {
1271
1211
  readonly type: "compaction";
1272
- readonly encrypted_content: string;
1273
1212
  readonly id?: string | null | undefined;
1213
+ readonly encrypted_content: string;
1274
1214
  } | {
1275
1215
  readonly type: "message";
1276
1216
  readonly role: "system";
@@ -1281,6 +1221,7 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1281
1221
  readonly content: string;
1282
1222
  } | {
1283
1223
  readonly type: "message";
1224
+ readonly role: "user";
1284
1225
  readonly content: readonly ({
1285
1226
  readonly type: "input_image";
1286
1227
  readonly image_url: string;
@@ -1295,26 +1236,33 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1295
1236
  readonly type: "input_text";
1296
1237
  readonly text: string;
1297
1238
  })[];
1298
- readonly role: "user";
1299
1239
  readonly id?: string | undefined;
1300
1240
  readonly status?: string | undefined;
1301
1241
  } | {
1302
1242
  readonly type: "message";
1243
+ readonly id?: string | undefined;
1244
+ readonly role: "assistant";
1303
1245
  readonly content: readonly {
1304
1246
  readonly type: "output_text";
1305
1247
  readonly text: string;
1306
1248
  }[];
1307
- readonly role: "assistant";
1308
- readonly id?: string | undefined;
1309
- readonly status?: string | undefined;
1310
1249
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1250
+ readonly status?: string | undefined;
1251
+ } | {
1252
+ readonly type: "reasoning";
1253
+ readonly id?: string | undefined;
1254
+ readonly summary: readonly {
1255
+ readonly type: "summary_text";
1256
+ readonly text: string;
1257
+ }[];
1258
+ readonly encrypted_content?: string | null | undefined;
1311
1259
  } | {
1312
1260
  readonly type: "function_call";
1313
- readonly name: string;
1314
- readonly arguments: string;
1315
- readonly call_id: string;
1316
1261
  readonly id?: string | undefined;
1262
+ readonly call_id: string;
1263
+ readonly name: string;
1317
1264
  readonly namespace?: string | undefined;
1265
+ readonly arguments: string;
1318
1266
  } | {
1319
1267
  readonly type: "function_call_output";
1320
1268
  readonly call_id: string;
@@ -1336,6 +1284,58 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
1336
1284
  readonly video_url: string;
1337
1285
  })[];
1338
1286
  })[];
1287
+ instructions?: string | undefined;
1288
+ stream: true;
1289
+ max_output_tokens: number | undefined;
1290
+ temperature: number | undefined;
1291
+ top_p: number | undefined;
1292
+ presence_penalty: number | undefined;
1293
+ frequency_penalty: number | undefined;
1294
+ store?: boolean | undefined;
1295
+ metadata?: {
1296
+ readonly [x: string]: string;
1297
+ } | undefined;
1298
+ safety_identifier?: string | undefined;
1299
+ stream_options?: {
1300
+ include_obfuscation: boolean;
1301
+ } | undefined;
1302
+ top_logprobs?: number | undefined;
1303
+ prompt_cache_key?: string | undefined;
1304
+ include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1305
+ reasoning?: {
1306
+ effort: OpenResponsesOptions.ReasoningEffort | undefined;
1307
+ summary: "auto" | "concise" | "detailed" | undefined;
1308
+ } | undefined;
1309
+ text?: {
1310
+ verbosity: OpenResponsesOptions.TextVerbosity;
1311
+ } | undefined;
1312
+ service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1313
+ max_tool_calls?: number | undefined;
1314
+ parallel_tool_calls?: boolean | undefined;
1315
+ truncation?: "auto" | "disabled" | undefined;
1316
+ tools: ({
1317
+ readonly [x: string]: unknown;
1318
+ readonly type: string;
1319
+ } | {
1320
+ readonly type: "function";
1321
+ readonly name: string;
1322
+ readonly description: string;
1323
+ readonly parameters: {
1324
+ readonly [x: string]: unknown;
1325
+ };
1326
+ readonly strict?: boolean | undefined;
1327
+ })[] | undefined;
1328
+ tool_choice: "auto" | "none" | "required" | {
1329
+ type: "function";
1330
+ name: string;
1331
+ } | {
1332
+ type: "allowed_tools";
1333
+ mode: "auto" | "none" | "required";
1334
+ tools: {
1335
+ type: "function";
1336
+ name: string;
1337
+ }[];
1338
+ } | undefined;
1339
1339
  }, AIError, never>;
1340
1340
  export declare const mapUsage: (usage: OpenResponsesUsage | null | undefined, providerMetadataKey: string) => Usage | undefined;
1341
1341
  export declare const metadataKey: (model: LLMRequest["model"]) => string;
@@ -1351,32 +1351,20 @@ export declare const errorDetail: (event: Event) => {
1351
1351
  code: string | undefined;
1352
1352
  };
1353
1353
  export declare const providerFailure: (event: Event, fallback: string, body?: string) => AIError;
1354
- export declare const step: (state: ParserState, event: NormalizedEvent) => AIError | Effect.Effect<[ParserState, readonly (({
1355
- readonly type: "compaction";
1356
- readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
1357
- readonly id?: string | undefined;
1358
- readonly text?: string | null | undefined;
1359
- readonly encrypted?: string | undefined;
1360
- } & ({
1361
- readonly encrypted: string;
1362
- readonly text?: never;
1363
- } | {
1364
- readonly text: string | null;
1365
- readonly encrypted?: never;
1366
- })) | {
1354
+ export declare const step: (state: ParserState, event: NormalizedEvent) => AIError | Effect.Effect<StepResult, never, never> | Effect.Effect<[ParserState, readonly ({
1367
1355
  readonly type: "step-start";
1368
1356
  readonly index: number;
1369
1357
  } | {
1370
- readonly id: string;
1371
1358
  readonly type: "text-start";
1359
+ readonly id: string;
1372
1360
  readonly providerMetadata?: {
1373
1361
  readonly [x: string]: {
1374
1362
  readonly [x: string]: unknown;
1375
1363
  };
1376
1364
  } | undefined;
1377
1365
  } | {
1378
- readonly id: string;
1379
1366
  readonly type: "text-delta";
1367
+ readonly id: string;
1380
1368
  readonly text: string;
1381
1369
  readonly providerMetadata?: {
1382
1370
  readonly [x: string]: {
@@ -1384,8 +1372,8 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1384
1372
  };
1385
1373
  } | undefined;
1386
1374
  } | {
1387
- readonly id: string;
1388
1375
  readonly type: "text-end";
1376
+ readonly id: string;
1389
1377
  readonly text?: string | undefined;
1390
1378
  readonly providerMetadata?: {
1391
1379
  readonly [x: string]: {
@@ -1393,16 +1381,16 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1393
1381
  };
1394
1382
  } | undefined;
1395
1383
  } | {
1396
- readonly id: string;
1397
1384
  readonly type: "reasoning-start";
1385
+ readonly id: string;
1398
1386
  readonly providerMetadata?: {
1399
1387
  readonly [x: string]: {
1400
1388
  readonly [x: string]: unknown;
1401
1389
  };
1402
1390
  } | undefined;
1403
1391
  } | {
1404
- readonly id: string;
1405
1392
  readonly type: "reasoning-delta";
1393
+ readonly id: string;
1406
1394
  readonly text: string;
1407
1395
  readonly providerMetadata?: {
1408
1396
  readonly [x: string]: {
@@ -1410,8 +1398,8 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1410
1398
  };
1411
1399
  } | undefined;
1412
1400
  } | {
1413
- readonly id: string;
1414
1401
  readonly type: "reasoning-end";
1402
+ readonly id: string;
1415
1403
  readonly text?: string | undefined;
1416
1404
  readonly providerMetadata?: {
1417
1405
  readonly [x: string]: {
@@ -1419,55 +1407,56 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1419
1407
  };
1420
1408
  } | undefined;
1421
1409
  } | {
1422
- readonly id: string;
1423
1410
  readonly type: "tool-input-start";
1411
+ readonly id: string;
1424
1412
  readonly name: string;
1413
+ readonly namespace?: string | undefined;
1414
+ readonly providerExecuted?: boolean | undefined;
1425
1415
  readonly providerMetadata?: {
1426
1416
  readonly [x: string]: {
1427
1417
  readonly [x: string]: unknown;
1428
1418
  };
1429
1419
  } | undefined;
1430
- readonly namespace?: string | undefined;
1431
- readonly providerExecuted?: boolean | undefined;
1432
1420
  } | {
1433
- readonly id: string;
1434
1421
  readonly type: "tool-input-delta";
1422
+ readonly id: string;
1435
1423
  readonly name: string;
1424
+ readonly namespace?: string | undefined;
1436
1425
  readonly text: string;
1437
1426
  readonly input?: unknown;
1438
- readonly namespace?: string | undefined;
1439
1427
  } | {
1440
- readonly id: string;
1441
1428
  readonly type: "tool-input-end";
1429
+ readonly id: string;
1442
1430
  readonly name: string;
1431
+ readonly namespace?: string | undefined;
1443
1432
  readonly providerMetadata?: {
1444
1433
  readonly [x: string]: {
1445
1434
  readonly [x: string]: unknown;
1446
1435
  };
1447
1436
  } | undefined;
1448
- readonly namespace?: string | undefined;
1449
1437
  } | {
1450
- readonly id: string;
1451
1438
  readonly type: "tool-input-error";
1439
+ readonly id: string;
1452
1440
  readonly name: string;
1453
- readonly raw: string;
1454
1441
  readonly namespace?: string | undefined;
1442
+ readonly raw: string;
1455
1443
  } | {
1456
- readonly id: string;
1457
1444
  readonly type: "tool-call";
1445
+ readonly id: string;
1458
1446
  readonly name: string;
1447
+ readonly namespace?: string | undefined;
1459
1448
  readonly input: unknown;
1449
+ readonly providerExecuted?: boolean | undefined;
1460
1450
  readonly providerMetadata?: {
1461
1451
  readonly [x: string]: {
1462
1452
  readonly [x: string]: unknown;
1463
1453
  };
1464
1454
  } | undefined;
1465
- readonly namespace?: string | undefined;
1466
- readonly providerExecuted?: boolean | undefined;
1467
1455
  } | {
1468
- readonly id: string;
1469
1456
  readonly type: "tool-result";
1457
+ readonly id: string;
1470
1458
  readonly name: string;
1459
+ readonly namespace?: string | undefined;
1471
1460
  readonly result: {
1472
1461
  readonly type: "json";
1473
1462
  readonly value: unknown;
@@ -1501,28 +1490,19 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1501
1490
  readonly name?: string | undefined;
1502
1491
  })[];
1503
1492
  } | undefined;
1493
+ readonly providerExecuted?: boolean | undefined;
1504
1494
  readonly providerMetadata?: {
1505
1495
  readonly [x: string]: {
1506
1496
  readonly [x: string]: unknown;
1507
1497
  };
1508
1498
  } | undefined;
1509
- readonly namespace?: string | undefined;
1510
- readonly providerExecuted?: boolean | undefined;
1511
1499
  } | {
1512
- readonly id: string;
1513
1500
  readonly type: "tool-error";
1514
- readonly message: string;
1501
+ readonly id: string;
1515
1502
  readonly name: string;
1516
- readonly error?: unknown;
1517
- readonly providerMetadata?: {
1518
- readonly [x: string]: {
1519
- readonly [x: string]: unknown;
1520
- };
1521
- } | undefined;
1522
1503
  readonly namespace?: string | undefined;
1523
- } | {
1524
- readonly type: "media";
1525
- readonly media: Media.Asset;
1504
+ readonly message: string;
1505
+ readonly error?: unknown;
1526
1506
  readonly providerMetadata?: {
1527
1507
  readonly [x: string]: {
1528
1508
  readonly [x: string]: unknown;
@@ -1530,33 +1510,41 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1530
1510
  } | undefined;
1531
1511
  } | {
1532
1512
  readonly type: "step-finish";
1513
+ readonly index: number;
1533
1514
  readonly reason: {
1534
- readonly normalized: "length" | "stop" | "tool-calls" | "content-filter" | "error" | "unknown";
1515
+ readonly normalized: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1535
1516
  readonly raw?: string | undefined;
1536
1517
  readonly category?: string | undefined;
1537
1518
  readonly explanation?: string | undefined;
1538
1519
  };
1539
- readonly index: number;
1520
+ readonly usage?: Usage | undefined;
1540
1521
  readonly providerMetadata?: {
1541
1522
  readonly [x: string]: {
1542
1523
  readonly [x: string]: unknown;
1543
1524
  };
1544
1525
  } | undefined;
1545
- readonly usage?: Usage | undefined;
1546
1526
  } | {
1547
1527
  readonly type: "finish";
1548
1528
  readonly reason: {
1549
- readonly normalized: "length" | "stop" | "tool-calls" | "content-filter" | "error" | "unknown";
1529
+ readonly normalized: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1550
1530
  readonly raw?: string | undefined;
1551
1531
  readonly category?: string | undefined;
1552
1532
  readonly explanation?: string | undefined;
1553
1533
  };
1534
+ readonly usage?: Usage | undefined;
1535
+ readonly providerMetadata?: {
1536
+ readonly [x: string]: {
1537
+ readonly [x: string]: unknown;
1538
+ };
1539
+ } | undefined;
1540
+ } | {
1541
+ readonly type: "media";
1542
+ readonly media: Media.Asset;
1554
1543
  readonly providerMetadata?: {
1555
1544
  readonly [x: string]: {
1556
1545
  readonly [x: string]: unknown;
1557
1546
  };
1558
1547
  } | undefined;
1559
- readonly usage?: Usage | undefined;
1560
1548
  } | {
1561
1549
  readonly type: "provider-error";
1562
1550
  readonly message: string;
@@ -1566,25 +1554,38 @@ export declare const step: (state: ParserState, event: NormalizedEvent) => AIErr
1566
1554
  readonly [x: string]: unknown;
1567
1555
  };
1568
1556
  } | undefined;
1569
- })[]], AIError, never> | Effect.Effect<StepResult, never, never>;
1557
+ } | ({
1558
+ readonly type: "compaction";
1559
+ readonly provider: string & import("effect/Brand").Brand<"AI.ProviderID">;
1560
+ readonly id?: string | undefined;
1561
+ readonly encrypted?: string | undefined;
1562
+ readonly text?: string | null | undefined;
1563
+ } & ({
1564
+ readonly encrypted: string;
1565
+ readonly text?: never;
1566
+ } | {
1567
+ readonly text: string | null;
1568
+ readonly encrypted?: never;
1569
+ })))[]], AIError, never>;
1570
1570
  /**
1571
1571
  * The provider-neutral Open Responses protocol. Provider-specific Responses
1572
1572
  * implementations compose this baseline with their own tools and event variants.
1573
1573
  */
1574
1574
  export declare const initial: (request: LLMRequest, adapter?: ProviderAdapter) => ParserState;
1575
1575
  export declare const protocol: Protocol<{
1576
+ readonly model: string;
1576
1577
  readonly input: readonly ({
1577
1578
  readonly [x: string]: unknown;
1578
- readonly id: string;
1579
1579
  readonly type: "web_search_call";
1580
+ readonly id: string;
1580
1581
  readonly status?: string | undefined;
1581
1582
  readonly action?: {
1582
1583
  readonly [x: string]: unknown;
1583
1584
  } | null | undefined;
1584
1585
  } | {
1585
1586
  readonly [x: string]: unknown;
1586
- readonly id: string;
1587
1587
  readonly type: "file_search_call";
1588
+ readonly id: string;
1588
1589
  readonly status?: string | undefined;
1589
1590
  readonly queries?: readonly string[] | undefined;
1590
1591
  readonly results?: readonly {
@@ -1592,8 +1593,8 @@ export declare const protocol: Protocol<{
1592
1593
  }[] | null | undefined;
1593
1594
  } | {
1594
1595
  readonly [x: string]: unknown;
1595
- readonly id: string;
1596
1596
  readonly type: "code_interpreter_call";
1597
+ readonly id: string;
1597
1598
  readonly status?: string | undefined;
1598
1599
  readonly code?: string | null | undefined;
1599
1600
  readonly container_id?: string | null | undefined;
@@ -1602,14 +1603,14 @@ export declare const protocol: Protocol<{
1602
1603
  }[] | null | undefined;
1603
1604
  } | {
1604
1605
  readonly [x: string]: unknown;
1605
- readonly id: string;
1606
1606
  readonly type: "mcp_call";
1607
+ readonly id: string;
1607
1608
  readonly status?: string | undefined;
1609
+ readonly server_label?: string | undefined;
1608
1610
  readonly name?: string | undefined;
1611
+ readonly arguments?: string | undefined;
1609
1612
  readonly output?: string | null | undefined;
1610
1613
  readonly error?: unknown;
1611
- readonly arguments?: string | undefined;
1612
- readonly server_label?: string | undefined;
1613
1614
  } | {
1614
1615
  readonly type: "configuration_update";
1615
1616
  readonly reasoning: {
@@ -1619,18 +1620,10 @@ export declare const protocol: Protocol<{
1619
1620
  readonly [x: string]: unknown;
1620
1621
  readonly type: string;
1621
1622
  readonly id: string;
1622
- } | {
1623
- readonly type: "reasoning";
1624
- readonly summary: readonly {
1625
- readonly type: "summary_text";
1626
- readonly text: string;
1627
- }[];
1628
- readonly id?: string | undefined;
1629
- readonly encrypted_content?: string | null | undefined;
1630
1623
  } | {
1631
1624
  readonly type: "compaction";
1632
- readonly encrypted_content: string;
1633
1625
  readonly id?: string | null | undefined;
1626
+ readonly encrypted_content: string;
1634
1627
  } | {
1635
1628
  readonly type: "message";
1636
1629
  readonly role: "system";
@@ -1641,6 +1634,7 @@ export declare const protocol: Protocol<{
1641
1634
  readonly content: string;
1642
1635
  } | {
1643
1636
  readonly type: "message";
1637
+ readonly role: "user";
1644
1638
  readonly content: readonly ({
1645
1639
  readonly type: "input_image";
1646
1640
  readonly image_url: string;
@@ -1655,26 +1649,33 @@ export declare const protocol: Protocol<{
1655
1649
  readonly type: "input_text";
1656
1650
  readonly text: string;
1657
1651
  })[];
1658
- readonly role: "user";
1659
1652
  readonly id?: string | undefined;
1660
1653
  readonly status?: string | undefined;
1661
1654
  } | {
1662
1655
  readonly type: "message";
1656
+ readonly id?: string | undefined;
1657
+ readonly role: "assistant";
1663
1658
  readonly content: readonly {
1664
1659
  readonly type: "output_text";
1665
1660
  readonly text: string;
1666
1661
  }[];
1667
- readonly role: "assistant";
1668
- readonly id?: string | undefined;
1669
- readonly status?: string | undefined;
1670
1662
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1663
+ readonly status?: string | undefined;
1664
+ } | {
1665
+ readonly type: "reasoning";
1666
+ readonly id?: string | undefined;
1667
+ readonly summary: readonly {
1668
+ readonly type: "summary_text";
1669
+ readonly text: string;
1670
+ }[];
1671
+ readonly encrypted_content?: string | null | undefined;
1671
1672
  } | {
1672
1673
  readonly type: "function_call";
1673
- readonly name: string;
1674
- readonly arguments: string;
1675
- readonly call_id: string;
1676
1674
  readonly id?: string | undefined;
1675
+ readonly call_id: string;
1676
+ readonly name: string;
1677
1677
  readonly namespace?: string | undefined;
1678
+ readonly arguments: string;
1678
1679
  } | {
1679
1680
  readonly type: "function_call_output";
1680
1681
  readonly call_id: string;
@@ -1696,131 +1697,131 @@ export declare const protocol: Protocol<{
1696
1697
  readonly video_url: string;
1697
1698
  })[];
1698
1699
  })[];
1699
- readonly model: string;
1700
- readonly stream: true;
1701
- readonly metadata?: {
1702
- readonly [x: string]: string;
1703
- } | undefined;
1704
1700
  readonly instructions?: string | undefined;
1705
- readonly reasoning?: {
1706
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
1707
- readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
1708
- } | undefined;
1709
- readonly temperature?: number | undefined;
1710
1701
  readonly tools?: readonly ({
1711
1702
  readonly [x: string]: unknown;
1712
1703
  readonly type: string;
1713
1704
  } | {
1714
1705
  readonly type: "function";
1715
- readonly description: string;
1716
1706
  readonly name: string;
1707
+ readonly description: string;
1717
1708
  readonly parameters: {
1718
1709
  readonly [x: string]: unknown;
1719
1710
  };
1720
1711
  readonly strict?: boolean | undefined;
1721
1712
  })[] | undefined;
1722
- readonly text?: {
1723
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1724
- } | undefined;
1725
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1726
- readonly tool_choice?: "required" | "auto" | "none" | {
1713
+ readonly tool_choice?: "auto" | "none" | "required" | {
1727
1714
  readonly type: "function";
1728
1715
  readonly name: string;
1729
1716
  } | {
1730
1717
  readonly type: "allowed_tools";
1731
- readonly mode: "required" | "auto" | "none";
1718
+ readonly mode: "auto" | "none" | "required";
1732
1719
  readonly tools: readonly {
1733
1720
  readonly type: "function";
1734
1721
  readonly name: string;
1735
1722
  }[];
1736
1723
  } | undefined;
1737
- readonly top_p?: number | undefined;
1738
- readonly frequency_penalty?: number | undefined;
1739
- readonly presence_penalty?: number | undefined;
1740
1724
  readonly store?: boolean | undefined;
1741
- readonly max_output_tokens?: number | undefined;
1742
- readonly prompt_cache_key?: string | undefined;
1743
- readonly parallel_tool_calls?: boolean | undefined;
1744
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1745
- readonly truncation?: "auto" | "disabled" | undefined;
1725
+ readonly metadata?: {
1726
+ readonly [x: string]: string;
1727
+ } | undefined;
1728
+ readonly safety_identifier?: string | undefined;
1746
1729
  readonly stream_options?: {
1747
1730
  readonly include_obfuscation?: boolean | undefined;
1748
1731
  } | undefined;
1749
- readonly safety_identifier?: string | undefined;
1750
1732
  readonly top_logprobs?: number | undefined;
1733
+ readonly truncation?: "auto" | "disabled" | undefined;
1734
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1735
+ readonly prompt_cache_key?: string | undefined;
1736
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1737
+ readonly reasoning?: {
1738
+ readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
1739
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
1740
+ } | undefined;
1741
+ readonly text?: {
1742
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1743
+ } | undefined;
1744
+ readonly max_output_tokens?: number | undefined;
1751
1745
  readonly max_tool_calls?: number | undefined;
1746
+ readonly parallel_tool_calls?: boolean | undefined;
1747
+ readonly temperature?: number | undefined;
1748
+ readonly top_p?: number | undefined;
1749
+ readonly presence_penalty?: number | undefined;
1750
+ readonly frequency_penalty?: number | undefined;
1751
+ readonly stream: true;
1752
1752
  }, string, {
1753
1753
  readonly [x: string]: unknown;
1754
1754
  readonly type: string;
1755
- readonly status?: unknown;
1756
- readonly message?: unknown;
1757
- readonly code?: unknown;
1755
+ readonly delta?: string | undefined;
1756
+ readonly arguments?: string | undefined;
1758
1757
  readonly text?: string | undefined;
1759
- readonly error?: unknown;
1758
+ readonly item_id?: string | undefined;
1759
+ readonly output_index?: number | undefined;
1760
+ readonly summary_index?: number | undefined;
1761
+ readonly item?: {
1762
+ readonly [x: string]: unknown;
1763
+ readonly type: string;
1764
+ readonly id?: string | undefined;
1765
+ readonly call_id?: string | undefined;
1766
+ readonly name?: string | undefined;
1767
+ readonly namespace?: string | null | undefined;
1768
+ readonly arguments?: string | undefined;
1769
+ readonly encrypted_content?: string | null | undefined;
1770
+ } | null | undefined;
1760
1771
  readonly response?: {
1761
1772
  readonly [x: string]: unknown;
1762
1773
  readonly id?: string | undefined;
1774
+ readonly service_tier?: string | null | undefined;
1775
+ readonly incomplete_details?: {
1776
+ readonly reason?: string | undefined;
1777
+ } | null | undefined;
1763
1778
  readonly output?: readonly {
1764
1779
  readonly [x: string]: unknown;
1765
1780
  readonly type: string;
1766
1781
  readonly id?: string | undefined;
1782
+ readonly call_id?: string | undefined;
1767
1783
  readonly name?: string | undefined;
1768
1784
  readonly namespace?: string | null | undefined;
1769
1785
  readonly arguments?: string | undefined;
1770
- readonly call_id?: string | undefined;
1771
1786
  readonly encrypted_content?: string | null | undefined;
1772
1787
  }[] | undefined;
1773
- readonly error?: unknown;
1774
1788
  readonly usage?: {
1775
1789
  readonly [x: string]: unknown;
1776
1790
  readonly input_tokens?: number | undefined;
1791
+ readonly input_tokens_details?: {
1792
+ readonly [x: string]: unknown;
1793
+ readonly cached_tokens?: number | undefined;
1794
+ readonly cache_write_tokens?: number | undefined;
1795
+ } | null | undefined;
1777
1796
  readonly output_tokens?: number | undefined;
1778
1797
  readonly output_tokens_details?: {
1779
1798
  readonly [x: string]: unknown;
1780
1799
  readonly reasoning_tokens?: number | undefined;
1781
1800
  } | null | undefined;
1782
1801
  readonly total_tokens?: number | undefined;
1783
- readonly input_tokens_details?: {
1784
- readonly [x: string]: unknown;
1785
- readonly cached_tokens?: number | undefined;
1786
- readonly cache_write_tokens?: number | undefined;
1787
- } | null | undefined;
1788
- } | null | undefined;
1789
- readonly service_tier?: string | null | undefined;
1790
- readonly incomplete_details?: {
1791
- readonly reason?: string | undefined;
1792
1802
  } | null | undefined;
1803
+ readonly error?: unknown;
1793
1804
  } | undefined;
1794
- readonly item?: {
1795
- readonly [x: string]: unknown;
1796
- readonly type: string;
1797
- readonly id?: string | undefined;
1798
- readonly name?: string | undefined;
1799
- readonly namespace?: string | null | undefined;
1800
- readonly arguments?: string | undefined;
1801
- readonly call_id?: string | undefined;
1802
- readonly encrypted_content?: string | null | undefined;
1803
- } | null | undefined;
1804
- readonly delta?: string | undefined;
1805
- readonly arguments?: string | undefined;
1806
- readonly item_id?: string | undefined;
1807
- readonly output_index?: number | undefined;
1808
- readonly summary_index?: number | undefined;
1805
+ readonly code?: unknown;
1806
+ readonly message?: unknown;
1807
+ readonly error?: unknown;
1808
+ readonly status?: unknown;
1809
1809
  readonly status_code?: unknown;
1810
1810
  }, ParserState>;
1811
1811
  export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1812
+ readonly model: string;
1812
1813
  readonly input: readonly ({
1813
1814
  readonly [x: string]: unknown;
1814
- readonly id: string;
1815
1815
  readonly type: "web_search_call";
1816
+ readonly id: string;
1816
1817
  readonly status?: string | undefined;
1817
1818
  readonly action?: {
1818
1819
  readonly [x: string]: unknown;
1819
1820
  } | null | undefined;
1820
1821
  } | {
1821
1822
  readonly [x: string]: unknown;
1822
- readonly id: string;
1823
1823
  readonly type: "file_search_call";
1824
+ readonly id: string;
1824
1825
  readonly status?: string | undefined;
1825
1826
  readonly queries?: readonly string[] | undefined;
1826
1827
  readonly results?: readonly {
@@ -1828,8 +1829,8 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1828
1829
  }[] | null | undefined;
1829
1830
  } | {
1830
1831
  readonly [x: string]: unknown;
1831
- readonly id: string;
1832
1832
  readonly type: "code_interpreter_call";
1833
+ readonly id: string;
1833
1834
  readonly status?: string | undefined;
1834
1835
  readonly code?: string | null | undefined;
1835
1836
  readonly container_id?: string | null | undefined;
@@ -1838,14 +1839,14 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1838
1839
  }[] | null | undefined;
1839
1840
  } | {
1840
1841
  readonly [x: string]: unknown;
1841
- readonly id: string;
1842
1842
  readonly type: "mcp_call";
1843
+ readonly id: string;
1843
1844
  readonly status?: string | undefined;
1845
+ readonly server_label?: string | undefined;
1844
1846
  readonly name?: string | undefined;
1847
+ readonly arguments?: string | undefined;
1845
1848
  readonly output?: string | null | undefined;
1846
1849
  readonly error?: unknown;
1847
- readonly arguments?: string | undefined;
1848
- readonly server_label?: string | undefined;
1849
1850
  } | {
1850
1851
  readonly type: "configuration_update";
1851
1852
  readonly reasoning: {
@@ -1855,18 +1856,10 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1855
1856
  readonly [x: string]: unknown;
1856
1857
  readonly type: string;
1857
1858
  readonly id: string;
1858
- } | {
1859
- readonly type: "reasoning";
1860
- readonly summary: readonly {
1861
- readonly type: "summary_text";
1862
- readonly text: string;
1863
- }[];
1864
- readonly id?: string | undefined;
1865
- readonly encrypted_content?: string | null | undefined;
1866
1859
  } | {
1867
1860
  readonly type: "compaction";
1868
- readonly encrypted_content: string;
1869
1861
  readonly id?: string | null | undefined;
1862
+ readonly encrypted_content: string;
1870
1863
  } | {
1871
1864
  readonly type: "message";
1872
1865
  readonly role: "system";
@@ -1877,6 +1870,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1877
1870
  readonly content: string;
1878
1871
  } | {
1879
1872
  readonly type: "message";
1873
+ readonly role: "user";
1880
1874
  readonly content: readonly ({
1881
1875
  readonly type: "input_image";
1882
1876
  readonly image_url: string;
@@ -1891,26 +1885,33 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1891
1885
  readonly type: "input_text";
1892
1886
  readonly text: string;
1893
1887
  })[];
1894
- readonly role: "user";
1895
1888
  readonly id?: string | undefined;
1896
1889
  readonly status?: string | undefined;
1897
1890
  } | {
1898
1891
  readonly type: "message";
1892
+ readonly id?: string | undefined;
1893
+ readonly role: "assistant";
1899
1894
  readonly content: readonly {
1900
1895
  readonly type: "output_text";
1901
1896
  readonly text: string;
1902
1897
  }[];
1903
- readonly role: "assistant";
1904
- readonly id?: string | undefined;
1905
- readonly status?: string | undefined;
1906
1898
  readonly phase?: "commentary" | "final_answer" | null | undefined;
1899
+ readonly status?: string | undefined;
1900
+ } | {
1901
+ readonly type: "reasoning";
1902
+ readonly id?: string | undefined;
1903
+ readonly summary: readonly {
1904
+ readonly type: "summary_text";
1905
+ readonly text: string;
1906
+ }[];
1907
+ readonly encrypted_content?: string | null | undefined;
1907
1908
  } | {
1908
1909
  readonly type: "function_call";
1909
- readonly name: string;
1910
- readonly arguments: string;
1911
- readonly call_id: string;
1912
1910
  readonly id?: string | undefined;
1911
+ readonly call_id: string;
1912
+ readonly name: string;
1913
1913
  readonly namespace?: string | undefined;
1914
+ readonly arguments: string;
1914
1915
  } | {
1915
1916
  readonly type: "function_call_output";
1916
1917
  readonly call_id: string;
@@ -1932,58 +1933,57 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1932
1933
  readonly video_url: string;
1933
1934
  })[];
1934
1935
  })[];
1935
- readonly model: string;
1936
- readonly stream: true;
1937
- readonly metadata?: {
1938
- readonly [x: string]: string;
1939
- } | undefined;
1940
1936
  readonly instructions?: string | undefined;
1941
- readonly reasoning?: {
1942
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
1943
- readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
1944
- } | undefined;
1945
- readonly temperature?: number | undefined;
1946
1937
  readonly tools?: readonly ({
1947
1938
  readonly [x: string]: unknown;
1948
1939
  readonly type: string;
1949
1940
  } | {
1950
1941
  readonly type: "function";
1951
- readonly description: string;
1952
1942
  readonly name: string;
1943
+ readonly description: string;
1953
1944
  readonly parameters: {
1954
1945
  readonly [x: string]: unknown;
1955
1946
  };
1956
1947
  readonly strict?: boolean | undefined;
1957
1948
  })[] | undefined;
1958
- readonly text?: {
1959
- readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1960
- } | undefined;
1961
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1962
- readonly tool_choice?: "required" | "auto" | "none" | {
1949
+ readonly tool_choice?: "auto" | "none" | "required" | {
1963
1950
  readonly type: "function";
1964
1951
  readonly name: string;
1965
1952
  } | {
1966
1953
  readonly type: "allowed_tools";
1967
- readonly mode: "required" | "auto" | "none";
1954
+ readonly mode: "auto" | "none" | "required";
1968
1955
  readonly tools: readonly {
1969
1956
  readonly type: "function";
1970
1957
  readonly name: string;
1971
1958
  }[];
1972
1959
  } | undefined;
1973
- readonly top_p?: number | undefined;
1974
- readonly frequency_penalty?: number | undefined;
1975
- readonly presence_penalty?: number | undefined;
1976
1960
  readonly store?: boolean | undefined;
1977
- readonly max_output_tokens?: number | undefined;
1978
- readonly prompt_cache_key?: string | undefined;
1979
- readonly parallel_tool_calls?: boolean | undefined;
1980
- readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1981
- readonly truncation?: "auto" | "disabled" | undefined;
1961
+ readonly metadata?: {
1962
+ readonly [x: string]: string;
1963
+ } | undefined;
1964
+ readonly safety_identifier?: string | undefined;
1982
1965
  readonly stream_options?: {
1983
1966
  readonly include_obfuscation?: boolean | undefined;
1984
1967
  } | undefined;
1985
- readonly safety_identifier?: string | undefined;
1986
1968
  readonly top_logprobs?: number | undefined;
1969
+ readonly truncation?: "auto" | "disabled" | undefined;
1970
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1971
+ readonly prompt_cache_key?: string | undefined;
1972
+ readonly include?: readonly OpenResponsesOptions.ResponseIncludable[] | undefined;
1973
+ readonly reasoning?: {
1974
+ readonly effort?: OpenResponsesOptions.ReasoningEffort | undefined;
1975
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
1976
+ } | undefined;
1977
+ readonly text?: {
1978
+ readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1979
+ } | undefined;
1980
+ readonly max_output_tokens?: number | undefined;
1987
1981
  readonly max_tool_calls?: number | undefined;
1982
+ readonly parallel_tool_calls?: boolean | undefined;
1983
+ readonly temperature?: number | undefined;
1984
+ readonly top_p?: number | undefined;
1985
+ readonly presence_penalty?: number | undefined;
1986
+ readonly frequency_penalty?: number | undefined;
1987
+ readonly stream: true;
1988
1988
  }, string>;
1989
1989
  export * as OpenResponses from "./open-responses.js";