sample_id
stringlengths
21
196
text
stringlengths
105
936k
metadata
dict
category
stringclasses
6 values
openai/openai-python:src/openai/types/realtime/realtime_mcp_approval_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeMcpApprovalResponse"] class RealtimeMcpApprovalResponse(BaseModel): """A Realtime item responding to an MC...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_approval_response.py", "license": "Apache License 2.0", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_approval_response_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["RealtimeMcpApprovalResponseParam"] class RealtimeMcpApprovalResponseParam(TypedDict, total=Fals...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_approval_response_param.py", "license": "Apache License 2.0", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_list_tools.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeMcpListTools", "Tool"] class Tool(BaseModel): """A tool available on an MCP server.""" input_sc...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_list_tools.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_list_tools_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Iterable, Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["RealtimeMcpListToolsParam", "Tool"] class Tool(TypedDict, total=False): """A tool...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_list_tools_param.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_protocol_error.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeMcpProtocolError"] class RealtimeMcpProtocolError(BaseModel): code: int message: str type: Literal["protocol_error"]
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_protocol_error.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_protocol_error_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["RealtimeMcpProtocolErrorParam"] class RealtimeMcpProtocolErrorParam(TypedDict, total=False): code: Required[int] m...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_protocol_error_param.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_tool_call.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .realtime_mcphttp_error import RealtimeMcphttpError from .realti...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_tool_call.py", "license": "Apache License 2.0", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_tool_call_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Optional from typing_extensions import Literal, Required, TypeAlias, TypedDict from .realtime_mcphttp_error_param import RealtimeMcphttpErrorParam from .realtime_mcp_prot...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_tool_call_param.py", "license": "Apache License 2.0", "lines": 27, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_tool_execution_error.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeMcpToolExecutionError"] class RealtimeMcpToolExecutionError(BaseModel): message: str type: Literal["tool_execution_error"]
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_tool_execution_error.py", "license": "Apache License 2.0", "lines": 7, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcp_tool_execution_error_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["RealtimeMcpToolExecutionErrorParam"] class RealtimeMcpToolExecutionErrorParam(TypedDict, total=False): message: Require...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcp_tool_execution_error_param.py", "license": "Apache License 2.0", "lines": 7, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcphttp_error.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeMcphttpError"] class RealtimeMcphttpError(BaseModel): code: int message: str type: Literal["http_error"]
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcphttp_error.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_mcphttp_error_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["RealtimeMcphttpErrorParam"] class RealtimeMcphttpErrorParam(TypedDict, total=False): code: Required[int] message: ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_mcphttp_error_param.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Union, Optional from typing_extensions import Literal from ..._models import BaseModel from ..shared.metadata import Metadata from .conversation_item import ConversationItem from .realtime_audio_formats impo...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_response.py", "license": "Apache License 2.0", "lines": 76, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_response_status.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeResponseStatus", "Error"] class Error(BaseModel): """ A description of the error that caused the respo...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_response_status.py", "license": "Apache License 2.0", "lines": 33, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_response_usage.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from ..._models import BaseModel from .realtime_response_usage_input_token_details import RealtimeResponseUsageInputTokenDetails from .realtime_response_usage_output_token_details import RealtimeResponseU...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_response_usage.py", "license": "Apache License 2.0", "lines": 37, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_response_usage_input_token_details.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from ..._models import BaseModel __all__ = ["RealtimeResponseUsageInputTokenDetails", "CachedTokensDetails"] class CachedTokensDetails(BaseModel): """Details about the cached tokens used as input f...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_response_usage_input_token_details.py", "license": "Apache License 2.0", "lines": 26, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_response_usage_output_token_details.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from ..._models import BaseModel __all__ = ["RealtimeResponseUsageOutputTokenDetails"] class RealtimeResponseUsageOutputTokenDetails(BaseModel): """Details about the output tokens used in the Respo...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_response_usage_output_token_details.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_server_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .conversation_item import ConversationItem from .response_done_event impor...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_server_event.py", "license": "Apache License 2.0", "lines": 158, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_session_create_request.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Union, Optional from typing_extensions import Literal from ..._models import BaseModel from .realtime_truncation import RealtimeTruncation from .realtime_audio_config import RealtimeAudioConfig from .realtim...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_session_create_request.py", "license": "Apache License 2.0", "lines": 107, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_session_create_request_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List, Union, Optional from typing_extensions import Literal, Required, TypedDict from .realtime_truncation_param import RealtimeTruncationParam from .realtime_audio_config_param...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_session_create_request_param.py", "license": "Apache License 2.0", "lines": 106, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_session_create_response.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .audio_transcription import AudioTranscription from ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_session_create_response.py", "license": "Apache License 2.0", "lines": 405, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_tool_choice_config.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import TypeAlias from ..responses.tool_choice_mcp import ToolChoiceMcp from ..responses.tool_choice_options import ToolChoiceOptions from ..responses.tool_choice_function import ToolCh...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tool_choice_config.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_tool_choice_config_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union from typing_extensions import TypeAlias from ..responses.tool_choice_options import ToolChoiceOptions from ..responses.tool_choice_mcp_param import ToolChoiceMcpParam from...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tool_choice_config_param.py", "license": "Apache License 2.0", "lines": 9, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_tools_config.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List from typing_extensions import TypeAlias from .realtime_tools_config_union import RealtimeToolsConfigUnion __all__ = ["RealtimeToolsConfig"] RealtimeToolsConfig: TypeAlias = List[RealtimeToolsConfigUnion]
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tools_config.py", "license": "Apache License 2.0", "lines": 6, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_tools_config_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, List, Union, Optional from typing_extensions import Literal, Required, TypeAlias, TypedDict from ..._types import SequenceNotStr from .realtime_function_tool_param import ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tools_config_param.py", "license": "Apache License 2.0", "lines": 114, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_tools_config_union.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .realtime_function_tool import RealtimeFunctionTool ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tools_config_union.py", "license": "Apache License 2.0", "lines": 114, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_tools_config_union_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Union, Optional from typing_extensions import Literal, Required, TypeAlias, TypedDict from ..._types import SequenceNotStr from .realtime_function_tool_param import Realti...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tools_config_union_param.py", "license": "Apache License 2.0", "lines": 112, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_tracing_config.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union, Optional from typing_extensions import Literal, TypeAlias from ..._models import BaseModel __all__ = ["RealtimeTracingConfig", "TracingConfiguration"] class TracingConfiguration(BaseModel): """Granul...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tracing_config.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_tracing_config_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union from typing_extensions import Literal, TypeAlias, TypedDict __all__ = ["RealtimeTracingConfigParam", "TracingConfiguration"] class TracingConfiguration(TypedDict, total=...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_tracing_config_param.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_create_request.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional from typing_extensions import Literal from ..._models import BaseModel from .realtime_transcription_session_audio import RealtimeTranscriptionSessionAudio __all__ = ["RealtimeTranscriptionSessionCr...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_transcription_session_create_request.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/realtime_transcription_session_create_request_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List from typing_extensions import Literal, Required, TypedDict from .realtime_transcription_session_audio_param import RealtimeTranscriptionSessionAudioParam __all__ = ["Realt...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_transcription_session_create_request_param.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template"...
documentation
openai/openai-python:src/openai/types/realtime/realtime_truncation.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal, TypeAlias from .realtime_truncation_retention_ratio import RealtimeTruncationRetentionRatio __all__ = ["RealtimeTruncation"] RealtimeTruncation: TypeAlias = Union[Lit...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_truncation.py", "license": "Apache License 2.0", "lines": 6, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/realtime_truncation_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union from typing_extensions import Literal, TypeAlias from .realtime_truncation_retention_ratio_param import RealtimeTruncationRetentionRatioParam __all__ = ["RealtimeTruncati...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/realtime_truncation_param.py", "license": "Apache License 2.0", "lines": 7, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_audio_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseAudioDeltaEvent"] class ResponseAudioDeltaEvent(BaseModel): """Returned when the model-generated audio is updated.""" content_ind...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_audio_delta_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_audio_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseAudioDoneEvent"] class ResponseAudioDoneEvent(BaseModel): """Returned when the model-generated audio is done. Also emitted when a...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_audio_done_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_audio_transcript_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseAudioTranscriptDeltaEvent"] class ResponseAudioTranscriptDeltaEvent(BaseModel): """Returned when the model-generated transcription of ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_audio_transcript_delta_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_audio_transcript_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseAudioTranscriptDoneEvent"] class ResponseAudioTranscriptDoneEvent(BaseModel): """ Returned when the model-generated transcription ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_audio_transcript_done_event.py", "license": "Apache License 2.0", "lines": 24, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_cancel_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseCancelEvent"] class ResponseCancelEvent(BaseModel): """Send this event to cancel an in-progress response. ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_cancel_event.py", "license": "Apache License 2.0", "lines": 22, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_cancel_event_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["ResponseCancelEventParam"] class ResponseCancelEventParam(TypedDict, total=False): """Send this event to cancel an in-p...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_cancel_event_param.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_content_part_added_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseContentPartAddedEvent", "Part"] class Part(BaseModel): """The content part that was added.""" audio: ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_content_part_added_event.py", "license": "Apache License 2.0", "lines": 34, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_content_part_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseContentPartDoneEvent", "Part"] class Part(BaseModel): """The content part that is done.""" audio: Opt...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_content_part_done_event.py", "license": "Apache License 2.0", "lines": 34, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_create_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel from .realtime_response_create_params import RealtimeResponseCreateParams __all__ = ["ResponseCreateEvent"] class ResponseCreateEv...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_create_event.py", "license": "Apache License 2.0", "lines": 35, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_create_event_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict from .realtime_response_create_params_param import RealtimeResponseCreateParamsParam __all__ = ["ResponseCreateEventParam"] class Resp...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_create_event_param.py", "license": "Apache License 2.0", "lines": 34, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_created_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel from .realtime_response import RealtimeResponse __all__ = ["ResponseCreatedEvent"] class ResponseCreatedEvent(BaseModel): """Returned when a new Response ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_created_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel from .realtime_response import RealtimeResponse __all__ = ["ResponseDoneEvent"] class ResponseDoneEvent(BaseModel): """Returned when a Response is done st...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_done_event.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_function_call_arguments_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseFunctionCallArgumentsDeltaEvent"] class ResponseFunctionCallArgumentsDeltaEvent(BaseModel): """Returned when the model-generated funct...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_function_call_arguments_delta_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_function_call_arguments_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseFunctionCallArgumentsDoneEvent"] class ResponseFunctionCallArgumentsDoneEvent(BaseModel): """ Returned when the model-generated fu...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_function_call_arguments_done_event.py", "license": "Apache License 2.0", "lines": 25, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_mcp_call_arguments_delta.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallArgumentsDelta"] class ResponseMcpCallArgumentsDelta(BaseModel): """Returned when MCP tool call arg...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_mcp_call_arguments_delta.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_mcp_call_arguments_done.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallArgumentsDone"] class ResponseMcpCallArgumentsDone(BaseModel): """Returned when MCP tool call arguments are finalized during re...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_mcp_call_arguments_done.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_mcp_call_completed.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallCompleted"] class ResponseMcpCallCompleted(BaseModel): """Returned when an MCP tool call has completed successfully.""" ev...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_mcp_call_completed.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_mcp_call_failed.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallFailed"] class ResponseMcpCallFailed(BaseModel): """Returned when an MCP tool call has failed.""" event_id: str """The...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_mcp_call_failed.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_mcp_call_in_progress.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseMcpCallInProgress"] class ResponseMcpCallInProgress(BaseModel): """Returned when an MCP tool call has started and is in progress.""" ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_mcp_call_in_progress.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_output_item_added_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel from .conversation_item import ConversationItem __all__ = ["ResponseOutputItemAddedEvent"] class ResponseOutputItemAddedEvent(BaseModel): """Returned when...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_output_item_added_event.py", "license": "Apache License 2.0", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_output_item_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel from .conversation_item import ConversationItem __all__ = ["ResponseOutputItemDoneEvent"] class ResponseOutputItemDoneEvent(BaseModel): """Returned when a...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_output_item_done_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/response_text_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseTextDeltaEvent"] class ResponseTextDeltaEvent(BaseModel): """Returned when the text value of an "output_text" content part is updated....
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_text_delta_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/response_text_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseTextDoneEvent"] class ResponseTextDoneEvent(BaseModel): """Returned when the text value of an "output_text" content part is done strea...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/response_text_done_event.py", "license": "Apache License 2.0", "lines": 23, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/session_created_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal, TypeAlias from ..._models import BaseModel from .realtime_session_create_request import RealtimeSessionCreateRequest from .realtime_transcription_session_create_request...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/session_created_event.py", "license": "Apache License 2.0", "lines": 20, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/realtime/session_update_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union, Optional from typing_extensions import Literal, TypeAlias from ..._models import BaseModel from .realtime_session_create_request import RealtimeSessionCreateRequest from .realtime_transcription_session_crea...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/session_update_event.py", "license": "Apache License 2.0", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/session_update_event_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union from typing_extensions import Literal, Required, TypeAlias, TypedDict from .realtime_session_create_request_param import RealtimeSessionCreateRequestParam from .realtime_t...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/session_update_event_param.py", "license": "Apache License 2.0", "lines": 31, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/realtime/session_updated_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union from typing_extensions import Literal, TypeAlias from ..._models import BaseModel from .realtime_session_create_request import RealtimeSessionCreateRequest from .realtime_transcription_session_create_request...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/realtime/session_updated_event.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/web_search_preview_tool.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["WebSearchPreviewTool", "UserLocation"] class UserLocation(BaseModel): """The user's location.""" type: Litera...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/web_search_preview_tool.py", "license": "Apache License 2.0", "lines": 38, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/web_search_preview_tool_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["WebSearchPreviewToolParam", "UserLocation"] class UserLocation(TypedDict, total=False): """...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/web_search_preview_tool_param.py", "license": "Apache License 2.0", "lines": 38, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/webhooks/realtime_call_incoming_webhook_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["RealtimeCallIncomingWebhookEvent", "Data", "DataSipHeader"] class DataSipHeader(BaseModel): """A header from...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/webhooks/realtime_call_incoming_webhook_event.py", "license": "Apache License 2.0", "lines": 29, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:tests/api_resources/realtime/test_client_secrets.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from typing import Any, cast import pytest from openai import OpenAI, AsyncOpenAI from tests.utils import assert_matches_type from openai.types.realtime import ClientSecretCreateRespons...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/realtime/test_client_secrets.py", "license": "Apache License 2.0", "lines": 181, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:tests/api_resources/test_realtime.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os import pytest base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestRealtime: parametrize = pytest.mark.parametrize("client", [False, True], indirect=T...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/test_realtime.py", "license": "Apache License 2.0", "lines": 11, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:src/openai/resources/conversations/conversations.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Iterable, Optional import httpx from ... import _legacy_response from .items import ( Items, AsyncItems, ItemsWithRawResponse, AsyncItemsWithRawResponse, It...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/conversations/conversations.py", "license": "Apache License 2.0", "lines": 401, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:src/openai/resources/conversations/items.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Any, List, Iterable, cast from typing_extensions import Literal import httpx from ... import _legacy_response from ..._types import Body, Omit, Query, Headers, NotGiven, omit, ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/resources/conversations/items.py", "license": "Apache License 2.0", "lines": 472, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:src/openai/types/conversations/computer_screenshot_content.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ComputerScreenshotContent"] class ComputerScreenshotContent(BaseModel): """A screenshot of a computer.""" fil...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/computer_screenshot_content.py", "license": "Apache License 2.0", "lines": 15, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/conversation.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["Conversation"] class Conversation(BaseModel): id: str """The unique ID of the conversation.""" created_at: int """ The time a...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/conversation.py", "license": "Apache License 2.0", "lines": 21, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/conversations/conversation_create_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Iterable, Optional from typing_extensions import TypedDict from ..shared_params.metadata import Metadata from ..responses.response_input_item_param import ResponseInputItemParam...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/conversation_create_params.py", "license": "Apache License 2.0", "lines": 19, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/conversations/conversation_deleted_resource.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ConversationDeletedResource"] class ConversationDeletedResource(BaseModel): id: str deleted: bool object: Literal["conversation.dele...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/conversation_deleted_resource.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/conversation_item.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Dict, List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from .message import Message from ..._utils import PropertyInfo from ..._models import BaseModel from ..responses.response_re...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/conversation_item.py", "license": "Apache License 2.0", "lines": 177, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/conversation_item_list.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List from typing_extensions import Literal from ..._models import BaseModel from .conversation_item import ConversationItem __all__ = ["ConversationItemList"] class ConversationItemList(BaseModel): """A lis...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/conversation_item_list.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/conversation_update_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Optional from typing_extensions import Required, TypedDict from ..shared_params.metadata import Metadata __all__ = ["ConversationUpdateParams"] class ConversationUpdateParams...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/conversation_update_params.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/conversations/item_create_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List, Iterable from typing_extensions import Required, TypedDict from ..responses.response_includable import ResponseIncludable from ..responses.response_input_item_param import...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/item_create_params.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/item_list_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List from typing_extensions import Literal, TypedDict from ..responses.response_includable import ResponseIncludable __all__ = ["ItemListParams"] class ItemListParams(TypedDi...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/item_list_params.py", "license": "Apache License 2.0", "lines": 37, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/conversations/item_retrieve_params.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List from typing_extensions import Required, TypedDict from ..responses.response_includable import ResponseIncludable __all__ = ["ItemRetrieveParams"] class ItemRetrieveParam...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/item_retrieve_params.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/message.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Union from typing_extensions import Literal, Annotated, TypeAlias from ..._utils import PropertyInfo from ..._models import BaseModel from .text_content import TextContent from .summary_text_content import S...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/message.py", "license": "Apache License 2.0", "lines": 52, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/summary_text_content.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["SummaryTextContent"] class SummaryTextContent(BaseModel): """A summary text from the model.""" text: str """A summary of the reasonin...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/summary_text_content.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/conversations/text_content.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["TextContent"] class TextContent(BaseModel): """A text content.""" text: str type: Literal["text"]
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/conversations/text_content.py", "license": "Apache License 2.0", "lines": 8, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_conversation_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from ..._models import BaseModel __all__ = ["ResponseConversationParam"] class ResponseConversationParam(BaseModel): """The conversation that this response belongs to.""" id: str """The unique ID of the conversation."...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_conversation_param.py", "license": "Apache License 2.0", "lines": 7, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:tests/api_resources/conversations/test_items.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from typing import Any, cast import pytest from openai import OpenAI, AsyncOpenAI from tests.utils import assert_matches_type from openai.pagination import SyncConversationCursorPage, A...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/conversations/test_items.py", "license": "Apache License 2.0", "lines": 426, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:tests/api_resources/test_conversations.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import os from typing import Any, cast import pytest from openai import OpenAI, AsyncOpenAI from tests.utils import assert_matches_type from openai.types.conversations import ( Conversation, ...
{ "repo_id": "openai/openai-python", "file_path": "tests/api_resources/test_conversations.py", "license": "Apache License 2.0", "lines": 278, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:scripts/detect-breaking-changes.py
from __future__ import annotations import sys from typing import Iterator from pathlib import Path import rich import griffe from rich.text import Text from rich.style import Style def public_members(obj: griffe.Object | griffe.Alias) -> dict[str, griffe.Object | griffe.Alias]: if isinstance(obj, griffe.Alias):...
{ "repo_id": "openai/openai-python", "file_path": "scripts/detect-breaking-changes.py", "license": "Apache License 2.0", "lines": 61, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_complex
openai/openai-python:tests/lib/snapshots.py
from __future__ import annotations import os import json from typing import Any, Callable, Awaitable from typing_extensions import TypeVar import httpx from respx import MockRouter from inline_snapshot import get_snapshot_value from openai import OpenAI, AsyncOpenAI _T = TypeVar("_T") def make_snapshot_request( ...
{ "repo_id": "openai/openai-python", "file_path": "tests/lib/snapshots.py", "license": "Apache License 2.0", "lines": 78, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:tests/compat/test_tool_param.py
from openai.types.chat import ChatCompletionToolParam def test_tool_param_can_be_instantiated() -> None: assert ChatCompletionToolParam(type="function", function={"name": "test"}) == { "function": {"name": "test"}, "type": "function", }
{ "repo_id": "openai/openai-python", "file_path": "tests/compat/test_tool_param.py", "license": "Apache License 2.0", "lines": 6, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
test
openai/openai-python:src/openai/types/chat/chat_completion_allowed_tool_choice_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict from .chat_completion_allowed_tools_param import ChatCompletionAllowedToolsParam __all__ = ["ChatCompletionAllowedToolChoiceParam"] cl...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_allowed_tool_choice_param.py", "license": "Apache License 2.0", "lines": 11, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_allowed_tools_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Iterable from typing_extensions import Literal, Required, TypedDict __all__ = ["ChatCompletionAllowedToolsParam"] class ChatCompletionAllowedToolsParam(TypedDict, total=...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_allowed_tools_param.py", "license": "Apache License 2.0", "lines": 23, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/chat/chat_completion_custom_tool_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "ChatCompletionCustomToolParam", "Custom", "CustomFormat", "CustomFormatT...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_custom_tool_param.py", "license": "Apache License 2.0", "lines": 43, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_function_tool_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict from ..shared_params.function_definition import FunctionDefinition __all__ = ["ChatCompletionFunctionToolParam"] class ChatCompletionF...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_function_tool_param.py", "license": "Apache License 2.0", "lines": 10, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_message_custom_tool_call.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ChatCompletionMessageCustomToolCall", "Custom"] class Custom(BaseModel): """The custom tool that the model called.""" input: str """T...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_message_custom_tool_call.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_message_custom_tool_call_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["ChatCompletionMessageCustomToolCallParam", "Custom"] class Custom(TypedDict, total=False): """The custom tool that the ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_message_custom_tool_call_param.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/chat/chat_completion_message_function_tool_call.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ChatCompletionMessageFunctionToolCall", "Function"] class Function(BaseModel): """The function that the model called.""" arguments: str ...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_message_function_tool_call.py", "license": "Apache License 2.0", "lines": 23, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/chat/chat_completion_message_function_tool_call_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["ChatCompletionMessageFunctionToolCallParam", "Function"] class Function(TypedDict, total=False): """The function that t...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_message_function_tool_call_param.py", "license": "Apache License 2.0", "lines": 23, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/chat/chat_completion_named_tool_choice_custom_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict __all__ = ["ChatCompletionNamedToolChoiceCustomParam", "Custom"] class Custom(TypedDict, total=False): name: Required[str] """T...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/chat/chat_completion_named_tool_choice_custom_param.py", "license": "Apache License 2.0", "lines": 14, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/custom_tool.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel from ..shared.custom_tool_input_format import CustomToolInputFormat __all__ = ["CustomTool"] class CustomTool(BaseModel): """A...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/custom_tool.py", "license": "Apache License 2.0", "lines": 18, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/custom_tool_param.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing_extensions import Literal, Required, TypedDict from ..shared_params.custom_tool_input_format import CustomToolInputFormat __all__ = ["CustomToolParam"] class CustomToolParam(TypedDi...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/custom_tool_param.py", "license": "Apache License 2.0", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
documentation
openai/openai-python:src/openai/types/responses/response_custom_tool_call.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseCustomToolCall"] class ResponseCustomToolCall(BaseModel): """A call to a custom tool created by the model....
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_custom_tool_call.py", "license": "Apache License 2.0", "lines": 17, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_custom_tool_call_input_delta_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseCustomToolCallInputDeltaEvent"] class ResponseCustomToolCallInputDeltaEvent(BaseModel): """Event representing a delta (partial update)...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_custom_tool_call_input_delta_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple
openai/openai-python:src/openai/types/responses/response_custom_tool_call_input_done_event.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseCustomToolCallInputDoneEvent"] class ResponseCustomToolCallInputDoneEvent(BaseModel): """Event indicating that input for a custom tool...
{ "repo_id": "openai/openai-python", "file_path": "src/openai/types/responses/response_custom_tool_call_input_done_event.py", "license": "Apache License 2.0", "lines": 16, "canary_id": -1, "canary_value": "", "pii_type": "", "provider": "", "regex_pattern": "", "repetition": -1, "template": "" }
function_simple