ó
    ûÞ jbé ã                  ó¶  • % S SK Jr  S SKrS SKrS SKrS SKrS SKJr  S SKJr  S SK	J
r
JrJrJrJrJrJrJrJrJrJrJr  S SKJr  S SKJrJr  S SKrS SKJr  S	S
KJr  S	SK J!r!J"r"J#r#J$r$J%r%J&r&J'r'J(r(J)r)  S	SK*J+r+J,r,J-r-J.r.J/r/  S	SK0J1r1  S	SK2J3r3  S	SK4J5r5  S	SK6J7r7J8r8  S	SK9J:r:J;r;  SSK<J=r=J>r>J?r?J@r@JArAJBrB  S	SKCJDrDJErE  S	SKFJGrGJHrH  SSKIJJrJJKrKJLrLJMrMJNrNJOrO  S	SKPJQrQJRrR  S	SKSJTrT  S	SKUJVrVJWrW  S	SKXJYrY  S	SKZJ[r[J\r\J]r]J^r^  S	SK_J`r`JaraJbrc  S	SKdJere  S	SKfJgrgJhrh  S	SKiJjrj  S	S KkJlrl  S	S!KmJnrnJoroJprp  S	S"KqJrrr  S	S#KsJtrt  S	S$KuJvrvJwrw  S	S%KxJyry  S	S&KzJ{r{  S	S'K|J}r}  S	S(K~Jr  S	S)K€J�r�  S	S*K‚Jƒrƒ  S	S+K„J…r…  S	S,K†J‡r‡  S	S-KˆJ‰r‰JŠrŠ  S	S.K‹JŒrŒ  S	S/K�JŽrŽ  S	S0K�J�r�  S	S1K‘J’r’  \
(       a  S S2K“J”r•  S S2K–J”r—  S	S3K˜J™r™Jšrš  S4S5/r›\GR8                  " \�5      ržS6\ŸS7'    " S8 S4\75      r  " S9 S5\85      r¡ " S: S;5      r¢ " S< S=5      r£ " S> S?5      r¤ " S@ SA5      r¥SSSB jr¦ " SC SD5      r§ " SE SF5      r¨ " SG SH5      r© " SI SJ5      rª " SK SL5      r« " SM SN\«5      r¬ " SO SP5      r­ " SQ SR\­5      r®g)Té    )ÚannotationsN)Úcopy)ÚTracebackType)ÚTYPE_CHECKINGÚAnyÚListÚTypeÚUnionÚCallableÚIterableÚIteratorÚOptionalÚ	AwaitableÚAsyncIteratorÚcast)Úpartial)ÚLiteralÚoverload)Ú	BaseModelé   )Ú_legacy_response)	Ú	NOT_GIVENÚBodyÚOmitÚQueryÚHeadersÚNoneTypeÚNotGivenÚomitÚ	not_given)Úis_givenÚpath_templateÚmaybe_transformÚstrip_not_givenÚasync_maybe_transform)Úcached_property)Únormalize_httpx_url)Úconstruct_type_unchecked)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapperé   )Ú
InputItemsÚAsyncInputItemsÚInputItemsWithRawResponseÚAsyncInputItemsWithRawResponseÚInputItemsWithStreamingResponseÚ$AsyncInputItemsWithStreamingResponse)ÚStreamÚAsyncStream)ÚPydanticFunctionToolÚResponsesPydanticFunctionTool)ÚInputTokensÚAsyncInputTokensÚInputTokensWithRawResponseÚAsyncInputTokensWithRawResponseÚ InputTokensWithStreamingResponseÚ%AsyncInputTokensWithStreamingResponse)ÚOpenAIErrorÚWebSocketConnectionClosedError)Ú	SendQueue)Ú_merge_mappingsÚmake_request_options)ÚEventHandlerRegistry)Úresponse_create_paramsÚresponse_compact_paramsÚresponse_retrieve_paramsÚresponses_client_event_param)ÚTextFormatTÚparse_responseÚtype_to_text_format_param)ÚResponse)Ú	ToolParamÚParseableToolParam)ÚServiceTier)ÚMetadata)ÚReconnectingEventÚReconnectingOverridesÚis_recoverable_close)Ú	Reasoning)ÚParsedResponse)ÚResponseStreamManagerÚAsyncResponseStreamManager)ÚCompactedResponse)ÚWebSocketConnectionOptions)ÚResponseIncludable)ÚResponsesModel)ÚResponseInputParam)ÚResponsePromptParam)ÚResponseStreamEvent)ÚResponsesClientEvent)ÚResponseWsErrorÚResponsesServerEvent)ÚResponseInputItemParam)ÚResponseSteerInputParam)ÚResponseTextConfigParam)ÚResponsesClientEventParam)ÚClientConnection)ÚOpenAIÚAsyncOpenAIÚ	ResponsesÚAsyncResponseszlogging.LoggerÚlogc            &      ó"
  • \ rS rSr\S,S j5       r\S-S j5       r\S.S j5       r\S/S j5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.#                                                                       S0S jj5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S	."                                                                       S1S
 jj5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S	."                                                                       S2S jj5       r\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.#                                                                       S3S jjr\	\
\
\
SSS\S.                 S4S jj5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.!                                                                       S5S jj5       r\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.%                                                                           S6S jjr\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.%                                                                           S7S jjr\	\
\
\
\
SSS\S.                   S8S jj5       r\	\
\
SSS\S.                 S9S jj5       r\	\
\
SSS\S.                 S:S jj5       r\	S\
\
SSS\S.                 S:S jj5       r\	\
\
\
SSS\S.                   S;S jj5       r\	\
\
\
SSS\S.                   S<S jj5       r\
\
\
\
SSS\S.                   S=S  jjrSSS\S!.           S>S" jjrSSS\S!.           S?S# jjr\
\
\
\
\
\
\
SSS\S$.                         S@S% jjr0 0 0 SS&S'S(S)4                 SAS* jjrS+rg)Brh   éi   c                ó,   • [        U R                  5      $ ©N)r.   Ú_client©Úselfs    Ú^/var/www/html/gaurav/venv/lib/python3.13/site-packages/openai/resources/responses/responses.pyÚinput_itemsÚResponses.input_itemsj   s   € ä˜$Ÿ,™,Ó'Ð'ó    c                ó,   • [        U R                  5      $ rn   )r8   ro   rp   s    rr   Úinput_tokensÚResponses.input_tokensn   s   € ä˜4Ÿ<™<Ó(Ð(ru   c                ó   • [        U 5      $ ©zï
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
)ÚResponsesWithRawResponserp   s    rr   Úwith_raw_responseÚResponses.with_raw_responser   s   € ô (¨Ó-Ð-ru   c                ó   • [        U 5      $ ©z´
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/openai/openai-python#with_streaming_response
)ÚResponsesWithStreamingResponserp   s    rr   Úwith_streaming_responseÚ!Responses.with_streaming_response|   s   € ô .¨dÓ3Ð3ru   N©#Ú
backgroundÚcontext_managementÚconversationÚincludeÚinputÚinstructionsÚmax_output_tokensÚmax_tool_callsÚmetadataÚmodelÚ
moderationÚparallel_tool_callsÚprevious_response_idÚpromptÚprompt_cache_keyÚprompt_cache_optionsÚprompt_cache_retentionÚ	reasoningÚsafety_identifierÚservice_tierÚstoreÚstreamÚstream_optionsÚtemperatureÚtextÚtool_choiceÚtoolsÚtop_logprobsÚtop_pÚ
truncationÚuserÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc       #        ó   • g©a4  Creates a model response.

Provide
[text](https://platform.openai.com/docs/guides/text) or
[image](https://platform.openai.com/docs/guides/images) inputs to generate
[text](https://platform.openai.com/docs/guides/text) or
[JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have
the model call your own
[custom code](https://platform.openai.com/docs/guides/function-calling) or use
built-in [tools](https://platform.openai.com/docs/guides/tools) like
[web search](https://platform.openai.com/docs/guides/tools-web-search) or
[file search](https://platform.openai.com/docs/guides/tools-file-search) to use
your own data as input for the model's response.

Args:
  background: Whether to run the model response in the background.
      [Learn more](https://platform.openai.com/docs/guides/background).

  context_management: Context management configuration for this request.

  conversation: The conversation that this response belongs to. Items from this conversation are
      prepended to `input_items` for this response request. Input items and output
      items from this response are automatically added to this conversation after this
      response completes.

  include: Specify additional output data to include in the model response. Currently
      supported values are:

      - `web_search_call.action.sources`: Include the sources of the web search tool
        call.
      - `code_interpreter_call.outputs`: Includes the outputs of python code execution
        in code interpreter tool call items.
      - `computer_call_output.output.image_url`: Include image urls from the computer
        call output.
      - `file_search_call.results`: Include the search results of the file search tool
        call.
      - `message.input_image.image_url`: Include image urls from the input message.
      - `message.output_text.logprobs`: Include logprobs with assistant messages.
      - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
        tokens in reasoning item outputs. This enables reasoning items to be used in
        multi-turn conversations when using the Responses API statelessly (like when
        the `store` parameter is set to `false`, or when an organization is enrolled
        in the zero data retention program).

  input: Text, image, or file inputs to the model, used to generate a response.

      Learn more:

      - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
      - [Image inputs](https://platform.openai.com/docs/guides/images)
      - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
      - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
      - [Function calling](https://platform.openai.com/docs/guides/function-calling)

  instructions: A system (or developer) message inserted into the model's context.

      When using along with `previous_response_id`, the instructions from a previous
      response will not be carried over to the next response. This makes it simple to
      swap out system (or developer) messages in new responses.

  max_output_tokens: An upper bound for the number of tokens that can be generated for a response,
      including visible output tokens and
      [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).

  max_tool_calls: The maximum number of total calls to built-in tools that can be processed in a
      response. This maximum number applies across all built-in tool calls, not per
      individual tool. Any further attempts to call a tool by the model will be
      ignored.

  metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
      for storing additional information about the object in a structured format, and
      querying for objects via API or the dashboard.

      Keys are strings with a maximum length of 64 characters. Values are strings with
      a maximum length of 512 characters.

  model: Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
      range of models with different capabilities, performance characteristics, and
      price points. Refer to the
      [model guide](https://platform.openai.com/docs/models) to browse and compare
      available models.

  moderation: Configuration for running moderation on the input and output of this response.

  parallel_tool_calls: Whether to allow the model to run tool calls in parallel.

  previous_response_id: The unique ID of the previous response to the model. Use this to create
      multi-turn conversations. Learn more about
      [conversation state](https://platform.openai.com/docs/guides/conversation-state).
      Cannot be used in conjunction with `conversation`.

  prompt: Reference to a prompt template and its variables.
      [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).

  prompt_cache_key: Used by OpenAI to cache responses for similar requests to optimize your cache
      hit rates. Replaces the `user` field.
      [Learn more](https://platform.openai.com/docs/guides/prompt-caching).

  prompt_cache_options: Options for prompt caching. Supported for `gpt-5.6` and later models. By
      default, OpenAI automatically chooses one implicit cache breakpoint. You can add
      explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
      request can write up to four breakpoints. For cache matching, OpenAI considers
      up to the latest 80 breakpoints in the conversation, without a content-block
      lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
      `ttl` defaults to `30m`, which is currently the only supported value. See the
      [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
      for current details.

  prompt_cache_retention: Deprecated. Use `prompt_cache_options.ttl` instead.

      The retention policy for the prompt cache. Set to `24h` to enable extended
      prompt caching, which keeps cached prefixes active for longer, up to a maximum
      of 24 hours.
      [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
      This field expresses a maximum retention policy, while
      `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
      are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
      models, only `24h` is supported.

      For older models that support both `in_memory` and `24h`, the default depends on
      your organization's data retention policy:

      - Organizations without ZDR enabled default to `24h`.
      - Organizations with ZDR enabled default to `in_memory` when
        `prompt_cache_retention` is not specified.

  reasoning: Configuration options for
      [reasoning models](https://platform.openai.com/docs/guides/reasoning).

  safety_identifier: A stable identifier used to help detect users of your application that may be
      violating OpenAI's usage policies. The IDs should be a string that uniquely
      identifies each user, with a maximum length of 64 characters. We recommend
      hashing their username or email address, in order to avoid sending us any
      identifying information.
      [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).

  service_tier: Specifies the processing type used for serving the request.

      - If set to 'auto', then the request will be processed with the service tier
        configured in the Project settings. Unless otherwise configured, the Project
        will use 'default'.
      - If set to 'default', then the request will be processed with the standard
        pricing and performance for the selected model.
      - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
        then the request will be processed with the Flex Processing service tier.
      - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
        include the `service_tier=fast` or `service_tier=priority` parameter for
        Responses or Chat Completions. The response will show `service_tier=priority`
        regardless of if you specify `service_tier=fast` or `priority` in your
        request.
      - If set to 'ultrafast', then the request will be processed with the
        access-controlled Ultrafast Processing service tier. This tier is currently
        available for `gpt-5.6-sol`; a response served through it will show
        `service_tier=ultrafast`.
      - When not set, the default behavior is 'auto'.

      When the `service_tier` parameter is set, the response body will include the
      `service_tier` value based on the processing mode actually used to serve the
      request. This response value may be different from the value set in the
      parameter.

  store: Whether to store the generated model response for later retrieval via API.
      Defaults to true when omitted. If set to true, response data will be stored for
      at least 30 days, subject to the
      [data retention exceptions](/api/docs/guides/your-data#v1responses).

  stream: If set to true, the model response data will be streamed to the client as it is
      generated using
      [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
      See the
      [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
      for more information.

  stream_options: Options for streaming responses. Only set this when you set `stream: true`.

  temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
      make the output more random, while lower values like 0.2 will make it more
      focused and deterministic. We generally recommend altering this or `top_p` but
      not both.

  text: Configuration options for a text response from the model. Can be plain text or
      structured JSON data. Learn more:

      - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
      - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)

  tool_choice: How the model should select which tool (or tools) to use when generating a
      response. See the `tools` parameter to see how to specify which tools the model
      can call.

  tools: An array of tools the model may call while generating a response. You can
      specify which tool to use by setting the `tool_choice` parameter.

      We support the following categories of tools:

      - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
        capabilities, like
        [web search](https://platform.openai.com/docs/guides/tools-web-search) or
        [file search](https://platform.openai.com/docs/guides/tools-file-search).
        Learn more about
        [built-in tools](https://platform.openai.com/docs/guides/tools).
      - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
        predefined connectors such as Google Drive and SharePoint. Learn more about
        [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
      - **Function calls (custom tools)**: Functions that are defined by you, enabling
        the model to call your own code with strongly typed arguments and outputs.
        Learn more about
        [function calling](https://platform.openai.com/docs/guides/function-calling).
        You can also use custom tools to call your own code.

  top_logprobs: An integer between 0 and 20 specifying the maximum number of most likely tokens
      to return at each token position, each with an associated log probability. In
      some cases, the number of returned tokens may be fewer than requested.

  top_p: An alternative to sampling with temperature, called nucleus sampling, where the
      model considers the results of the tokens with top_p probability mass. So 0.1
      means only the tokens comprising the top 10% probability mass are considered.

      We generally recommend altering this or `temperature` but not both.

  truncation: The truncation strategy to use for the model response.

      - `auto`: If the input to this Response exceeds the model's context window size,
        the model will truncate the response to fit the context window by dropping
        items from the beginning of the conversation.
      - `disabled` (default): If the input size will exceed the context window size
        for a model, the request will fail with a 400 error.

  user: This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use
      `prompt_cache_key` instead to maintain caching optimizations. A stable
      identifier for your end-users. Used to boost cache hit rates by better bucketing
      similar requests and to help OpenAI detect and prevent abuse.
      [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
N© ©$rq   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   s$                                       rr   ÚcreateÚResponses.create…   ó   € ðx 	ru   ©"r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   c       #        ó   • g©a4  Creates a model response.

Provide
[text](https://platform.openai.com/docs/guides/text) or
[image](https://platform.openai.com/docs/guides/images) inputs to generate
[text](https://platform.openai.com/docs/guides/text) or
[JSON](https://platform.openai.com/docs/guides/structured-outputs) outputs. Have
the model call your own
[custom code](https://platform.openai.com/docs/guides/function-calling) or use
built-in [tools](https://platform.openai.com/docs/guides/tools) like
[web search](https://platform.openai.com/docs/guides/tools-web-search) or
[file search](https://platform.openai.com/docs/guides/tools-file-search) to use
your own data as input for the model's response.

Args:
  stream: If set to true, the model response data will be streamed to the client as it is
      generated using
      [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
      See the
      [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
      for more information.

  background: Whether to run the model response in the background.
      [Learn more](https://platform.openai.com/docs/guides/background).

  context_management: Context management configuration for this request.

  conversation: The conversation that this response belongs to. Items from this conversation are
      prepended to `input_items` for this response request. Input items and output
      items from this response are automatically added to this conversation after this
      response completes.

  include: Specify additional output data to include in the model response. Currently
      supported values are:

      - `web_search_call.action.sources`: Include the sources of the web search tool
        call.
      - `code_interpreter_call.outputs`: Includes the outputs of python code execution
        in code interpreter tool call items.
      - `computer_call_output.output.image_url`: Include image urls from the computer
        call output.
      - `file_search_call.results`: Include the search results of the file search tool
        call.
      - `message.input_image.image_url`: Include image urls from the input message.
      - `message.output_text.logprobs`: Include logprobs with assistant messages.
      - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
        tokens in reasoning item outputs. This enables reasoning items to be used in
        multi-turn conversations when using the Responses API statelessly (like when
        the `store` parameter is set to `false`, or when an organization is enrolled
        in the zero data retention program).

  input: Text, image, or file inputs to the model, used to generate a response.

      Learn more:

      - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
      - [Image inputs](https://platform.openai.com/docs/guides/images)
      - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
      - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
      - [Function calling](https://platform.openai.com/docs/guides/function-calling)

  instructions: A system (or developer) message inserted into the model's context.

      When using along with `previous_response_id`, the instructions from a previous
      response will not be carried over to the next response. This makes it simple to
      swap out system (or developer) messages in new responses.

  max_output_tokens: An upper bound for the number of tokens that can be generated for a response,
      including visible output tokens and
      [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).

  max_tool_calls: The maximum number of total calls to built-in tools that can be processed in a
      response. This maximum number applies across all built-in tool calls, not per
      individual tool. Any further attempts to call a tool by the model will be
      ignored.

  metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
      for storing additional information about the object in a structured format, and
      querying for objects via API or the dashboard.

      Keys are strings with a maximum length of 64 characters. Values are strings with
      a maximum length of 512 characters.

  model: Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
      range of models with different capabilities, performance characteristics, and
      price points. Refer to the
      [model guide](https://platform.openai.com/docs/models) to browse and compare
      available models.

  moderation: Configuration for running moderation on the input and output of this response.

  parallel_tool_calls: Whether to allow the model to run tool calls in parallel.

  previous_response_id: The unique ID of the previous response to the model. Use this to create
      multi-turn conversations. Learn more about
      [conversation state](https://platform.openai.com/docs/guides/conversation-state).
      Cannot be used in conjunction with `conversation`.

  prompt: Reference to a prompt template and its variables.
      [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).

  prompt_cache_key: Used by OpenAI to cache responses for similar requests to optimize your cache
      hit rates. Replaces the `user` field.
      [Learn more](https://platform.openai.com/docs/guides/prompt-caching).

  prompt_cache_options: Options for prompt caching. Supported for `gpt-5.6` and later models. By
      default, OpenAI automatically chooses one implicit cache breakpoint. You can add
      explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
      request can write up to four breakpoints. For cache matching, OpenAI considers
      up to the latest 80 breakpoints in the conversation, without a content-block
      lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
      `ttl` defaults to `30m`, which is currently the only supported value. See the
      [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
      for current details.

  prompt_cache_retention: Deprecated. Use `prompt_cache_options.ttl` instead.

      The retention policy for the prompt cache. Set to `24h` to enable extended
      prompt caching, which keeps cached prefixes active for longer, up to a maximum
      of 24 hours.
      [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
      This field expresses a maximum retention policy, while
      `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
      are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
      models, only `24h` is supported.

      For older models that support both `in_memory` and `24h`, the default depends on
      your organization's data retention policy:

      - Organizations without ZDR enabled default to `24h`.
      - Organizations with ZDR enabled default to `in_memory` when
        `prompt_cache_retention` is not specified.

  reasoning: Configuration options for
      [reasoning models](https://platform.openai.com/docs/guides/reasoning).

  safety_identifier: A stable identifier used to help detect users of your application that may be
      violating OpenAI's usage policies. The IDs should be a string that uniquely
      identifies each user, with a maximum length of 64 characters. We recommend
      hashing their username or email address, in order to avoid sending us any
      identifying information.
      [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).

  service_tier: Specifies the processing type used for serving the request.

      - If set to 'auto', then the request will be processed with the service tier
        configured in the Project settings. Unless otherwise configured, the Project
        will use 'default'.
      - If set to 'default', then the request will be processed with the standard
        pricing and performance for the selected model.
      - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
        then the request will be processed with the Flex Processing service tier.
      - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
        include the `service_tier=fast` or `service_tier=priority` parameter for
        Responses or Chat Completions. The response will show `service_tier=priority`
        regardless of if you specify `service_tier=fast` or `priority` in your
        request.
      - If set to 'ultrafast', then the request will be processed with the
        access-controlled Ultrafast Processing service tier. This tier is currently
        available for `gpt-5.6-sol`; a response served through it will show
        `service_tier=ultrafast`.
      - When not set, the default behavior is 'auto'.

      When the `service_tier` parameter is set, the response body will include the
      `service_tier` value based on the processing mode actually used to serve the
      request. This response value may be different from the value set in the
      parameter.

  store: Whether to store the generated model response for later retrieval via API.
      Defaults to true when omitted. If set to true, response data will be stored for
      at least 30 days, subject to the
      [data retention exceptions](/api/docs/guides/your-data#v1responses).

  stream_options: Options for streaming responses. Only set this when you set `stream: true`.

  temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
      make the output more random, while lower values like 0.2 will make it more
      focused and deterministic. We generally recommend altering this or `top_p` but
      not both.

  text: Configuration options for a text response from the model. Can be plain text or
      structured JSON data. Learn more:

      - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
      - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)

  tool_choice: How the model should select which tool (or tools) to use when generating a
      response. See the `tools` parameter to see how to specify which tools the model
      can call.

  tools: An array of tools the model may call while generating a response. You can
      specify which tool to use by setting the `tool_choice` parameter.

      We support the following categories of tools:

      - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
        capabilities, like
        [web search](https://platform.openai.com/docs/guides/tools-web-search) or
        [file search](https://platform.openai.com/docs/guides/tools-file-search).
        Learn more about
        [built-in tools](https://platform.openai.com/docs/guides/tools).
      - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
        predefined connectors such as Google Drive and SharePoint. Learn more about
        [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
      - **Function calls (custom tools)**: Functions that are defined by you, enabling
        the model to call your own code with strongly typed arguments and outputs.
        Learn more about
        [function calling](https://platform.openai.com/docs/guides/function-calling).
        You can also use custom tools to call your own code.

  top_logprobs: An integer between 0 and 20 specifying the maximum number of most likely tokens
      to return at each token position, each with an associated log probability. In
      some cases, the number of returned tokens may be fewer than requested.

  top_p: An alternative to sampling with temperature, called nucleus sampling, where the
      model considers the results of the tokens with top_p probability mass. So 0.1
      means only the tokens comprising the top 10% probability mass are considered.

      We generally recommend altering this or `temperature` but not both.

  truncation: The truncation strategy to use for the model response.

      - `auto`: If the input to this Response exceeds the model's context window size,
        the model will truncate the response to fit the context window by dropping
        items from the beginning of the conversation.
      - `disabled` (default): If the input size will exceed the context window size
        for a model, the request will fail with a 400 error.

  user: This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use
      `prompt_cache_key` instead to maintain caching optimizations. A stable
      identifier for your end-users. Used to boost cache hit rates by better bucketing
      similar requests and to help OpenAI detect and prevent abuse.
      [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
Nr©   ©$rq   r™   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   s$                                       rr   r«   r¬   £  r­   ru   c       #        ó   • gr°   r©   r±   s$                                       rr   r«   r¬   Á  r­   ru   c       #        óZ  • U R                  S[        0 SU_SU_SU_SU_SU_SU_SU_S	U_S
U	_SU
_SU_SU_SU_SU_SU_SU_SU_UUUUUUUUUUUUUUS.EU(       a  [        R                  O[        R                  5      [        U U!U"U#SS0S9[        U=(       d    S[        [           S9$ ©Nú
/responsesr„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   )r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   Úbearer_authT©r£   r¤   r¥   r¦   ÚsecurityF)ÚbodyÚoptionsÚcast_tor™   Ú
stream_cls)	Ú_postr#   rD   ÚResponseCreateParamsStreamingÚ ResponseCreateParamsNonStreamingrB   rK   r4   r]   rª   s$                                       rr   r«   r¬   ß  s{  € ðR �z‰zØÜ ð Ø  *ð à(Ð*<ð ð # Lð ð ˜wð	 ð
 ˜Uð ð # Lð ð (Ð):ð ð % nð ð  ð ð ˜Uð ð ! *ð ð *Ð+>ð ð +Ð,@ð ð ˜fð ð 'Ð(8ð ð  +Ð,@ð! ð" -Ð.Dð# ð$ "+Ø):Ø$0Ø"Ø$Ø&4Ø#.Ø Ø#.Ø"Ø$0Ø"Ø",Ø ò? öD ô '×DÒDä+×LÑLóI%ôL )Ø+Ø'Ø%ØØ'¨Ð.ñô Ø—?˜UÜÔ1Ñ2ðc ð 2
ð 2	
ru   ©Útext_formatÚstarting_afterrž   r£   r¤   r¥   r¦   c               ó   • g rn   r©   ©	rq   Úresponse_idrÁ   rÂ   rž   r£   r¤   r¥   r¦   s	            rr   r™   ÚResponses.stream<  s   € ð .1ru   ©!r„   r…   rÁ   rž   r†   r‡   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   rš   r›   rœ   r�   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   c       #        ó   • g rn   r©   ©$rq   rˆ   r�   r„   r…   rÁ   rž   r†   r‡   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   rš   r›   rœ   r�   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   s$                                       rr   r™   rÆ   K  s   € ðR .1ru   ©%rÅ   rˆ   r�   r„   r…   rÁ   rž   r†   r‡   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   rš   r›   rœ   r�   rŸ   r    r¡   r¢   rÂ   r£   r¤   r¥   r¦   c       %        ól  ^ ^^	^"^#^$^%• 0 SU_SU_SU_SU_ST	_SU
_SU_SU_S	U_S
U_SU_SU_SU_SU_SU_SU_SU_UUUUUUUUUUU US.En&U&R                  5        V'V(s/ sH  u  n'n([        U(5      (       d  M  U'PM     n)n'n([        T5      (       d  [        U!5      (       a,  [        U)5      S:”  a  [        SSR	                  U)5      -   5      e[        U5      n[        U)5      S:”  Ga  [        U5      (       d  [        S5      e[        U5      (       d  [        S5      e[        U5      (       a3  U(       d  0 nSU;   a  [        S5      e[        U5      n[        U5      US'   [        T R                  40 SU_SU_SU_SU_SU_ST	_SU
_SU_SU_S	U_S
U_SU_SU_SU_SU_SU_SU_SU_SU_SS_SU_S U_S!U_SU_S"U_S#U_S$U_S%U_S&U_S'U _S(U_S)T"_S*T#_S+T$_S,T%_6n*[        U*UUS S-9$ [        T5      (       d  [        S.5      e[        U$U"U#U	UU U%4S/ jUU[        U!5      (       a  U!S-9$ S S-9$ s  sn(n'f )0Nrˆ   r�   r…   r†   r‡   r‰   rŠ   r‹   rŒ   rŽ   r�   r�   r‘   r’   r“   r”   r•   ©r–   r—   r˜   rš   r›   rœ   r�   rŸ   r    r¡   r¢   r„   r   úOCannot provide both response_id/starting_after can't be provided together with ú, ú3input must be provided when creating a new responseú3model must be provided when creating a new responseÚformatú1Cannot mix and match text.format with text_formatrž   r˜   rš   r™   Tr›   rœ   r�   r–   r—   rŸ   r    r¡   r¢   r„   r£   r¤   r¥   r¦   ©rÁ   Úinput_toolsrÂ   z7id must be provided when streaming an existing responsec                 óJ   >• TR                  TST=(       d    / TTT [        TS9$ )NT)rÅ   r™   r‡   r£   r¤   r¥   rÂ   r¦   )Úretriever   )r¥   r£   r¤   r‡   rÅ   rq   r¦   s   €€€€€€€rr   Ú<lambda>Ú"Responses.stream.<locals>.<lambda>  s/   ø€ ˜Ÿ™Ø +ØØ#ŸM rØ"/Ø +Ø)Ü#'Ø#ð &ñ 	ru   )Úitemsr!   ÚlenÚ
ValueErrorÚjoinÚ_make_toolsÚ	TypeErrorr   Ú_type_to_text_format_paramr   r«   rU   ©+rq   rÅ   rˆ   r�   r„   r…   rÁ   rž   r†   r‡   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   rš   r›   rœ   r�   rŸ   r    r¡   r¢   rÂ   r£   r¤   r¥   r¦   Únew_response_argsÚkÚvÚnew_response_args_namesÚapi_requests+   ``       `                        ````     rr   r™   rÆ   v  s  þ€ ðV
Ø�Uð
à�Uð
ð !Ð"4ð
ð ˜Lð	
ð
 �wð
ð ˜Lð
ð  Ð!2ð
ð ˜nð
ð ˜ð
ð ˜*ð
ð "Ð#6ð
ð #Ð$8ð
ð �fð
ð Ð 0ð
ð #Ð$8ð
ð  %Ð&<ð!
ð" ˜ð#
ð$ "3Ø(ØØ,Ø&ØØ&Ø(ØØ$ØØ$ò;
Ðð> 2C×1HÑ1HÔ1JÔ"ZÑ1J©¨¨AÌhÐWXÏk§1Ñ1JÐÑ"Zä�[×!Ñ!¤X¨n×%=Ñ%=Ä3ÐG^ÓC_ÐbcÓCcÜØaØ—)‘)Ð3Ó4ñ5óð ô ˜EÓ"ˆÜÐ&Ó'¨!Ô+Ü˜E—?‘?Ü Ð!VÓWÐWä˜E—?‘?Ü Ð!VÓWÐWä˜×$Ñ$ÞØ�Dà˜tÓ#Ü#Ð$WÓXÐXä˜D“z�Ü!;¸KÓ!H��X‘ä@GØ—‘ò%Aáð%Añ ð%Añ ð	%Añ
 $6ð%Añ *ð%Añ  ð%Añ *ð%Añ #4ð%Añ  .ð%Añ "ð%Añ &ð%Añ %8ð%Añ &:ð%Añ ð%Añ  "2ð!%Añ" &:ð#%Añ$ (>ð%%Añ& ð'%Añ(  .ð)%Añ* ð+%Añ, (ð-%Añ. ð/%Añ0 (ð1%Añ2 $ð3%Añ4 #4ð5%Añ6 *ð7%Añ8 *ð9%Añ: ð;%Añ< &ð=%Añ> ð?%Añ@ &ðA%AñB ,ðC%AñD (ðE%AñF &ðG%AñH  ðI%AˆKôN )ØØ'Ø!Ø#ñ	ð ô ˜K×(Ñ(Ü Ð!ZÓ[Ð[ä(÷	ò 	ð (Ø!Ü19¸.×1IÑ1I˜~ñð ð PTñð ùóU #[s   ÁH0Á9H0©%rÁ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   Ú	verbosityr£   r¤   r¥   r¦   c       %        óî  ^^• [        T5      (       a3  U(       d  0 nSU;   a  [        S5      e[        U5      n[        T5      US'   [	        T5      mSUU4S jjn&U R                  S[        0 SU_SU_SU_SU_S	U_S
U_SU_SU	_SU
_SU_SU_SU_SU_SU_SU_SU_SU_UUUUUUUUUTUUUU U!S.E[        R                  5      [        U"U#U$U%U&SS0S9[        [        [        [              [        5      S9$ )NrÑ   rÒ   c                ó   >• [        TTU S9$ ©N)rÔ   rÁ   Úresponse©rI   ©Úraw_responserÁ   rž   s    €€rr   ÚparserÚResponses.parse.<locals>.parserP  ó   ø€ Ü!Ø!Ø'Ø%ñð ru   rµ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   ©r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   rç   r¶   T©r£   r¤   r¥   r¦   Úpost_parserr¸   ©r¹   rº   r»   ©rî   rK   ÚreturnúParsedResponse[TextFormatT]©r!   rÞ   r   rß   rÝ   r½   r#   rD   ÚResponseCreateParamsrB   r   r	   rT   rH   rK   ©'rq   rÁ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   rç   r£   r¤   r¥   r¦   rï   s'    `                          `          rr   ÚparseÚResponses.parse  sÊ  ù€ ôV �K× Ñ ÞØ�à˜4ÓÜÐ SÓTÐTÜ˜“:ˆDÜ7¸ÓDˆD�‰Nä˜EÓ"ˆ÷	ð 	ð �z‰zØÜ ð!Ø  *ð!à(Ð*<ð!ð # Lð!ð ˜wð	!ð
 ˜Uð!ð # Lð!ð (Ð):ð!ð % nð!ð  ð!ð ˜Uð!ð ! *ð!ð *Ð+>ð!ð +Ð,@ð!ð ˜fð!ð 'Ð(8ð!ð  +Ð,@ð!!ð" -Ð.Dð#!ð$ "+Ø):Ø$0Ø"Ø$Ø&4Ø#.Ø Ø#.Ø"Ø$0Ø"Ø",Ø Ø!*òA!ôD '×;Ñ;óG$ôJ )Ø+Ø'Ø%ØØ"Ø'¨Ð.ñô œœn¬[Ñ9Ñ:¼HÓEðc ð 2
ð 2	
ru   ©r‡   Úinclude_obfuscationrÂ   r™   r£   r¤   r¥   r¦   c               ó   • g rn   r©   ©
rq   rÅ   r‡   rÿ   rÂ   r™   r£   r¤   r¥   r¦   s
             rr   rÖ   ÚResponses.retrieve‹  s   € ð ru   ©r‡   rÂ   r£   r¤   r¥   r¦   c               ó   • g rn   r©   ©	rq   rÅ   r™   r‡   rÂ   r£   r¤   r¥   r¦   s	            rr   rÖ   r  œ  s   € ð '*ru   c               ó   • g rn   r©   r  s	            rr   rÖ   r  ¬  s   € ð 25ru   F©r™   r‡   rÂ   r£   r¤   r¥   r¦   c               ó   • g©a¡  
Retrieves a model response with the given ID.

Args:
  include: Additional fields to include in the response. See the `include` parameter for
      Response creation above for more information.

  include_obfuscation: When true, stream obfuscation will be enabled. Stream obfuscation adds random
      characters to an `obfuscation` field on streaming delta events to normalize
      payload sizes as a mitigation to certain side-channel attacks. These obfuscation
      fields are included by default, but add a small amount of overhead to the data
      stream. You can set `include_obfuscation` to false to optimize for bandwidth if
      you trust the network links between your application and the OpenAI API.

  starting_after: The sequence number of the event after which to start streaming.

  stream: If set to true, the model response data will be streamed to the client as it is
      generated using
      [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
      See the
      [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
      for more information.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
Nr©   r  s	            rr   rÖ   r  ¼  s   € ð\ 	ru   ©r‡   rÿ   rÂ   r£   r¤   r¥   r¦   c               ó   • g©a¡  
Retrieves a model response with the given ID.

Args:
  stream: If set to true, the model response data will be streamed to the client as it is
      generated using
      [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
      See the
      [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
      for more information.

  include: Additional fields to include in the response. See the `include` parameter for
      Response creation above for more information.

  include_obfuscation: When true, stream obfuscation will be enabled. Stream obfuscation adds random
      characters to an `obfuscation` field on streaming delta events to normalize
      payload sizes as a mitigation to certain side-channel attacks. These obfuscation
      fields are included by default, but add a small amount of overhead to the data
      stream. You can set `include_obfuscation` to false to optimize for bandwidth if
      you trust the network links between your application and the OpenAI API.

  starting_after: The sequence number of the event after which to start streaming.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
Nr©   ©
rq   rÅ   r™   r‡   rÿ   rÂ   r£   r¤   r¥   r¦   s
             rr   rÖ   r  ì  ó   € ð^ 	ru   c               ó   • gr  r©   r  s
             rr   rÖ   r    r  ru   c               óê   • U(       d  [        SU< 35      eU R                  [        SUS9[        UUUU	[	        UUUUS.[
        R                  5      SS0S9[        U=(       d    S[        [           S	9$ ©
Nú:Expected a non-empty value for `response_id` but received ú/responses/{response_id}©rÅ   )r‡   rÿ   rÂ   r™   r¶   T)r£   r¤   r¥   r¦   Úqueryr¸   F)rº   r»   r™   r¼   )
rÛ   Ú_getr"   rB   r#   rF   ÚResponseRetrieveParamsrK   r4   r]   r  s
             rr   rÖ   r  N  s”   € ö ÜÐYÐZeÑYhÐiÓjÐjØ�y‰yÜÐ4À+ÑNÜ(Ø+Ø'Ø%ØÜ%à#*Ø/BØ*8Ø"(ñ	ô -×CÑCóð (¨Ð.ñô  Ø—?˜UÜÔ1Ñ2ð) ð 
ð 	
ru   ©r£   r¤   r¥   r¦   c               ó    • U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  [        SUS9[        UUUUSS0S9[        S	9$ )
á'  
Deletes a model response with the given ID.

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
r  ÚAcceptú*/*r  r  r¶   Tr·   ©rº   r»   ©rÛ   Ú_deleter"   rB   r   ©rq   rÅ   r£   r¤   r¥   r¦   s         rr   ÚdeleteÚResponses.deletev  sr   € ö. ÜÐYÐZeÑYhÐiÓjÐjØ! 5ÐB¨]×-@¸bÐBˆØ�|‰|ÜÐ4À+ÑNÜ(Ø+Ø'Ø%ØØ'¨Ð.ñô ð ð 

ð 
	
ru   c               ó‚   • U(       d  [        SU< 35      eU R                  [        SUS9[        UUUUSS0S9[        S9$ )áÀ  Cancels a model response with the given ID.

Only responses created with the
`background` parameter set to `true` can be cancelled.
[Learn more](https://platform.openai.com/docs/guides/background).

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
r  ú/responses/{response_id}/cancelr  r¶   Tr·   r  ©rÛ   r½   r"   rB   rK   r   s         rr   ÚcancelÚResponses.cancelœ  s^   € ö4 ÜÐYÐZeÑYhÐiÓjÐjØ�z‰zÜÐ;ÈÑUÜ(Ø+Ø'Ø%ØØ'¨Ð.ñô ð ð 

ð 
	
ru   ©rˆ   r‰   r�   r’   r“   r”   r—   r£   r¤   r¥   r¦   c               óŠ   • U R                  S[        UUUUUUUUS.[        R                  5      [	        U	U
UUSS0S9[
        S9$ )áÀ  Compact a conversation.

Returns a compacted response object.

Learn when and how to compact long-running conversations in the
[conversation state guide](https://platform.openai.com/docs/guides/conversation-state#managing-the-context-window).
For ZDR-compatible compaction details, see
[Compaction (advanced)](https://platform.openai.com/docs/guides/conversation-state#compaction-advanced).

Args:
  model: Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
      range of models with different capabilities, performance characteristics, and
      price points. Refer to the
      [model guide](https://platform.openai.com/docs/models) to browse and compare
      available models.

  input: Text, image, or file inputs to the model, used to generate a response

  instructions: A system (or developer) message inserted into the model's context. When used
      along with `previous_response_id`, the instructions from a previous response
      will not be carried over to the next response. This makes it simple to swap out
      system (or developer) messages in new responses.

  previous_response_id: The unique ID of the previous response to the model. Use this to create
      multi-turn conversations. Learn more about
      [conversation state](https://platform.openai.com/docs/guides/conversation-state).
      Cannot be used in conjunction with `conversation`.

  prompt_cache_key: A key to use when reading from or writing to the prompt cache.

  prompt_cache_options: Options for prompt caching. Supported for `gpt-5.6` and later models. By
      default, OpenAI automatically chooses one implicit cache breakpoint. You can add
      explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
      request can write up to four breakpoints. For cache matching, OpenAI considers
      up to the latest 80 breakpoints in the conversation, without a content-block
      lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
      `ttl` defaults to `30m`, which is currently the only supported value. See the
      [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
      for current details.

  prompt_cache_retention: How long to retain a prompt cache entry created by this request.

  service_tier: Specifies the processing type used for serving the request. - If set to 'auto',
      then the request will be processed with the service tier configured in the
      Project settings. Unless otherwise configured, the Project will use 'default'. -
      If set to 'default', then the request will be processed with the standard
      pricing and performance for the selected model. - If set to
      '[flex](https://platform.openai.com/docs/guides/flex-processing)', then the
      request will be processed with the Flex Processing service tier. - To opt-in to
      [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
      `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
      Completions. For models with a dedicated Fast tier, either value resolves to
      `service_tier=fast`; for other models, either value resolves to
      `service_tier=priority`. - When not set, the default behavior is 'auto'. When
      the `service_tier` parameter is set, the response body will include the
      `service_tier` value based on the processing mode actually used to serve the
      request. This response value may be different from the value set in the
      parameter.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
ú/responses/compact©r�   rˆ   r‰   r�   r’   r“   r”   r—   r¶   Tr·   rõ   )r½   r#   rE   ÚResponseCompactParamsrB   rW   ©rq   r�   rˆ   r‰   r�   r’   r“   r”   r—   r£   r¤   r¥   r¦   s                rr   ÚcompactÚResponses.compactÄ  sq   € ðB �z‰zØ Ü à"Ø"Ø$0Ø,@Ø(8Ø,@Ø.DØ$0ñ	ô (×=Ñ=óô )Ø+Ø'Ø%ØØ'¨Ð.ñô &ð- ð 
ð 	
ru   é   ç      à?ç       @é   c	                ó8   • [        U R                  UUUUUUUUS9	$ ©a.  Connect to a persistent Responses API WebSocket.

Send `response.create` events to create responses and `response.steer` events to queue user input containing text, images, or files for a continuation. Receive response stream events and steering acceptance, pending, or failure events over the socket.
)	Úclientr¤   r£   Úwebsocket_connection_optionsÚon_reconnectingÚmax_retriesÚinitial_delayÚ	max_delayÚmax_queue_size)ÚResponsesConnectionManagerro   ©	rq   r¤   r£   r9  r:  r;  r<  r=  r>  s	            rr   ÚconnectÚResponses.connectž  s0   € ô *Ø—<‘<Ø#Ø'Ø)EØ+Ø#Ø'ØØ)ñ

ð 
	
ru   r©   )r÷   r.   )r÷   r8   )r÷   r{   )r÷   r€   ©Hr„   úOptional[bool] | Omitr…   úCOptional[Iterable[response_create_params.ContextManagement]] | Omitr†   ú4Optional[response_create_params.Conversation] | Omitr‡   ú)Optional[List[ResponseIncludable]] | Omitrˆ   ú%Union[str, ResponseInputParam] | Omitr‰   úOptional[str] | OmitrŠ   úOptional[int] | Omitr‹   rJ  rŒ   úOptional[Metadata] | Omitr�   úResponsesModel | OmitrŽ   ú2Optional[response_create_params.Moderation] | Omitr�   rD  r�   rI  r‘   ú$Optional[ResponsePromptParam] | Omitr’   rI  r“   ú0response_create_params.PromptCacheOptions | Omitr”   ú,Optional[Literal['in_memory', '24h']] | Omitr•   úOptional[Reasoning] | Omitr–   rI  r—   úOptional[ServiceTier] | Omitr˜   rD  r™   zOptional[Literal[False]] | Omitrš   ú5Optional[response_create_params.StreamOptions] | Omitr›   úOptional[float] | Omitrœ   úResponseTextConfigParam | Omitr�   ú(response_create_params.ToolChoice | Omitrž   úIterable[ToolParam] | OmitrŸ   rJ  r    rT  r¡   ú,Optional[Literal['auto', 'disabled']] | Omitr¢   ú
str | Omitr£   úHeaders | Noner¤   úQuery | Noner¥   úBody | Noner¦   ú(float | httpx2.Timeout | None | NotGivenr÷   rK   )Hr™   úLiteral[True]r„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   úStream[ResponseStreamEvent])Hr™   Úboolr„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ú&Response | Stream[ResponseStreamEvent])Hr„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  r™   ú/Optional[Literal[False]] | Literal[True] | Omitrš   rS  r›   rT  rœ   rU  r�   rV  rž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ra  )rÅ   ÚstrrÁ   útype[TextFormatT] | OmitrÂ   ú
int | Omitrž   ú#Iterable[ParseableToolParam] | Omitr£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ú"ResponseStreamManager[TextFormatT])Hrˆ   úUnion[str, ResponseInputParam]r�   rZ   r„   rD  r…   rE  rÁ   rd  rž   rf  r†   rF  r‡   rG  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rD  rŽ   rM  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rg  )LrÅ   rY  rˆ   rH  r�   rL  r„   rD  r…   rE  rÁ   rd  rž   rf  r†   rF  r‡   rG  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rD  rŽ   rM  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rŸ   rJ  r    rT  r¡   rX  r¢   rY  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rg  ©LrÁ   rd  r„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  r™   rb  rš   rS  r›   rT  rœ   rU  r�   rV  rž   rf  rŸ   rJ  r    rT  r¡   rX  r¢   rY  rç   z1Optional[Literal['low', 'medium', 'high']] | Omitr£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rø   ©rÅ   rc  r‡   úList[ResponseIncludable] | Omitrÿ   úbool | OmitrÂ   re  r™   zLiteral[False] | Omitr£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rK   )rÅ   rc  r™   r^  r‡   rk  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r_  )rÅ   rc  r™   r`  r‡   rk  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ra  )rÅ   rc  r™   r^  r‡   rk  rÿ   rl  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r_  )rÅ   rc  r™   r`  r‡   rk  rÿ   rl  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ra  )rÅ   rc  r‡   rk  rÿ   rl  rÂ   re  r™   ú%Literal[False] | Literal[True] | Omitr£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ra  ©rÅ   rc  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ÚNone©rÅ   rc  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rK   ©r�   aU  Union[Literal['gpt-6-astra', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.5', 'gpt-5.5-2026-04-23', 'gpt-5.4', 'gpt-5.4-mini', 'gpt-5.4-nano', 'gpt-5.4-mini-2026-03-17', 'gpt-5.4-nano-2026-03-17', 'gpt-5.3-chat-latest', 'gpt-5.2', 'gpt-5.2-2025-12-11', 'gpt-5.2-chat-latest', 'gpt-5.2-pro', 'gpt-5.2-pro-2025-12-11', 'gpt-5.1', 'gpt-5.1-2025-11-13', 'gpt-5.1-codex', 'gpt-5.1-mini', 'gpt-5.1-chat-latest', 'gpt-5', 'gpt-5-mini', 'gpt-5-nano', 'gpt-5-2025-08-07', 'gpt-5-mini-2025-08-07', 'gpt-5-nano-2025-08-07', 'gpt-5-chat-latest', 'gpt-4.1', 'gpt-4.1-mini', 'gpt-4.1-nano', 'gpt-4.1-2025-04-14', 'gpt-4.1-mini-2025-04-14', 'gpt-4.1-nano-2025-04-14', 'o4-mini', 'o4-mini-2025-04-16', 'o3', 'o3-2025-04-16', 'o3-mini', 'o3-mini-2025-01-31', 'o1', 'o1-2024-12-17', 'o1-preview', 'o1-preview-2024-09-12', 'o1-mini', 'o1-mini-2024-09-12', 'gpt-4o', 'gpt-4o-2024-11-20', 'gpt-4o-2024-08-06', 'gpt-4o-2024-05-13', 'gpt-4o-audio-preview', 'gpt-4o-audio-preview-2024-10-01', 'gpt-4o-audio-preview-2024-12-17', 'gpt-4o-audio-preview-2025-06-03', 'gpt-4o-mini-audio-preview', 'gpt-4o-mini-audio-preview-2024-12-17', 'gpt-4o-search-preview', 'gpt-4o-mini-search-preview', 'gpt-4o-search-preview-2025-03-11', 'gpt-4o-mini-search-preview-2025-03-11', 'chatgpt-4o-latest', 'codex-mini-latest', 'gpt-4o-mini', 'gpt-4o-mini-2024-07-18', 'gpt-4-turbo', 'gpt-4-turbo-2024-04-09', 'gpt-4-0125-preview', 'gpt-4-turbo-preview', 'gpt-4-1106-preview', 'gpt-4-vision-preview', 'gpt-4', 'gpt-4-0314', 'gpt-4-0613', 'gpt-4-32k', 'gpt-4-32k-0314', 'gpt-4-32k-0613', 'gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-0301', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-1106', 'gpt-3.5-turbo-0125', 'gpt-3.5-turbo-16k-0613', 'o1-pro', 'o1-pro-2025-03-19', 'o3-pro', 'o3-pro-2025-06-10', 'o3-deep-research', 'o3-deep-research-2025-06-26', 'o4-mini-deep-research', 'o4-mini-deep-research-2025-06-26', 'computer-use-preview', 'computer-use-preview-2025-03-11', 'gpt-5.5-pro', 'gpt-5.5-pro-2026-04-23', 'gpt-5-codex', 'gpt-5-pro', 'gpt-5-pro-2025-10-06', 'gpt-5.1-codex-max', 'gpt-daybreak-blue-latest', 'gpt-daybreak-red-latest', 'gpt-5.6-cyber'], str, None]rˆ   z9Union[str, Iterable[ResponseInputItemParam], None] | Omitr‰   rI  r�   rI  r’   rI  r“   z;Optional[response_compact_params.PromptCacheOptions] | Omitr”   rP  r—   zGOptional[Literal['auto', 'default', 'fast', 'flex', 'priority']] | Omitr£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rW   )r¤   r   r£   r   r9  rX   r:  úBCallable[[ReconnectingEvent], ReconnectingOverrides | None] | Noner;  Úintr<  Úfloatr=  rt  r>  rs  r÷   r?  ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r&   rs   rw   r|   r�   r   r   r    r«   r   r™   rü   rÖ   r!  r'  r0  rA  Ú__static_attributes__r©   ru   rr   rh   rh   i   su  † Øó(ó ð(ð ó)ó ð)ð ó.ó ð.ð ó4ó ð4ð ð -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+Ø26ØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[ð *ð[ð `ð	[ð
 Kð[ð ;ð[ð 5ð[ð +ð[ð 0ð[ð -ð[ð ,ð[ð %ð[ð Gð[ð 3ð[ð 3ð[ð  5ð![ð" /ð#[ð$ Oð%[ð& !Mð'[ð( .ð)[ð* 0ð+[ð, 3ð-[ð. %ð/[ð0 0ð1[ð2 Nð3[ð4 ,ð5[ð6 -ð7[ð8 >ð9[ð: *ð;[ð< +ð=[ð> &ð?[ð@ AðA[ðB ðC[ðH &ðI[ðJ "ðK[ðL  ðM[ðN :ðO[ðP 
ôQ[ó ð[ðz ð
 -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[ð ð[ð *ð	[ð
 `ð[ð Kð[ð ;ð[ð 5ð[ð +ð[ð 0ð[ð -ð[ð ,ð[ð %ð[ð Gð[ð 3ð[ð  3ð![ð" 5ð#[ð$ /ð%[ð& Oð'[ð( !Mð)[ð* .ð+[ð, 0ð-[ð. 3ð/[ð0 %ð1[ð2 Nð3[ð4 ,ð5[ð6 -ð7[ð8 >ð9[ð: *ð;[ð< +ð=[ð> &ð?[ð@ AðA[ðB ðC[ðH &ðI[ðJ "ðK[ðL  ðM[ðN :ðO[ðP 
%ôQ[ó ð[ðz ð
 -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[ð ð[ð *ð	[ð
 `ð[ð Kð[ð ;ð[ð 5ð[ð +ð[ð 0ð[ð -ð[ð ,ð[ð %ð[ð Gð[ð 3ð[ð  3ð![ð" 5ð#[ð$ /ð%[ð& Oð'[ð( !Mð)[ð* .ð+[ð, 0ð-[ð. 3ð/[ð0 %ð1[ð2 Nð3[ð4 ,ð5[ð6 -ð7[ð8 >ð9[ð: *ð;[ð< +ð=[ð> &ð?[ð@ AðA[ðB ðC[ðH &ðI[ðJ "ðK[ðL  ðM[ðN :ðO[ðP 
0ôQ[ó ð[ð@	 -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØBFØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[
ð *ð[
ð `ð	[
ð
 Kð[
ð ;ð[
ð 5ð[
ð +ð[
ð 0ð[
ð -ð[
ð ,ð[
ð %ð[
ð Gð[
ð 3ð[
ð 3ð[
ð  5ð![
ð" /ð#[
ð$ Oð%[
ð& !Mð'[
ð( .ð)[
ð* 0ð+[
ð, 3ð-[
ð. %ð/[
ð0 @ð1[
ð2 Nð3[
ð4 ,ð5[
ð6 -ð7[
ð8 >ð9[
ð: *ð;[
ð< +ð=[
ð> &ð?[
ð@ AðA[
ðB ðC[
ðH &ðI[
ðJ "ðK[
ðL  ðM[
ðN :ðO[
ðP 
0õQ[
ðz ð
 15Ø%)Ø59à(,Ø$(Ø"&Ø<Eñ1ð ð1ð .ð	1ð
 #ð1ð 3ð1ð &ð1ð "ð1ð  ð1ð :ð1ð 
,ô1ó ð1ð ð -1ØbfØ04Ø59ØMQØ=AØ-1Ø26Ø/3Ø.2Ø59ØIMØ59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO(1ð .ð(1ð ð	(1ð
 *ð(1ð `ð(1ð .ð(1ð 3ð(1ð Kð(1ð ;ð(1ð +ð(1ð 0ð(1ð -ð(1ð ,ð(1ð 3ð(1ð  Gð!(1ð" 3ð#(1ð$ 5ð%(1ð& /ð'(1ð( Oð)(1ð* !Mð+(1ð, .ð-(1ð. 0ð/(1ð0 3ð1(1ð2 %ð3(1ð4 Nð5(1ð6 ,ð7(1ð8 -ð9(1ð: >ð;(1ð< +ð=(1ð> &ð?(1ð@ AðA(1ðB ðC(1ðH &ðI(1ðJ "ðK(1ðL  ðM(1ðN :ðO(1ðP 
,ôQ(1ó ð(1ðZ #'Ø7;Ø'+Ø,0ØbfØ04Ø59ØMQØ=AØ-1Ø26Ø/3Ø.2Ø59ØIMØ59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ-1Ø(,ØCGØØ%)ð )-Ø$(Ø"&Ø<EñSbð  ðbð 5ð	bð
 %ðbð *ðbð `ðbð .ðbð 3ðbð Kðbð ;ðbð +ðbð 0ðbð -ðbð ,ðbð  3ð!bð" Gð#bð$ 3ð%bð& 5ð'bð( /ð)bð* Oð+bð, !Mð-bð. .ð/bð0 0ð1bð2 3ð3bð4 %ð5bð6 Nð7bð8 ,ð9bð: -ð;bð< >ð=bð> +ð?bð@ &ðAbðB AðCbðD ðEbðF #ðGbðL &ðMbðN "ðObðP  ðQbðR :ðSbðT 
,õUbðN 15Ø,0ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØBFØPTØ.2Ø/3Ø@DØ59Ø-1Ø(,ØCGØØGKð )-Ø$(Ø"&Ø<EñSo
ð .ðo
ð *ð	o
ð
 `ðo
ð Kðo
ð ;ðo
ð 5ðo
ð +ðo
ð 0ðo
ð -ðo
ð ,ðo
ð %ðo
ð Gðo
ð 3ðo
ð  3ð!o
ð" 5ð#o
ð$ /ð%o
ð& Oð'o
ð( !Mð)o
ð* .ð+o
ð, 0ð-o
ð. 3ð/o
ð0 %ð1o
ð2 @ð3o
ð4 Nð5o
ð6 ,ð7o
ð8 -ð9o
ð: >ð;o
ð< 3ð=o
ð> +ð?o
ð@ &ðAo
ðB AðCo
ðD ðEo
ðF EðGo
ðL &ðMo
ðN "ðOo
ðP  ðQo
ðR :ðSo
ðT 
%õUo
ðb ð
 48Ø+/Ø%)Ø(,ð )-Ø$(Ø"&Ø<Eñàðð 1ð	ð
 )ðð #ðð &ðð &ðð "ðð  ðð :ðð 
ôó ðð  ð 48Ø%)ð )-Ø$(Ø"&Ø<Eñ*àð*ð ð	*ð
 1ð*ð #ð*ð &ð*ð "ð*ð  ð*ð :ð*ð 
%ô*ó ð*ð ð 48Ø%)ð )-Ø$(Ø"&Ø<Eñ5àð5ð ð	5ð
 1ð5ð #ð5ð &ð5ð "ð5ð  ð5ð :ð5ð 
0ô5ó ð5ð ð
 Ø37Ø%)ð )-Ø$(Ø"&Ø<Eñ-àð-ð ð	-ð
 1ð-ð #ð-ð &ð-ð "ð-ð  ð-ð :ð-ð 
0ô-ó ð-ð^ ð 48Ø+/Ø%)ð )-Ø$(Ø"&Ø<Eñ.àð.ð ð	.ð
 1ð.ð )ð.ð #ð.ð &ð.ð "ð.ð  ð.ð :ð.ð 
%ô.ó ð.ð` ð 48Ø+/Ø%)ð )-Ø$(Ø"&Ø<Eñ.àð.ð ð	.ð
 1ð.ð )ð.ð #ð.ð &ð.ð "ð.ð  ð.ð :ð.ð 
0ô.ó ð.ðh 48Ø+/Ø%)Ø8<ð )-Ø$(Ø"&Ø<Eñ&
àð&
ð 1ð	&
ð
 )ð&
ð #ð&
ð 6ð&
ð &ð&
ð "ð&
ð  ð&
ð :ð&
ð 
0õ&
ð\ )-Ø$(Ø"&Ø<Eñ$
àð$
ð &ð$
ð "ð$
ð  ð$
ð :ð$
ð 
õ$
ðX )-Ø$(Ø"&Ø<Eñ&
àð&
ð &ð&
ð "ð&
ð  ð&
ð :ð&
ð 
õ&
ðp LPØ-1Ø59Ø15Ø\`ØOSØ`dð )-Ø$(Ø"&Ø<EñyX
ðl
ðX
ð` IðaX
ðb +ðcX
ðd 3ðeX
ðf /ðgX
ðh ZðiX
ðj !MðkX
ðl ^ðmX
ðr &ðsX
ðt "ðuX
ðv  ðwX
ðx :ðyX
ðz 
õ{X
ðx  Ø!#ØCEØ^bØØ"ØØ'ð
àð
ð ð
ð 'Að	
ð
 \ð
ð ð
ð ð
ð ð
ð ð
ð 
$÷
ð 
ru   c            &      ó"
  • \ rS rSr\S,S j5       r\S-S j5       r\S.S j5       r\S/S j5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.#                                                                       S0S jj5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S	."                                                                       S1S
 jj5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S	."                                                                       S2S jj5       r\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.#                                                                       S3S jjr\	\
\
\
SSS\S.                 S4S jj5       r\	\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.!                                                                       S5S jj5       r\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.%                                                                           S6S jjr\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
SSS\S.%                                                                           S7S jjr\	\
\
\
\
SSS\S.                   S8S jj5       r\	\
\
SSS\S.                 S9S jj5       r\	\
\
SSS\S.                 S:S jj5       r\	S\
\
SSS\S.                 S:S jj5       r\	\
\
\
SSS\S.                   S;S jj5       r\	\
\
\
SSS\S.                   S<S jj5       r\
\
\
\
SSS\S.                   S=S  jjrSSS\S!.           S>S" jjrSSS\S!.           S?S# jjr\
\
\
\
\
\
\
SSS\S$.                         S@S% jjr0 0 0 SS&S'S(S)4                 SAS* jjrS+rg)Bri   iº  c                ó,   • [        U R                  5      $ rn   )r/   ro   rp   s    rr   rs   ÚAsyncResponses.input_items»  s   € ä˜tŸ|™|Ó,Ð,ru   c                ó,   • [        U R                  5      $ rn   )r9   ro   rp   s    rr   rw   ÚAsyncResponses.input_tokens¿  s   € ä §¡Ó-Ð-ru   c                ó   • [        U 5      $ rz   )ÚAsyncResponsesWithRawResponserp   s    rr   r|   Ú AsyncResponses.with_raw_responseÃ  s   € ô -¨TÓ2Ð2ru   c                ó   • [        U 5      $ r   )Ú#AsyncResponsesWithStreamingResponserp   s    rr   r�   Ú&AsyncResponses.with_streaming_responseÍ  s   € ô 3°4Ó8Ð8ru   Nrƒ   c       #      ƒ  ó   #   • g7fr¨   r©   rª   s$                                       rr   r«   ÚAsyncResponses.createÖ  ó   é € ðx 	ùó   ‚r®   c       #      ƒ  ó   #   • g7fr°   r©   r±   s$                                       rr   r«   r‡  ô  rˆ  r‰  c       #      ƒ  ó   #   • g7fr°   r©   r±   s$                                       rr   r«   r‡  
  rˆ  r‰  c       #      ƒ  óŠ  #   • U R                  S[        0 SU_SU_SU_SU_SU_SU_SU_S	U_S
U	_SU
_SU_SU_SU_SU_SU_SU_SU_UUUUUUUUUUUUUUS.EU(       a  [        R                  O[        R                  5      I S h  v•N [        U U!U"U#SS0S9[        U=(       d    S[        [           S9I S h  v•N $  N7 N7fr´   )	r½   r%   rD   r¾   r¿   rB   rK   r5   r]   rª   s$                                       rr   r«   r‡  0  s’  é € ðR —Z‘ZØÜ,ð Ø  *ð à(Ð*<ð ð # Lð ð ˜wð	 ð
 ˜Uð ð # Lð ð (Ð):ð ð % nð ð  ð ð ˜Uð ð ! *ð ð *Ð+>ð ð +Ð,@ð ð ˜fð ð 'Ð(8ð ð  +Ð,@ð! ð" -Ð.Dð# ð$ "+Ø):Ø$0Ø"Ø$Ø&4Ø#.Ø Ø#.Ø"Ø$0Ø"Ø",Ø ò? öD ô '×DÒDä+×LÑLóI%÷ %ôL )Ø+Ø'Ø%ØØ'¨Ð.ñô Ø—?˜UÜ"Ô#6Ñ7ðc  ð 2
÷ 2
ð 2	
ñ%ñ2
ùs$   ‚BCÂB?
Â2CÂ:CÂ;CÃCrÀ   c               ó   • g rn   r©   rÄ   s	            rr   r™   ÚAsyncResponses.stream�  s   € ð 36ru   rÇ   c       #        ó   • g rn   r©   rÉ   s$                                       rr   r™   rŽ  œ  s   € ðR 36ru   rÊ   c       %        ó’  • 0 SU_SU_SU_SU_SU	_SU
_SU_SU_S	U_S
U_SU_SU_SU_SU_SU_SU_SU_UUUUUUUUUUU US.En&U&R                  5        V'V(s/ sH  u  n'n([        U(5      (       d  M  U'PM     n)n'n([        U5      (       d  [        U!5      (       a,  [        U)5      S:”  a  [        SSR	                  U)5      -   5      e[        U5      n[        U)5      S:”  Ga  [        U[        5      (       a  [        S5      e[        U5      (       d  [        S5      e[        U5      (       a3  U(       d  0 nSU;   a  [        S5      e[        U5      n[        U5      US'   U R                  " S00 SU_SU_SS_SU_SU_SU_SU	_SU
_SU_SU_S	U_S
U_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U_S!U_SU_S"U_S#U_S$U_S%U_S&U_S'U _S(U_S)U"_S*U#_S+U$_S,U%_6n*[        U*UUS S-9$ [        U[        5      (       a  [        S.5      eU R                  USU	=(       d    / U"U#U$U%S/9n*[        U*UU[        U!5      (       a  U!S-9$ S S-9$ s  sn(n'f )1Nrˆ   r�   r…   r†   r‡   r‰   rŠ   r‹   rŒ   rŽ   r�   r�   r‘   r’   r“   r”   r•   rÌ   r   rÍ   rÎ   rÏ   rÐ   rÑ   rÒ   r™   Trž   r˜   rš   r›   rœ   r�   r–   r—   rŸ   r    r¡   r¢   r„   r£   r¤   r¥   r¦   rÓ   z@response_id must be provided when streaming an existing response)r™   r‡   r£   r¤   r¥   r¦   r©   )rÙ   r!   rÚ   rÛ   rÜ   rÝ   Ú
isinstancer   rÞ   r   rß   r«   rV   r   rÖ   rà   s+                                              rr   r™   rŽ  Ç  s  € ðV
Ø�Uð
à�Uð
ð !Ð"4ð
ð ˜Lð	
ð
 �wð
ð ˜Lð
ð  Ð!2ð
ð ˜nð
ð ˜ð
ð ˜*ð
ð "Ð#6ð
ð #Ð$8ð
ð �fð
ð Ð 0ð
ð #Ð$8ð
ð  %Ð&<ð!
ð" ˜ð#
ð$ "3Ø(ØØ,Ø&ØØ&Ø(ØØ$ØØ$ò;
Ðð> 2C×1HÑ1HÔ1JÔ"ZÑ1J©¨¨AÌhÐWXÏk§1Ñ1JÐÑ"Zä�[×!Ñ!¤X¨n×%=Ñ%=Ä3ÐG^ÓC_ÐbcÓCcÜØaØ—)‘)Ð3Ó4ñ5óð ô
 ˜EÓ"ˆÜÐ&Ó'¨!Ô+Ü˜%¤×*Ñ*Ü Ð!VÓWÐWä˜E—?‘?Ü Ð!VÓWÐWä˜×$Ñ$ÞØ�Dà˜tÓ#Ü#Ð$WÓXÐXÜ˜D“z�Ü!;¸KÓ!H��X‘àŸ+š+ò $Ùð$áð$ñ ð$ñ ð	$ñ
 $6ð$ñ *ð$ñ  ð$ñ *ð$ñ #4ð$ñ  .ð$ñ "ð$ñ &ð$ñ %8ð$ñ &:ð$ñ ð$ñ  "2ð!$ñ" &:ð#$ñ$ (>ð%$ñ& ð'$ñ(  .ð)$ñ* (ð+$ñ, ð-$ñ. (ð/$ñ0 $ð1$ñ2 #4ð3$ñ4 *ð5$ñ6 *ð7$ñ8 ð9$ñ: &ð;$ñ< ð=$ñ> &ð?$ñ@ ,ðA$ñB (ðC$ñD &ðE$ñF  ðG$ˆKôL .ØØ'Ø!Ø#ñ	ð ô ˜+¤t×,Ñ,Ü Ð!cÓdÐdàŸ-™-ØØØŸ 2Ø+Ø'Ø%Øð (ð ˆKô .ØØ'Ø!Ü19¸.×1IÑ1I˜~ñ	ð ð PTñ	ð ùóe #[s   ÁIÁ2Iræ   c       %      ƒ  ó
  ^^#   • [        T5      (       a3  U(       d  0 nSU;   a  [        S5      e[        U5      n[        T5      US'   [	        T5      mSUU4S jjn&U R                  S[        0 SU_SU_SU_SU_S	U_S
U_SU_SU	_SU
_SU_SU_SU_SU_SU_SU_SU_SU_UUUUUUUUUTUUUU U!S.E[        R                  5      [        U"U#U$U%U&SS0S9[        [        [        [              [        5      S9I S h  v•N $  N7f)NrÑ   rÒ   c                ó   >• [        TTU S9$ rê   rì   rí   s    €€rr   rï   Ú$AsyncResponses.parse.<locals>.parser   rñ   ru   rµ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   rò   r¶   Tró   rõ   rö   rù   rû   s'    `                          `          rr   rü   ÚAsyncResponses.parsej  s×  ùé € ôV �K× Ñ ÞØ�à˜4ÓÜÐ SÓTÐTÜ˜“:ˆDÜ7¸ÓDˆD�‰Nä˜EÓ"ˆ÷	ð 	ð —Z‘ZØÜ ð!Ø  *ð!à(Ð*<ð!ð # Lð!ð ˜wð	!ð
 ˜Uð!ð # Lð!ð (Ð):ð!ð % nð!ð  ð!ð ˜Uð!ð ! *ð!ð *Ð+>ð!ð +Ð,@ð!ð ˜fð!ð 'Ð(8ð!ð  +Ð,@ð!!ð" -Ð.Dð#!ð$ "+Ø):Ø$0Ø"Ø$Ø&4Ø#.Ø Ø#.Ø"Ø$0Ø"Ø",Ø Ø!*òA!ôD '×;Ñ;óG$ôJ )Ø+Ø'Ø%ØØ"Ø'¨Ð.ñô œœn¬[Ñ9Ñ:¼HÓEðc  ð 2
÷ 2
ð 2	
ñ 2
ùs   „C8DÃ<DÃ=Drþ   c             ƒ  ó   #   • g 7frn   r©   r  s
             rr   rÖ   ÚAsyncResponses.retrieveÛ  s
   é € ð ùr‰  r  c             ƒ  ó   #   • g 7frn   r©   r  s	            rr   rÖ   r—  ì  s
   é € ð ,/ùr‰  c             ƒ  ó   #   • g 7frn   r©   r  s	            rr   rÖ   r—  ü  s
   é € ð 7:ùr‰  Fr  c             ƒ  ó   #   • g7fr	  r©   r  s	            rr   rÖ   r—    s   é € ð\ 	ùr‰  r
  c             ƒ  ó   #   • g7fr  r©   r  s
             rr   rÖ   r—  <  ó   é € ð^ 	ùr‰  c             ƒ  ó   #   • g7fr  r©   r  s
             rr   rÖ   r—  m  rœ  r‰  c             ƒ  ó  #   • U(       d  [        SU< 35      eU R                  [        SUS9[        UUUU	[	        UUUUS.[
        R                  5      I S h  v•N SS0S9[        U=(       d    S[        [           S	9I S h  v•N $  N. N7fr  )
rÛ   r  r"   rB   r%   rF   r  rK   r5   r]   r  s
             rr   rÖ   r—  ž  s«   é € ö ÜÐYÐZeÑYhÐiÓjÐjØ—Y‘YÜÐ4À+ÑNÜ(Ø+Ø'Ø%ØÜ1à#*Ø/BØ*8Ø"(ñ	ô -×CÑCó÷ ð (¨Ð.ñô  Ø—?˜UÜ"Ô#6Ñ7ð) ð 
÷ 
ð 	
ññ
ùs$   ‚ABÁBÁ)BÂB	ÂBÂ	Br  c             ƒ  ó¼   #   • U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  [        SUS9[        UUUUSS0S9[        S	9I S
h  v•N $  N7f)r  r  r  r  r  r  r¶   Tr·   r  Nr  r   s         rr   r!  ÚAsyncResponses.deleteÆ  s   é € ö. ÜÐYÐZeÑYhÐiÓjÐjØ! 5ÐB¨]×-@¸bÐBˆØ—\‘\ÜÐ4À+ÑNÜ(Ø+Ø'Ø%ØØ'¨Ð.ñô ð "ð 

÷ 

ð 
	
ñ 

ùs   ‚AAÁAÁAc             ƒ  óž   #   • U(       d  [        SU< 35      eU R                  [        SUS9[        UUUUSS0S9[        S9I Sh  v•N $  N7f)	r$  r  r%  r  r¶   Tr·   r  Nr&  r   s         rr   r'  ÚAsyncResponses.cancelì  sk   é € ö4 ÜÐYÐZeÑYhÐiÓjÐjØ—Z‘ZÜÐ;ÈÑUÜ(Ø+Ø'Ø%ØØ'¨Ð.ñô ð  ð 

÷ 

ð 
	
ñ 

ùs   ‚AAÁAÁAr)  c             ƒ  óº   #   • U R                  S[        UUUUUUUUS.[        R                  5      I Sh  v•N [	        U	U
UUSS0S9[
        S9I Sh  v•N $  N! N7f)r+  r,  r-  Nr¶   Tr·   rõ   )r½   r%   rE   r.  rB   rW   r/  s                rr   r0  ÚAsyncResponses.compact  sˆ   é € ðB —Z‘ZØ Ü,à"Ø"Ø$0Ø,@Ø(8Ø,@Ø.DØ$0ñ	ô (×=Ñ=ó÷ ô )Ø+Ø'Ø%ØØ'¨Ð.ñô &ð-  ð 
÷ 
ð 	
ññ
ùs!   ‚3AµA
¶AÁAÁAÁAr2  r3  r4  r5  c	                ó8   • [        U R                  UUUUUUUUS9	$ r7  )ÚAsyncResponsesConnectionManagerro   r@  s	            rr   rA  ÚAsyncResponses.connectî  s0   € ô /Ø—<‘<Ø#Ø'Ø)EØ+Ø#Ø'ØØ)ñ

ð 
	
ru   r©   )r÷   r/   )r÷   r9   )r÷   r�  )r÷   r„  rC  )Hr™   r^  r„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ú AsyncStream[ResponseStreamEvent])Hr™   r`  r„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ú+Response | AsyncStream[ResponseStreamEvent])Hr„   rD  r…   rE  r†   rF  r‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   rM  r�   rD  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  r™   rb  rš   rS  r›   rT  rœ   rU  r�   rV  rž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r©  )rÅ   rc  rÁ   rd  rÂ   re  rž   rf  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   ú'AsyncResponseStreamManager[TextFormatT])Hrˆ   rh  r�   rZ   r„   rD  r…   rE  rÁ   rd  rž   rf  r†   rF  r‡   rG  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rD  rŽ   rM  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rª  )LrÅ   rY  rˆ   rH  r�   rL  r„   rD  r…   rE  rÁ   rd  rž   rf  r†   rF  r‡   rG  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rD  rŽ   rM  r�   rI  r‘   rN  r’   rI  r“   rO  r”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  rš   rS  r›   rT  rœ   rU  r�   rV  rŸ   rJ  r    rT  r¡   rX  r¢   rY  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   rª  ri  rj  )rÅ   rc  r™   r^  r‡   rk  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r¨  )rÅ   rc  r™   r`  r‡   rk  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r©  )rÅ   rc  r™   r^  r‡   rk  rÿ   rl  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r¨  )rÅ   rc  r™   r`  r‡   rk  rÿ   rl  rÂ   re  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r©  )rÅ   rc  r‡   rk  rÿ   rl  rÂ   re  r™   rm  r£   rZ  r¤   r[  r¥   r\  r¦   r]  r÷   r©  rn  rp  rq  )r¤   r   r£   r   r9  rX   r:  rr  r;  rs  r<  rt  r=  rt  r>  rs  r÷   r¦  ru  r©   ru   rr   ri   ri   º  su  † Øó-ó ð-ð ó.ó ð.ð ó3ó ð3ð ó9ó ð9ð ð -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+Ø26ØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[ð *ð[ð `ð	[ð
 Kð[ð ;ð[ð 5ð[ð +ð[ð 0ð[ð -ð[ð ,ð[ð %ð[ð Gð[ð 3ð[ð 3ð[ð  5ð![ð" /ð#[ð$ Oð%[ð& !Mð'[ð( .ð)[ð* 0ð+[ð, 3ð-[ð. %ð/[ð0 0ð1[ð2 Nð3[ð4 ,ð5[ð6 -ð7[ð8 >ð9[ð: *ð;[ð< +ð=[ð> &ð?[ð@ AðA[ðB ðC[ðH &ðI[ðJ "ðK[ðL  ðM[ðN :ðO[ðP 
ôQ[ó ð[ðz ð
 -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[ð ð[ð *ð	[ð
 `ð[ð Kð[ð ;ð[ð 5ð[ð +ð[ð 0ð[ð -ð[ð ,ð[ð %ð[ð Gð[ð 3ð[ð  3ð![ð" 5ð#[ð$ /ð%[ð& Oð'[ð( !Mð)[ð* .ð+[ð, 0ð-[ð. 3ð/[ð0 %ð1[ð2 Nð3[ð4 ,ð5[ð6 -ð7[ð8 >ð9[ð: *ð;[ð< +ð=[ð> &ð?[ð@ AðA[ðB ðC[ðH &ðI[ðJ "ðK[ðL  ðM[ðN :ðO[ðP 
*ôQ[ó ð[ðz ð
 -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[ð ð[ð *ð	[ð
 `ð[ð Kð[ð ;ð[ð 5ð[ð +ð[ð 0ð[ð -ð[ð ,ð[ð %ð[ð Gð[ð 3ð[ð  3ð![ð" 5ð#[ð$ /ð%[ð& Oð'[ð( !Mð)[ð* .ð+[ð, 0ð-[ð. 3ð/[ð0 %ð1[ð2 Nð3[ð4 ,ð5[ð6 -ð7[ð8 >ð9[ð: *ð;[ð< +ð=[ð> &ð?[ð@ AðA[ðB ðC[ðH &ðI[ðJ "ðK[ðL  ðM[ðN :ðO[ðP 
5ôQ[ó ð[ð@	 -1ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØBFØPTØ.2Ø/3Ø@DØ,0Ø-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO[
ð *ð[
ð `ð	[
ð
 Kð[
ð ;ð[
ð 5ð[
ð +ð[
ð 0ð[
ð -ð[
ð ,ð[
ð %ð[
ð Gð[
ð 3ð[
ð 3ð[
ð  5ð![
ð" /ð#[
ð$ Oð%[
ð& !Mð'[
ð( .ð)[
ð* 0ð+[
ð, 3ð-[
ð. %ð/[
ð0 @ð1[
ð2 Nð3[
ð4 ,ð5[
ð6 -ð7[
ð8 >ð9[
ð: *ð;[
ð< +ð=[
ð> &ð?[
ð@ AðA[
ðB ðC[
ðH &ðI[
ðJ "ðK[
ðL  ðM[
ðN :ðO[
ðP 
5õQ[
ðz ð
 15Ø%)Ø59à(,Ø$(Ø"&Ø<Eñ6ð ð6ð .ð	6ð
 #ð6ð 3ð6ð &ð6ð "ð6ð  ð6ð :ð6ð 
1ô6ó ð6ð ð -1ØbfØ04Ø59ØMQØ=AØ-1Ø26Ø/3Ø.2Ø59ØIMØ59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ-1Ø(,ØCGØð )-Ø$(Ø"&Ø<EñO(6ð .ð(6ð ð	(6ð
 *ð(6ð `ð(6ð .ð(6ð 3ð(6ð Kð(6ð ;ð(6ð +ð(6ð 0ð(6ð -ð(6ð ,ð(6ð 3ð(6ð  Gð!(6ð" 3ð#(6ð$ 5ð%(6ð& /ð'(6ð( Oð)(6ð* !Mð+(6ð, .ð-(6ð. 0ð/(6ð0 3ð1(6ð2 %ð3(6ð4 Nð5(6ð6 ,ð7(6ð8 -ð9(6ð: >ð;(6ð< +ð=(6ð> &ð?(6ð@ AðA(6ðB ðC(6ðH &ðI(6ðJ "ðK(6ðL  ðM(6ðN :ðO(6ðP 
1ôQ(6ó ð(6ðZ #'Ø7;Ø'+Ø,0ØbfØ04Ø59ØMQØ=AØ-1Ø26Ø/3Ø.2Ø59ØIMØ59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØPTØ.2Ø/3Ø@DØ-1Ø(,ØCGØØ%)ð )-Ø$(Ø"&Ø<EñSað  ðað 5ð	að
 %ðað *ðað `ðað .ðað 3ðað Kðað ;ðað +ðað 0ðað -ðað ,ðað  3ð!að" Gð#að$ 3ð%að& 5ð'að( /ð)að* Oð+að, !Mð-að. .ð/að0 0ð1að2 3ð3að4 %ð5að6 Nð7að8 ,ð9að: -ð;að< >ð=að> +ð?að@ &ðAaðB AðCaðD ðEaðF #ðGaðL &ðMaðN "ðOaðP  ðQaðR :ðSaðT 
1õUaðL 15Ø,0ØbfØMQØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+ØIMØ59Ø59Ø7;Ø15ØQUØOSØ04Ø26Ø59Ø'+ØBFØPTØ.2Ø/3Ø@DØ59Ø-1Ø(,ØCGØØGKð )-Ø$(Ø"&Ø<EñSo
ð .ðo
ð *ð	o
ð
 `ðo
ð Kðo
ð ;ðo
ð 5ðo
ð +ðo
ð 0ðo
ð -ðo
ð ,ðo
ð %ðo
ð Gðo
ð 3ðo
ð  3ð!o
ð" 5ð#o
ð$ /ð%o
ð& Oð'o
ð( !Mð)o
ð* .ð+o
ð, 0ð-o
ð. 3ð/o
ð0 %ð1o
ð2 @ð3o
ð4 Nð5o
ð6 ,ð7o
ð8 -ð9o
ð: >ð;o
ð< 3ð=o
ð> +ð?o
ð@ &ðAo
ðB AðCo
ðD ðEo
ðF EðGo
ðL &ðMo
ðN "ðOo
ðP  ðQo
ðR :ðSo
ðT 
%õUo
ðb ð
 48Ø+/Ø%)Ø(,ð )-Ø$(Ø"&Ø<Eñàðð 1ð	ð
 )ðð #ðð &ðð &ðð "ðð  ðð :ðð 
ôó ðð  ð 48Ø%)ð )-Ø$(Ø"&Ø<Eñ/àð/ð ð	/ð
 1ð/ð #ð/ð &ð/ð "ð/ð  ð/ð :ð/ð 
*ô/ó ð/ð ð 48Ø%)ð )-Ø$(Ø"&Ø<Eñ:àð:ð ð	:ð
 1ð:ð #ð:ð &ð:ð "ð:ð  ð:ð :ð:ð 
5ô:ó ð:ð ð
 Ø37Ø%)ð )-Ø$(Ø"&Ø<Eñ-àð-ð ð	-ð
 1ð-ð #ð-ð &ð-ð "ð-ð  ð-ð :ð-ð 
5ô-ó ð-ð^ ð 48Ø+/Ø%)ð )-Ø$(Ø"&Ø<Eñ.àð.ð ð	.ð
 1ð.ð )ð.ð #ð.ð &ð.ð "ð.ð  ð.ð :ð.ð 
*ô.ó ð.ð` ð 48Ø+/Ø%)ð )-Ø$(Ø"&Ø<Eñ.àð.ð ð	.ð
 1ð.ð )ð.ð #ð.ð &ð.ð "ð.ð  ð.ð :ð.ð 
5ô.ó ð.ðh 48Ø+/Ø%)Ø8<ð )-Ø$(Ø"&Ø<Eñ&
àð&
ð 1ð	&
ð
 )ð&
ð #ð&
ð 6ð&
ð &ð&
ð "ð&
ð  ð&
ð :ð&
ð 
5õ&
ð\ )-Ø$(Ø"&Ø<Eñ$
àð$
ð &ð$
ð "ð$
ð  ð$
ð :ð$
ð 
õ$
ðX )-Ø$(Ø"&Ø<Eñ&
àð&
ð &ð&
ð "ð&
ð  ð&
ð :ð&
ð 
õ&
ðp LPØ-1Ø59Ø15Ø\`ØOSØ`dð )-Ø$(Ø"&Ø<EñyX
ðl
ðX
ð` IðaX
ðb +ðcX
ðd 3ðeX
ðf /ðgX
ðh ZðiX
ðj !MðkX
ðl ^ðmX
ðr &ðsX
ðt "ðuX
ðv  ðwX
ðx :ðyX
ðz 
õ{X
ðx  Ø!#ØCEØ^bØØ"ØØ'ð
àð
ð ð
ð 'Að	
ð
 \ð
ð ð
ð ð
ð ð
ð ð
ð 
)÷
ð 
ru   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
r{   i
  c                óÌ  • Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rn   )	Ú
_responsesr   Úto_raw_response_wrapperr«   rÖ   r!  r'  r0  rü   ©rq   Ú	responsess     rr   Ú__init__Ú!ResponsesWithRawResponse.__init__  s±   € Ø#Œä&×>Ò>Ø×Ñó
ˆŒô )×@Ò@Ø×Ñó
ˆŒô '×>Ò>Ø×Ñó
ˆŒô '×>Ò>Ø×Ñó
ˆŒô (×?Ò?Ø×Ñó
ˆŒô &×=Ò=Ø�O‰Oó
ˆ�
ru   c                ó@   • [        U R                  R                  5      $ rn   )r0   r­  rs   rp   s    rr   rs   Ú$ResponsesWithRawResponse.input_items!  s   € ä(¨¯©×)DÑ)DÓEÐEru   c                ó@   • [        U R                  R                  5      $ rn   )r:   r­  rw   rp   s    rr   rw   Ú%ResponsesWithRawResponse.input_tokens%  s   € ä)¨$¯/©/×*FÑ*FÓGÐGru   ©r­  r'  r0  r«   r!  rü   rÖ   N©r°  rh   r÷   ro  )r÷   r0   )r÷   r:   ©	rv  rw  rx  ry  r±  r&   rs   rw   rz  r©   ru   rr   r{   r{   
  s3   † ô
ð, óFó ðFð óHó óHru   r{   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
r�  i*  c                óÌ  • Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rn   )	r­  r   Úasync_to_raw_response_wrapperr«   rÖ   r!  r'  r0  rü   r¯  s     rr   r±  Ú&AsyncResponsesWithRawResponse.__init__+  s±   € Ø#Œä&×DÒDØ×Ñó
ˆŒô )×FÒFØ×Ñó
ˆŒô '×DÒDØ×Ñó
ˆŒô '×DÒDØ×Ñó
ˆŒô (×EÒEØ×Ñó
ˆŒô &×CÒCØ�O‰Oó
ˆ�
ru   c                ó@   • [        U R                  R                  5      $ rn   )r1   r­  rs   rp   s    rr   rs   Ú)AsyncResponsesWithRawResponse.input_itemsA  s   € ä-¨d¯o©o×.IÑ.IÓJÐJru   c                ó@   • [        U R                  R                  5      $ rn   )r;   r­  rw   rp   s    rr   rw   Ú*AsyncResponsesWithRawResponse.input_tokensE  s   € ä.¨t¯©×/KÑ/KÓLÐLru   r·  N©r°  ri   r÷   ro  )r÷   r1   )r÷   r;   r¹  r©   ru   rr   r�  r�  *  s3   † ô
ð, óKó ðKð óMó óMru   r�  c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
r€   iJ  c                ó  • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        g rn   )r­  r+   r«   rÖ   r!  r'  r0  r¯  s     rr   r±  Ú'ResponsesWithStreamingResponse.__init__K  sx   € Ø#Œä2Ø×Ñó
ˆŒô 5Ø×Ñó
ˆŒô 3Ø×Ñó
ˆŒô 3Ø×Ñó
ˆŒô 4Ø×Ñó
ˆ�ru   c                ó@   • [        U R                  R                  5      $ rn   )r2   r­  rs   rp   s    rr   rs   Ú*ResponsesWithStreamingResponse.input_items^  s   € ä.¨t¯©×/JÑ/JÓKÐKru   c                ó@   • [        U R                  R                  5      $ rn   )r<   r­  rw   rp   s    rr   rw   Ú+ResponsesWithStreamingResponse.input_tokensb  s   € ä/°·±×0LÑ0LÓMÐMru   ©r­  r'  r0  r«   r!  rÖ   Nr¸  )r÷   r2   )r÷   r<   r¹  r©   ru   rr   r€   r€   J  s3   † ô
ð& óLó ðLð óNó óNru   r€   c                  óF   • \ rS rSrSS jr\SS j5       r\S	S j5       rSrg)
r„  ig  c                ó  • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        g rn   )r­  r,   r«   rÖ   r!  r'  r0  r¯  s     rr   r±  Ú,AsyncResponsesWithStreamingResponse.__init__h  sx   € Ø#Œä8Ø×Ñó
ˆŒô ;Ø×Ñó
ˆŒô 9Ø×Ñó
ˆŒô 9Ø×Ñó
ˆŒô :Ø×Ñó
ˆ�ru   c                ó@   • [        U R                  R                  5      $ rn   )r3   r­  rs   rp   s    rr   rs   Ú/AsyncResponsesWithStreamingResponse.input_items{  s   € ä3°D·O±O×4OÑ4OÓPÐPru   c                ó@   • [        U R                  R                  5      $ rn   )r=   r­  rw   rp   s    rr   rw   Ú0AsyncResponsesWithStreamingResponse.input_tokens  s   € ä4°T·_±_×5QÑ5QÓRÐRru   rÊ  NrÂ  )r÷   r3   )r÷   r=   r¹  r©   ru   rr   r„  r„  g  s3   † ô
ð& óQó ðQð óSó óSru   r„  c           
     óø  • [        U 5      (       d  [        $ / nU  HÛ  nUS   S:w  a  UR                  U5        M  SU;  a  UR                  U5        M8  [        [        U5      S   n[        U[        5      (       d  [        S5      eSU;   d   e[        SUS   UR                  S5      US   UR                  S5      =(       d    SS	.UR                  5      nUR                  UR                  5       5        MÝ     U$ )
NÚtypeÚfunctionzcExpected Chat Completions function tool shape to be created using `openai.pydantic_function_tool()`Ú
parametersÚnameÚdescriptionÚstrictF)rÓ  rÖ  r×  rÕ  rØ  )r!   r   Úappendr   r   r‘  r6   Ú	Exceptionr7   Úgetr�   )rž   Úconverted_toolsÚtoolrÔ  Únew_tools        rr   rÝ   rÝ   „  sù   € Ü�E�?‰?Üˆà')€OÛˆØ�‰<˜:Ó%Ø×"Ñ" 4Ô(Ùà˜TÓ!à×"Ñ" 4Ô(Ùäœ˜T“? :Ñ.ˆÜ˜(Ô$8×9Ñ9ÜØuóð ð ˜xÓ'Ð'Ð'Ü0à"Ø  Ñ(Ø'Ÿ|™|¨MÓ:Ø& |Ñ4Ø"Ÿ,™, xÓ0×9°Eñð �N‰Nó	
ˆð 	×Ñ˜xŸ}™}›Ö/ñ9 ð< Ðru   c            	      ó   • \ rS rSr% SrS\S'   S\S'   SSSS	S
0 0 SS.                   SS jjrSS jrS S jrS!S jr	S"S jr
S#S jrSSS.S$S jjrS%S jrS&S jrS'S jr S(     S)S jjrS*S jr S(     S)S jjrS'S jrSrg)+ÚAsyncResponsesConnectioniª  ú;Represents a live WebSocket connection to the Responses APIÚAsyncResponsesResponseResourcerë   ÚAsyncWebSocketConnectionÚ_connectionNr2  r3  r4  ©Úmake_wsr:  r;  r<  r=  r¤   r£   Ú
send_queuec               óú   • Xl         X l        X0l        X@l        SU l        XPl        X`l        Xpl        X€l        SU l	        SU l
        U	=(       d
    [        5       U l        [        SS9U l        [        U 5      U l        g )Nr   F©Úuse_lock)rä  Ú_make_wsÚ_on_reconnectingÚ_max_retriesÚ_reconnect_attemptÚ_initial_delayÚ
_max_delayÚ_extra_queryÚ_extra_headersÚ_intentionally_closedÚ_is_reconnectingr@   Ú_send_queuerC   Ú_event_handler_registryrâ  rë   ©
rq   Ú
connectionræ  r:  r;  r<  r=  r¤   r£   rç  s
             rr   r±  Ú!AsyncResponsesConnection.__init__±  sr   € ð &ÔØŒØ /ÔØ'ÔØ"#ˆÔØ+ÔØ#ŒØ'ÔØ+ÔØ%*ˆÔ"Ø %ˆÔØ%×4¬«ˆÔÜ';ÀUÑ'KˆÔ$ä6°tÓ<ˆ�ru   c               ó(  #   • SSK JnJn    U R                  5       I Sh  v•N 7v •  M   N	! U a     gU aV  nU R	                  U5      I Sh  v•N  (       d-  U R
                  R                  5       nU(       a  [        SUS9Uee  SnANbSnAff = f7f©zY
An infinite-iterator that will continue to yield events until
the connection is closed.
r   )ÚConnectionClosedOKÚConnectionClosedErrorNz0WebSocket connection closed with unsent messages)Úunsent_messages©Úwebsockets.exceptionsrü  rý  ÚrecvÚ
_reconnectrõ  Údrainr?   ©rq   rü  rý  ÚexcÚunsents        rr   Ú	__aiter__Ú"AsyncResponsesConnection.__aiter__Î  s�   é € ÷
 	TàðØ ŸI™I›K×'Ó'ñ á'øØ%ó ÙØ(ó Ø!Ÿ_™_¨SÓ1×1Ö1Ø!×-Ñ-×3Ñ3Ó5�FÞÜ<ØNØ,2ñð  #ð#ð ô 2ûðüsL   ‚
B�,  *¡, ¨Bª, ¬B²B´B¹B
ÁAÁ7B
ÂBÂ
BÂBc              ƒ  óH  #   • U R                  U R                  5       I Sh  v•N 5      n[        [        [        U5      [
        5      (       a  [        SU5      R                  S5      O[        USS5      n[        U[        5      (       a  U(       a  US:w  a  SU l	        U$  N~7f)ú¢
Receive the next message from the connection and parses it into a `ResponsesServerEvent` object.

Canceling this method is safe. There's no risk of losing data.
Núdict[str, object]rÓ  Úerrorr   ©
Úparse_eventÚ
recv_bytesr‘  r   ÚobjectÚdictrÛ  Úgetattrrc  rî  ©rq   ÚeventÚ
event_types      rr   r  ÚAsyncResponsesConnection.recvä  sŠ   é € ð × Ñ  t§¡Ó'8×!8Ó9ˆô œ$œv uÓ-¬t×4Ñ4ô Ð$ eÓ,×0Ñ0°Ô8ä˜ ¨Ó-ð 	ô �j¤#×&Ñ&®:¸*ÈÓ:OØ&'ˆDÔ#Øˆñ "9ùs   ‚B"¡B ¢A?B"c              ƒ  óÈ  #   • U R                   R                  SS9I Sh  v•N n[        R                  S[	        U5      5        U R
                  (       ar   [        R                  " U5      n[        U[        5      (       a  [        SU5      R                  S5      OSn[        U[        5      (       a  U(       a  US:w  a  SU l        U$  N¨! [        [        4 a    Us $ f = f7f)	úÿReceive the next message from the connection as raw bytes.

Canceling this method is safe. There's no risk of losing data.

If you want to parse the message into a `ResponsesServerEvent` object like `.recv()` does,
then you can call `.parse_event(data)`.
F©ÚdecodeNú$Received WebSocket message: %i bytesr  rÓ  r  r   ©rä  r  rj   ÚdebugrÚ   rî  ÚjsonÚloadsrÛ   ÚRecursionErrorr‘  r  r   rÛ  rc  ©rq   ÚmessageÚ
event_datar  s       rr   r  Ú#AsyncResponsesConnection.recv_bytesö  sÁ   é € ð ×(Ñ(×-Ñ-°UÐ-Ð;×;ˆÜ�	‰	Ð8¼#¸g»,ÔGØ×"×"ðÜ%)§Z¢Z°Ó%8�
ô OYÐYcÔei×NjÑNjœÐ1°:Ó>×BÑBÀ6ÔJÐptˆJÜ˜*¤c×*Ñ*®z¸jÈGÓ>SØ*+�Ô'Øˆñ <øô ¤Ð/ó Ø’ðüs4   ‚C"ŸC 4C"ÁC
 Á+AC"Ã
CÃC"ÃCÃC"c              ƒ  ó®  #   • [        U[        5      (       a  UR                  SSSS9O+[        R                  " [        U[        5      I S h  v•N 5      nU R                  (       a  U R                  R                  U5        g  U R                  R                  U5      I S h  v•N   g  NZ N! [         a    U R                  R                  U5        e f = f7f©NT©Úuse_api_namesÚexclude_defaultsÚexclude_unset)r‘  r   Úto_jsonr  Údumpsr%   rd   rô  rõ  Úenqueuerä  ÚsendrÚ  ©rq   r  Údatas      rr   r.  ÚAsyncResponsesConnection.send  s·   é € ô ˜%¤×+Ñ+ð �M‰M¨¸tÐSWˆMÑXä—’Ô"7¸Ô?XÓ"Y×YÓZð 	ð
 × × Ø×Ñ×$Ñ$ TÔ*Øð	Ø×"Ñ"×'Ñ'¨Ó-×-Ñ-ñ Zñ .øÜó 	Ø×Ñ×$Ñ$ TÔ*Øð	üs<   ‚A
CÁB'Á5CÂB+ Â!B)Â"B+ Â&CÂ)B+ Â+'CÃCc              ƒ  ó   #   • U R                   (       aD  [        U[        5      (       a  UOUR                  S5      nU R                  R                  U5        g U R                  R                  U5      I S h  v•N   g  N7f©Nzutf-8©rô  r‘  rc  r  rõ  r-  rä  r.  ©rq   r0  Úraws      rr   Úsend_rawÚ!AsyncResponsesConnection.send_raw  s[   é € Ø× × Ü$ T¬3×/Ñ/‘$°T·[±[ÀÓ5IˆCØ×Ñ×$Ñ$ SÔ)ØØ×Ñ×#Ñ# DÓ)×)Ó)ùs   ‚A4A>Á6A<Á7A>éè  Ú ©ÚcodeÚreasonc             ƒ  ó`   #   • SU l         U R                  R                  XS9I S h  v•N   g  N7f©NTr;  ©ró  rä  Úclose©rq   r<  r=  s      rr   rA  ÚAsyncResponsesConnection.close!  s*   é € Ø%)ˆÔ"Ø×Ñ×$Ñ$¨$Ð$Ð>×>Ó>ùs   ‚$.¦,§.c           
     ó~   • [        [        [        [        R                  " U5      [        [
        [        5      S95      $ ©z�
Converts a raw `str` or `bytes` message into a `ResponsesServerEvent` object.

This is helpful if you're using `.recv_bytes()`.
)ÚvalueÚtype_©r   r`   r(   r  r  r   ©rq   r0  s     rr   r  Ú$AsyncResponsesConnection.parse_event%  ó/   € ô Ü Ü$¬4¯:ª:°dÓ+;Ä4ÌÔMaÓCbÑcó
ð 	
ru   c           
   ƒ  óÖ  #   • SSK nU R                  b  U R                  c  gSSKJn  Sn[        X5      (       a#  UR                  b  UR                  R                  n[        U5      (       d  gSU l	        [        U R                  S-   U R                  S-   5       GH‘  nXPl        [        U R                  SUS-
  -  -  U R                  5      nS	[         R                   " 5       S
-  -   nXg-  n[#        UU R                  UUU R$                  U R&                  S9n	 U R                  U	5      n
U
b  U
R+                  S5      (       a	  SU l	          gU
b   SU
;   a
  U
S   U l        SU
;   a
  U
S   U l        [,        R/                  SUU R                  U5        UR1                  U5      I Sh  v•N   U R2                  (       a	  SU l	          g U R                  U R$                  U R&                  5      I Sh  v•N U l        [,        R/                  S5        SU l	        U R7                  5       I Sh  v•N     g   SU l	        g! [(         a    SU l	           gf = f Nª Nc N,! [(         a     GMÊ  f = f7f)ú¨Attempt to reconnect after a connection failure.

Returns ``True`` if a new connection was established, ``False`` if the
caller should re-raise the original exception.
r   NF©rý  éî  Tr-   é   ç      è?ç      Ð?©ÚattemptÚmax_attemptsÚdelayÚ
close_coder¤   r£   Úabortr¤   r£   ú?Reconnecting to WebSocket API (attempt %d/%d) after %.1fs delayúReconnected to WebSocket API)Úasynciorì  rë  r   rý  r‘  Úrcvdr<  rR   rô  Úrangerî  rí  Úminrï  rð  ÚrandomrP   rñ  rò  rÚ  rÛ  rj   ÚinfoÚsleepró  rä  Ú_flush_send_queue)rq   r  r[  rý  rW  rT  Ú
base_delayÚjitterrV  r  Úresults              rr   r  Ú#AsyncResponsesConnection._reconnect0  sH  é € ó 	à× Ñ Ñ(¨D¯M©MÑ,AØå?àˆ
Ü�c×1Ñ1°c·h±hÑ6JØŸ™Ÿ™ˆJä# J×/Ñ/Øà $ˆÔä˜T×4Ñ4°qÑ8¸$×:KÑ:KÈaÑ:O×PˆGØ&-Ô#Ü˜T×0Ñ0°A¸'ÀA¹+Ñ4FÑGÈÏÉÓYˆJØœFŸMšM›O¨dÑ2Ñ2ˆFØÑ'ˆEä%ØØ!×.Ñ.ØØ%Ø ×-Ñ-Ø"×1Ñ1ñˆEðØ×.Ñ.¨uÓ5�ð
 Ñ! f§j¡j°×&9Ñ&9Ø(-�Ô%ÙàÑ!Ø  FÓ*Ø(.¨}Ñ(=�DÔ%Ø" fÓ,Ø*0°Ñ*A�DÔ'ä�H‰HØQØØ×!Ñ!Øô	ð —-‘- Ó&×&Ð&à×)×)Ø(-�Ô%ÙðØ)-¯©°t×7HÑ7HÈ$×J]ÑJ]Ó)^×#^�Ô Ü—‘Ð7Ô8Ø(-�Ô%Ø×,Ñ,Ó.×.Ð.Ùña Qðh !&ˆÔØøôI ó Ø(-�Ô%Úðúñ( 'ñ $_ñ /øäó Ûðüs   ‚DI)ÄH9Ä+A;I)Æ&IÆ'I)Ç)IÇ/IÇ08IÈ(IÈ)IÈ-I)È9IÉ
I)ÉIÉI)ÉIÉIÉ
I&É!I)É%I&É&I)c              ƒ  ó´   ^ #   • SU 4S jjn T R                   R                  U5      I Sh  v•N   g N! [         a    [        R	                  S5         gf = f7f)ú5Send all queued messages over the current connection.c              “  óX   >#   • TR                   R                  U 5      I S h  v•N   g  N7frn   ©rä  r.  ©r0  rq   s    €rr   Ú_sendÚ9AsyncResponsesConnection._flush_send_queue.<locals>._send€  s    øé € Ø×"Ñ"×'Ñ'¨Ó-×-Ó-ùs   ƒ*¢(£*Nú*Failed to flush send queue after reconnect)r0  rc  r÷   ro  )rõ  Úflush_asyncrÚ  rj   Úwarning)rq   rl  s   ` rr   rb  Ú*AsyncResponsesConnection._flush_send_queue}  sH   øé € ÷	.ð	FØ×"Ñ"×.Ñ.¨uÓ5×5Ó5øÜó 	FÜ�K‰KÐDÖEð	Füs1   ƒ	A�3 «1¬3 °A±3 ³AÁAÁAÁAc                ó^   ^ ^• Ub  T R                   R                  TU5        T $ SUU 4S jjnU$ )aõ  Adds the handler to the end of the handlers list for the given event type.

No checks are made to see if the handler has already been added. Multiple calls
passing the same combination of event type and handler will result in the handler
being added, and called, multiple times.

Can be used as a method (returns ``self`` for chaining)::

    connection.on("response.steer.accepted", my_handler)

Or as a decorator::

    @connection.on("response.steer.accepted")
    async def my_handler(event): ...
c                ó@   >• TR                   R                  TU 5        U $ rn   ©rö  Úadd©Úfnr  rq   s    €€rr   Ú	decoratorÚ.AsyncResponsesConnection.on.<locals>.decoratorž  ó   ø€ Ø×(Ñ(×,Ñ,¨Z¸Ô<ØˆIru   ©rw  úCallable[..., Any]r÷   r|  rt  ©rq   r  Úhandlerrx  s   ``  rr   ÚonÚAsyncResponsesConnection.onˆ  ó8   ù€ ð$ ÑØ×(Ñ(×,Ñ,¨Z¸ÔAØˆK÷	ð 	ð Ðru   c                ó<   • U R                   R                  X5        U $ ©z-Remove a previously registered event handler.©rö  Úremove©rq   r  r~  s      rr   ÚoffÚAsyncResponsesConnection.off¤  ó   € à×$Ñ$×+Ñ+¨JÔ@Øˆru   c                ó\   ^ ^• Ub  T R                   R                  TUSS9  T $ SUU 4S jjnU$ )úRRegister a one-time event handler.

Automatically removed after first invocation.
T©Úoncec                ó>   >• TR                   R                  TU SS9  U $ ©NTrŒ  rt  rv  s    €€rr   rx  Ú0AsyncResponsesConnection.once.<locals>.decorator´  ó#   ø€ Ø×(Ñ(×,Ñ,¨Z¸À$Ð,ÑGØˆIru   r{  rt  r}  s   ``  rr   r�  ÚAsyncResponsesConnection.once©  ó=   ù€ ð ÑØ×(Ñ(×,Ñ,¨Z¸ÀtÐ,ÑLØˆK÷	ð 	ð Ðru   c              ƒ  óú  #   • SSK nU   Sh  v•N nUR                  nU R                  R                  U5      nU R                  R                  S5      nUS:X  a1  U(       d*  U(       d#  [	        U[
        5      (       a  [        SU 35      eU H-  nU" U5      nUR                  U5      (       d  M#  UI Sh  v•N   M/     U H-  nU" U5      nUR                  U5      (       d  M#  UI Sh  v•N   M/     Mê   Nå N? N
 g7f)aD  Run the event loop, dispatching received events to registered handlers.

Blocks until the connection is closed. This is the push-based
alternative to iterating with ``async for event in connection``.

If an ``"error"`` event arrives and no handler is registered for
``"error"`` or ``"event"``, an ``OpenAIError`` is raised.
r   Nr  r  úWebSocket error: )r[  rÓ  rö  Úget_handlersr‘  r_   r>   Úiscoroutine)rq   r[  r  r  ÚspecificÚgenericr~  re  s           rr   Údispatch_eventsÚ(AsyncResponsesConnection.dispatch_eventsº  sá   é € ó 	á÷ 	!�%ØŸ™ˆJØ×3Ñ3×@Ñ@ÀÓLˆHØ×2Ñ2×?Ñ?ÀÓHˆGà˜WÓ$®X¾gÜ˜e¤_×5Ñ5Ü%Ð(9¸%¸Ð&AÓBÐBã#�Ù  ›�Ø×&Ñ& v×.Ó.Ø —L’Lñ $ó
 #�Ù  ›�Ø×&Ñ& v×.Ó.Ø —L’Ló #ñ	!ñ !ñ
 !ñ#  ùsV   ‚C;‰C9�C3ŽC9‘BC;Â0C;Â5C5Â6)C;Ã#C;Ã(C7Ã)
C;Ã3C9Ã5C;Ã7C;Ã9C;©rä  rö  rò  rñ  rï  ró  rô  rë  rð  rí  rì  rî  rõ  rë   )rø  rã  ræ  zFCallable[[Query, Headers], Awaitable[AsyncWebSocketConnection]] | Noner:  rr  r;  rs  r<  rt  r=  rt  r¤   r   r£   r   rç  úSendQueue | Noner÷   ro  )r÷   z#AsyncIterator[ResponsesServerEvent]©r÷   r`   ©r÷   Úbytes©r  z0ResponsesClientEvent | ResponsesClientEventParamr÷   ro  ©r0  zbytes | strr÷   ro  ©r<  rs  r=  rc  r÷   ro  ©r0  zstr | bytesr÷   r`   ©r  rÚ  r÷   r`  ©r÷   ro  rn   )r  rc  r~  úCallable[..., Any] | Noner÷   zSUnion[AsyncResponsesConnection, Callable[[Callable[..., Any]], Callable[..., Any]]])r  rc  r~  r|  r÷   rà  )rv  rw  rx  ry  Ú__doc__Ú__annotations__r±  r  r  r  r.  r7  rA  r  r  rb  r  r‡  r�  rš  rz  r©   ru   rr   rà  rà  ª  s  ‡ ÙEà,Ó,à)Ó)ð [_Ø^bØØ"ØØØ!#Ø'+ñ=à,ð=ð Xð	=ð
 \ð=ð ð=ð ð=ð ð=ð ð=ð ð=ð %ð=ð 
õ=ô:ô,ô$ô*ô*ð *.¸R÷ ?ô	
ôKôZ	Fð EIðØðØ(Aðà	\õô8ð EIðØðØ(Aðà	\õ÷"!ru   rà  c                  óÜ   • \ rS rSrSrSSSSSS.                   SS	 jjrSS
 jr S     SS jjrSS jr S     SS jjr	SS jr
\
rSS jrSS jr        SS jrSrg)r¦  iÙ  aü  
Context manager over a `AsyncResponsesConnection` that is returned by `responses.connect()`

This context manager ensures that the connection will be closed when it exits.

---

Note that if your application doesn't work well with the context manager approach then you
can call the `.enter()` method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = await client.responses.connect(...).enter()
# ...
await connection.close()
```
Nr2  r3  r4  r5  ©r:  r;  r<  r=  r>  c       	        óª   • Xl         S U l        X l        X0l        X@l        XPl        X`l        Xpl        X€l        [        U	S9U l
        [        SS9U l        g )N©Ú	max_bytesFré  )Ú(_AsyncResponsesConnectionManager__clientÚ,_AsyncResponsesConnectionManager__connectionÚ-_AsyncResponsesConnectionManager__extra_queryÚ/_AsyncResponsesConnectionManager__extra_headersÚ>_AsyncResponsesConnectionManager__websocket_connection_optionsÚ1_AsyncResponsesConnectionManager__on_reconnectingÚ-_AsyncResponsesConnectionManager__max_retriesÚ/_AsyncResponsesConnectionManager__initial_delayÚ+_AsyncResponsesConnectionManager__max_delayr@   Ú,_AsyncResponsesConnectionManager__send_queuerC   Ú8_AsyncResponsesConnectionManager__event_handler_registry©
rq   r8  r¤   r£   r9  r:  r;  r<  r=  r>  s
             rr   r±  Ú(AsyncResponsesConnectionManager.__init__í  sU   € ð ŒØ=AˆÔØ(ÔØ,ÔØ.JÔ+Ø!0ÔØ(ÔØ,ÔØ$ÔÜ%°Ñ?ˆÔÜ(<ÀeÑ(LˆÕ%ru   c                ó²   • [        U[        5      (       a  UR                  SSSS9O[        R                  " U5      nU R
                  R                  U5        g©zÄQueue a message to be sent when the connection is established.

This can be called before entering the context manager. Queued messages
are automatically sent once the WebSocket connection opens.
Tr'  N)r‘  r   r+  r  r,  r¸  r-  r/  s      rr   r.  Ú$AsyncResponsesConnectionManager.send  óM   € ô ˜%¤×+Ñ+ð �M‰M¨¸tÐSWˆMÑXä—’˜EÓ"ð 	ð
 	×Ñ×!Ñ! $Õ'ru   c                ó^   ^ ^• Ub  T R                   R                  TU5        T $ SUU 4S jjnU$ )zÇRegister an event handler before the connection is established.

Handlers are transferred to the connection on enter. Supports the
same method and decorator forms as ``AsyncResponsesConnection.on``.
c                ó@   >• TR                   R                  TU 5        U $ rn   ©r¹  ru  rv  s    €€rr   rx  Ú5AsyncResponsesConnectionManager.on.<locals>.decorator  ó   ø€ Ø×)Ñ)×-Ñ-¨j¸"Ô=ØˆIru   r{  rÂ  r}  s   ``  rr   r  Ú"AsyncResponsesConnectionManager.on  ó8   ù€ ð ÑØ×)Ñ)×-Ñ-¨j¸'ÔBØˆK÷	ð 	ð Ðru   c                ó<   • U R                   R                  X5        U $ rƒ  )r¹  r…  r†  s      rr   r‡  Ú#AsyncResponsesConnectionManager.off%  ó   € à×%Ñ%×,Ñ,¨ZÔAØˆru   c                ó\   ^ ^• Ub  T R                   R                  TUSS9  T $ SUU 4S jjnU$ )úGRegister a one-time event handler before the connection is established.TrŒ  c                ó>   >• TR                   R                  TU SS9  U $ r�  rÂ  rv  s    €€rr   rx  Ú7AsyncResponsesConnectionManager.once.<locals>.decorator2  ó#   ø€ Ø×)Ñ)×-Ñ-¨j¸"À4Ð-ÑHØˆIru   r{  rÂ  r}  s   ``  rr   r�  Ú$AsyncResponsesConnectionManager.once*  ó=   ù€ ð ÑØ×)Ñ)×-Ñ-¨j¸'ÈÐ-ÑMØˆK÷	ð 	ð Ðru   c              ƒ  ó  #   • U R                  U R                  U R                  5      I Sh  v•N n[        UU R                  b  U R                   OSU R                  U R
                  U R                  U R                  U R                  U R                  U R                  S9	U l	        U R                  R                  U R                  R                  5        U R                  R                  5       I Sh  v•N   U R                  $  NÖ N7f)a6  
If your application doesn't work well with the context manager approach then you
can call this method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = await client.responses.connect(...).enter()
# ...
await connection.close()
```
Nrå  )Ú_connect_wsr±  r²  rà  r´  rµ  r¶  r·  r¸  r°  r¹  Ú
merge_intorö  rb  ©rq   Úwss     rr   Ú
__aenter__Ú*AsyncResponsesConnectionManager.__aenter__8  sß   é € ð ×#Ñ# D×$6Ñ$6¸×8LÑ8LÓM×Mˆä4ØØ(,×(>Ñ(>Ñ(J�D×$Ò$ÐPTØ ×2Ñ2Ø×*Ñ*Ø×.Ñ.Ø×&Ñ&Ø×*Ñ*Ø×.Ñ.Ø×(Ñ(ñ

ˆÔð 	×%Ñ%×0Ñ0°×1BÑ1B×1ZÑ1ZÔ[Ø×Ñ×1Ñ1Ó3×3Ð3à× Ñ Ð ñ# Nñ 	4ùs"   ‚*D¬D­CDÃ2DÃ3DÄDc              ƒ  ó  #   •  SSK Jn  U R	                  5       R                  0 U R                  R                  R                  EUES9n[        R                  S5        U R                  (       a  [        R                  S5        U" [        U5      4U R                  R                  [        0 U R                  R                  EU5      S.U R                  D6I S h  v•N $ ! [         a  n[        S5      UeS nAff = f N"7f)Nr   )Ú_WebSocketConnectú9You need to install `openai[realtime]` to use this method©ÚparamsúConnecting to WebSocket APIú,Custom WebSocket connection options provided©Úuser_agent_headerÚadditional_headers)Úlib._websocketrÙ  ÚImportErrorr>   Ú_prepare_urlÚ	copy_withr¯  Úbase_urlrÜ  rj   r  r³  rc  Ú
user_agentrA   Úauth_headers©rq   r¤   r£   rA  r  Úurls         rr   rÒ  Ú+AsyncResponsesConnectionManager._connect_wsZ  sÿ   é € ð	dÝFð ×ÑÓ!×+Ñ+ðØ—-‘-×(Ñ(×/Ñ/ðàðð ,ð 
ˆô 	�	‰	Ð/Ô0Ø×.×.Ü�I‰IÐDÔEáÜ�‹Hð

à"Ÿm™m×6Ñ6Ü.ðØ—m‘m×0Ñ0ðð ó	 ñ

ð ×1Ñ1ñ

÷ 

ð 
	
øô ó 	dÜÐYÓZÐ`cÐcûð	dúñ

ùs4   ‚C?„C ŠCC?ÃC=ÃC?Ã
C:Ã)C5Ã5C:Ã:C?c                ód  • U R                   R                  b   [        U R                   R                  5      nOMU R                   R                  R                  nUS:X  a  SOSnU R                   R                  R                  US9nUR                  R                  S5      S-   nUR                  US9$ ©NÚhttprÕ  Úwss)Úschemeó   /s
   /responses)Úraw_path)r¯  Úwebsocket_base_urlr'   Ú	_base_urlrð  rå  rò  Úrstrip©rq   ræ  rð  Ú	ws_schemeÚmerge_raw_paths        rr   rä  Ú,AsyncResponsesConnectionManager._prepare_urlv  ó•   € Ø�=‰=×+Ñ+Ñ7Ü*¨4¯=©=×+KÑ+KÓL‰Hà—]‘]×,Ñ,×3Ñ3ˆFØ &¨&Ó 0™°eˆIØ—}‘}×.Ñ.×8Ñ8À	Ð8ÐJˆHà!×*Ñ*×1Ñ1°$Ó7¸-ÑGˆØ×!Ñ!¨>Ð!Ð:Ð:ru   c              ƒ  óp   #   • U R                   b#  U R                   R                  5       I S h  v•N   g g  N7frn   )r°  rA  ©rq   Úexc_typer  Úexc_tbs       rr   Ú	__aexit__Ú)AsyncResponsesConnectionManager.__aexit__�  s3   é € ð ×ÑÑ(Ø×#Ñ#×)Ñ)Ó+×+Ñ+ð )Ù+ùs   ‚+6­4®6©Ú__clientÚ__connectionÚ__event_handler_registryÚ__extra_headersÚ__extra_queryÚ__initial_delayÚ__max_delayÚ__max_retriesÚ__on_reconnectingÚ__send_queueÚ__websocket_connection_options)r8  rg   r¤   r   r£   r   r9  rX   r:  rr  r;  rs  r<  rt  r=  rt  r>  rs  r÷   ro  r¡  rn   )r  rc  r~  r§  r÷   zZUnion[AsyncResponsesConnectionManager, Callable[[Callable[..., Any]], Callable[..., Any]]])r  rc  r~  r|  r÷   r¦  )r÷   rà  )r¤   r   r£   r   r÷   rã  ©r÷   z
httpx2.URL©rý  ztype[BaseException] | Noner  zBaseException | Nonerþ  zTracebackType | Noner÷   ro  )rv  rw  rx  ry  r¨  r±  r.  r  r‡  r�  rÖ  ÚenterrÒ  rä  rÿ  rz  r©   ru   rr   r¦  r¦  Ù  s  † ñð4 _cØØ"ØØ'ñMð ðMð ð	Mð
 ðMð 'AðMð \ðMð ðMð ðMð ðMð ðMð 
õMô2(ð EIðØðØ(Aðà	cõô$ð EIðØðØ(Aðà	cõô!ð@ €Eô
ô8	;ð,Ø2ð,Ø9Mð,ØWkð,à	÷,ru   r¦  c            	      ó   • \ rS rSr% SrS\S'   S\S'   SSSS	S
0 0 SS.                   SS jjrSS jrS S jrS!S jr	S"S jr
S#S jrSSS.S$S jjrS%S jrS&S jrS'S jr S(     S)S jjrS*S jr S(     S)S jjrS'S jrSrg)+ÚResponsesConnectioniˆ  rá  ÚResponsesResponseResourcerë   ÚWebSocketConnectionrä  Nr2  r3  r4  rå  c               óú   • Xl         X l        X0l        X@l        SU l        XPl        X`l        Xpl        X€l        SU l	        SU l
        U	=(       d
    [        5       U l        [        SS9U l        [        U 5      U l        g )Nr   FTré  )rä  rë  rì  rí  rî  rï  rð  rñ  rò  ró  rô  r@   rõ  rC   rö  r  rë   r÷  s
             rr   r±  ÚResponsesConnection.__init__�  sr   € ð &ÔØŒØ /ÔØ'ÔØ"#ˆÔØ+ÔØ#ŒØ'ÔØ+ÔØ%*ˆÔ"Ø %ˆÔØ%×4¬«ˆÔÜ';ÀTÑ'JˆÔ$ä1°$Ó7ˆ�ru   c              #  ó   #   • SSK JnJn    U R                  5       v •  M  ! U a     gU aM  nU R	                  U5      (       d-  U R
                  R                  5       nU(       a  [        SUS9Uee  SnANWSnAff = f7frû  rÿ  r  s        rr   Ú__iter__ÚResponsesConnection.__iter__¬  sˆ   é € ÷
 	TàðØ—i‘i“kÒ!ñ øð &ó ÙØ(ó Ø—‘ s×+Ñ+Ø!×-Ñ-×3Ñ3Ó5�FÞÜ<ØNØ,2ñð  #ð#ð ô ,ûðüs5   ‚
A>�! ŸA>¡A;§A>©A;®AA6Á1A>Á6A;Á;A>c                ó,  • U R                  U R                  5       5      n[        [        [        U5      [
        5      (       a  [        SU5      R                  S5      O[        USS5      n[        U[        5      (       a  U(       a  US:w  a  SU l	        U$ )r
  r  rÓ  Nr  r   r  r  s      rr   r  ÚResponsesConnection.recvÂ  s   € ð × Ñ  §¡Ó!2Ó3ˆô œ$œv uÓ-¬t×4Ñ4ô Ð$ eÓ,×0Ñ0°Ô8ä˜ ¨Ó-ð 	ô �j¤#×&Ñ&®:¸*ÈÓ:OØ&'ˆDÔ#Øˆru   c                ó¬  • U R                   R                  SS9n[        R                  S[	        U5      5        U R
                  (       ar   [        R                  " U5      n[        U[        5      (       a  [        SU5      R                  S5      OSn[        U[        5      (       a  U(       a  US:w  a  SU l        U$ ! [        [        4 a    Us $ f = f)	r  Fr  r  r  rÓ  Nr  r   r  r!  s       rr   r  ÚResponsesConnection.recv_bytesÔ  s·   € ð ×"Ñ"×'Ñ'¨uÐ'Ð5ˆÜ�	‰	Ð8¼#¸g»,ÔGØ×"×"ðÜ%)§Z¢Z°Ó%8�
ô OYÐYcÔei×NjÑNjœÐ1°:Ó>×BÑBÀ6ÔJÐptˆJÜ˜*¤c×*Ñ*®z¸jÈGÓ>SØ*+�Ô'Øˆøô ¤Ð/ó Ø’ðús   ÁB> Â>CÃCc                ó~  • [        U[        5      (       a  UR                  SSSS9O#[        R                  " [        U[        5      5      nU R                  (       a  U R                  R                  U5        g  U R                  R                  U5        g ! [         a    U R                  R                  U5        e f = fr&  )r‘  r   r+  r  r,  r#   rd   rô  rõ  r-  rä  r.  rÚ  r/  s      rr   r.  ÚResponsesConnection.sendé  s    € ô ˜%¤×+Ñ+ð �M‰M¨¸tÐSWˆMÑXä—’œO¨EÔ3LÓMÓNð 	ð
 × × Ø×Ñ×$Ñ$ TÔ*Øð	Ø×Ñ×!Ñ! $Õ'øÜó 	Ø×Ñ×$Ñ$ TÔ*Øð	ús   Á9B Â'B<c                óä   • U R                   (       aD  [        U[        5      (       a  UOUR                  S5      nU R                  R                  U5        g U R                  R                  U5        g r3  r4  r5  s      rr   r7  ÚResponsesConnection.send_rawø  sR   € Ø× × Ü$ T¬3×/Ñ/‘$°T·[±[ÀÓ5IˆCØ×Ñ×$Ñ$ SÔ)ØØ×Ñ×Ñ˜dÕ#ru   r9  r:  r;  c               óD   • SU l         U R                  R                  XS9  g r?  r@  rB  s      rr   rA  ÚResponsesConnection.closeÿ  s!   € Ø%)ˆÔ"Ø×Ñ×Ñ DÐÒ8ru   c           
     ó~   • [        [        [        [        R                  " U5      [        [
        [        5      S95      $ rE  rH  rI  s     rr   r  ÚResponsesConnection.parse_event  rK  ru   c           
     ó”  • U R                   b  U R                  c  gSSKJn  Sn[	        X5      (       a#  UR
                  b  UR
                  R                  n[        U5      (       d  gSU l        [        U R                  S-   U R                  S-   5       GH~  nX@l
        [        U R                  SUS-
  -  -  U R                  5      nS[        R                  " 5       S	-  -   nXV-  n[!        UU R                  UUU R"                  U R$                  S
9n U R                  U5      n	U	b  U	R)                  S5      (       a	  SU l          gU	b   SU	;   a
  U	S   U l        SU	;   a
  U	S   U l        [*        R-                  SUU R                  U5        [.        R0                  " U5        U R2                  (       a	  SU l          g U R                  U R"                  U R$                  5      U l        [*        R-                  S5        SU l        U R7                  5           g   SU l        g! [&         a    SU l           gf = f! [&         a     GM±  f = f)rM  Fr   rN  rO  Tr-   rP  rQ  rR  rS  rX  r¤   r£   rY  rZ  )rì  rë  r   rý  r‘  r\  r<  rR   rô  r]  rî  rí  r^  rï  rð  r_  rP   rñ  rò  rÚ  rÛ  rj   r`  Útimera  ró  rä  rb  )
rq   r  rý  rW  rT  rc  rd  rV  r  re  s
             rr   r  ÚResponsesConnection._reconnect  s&  € ð × Ñ Ñ(¨D¯M©MÑ,AØå?àˆ
Ü�c×1Ñ1°c·h±hÑ6JØŸ™Ÿ™ˆJä# J×/Ñ/Øà $ˆÔä˜T×4Ñ4°qÑ8¸$×:KÑ:KÈaÑ:O×PˆGØ&-Ô#Ü˜T×0Ñ0°A¸'ÀA¹+Ñ4FÑGÈÏÉÓYˆJØœFŸMšM›O¨dÑ2Ñ2ˆFØÑ'ˆEä%ØØ!×.Ñ.ØØ%Ø ×-Ñ-Ø"×1Ñ1ñˆEðØ×.Ñ.¨uÓ5�ð
 Ñ! f§j¡j°×&9Ñ&9Ø(-�Ô%ÙàÑ!Ø  FÓ*Ø(.¨}Ñ(=�DÔ%Ø" fÓ,Ø*0°Ñ*A�DÔ'ä�H‰HØQØØ×!Ñ!Øô	ô �JŠJ�uÔà×)×)Ø(-�Ô%ÙðØ#'§=¡=°×1BÑ1BÀD×DWÑDWÓ#X�Ô Ü—‘Ð7Ô8Ø(-�Ô%Ø×&Ñ&Ô(Ùña Qðh !&ˆÔØøôI ó Ø(-�Ô%Úðûô@ ó Ûðús%   ÄH Æ=AH8È H5È4H5È8
IÉIc                ó�   ^ •  T R                   R                  U 4S j5        g! [         a    [        R	                  S5         gf = f)rh  c                ó:   >• TR                   R                  U 5      $ rn   rj  rk  s    €rr   r×   Ú7ResponsesConnection._flush_send_queue.<locals>.<lambda>\  s   ø€ °T×5EÑ5E×5JÑ5JÈ4Ô5Pru   rn  N)rõ  Ú
flush_syncrÚ  rj   rp  rp   s   `rr   rb  Ú%ResponsesConnection._flush_send_queueY  s<   ø€ ð	FØ×Ñ×'Ñ'Ô(PÕQøÜó 	FÜ�K‰KÐDÖEð	Fús   ƒ# £AÁAc                ó^   ^ ^• Ub  T R                   R                  TU5        T $ SUU 4S jjnU$ )aï  Adds the handler to the end of the handlers list for the given event type.

No checks are made to see if the handler has already been added. Multiple calls
passing the same combination of event type and handler will result in the handler
being added, and called, multiple times.

Can be used as a method (returns ``self`` for chaining)::

    connection.on("response.steer.accepted", my_handler)

Or as a decorator::

    @connection.on("response.steer.accepted")
    def my_handler(event): ...
c                ó@   >• TR                   R                  TU 5        U $ rn   rt  rv  s    €€rr   rx  Ú)ResponsesConnection.on.<locals>.decoratorv  rz  ru   r{  rt  r}  s   ``  rr   r  ÚResponsesConnection.on`  r�  ru   c                ó<   • U R                   R                  X5        U $ rƒ  r„  r†  s      rr   r‡  ÚResponsesConnection.off|  r‰  ru   c                ó\   ^ ^• Ub  T R                   R                  TUSS9  T $ SUU 4S jjnU$ )r‹  TrŒ  c                ó>   >• TR                   R                  TU SS9  U $ r�  rt  rv  s    €€rr   rx  Ú+ResponsesConnection.once.<locals>.decoratorŒ  r‘  ru   r{  rt  r}  s   ``  rr   r�  ÚResponsesConnection.once�  r“  ru   c                óL  • U  Hž  nUR                   nU R                  R                  U5      nU R                  R                  S5      nUS:X  a1  U(       d*  U(       d#  [        U[        5      (       a  [        SU 35      eU H  nU" U5        M     U H  nU" U5        M     M      g)aQ  Run the event loop, dispatching received events to registered handlers.

Blocks the current thread until the connection is closed. This is the push-based
alternative to iterating with ``for event in connection``.

If an ``"error"`` event arrives and no handler is registered for
``"error"`` or ``"event"``, an ``OpenAIError`` is raised.
r  r  r•  N)rÓ  rö  r–  r‘  r_   r>   )rq   r  r  r˜  r™  r~  s         rr   rš  Ú#ResponsesConnection.dispatch_events’  s“   € ó ˆEØŸ™ˆJØ×3Ñ3×@Ñ@ÀÓLˆHØ×2Ñ2×?Ñ?ÀÓHˆGà˜WÓ$®X¾gÜ˜e¤_×5Ñ5Ü%Ð(9¸%¸Ð&AÓBÐBã#�Ù˜–ñ $ó #�Ù˜–ó #ò ru   rœ  )rø  r  ræ  z6Callable[[Query, Headers], WebSocketConnection] | Noner:  rr  r;  rs  r<  rt  r=  rt  r¤   r   r£   r   rç  r�  r÷   ro  )r÷   zIterator[ResponsesServerEvent]rž  rŸ  r¡  r¢  r£  r¤  r¥  r¦  rn   )r  rc  r~  r§  r÷   zNUnion[ResponsesConnection, Callable[[Callable[..., Any]], Callable[..., Any]]])r  rc  r~  r|  r÷   r  )rv  rw  rx  ry  r¨  r©  r±  r  r  r  r.  r7  rA  r  r  rb  r  r‡  r�  rš  rz  r©   ru   rr   r  r  ˆ  s  ‡ ÙEà'Ó'à$Ó$ð KOØ^bØØ"ØØØ!#Ø'+ñ8à'ð8ð Hð	8ð
 \ð8ð ð8ð ð8ð ð8ð ð8ð ð8ð %ð8ð 
õ8ô:ô,ô$ô*ô$ð $(°r÷ 9ô	
ôIôVFð EIðØðØ(Aðà	Wõô8ð EIðØðØ(Aðà	Wõ÷"ru   r  c                  óÜ   • \ rS rSrSrSSSSSS.                   SS	 jjrSS
 jr S     SS jjrSS jr S     SS jjr	SS jr
\
rSS jrSS jr        SS jrSrg)r?  i«  aë  
Context manager over a `ResponsesConnection` that is returned by `responses.connect()`

This context manager ensures that the connection will be closed when it exits.

---

Note that if your application doesn't work well with the context manager approach then you
can call the `.enter()` method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = client.responses.connect(...).enter()
# ...
connection.close()
```
Nr2  r3  r4  r5  r«  c       	        óª   • Xl         S U l        X l        X0l        X@l        XPl        X`l        Xpl        X€l        [        U	S9U l
        [        SS9U l        g )Nr­  Tré  )Ú#_ResponsesConnectionManager__clientÚ'_ResponsesConnectionManager__connectionÚ(_ResponsesConnectionManager__extra_queryÚ*_ResponsesConnectionManager__extra_headersÚ9_ResponsesConnectionManager__websocket_connection_optionsÚ,_ResponsesConnectionManager__on_reconnectingÚ(_ResponsesConnectionManager__max_retriesÚ*_ResponsesConnectionManager__initial_delayÚ&_ResponsesConnectionManager__max_delayr@   Ú'_ResponsesConnectionManager__send_queuerC   Ú3_ResponsesConnectionManager__event_handler_registryrº  s
             rr   r±  Ú#ResponsesConnectionManager.__init__¿  sU   € ð ŒØ8<ˆÔØ(ÔØ,ÔØ.JÔ+Ø!0ÔØ(ÔØ,ÔØ$ÔÜ%°Ñ?ˆÔÜ(<ÀdÑ(KˆÕ%ru   c                ó²   • [        U[        5      (       a  UR                  SSSS9O[        R                  " U5      nU R
                  R                  U5        gr½  )r‘  r   r+  r  r,  rD  r-  r/  s      rr   r.  ÚResponsesConnectionManager.sendØ  r¿  ru   c                ó^   ^ ^• Ub  T R                   R                  TU5        T $ SUU 4S jjnU$ )zÂRegister an event handler before the connection is established.

Handlers are transferred to the connection on enter. Supports the
same method and decorator forms as ``ResponsesConnection.on``.
c                ó@   >• TR                   R                  TU 5        U $ rn   ©rE  ru  rv  s    €€rr   rx  Ú0ResponsesConnectionManager.on.<locals>.decoratorñ  rÄ  ru   r{  rK  r}  s   ``  rr   r  ÚResponsesConnectionManager.onå  rÆ  ru   c                ó<   • U R                   R                  X5        U $ rƒ  )rE  r…  r†  s      rr   r‡  ÚResponsesConnectionManager.off÷  rÉ  ru   c                ó\   ^ ^• Ub  T R                   R                  TUSS9  T $ SUU 4S jjnU$ )rË  TrŒ  c                ó>   >• TR                   R                  TU SS9  U $ r�  rK  rv  s    €€rr   rx  Ú2ResponsesConnectionManager.once.<locals>.decorator  rÎ  ru   r{  rK  r}  s   ``  rr   r�  ÚResponsesConnectionManager.onceü  rÐ  ru   c                óâ  • U R                  U R                  U R                  5      n[        UU R                  b  U R                   OSU R                  U R
                  U R                  U R                  U R                  U R                  U R                  S9	U l	        U R                  R                  U R                  R                  5        U R                  R                  5         U R                  $ )a*  
If your application doesn't work well with the context manager approach then you
can call this method directly to initiate a connection.

**Warning**: You must remember to close the connection with `.close()`.

```py
connection = client.responses.connect(...).enter()
# ...
connection.close()
```
Nrå  )rÒ  r=  r>  r  r@  rA  rB  rC  rD  r<  rE  rÓ  rö  rb  rÔ  s     rr   Ú	__enter__Ú$ResponsesConnectionManager.__enter__
  sÈ   € ð ×Ñ˜d×0Ñ0°$×2FÑ2FÓGˆä/ØØ(,×(>Ñ(>Ñ(J�D×$Ò$ÐPTØ ×2Ñ2Ø×*Ñ*Ø×.Ñ.Ø×&Ñ&Ø×*Ñ*Ø×.Ñ.Ø×(Ñ(ñ

ˆÔð 	×%Ñ%×0Ñ0°×1BÑ1B×1ZÑ1ZÔ[Ø×Ñ×+Ñ+Ô-à× Ñ Ð ru   c                óæ  •  SSK Jn  U R	                  5       R                  0 U R                  R                  R                  EUES9n[        R                  S5        U R                  (       a  [        R                  S5        U" [        U5      4U R                  R                  [        0 U R                  R                  EU5      S.U R                  D6$ ! [         a  n[        S5      UeS nAff = f)Nr   )rA  rÚ  rÛ  rÝ  rÞ  rß  )Úwebsockets.sync.clientrA  rã  r>   rä  rå  r;  ræ  rÜ  rj   r  r?  rc  rç  rA   rè  ré  s         rr   rÒ  Ú&ResponsesConnectionManager._connect_ws,  sò   € ð	dÝ6ð ×ÑÓ!×+Ñ+ðØ—-‘-×(Ñ(×/Ñ/ðàðð ,ð 
ˆô 	�	‰	Ð/Ô0Ø×.×.Ü�I‰IÐDÔEáÜ�‹Hð

à"Ÿm™m×6Ñ6Ü.ðØ—m‘m×0Ñ0ðð ó	 ñ

ð ×1Ñ1ñ

ð 
	
øô ó 	dÜÐYÓZÐ`cÐcûð	dús   ‚C Ã
C0ÃC+Ã+C0c                ód  • U R                   R                  b   [        U R                   R                  5      nOMU R                   R                  R                  nUS:X  a  SOSnU R                   R                  R                  US9nUR                  R                  S5      S-   nUR                  US9$ rí  )r;  ró  r'   rô  rð  rå  rò  rõ  rö  s        rr   rä  Ú'ResponsesConnectionManager._prepare_urlH  rú  ru   c                óT   • U R                   b  U R                   R                  5         g g rn   )r<  rA  rü  s       rr   Ú__exit__Ú#ResponsesConnectionManager.__exit__S  s'   € ð ×ÑÑ(Ø×Ñ×#Ñ#Õ%ð )ru   r  )r8  rf   r¤   r   r£   r   r9  rX   r:  rr  r;  rs  r<  rt  r=  rt  r>  rs  r÷   ro  r¡  rn   )r  rc  r~  r§  r÷   zUUnion[ResponsesConnectionManager, Callable[[Callable[..., Any]], Callable[..., Any]]])r  rc  r~  r|  r÷   r?  )r÷   r  )r¤   r   r£   r   r÷   r  r  r  )rv  rw  rx  ry  r¨  r±  r.  r  r‡  r�  rU  r  rÒ  rä  r]  rz  r©   ru   rr   r?  r?  «  s  † ñð4 _cØØ"ØØ'ñLð ðLð ð	Lð
 ðLð 'AðLð \ðLð ðLð ðLð ðLð ðLð 
õLô2(ð EIðØðØ(Aðà	^õô$ð EIðØðØ(Aðà	^õô!ð@ €Eô
ô8	;ð&Ø2ð&Ø9Mð&ØWkð&à	÷&ru   r?  c                  ó   • \ rS rSrSS jrSrg)ÚBaseResponsesConnectionResourceiZ  c                ó   • Xl         g rn   ©rä  ©rq   rø  s     rr   r±  Ú(BaseResponsesConnectionResource.__init__[  ó   € Ø%Õru   rb  N)rø  r  r÷   ro  ©rv  rw  rx  ry  r±  rz  r©   ru   rr   r`  r`  Z  ó   † ÷&ru   r`  c            !      óð   • \ rS rSrSS jr\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\S.                                                                  SS jjrSrg)	r  i_  c               ó@   • U R                   R                  SXS.5        g©aj  Queues user input to steer a response on this WebSocket connection.

Input
can contain text, images, and files. Steering is supported only for
single-agent responses on models and execution modes that support steering.
Responses bound to a conversation or using automatic compaction do not
support steering.

A `response.steer.accepted` event acknowledges that the server owns the
queued input, not that it has been applied. The successor's `response.created`
event is the commit point. Input that cannot be committed is returned in
`response.steer.failed`.

Steering may cause the active response to finish at a safe output boundary
with `response.incomplete` and `incomplete_details.reason` set to `steered`,
followed automatically by a successor `response.created`. Normal completion
can also be followed by an automatic successor. Automatic successors inherit
the previous response's settings and continue from it with the queued input.

If the response stops for client-owned tool output or approval, accepted
steering input remains queued and `response.steer.pending` is emitted after
`response.completed`. Fill the `required_input` stubs from that event with
saved tool results or approval decisions, and send one explicit
`response.create` per parent with the same `previous_response_id` and
WebSocket lane. Do not rerun tools or resend accepted steering input. The
queued input is prepended in submission order to that request's input, and
the explicit request retains its own settings.

This event accepts only `type`, `previous_response_id`, and `input`. Do not
send `stream_id`; the target response determines the WebSocket lane.
zresponse.steer)rÓ  rˆ   r�   Nrj  ©rq   rˆ   r�   s      rr   ÚsteerÚResponsesResponseResource.steer`  s   € ð@ 	×Ñ×ÑÐ'7À%ÑvÕwru   © r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   Ú	stream_idrš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   c                ó2  • U R                   R                  [        [        [	        0 SS_SU_SU_SU_SU_SU_SU_S	U_S
U_SU	_SU
_SU_SU_SU_SU_SU_SU_0 SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U_S!U_S"U _E5      5      5        g#©$ay  
Client event for creating a response over a persistent WebSocket connection.
This payload uses the same top-level fields as `POST /v1/responses`, plus
WebSocket-only envelope metadata.

Notes:
- `stream` is implicit over WebSocket and should not be sent.
- `background` is not supported over WebSocket.
- `stream_id` is WebSocket-only and is not part of `POST /v1/responses`.
rÓ  zresponse.creater„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   ro  rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   N©rä  r.  r   rd   r$   ©!rq   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   ro  rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   s!                                    rr   r«   Ú ResponsesResponseResource.create‚  sÆ  € ð^ 	×Ñ×ÑÜÜ)Üð"ØÐ 1ð"à$ jð"ð -Ð.@ð"ð '¨ð	"ð
 " 7ð"ð   ð"ð '¨ð"ð ,Ð->ð"ð )¨.ð"ð # Hð"ð   ð"ð % jð"ð .Ð/Bð"ð /Ð0Dð"ð ! &ð"ð  +Ð,<ð!"ð" /Ð0Dñ#"ð$ 1Ð2Hð%"ð& $ Yð'"ð( ,Ð->ð)"ð* '¨ð+"ð,   ð-"ð. ! &ð/"ð0 $ Yð1"ð2 )¨.ð3"ð4 & {ð5"ð6  ð7"ð8 & {ð9"ð:   ð;"ð< '¨ð="ð>   ð?"ð@ % jðA"ðB  ñC"ó$ó'õ)	
ru   r©   N©rˆ   rb   r�   rc  r÷   ro  ©Br„   rD  r…   zWOptional[Iterable[responses_client_event_param.ResponseCreateContextManagement]] | Omitr†   zHOptional[responses_client_event_param.ResponseCreateConversation] | Omitr‡   rG  rˆ   rH  r‰   rI  rŠ   rJ  r‹   rJ  rŒ   rK  r�   rL  rŽ   zFOptional[responses_client_event_param.ResponseCreateModeration] | Omitr�   rD  r�   rI  r‘   rN  r’   rI  r“   zDresponses_client_event_param.ResponseCreatePromptCacheOptions | Omitr”   rP  r•   rQ  r–   rI  r—   rR  r˜   rD  r™   rD  ro  rY  rš   zIOptional[responses_client_event_param.ResponseCreateStreamOptions] | Omitr›   rT  rœ   rU  r�   z<responses_client_event_param.ResponseCreateToolChoice | Omitrž   rW  rŸ   rJ  r    rT  r¡   rX  r¢   rY  r÷   ro  ©rv  rw  rx  ry  rl  r   r«   rz  r©   ru   rr   r  r  _  sô  † ô xðJ -1àØaeØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+Ø]aØ59Ø59Ø7;Ø15ØeiØOSØ04Ø26Ø59Ø'+Ø(,Ø $ØdhØ.2Ø/3ØTXØ,0Ø-1Ø(,ØCGØñGX
ð *ðX
ðð	X
ð _ðX
ð ;ðX
ð 5ðX
ð +ðX
ð 0ðX
ð -ðX
ð ,ðX
ð %ðX
ð [ðX
ð 3ðX
ð  3ð!X
ð" 5ð#X
ð$ /ð%X
ð& cð'X
ð( !Mð)X
ð* .ð+X
ð, 0ð-X
ð. 3ð/X
ð0 %ð1X
ð2 &ð3X
ð4 ð5X
ð6 bð7X
ð8 ,ð9X
ð: -ð;X
ð< Rð=X
ð> *ð?X
ð@ +ðAX
ðB &ðCX
ðD AðEX
ðF ðGX
ðH 
÷IX
ð X
ru   r  c                  ó   • \ rS rSrSS jrSrg)Ú$BaseAsyncResponsesConnectionResourceiÝ  c                ó   • Xl         g rn   rb  rc  s     rr   r±  Ú-BaseAsyncResponsesConnectionResource.__init__Þ  re  ru   rb  N)rø  rà  r÷   ro  rf  r©   ru   rr   ry  ry  Ý  rg  ru   ry  c            !      óð   • \ rS rSrSS jr\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\S.                                                                  SS jjrSrg)	râ  iâ  c             ƒ  ó\   #   • U R                   R                  SXS.5      I Sh  v•N   g N7frj  rj  rk  s      rr   rl  Ú$AsyncResponsesResponseResource.steerã  s.   é € ð@ ×Ñ×#Ñ#Ø%°Ñdó
÷ 	
ó 	
ùs   ‚",¤*¥,rn  c              ƒ  óN  #   • U R                   R                  [        [        [	        0 SS_SU_SU_SU_SU_SU_SU_S	U_S
U_SU	_SU
_SU_SU_SU_SU_SU_SU_0 SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_SU_S U_S!U_S"U _E5      5      5      I S#h  v•N   g# N7frq  rr  rs  s!                                    rr   r«   Ú%AsyncResponsesResponseResource.create  sÓ  é € ð^ ×Ñ×#Ñ#ÜÜ)Üð"ØÐ 1ð"à$ jð"ð -Ð.@ð"ð '¨ð	"ð
 " 7ð"ð   ð"ð '¨ð"ð ,Ð->ð"ð )¨.ð"ð # Hð"ð   ð"ð % jð"ð .Ð/Bð"ð /Ð0Dð"ð ! &ð"ð  +Ð,<ð!"ð" /Ð0Dñ#"ð$ 1Ð2Hð%"ð& $ Yð'"ð( ,Ð->ð)"ð* '¨ð+"ð,   ð-"ð. ! &ð/"ð0 $ Yð1"ð2 )¨.ð3"ð4 & {ð5"ð6  ð7"ð8 & {ð9"ð:   ð;"ð< '¨ð="ð>   ð?"ð@ % jðA"ðB  ñC"ó$ó'ó)
÷ )	
ó )	
ùs   ‚BB%ÂB#ÂB%r©   Nru  rv  rw  r©   ru   rr   râ  râ  â  só  † ô"
ðN -1àØaeØ=AØ7;Ø-1Ø26Ø/3Ø.2Ø'+Ø]aØ59Ø59Ø7;Ø15ØeiØOSØ04Ø26Ø59Ø'+Ø(,Ø $ØdhØ.2Ø/3ØTXØ,0Ø-1Ø(,ØCGØñGX
ð *ðX
ðð	X
ð _ðX
ð ;ðX
ð 5ðX
ð +ðX
ð 0ðX
ð -ðX
ð ,ðX
ð %ðX
ð [ðX
ð 3ðX
ð  3ð!X
ð" 5ð#X
ð$ /ð%X
ð& cð'X
ð( !Mð)X
ð* .ð+X
ð, 0ð-X
ð. 3ð/X
ð0 %ð1X
ð2 &ð3X
ð4 ð5X
ð6 bð7X
ð8 ,ð9X
ð: -ð;X
ð< Rð=X
ð> *ð?X
ð@ +ðAX
ðB &ðCX
ðD AðEX
ðF ðGX
ðH 
÷IX
ð X
ru   râ  )rž   rf  r÷   zList[ToolParam] | Omit)¯Ú
__future__r   r  r&  r_  Úloggingr   Útypesr   Útypingr   r   r   r	   r
   r   r   r   r   r   r   r   Ú	functoolsr   Útyping_extensionsr   r   Úhttpx2Úpydanticr   r:  r   Ú_typesr   r   r   r   r   r   r   r   r    Ú_utilsr!   r"   r#   r$   r%   Ú_compatr&   Ú_httpx2r'   Ú_modelsr(   Ú	_resourcer)   r*   Ú	_responser+   r,   rs   r.   r/   r0   r1   r2   r3   Ú
_streamingr4   r5   Ú
lib._toolsr6   r7   rw   r8   r9   r:   r;   r<   r=   Ú_exceptionsr>   r?   rõ  r@   Ú_base_clientrA   rB   Ú_event_handlerrC   Útypes.responsesrD   rE   rF   rG   Úlib._parsing._responsesrH   rI   rJ   rß   Útypes.responses.responserK   Útypes.responses.tool_paramrL   rM   Útypes.responses.service_tierrN   Útypes.shared_params.metadatarO   Útypes.websocket_reconnectionrP   rQ   rR   Útypes.shared_params.reasoningrS   Útypes.responses.parsed_responserT   Ú"lib.streaming.responses._responsesrU   rV   Ú"types.responses.compacted_responserW   Ú"types.websocket_connection_optionsrX   Ú#types.responses.response_includablerY   Ú#types.shared_params.responses_modelrZ   Ú$types.responses.response_input_paramr[   Ú%types.responses.response_prompt_paramr\   Ú%types.responses.response_stream_eventr]   Ú&types.responses.responses_client_eventr^   Ú&types.responses.responses_server_eventr_   r`   Ú)types.responses.response_input_item_paramra   Ú*types.responses.response_steer_input_paramrb   Ú*types.responses.response_text_config_paramrc   Ú,types.responses.responses_client_event_paramrd   rX  re   r  Úwebsockets.asyncio.clientrã  ro   rf   rg   Ú__all__Ú	getLoggerrv  rj   r©  rh   ri   r{   r�  r€   r„  rÝ   rà  r¦  r  r?  r`  r  ry  râ  r©   ru   rr   Ú<module>r¯     sÌ  ðö #ã Û Û Û Ý Ý ÷÷ ÷ ó õ ß /ã Ý å  ß `× `Õ `ß fÕ fÝ &Ý *Ý /ß :ß Y÷÷ ÷ .ß M÷÷ ÷ GÝ $ß AÝ 2÷ó ÷ñ õ
 1ß GÝ 7Ý 4ß jÑ jÝ 6Ý =ß cÝ CÝ LÝ EÝ AÝ FÝ HÝ HÝ Jß [Ý OÝ QÝ QÝ UæÝNÝVç.àÐ(Ð
)€à×'Ó'¨Ó1€€^Ó 1ôN
�ô N
ôb:M
Ð%ô M
÷`:Hñ H÷@Mñ M÷@Nñ N÷:Sñ Sô:#÷Ll!ñ l!÷^	l,ñ l,÷^`ñ `÷F	l&ñ l&÷^&ñ &ô
{
Ð ?ô {
÷|&ñ &ô
}
Ð%Iõ }
ru   