Skip to content

Commit 8fe5741

Browse files
committed
fix(types): re-export more tool call types
1 parent 7aa3c78 commit 8fe5741

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/openai/types/chat/chat_completion_message_tool_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
from ..._utils import PropertyInfo
77
from .chat_completion_message_custom_tool_call import ChatCompletionMessageCustomToolCall
8-
from .chat_completion_message_function_tool_call import ChatCompletionMessageFunctionToolCall
8+
from .chat_completion_message_function_tool_call import Function as Function, ChatCompletionMessageFunctionToolCall
99

10-
__all__ = ["ChatCompletionMessageToolCall"]
10+
__all__ = ["ChatCompletionMessageToolCall", "Function"]
1111

1212
ChatCompletionMessageToolCall: TypeAlias = Annotated[
1313
Union[ChatCompletionMessageFunctionToolCall, ChatCompletionMessageCustomToolCall],

src/openai/types/chat/chat_completion_tool_param.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44

55
from typing_extensions import TypeAlias
66

7-
from .chat_completion_function_tool_param import ChatCompletionFunctionToolParam
7+
from .chat_completion_function_tool_param import (
8+
FunctionDefinition as FunctionDefinition,
9+
ChatCompletionFunctionToolParam,
10+
)
811

9-
__all__ = ["ChatCompletionToolParam"]
12+
__all__ = ["ChatCompletionToolParam", "FunctionDefinition"]
1013

1114
ChatCompletionToolParam: TypeAlias = ChatCompletionFunctionToolParam

0 commit comments

Comments
 (0)