Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool resource support function #1532

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
16 changes: 16 additions & 0 deletions src/openai/types/beta/assistant_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,23 @@ class ToolResourcesFileSearch(TypedDict, total=False):
"""


class ToolResourcesFunction(TypedDict, total=False):
name: str
"""
Function name.
"""

file_ids: List[str]
"""
A list of [file](https://platform.openai.com/docs/api-reference/files) IDs made
available to the `code_interpreter` tool. There can be a maximum of 20 files
associated with the tool.
"""


class ToolResources(TypedDict, total=False):
code_interpreter: ToolResourcesCodeInterpreter

file_search: ToolResourcesFileSearch

function: List[ToolResourcesFunction]