File Search Tool Call (runs/file_search_tool_call_delta.py)

openai-python · src/openai/types/beta/threads/runs/file_search_tool_call_delta.py · python · Apache-2.0
ai, integration, search, lang:python

Represents a delta update for a file search tool call in OpenAI threads. Use this when handling streaming responses from the OpenAI API.

# 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 Optional
from typing_extensions import Literal

from ....._models import BaseModel

__all__ = ["FileSearchToolCallDelta"]


class FileSearchToolCallDelta(BaseModel):
    file_search: object
    """For now, this is always going to be an empty object."""

    index: int
    """The index of the tool call in the tool calls array."""

    type: Literal["file_search"]
    """The type of tool call.

    This is always going to be `file_search` for this type of tool call.
    """

    id: O

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key