Defines data models for OpenAI assistant file search tool calls and agent properties. Use when integrating OpenAI API responses into Python applications.
# 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
from ..._models import BaseModel
__all__ = ["BetaResponseFileSearchToolCall", "Agent", "Result"]
class Agent(BaseModel):
"""The agent that produced this item."""
agent_name: str
"""The canonical name of the agent that produced this item."""
class Result(BaseModel):
attributes: Optional[Dict[str, Union[str, float, bool]]] = None
"""Set of 16 key-value pairs that can be attached to an object.
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key