Defines data structures for various tool call responses in the OpenAI API. Use this to type-check model outputs involving tool execution.
# Source: https://github.com/openai/openai-python | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works # Provided via justclaw.it.com; keep this notice with the code. # File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details. from typing import Dict, List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias from .tool import Tool from ..._utils import PropertyInfo from ..._models import BaseModel from .mcp_tool_call_error import McpToolCallError from .response_output_message import ResponseOutputMessage from .response_reasoning_item import ResponseReasoningItem from .response_compaction_item import ResponseCompactionItem from .response_tool_search_call import ResponseToolSearchCall from .response_c ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key