agentlin-client 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of agentlin-client might be problematic. Click here for more details.

Files changed (123) hide show
  1. agentlin_client/__init__.py +90 -0
  2. agentlin_client/_base_client.py +1995 -0
  3. agentlin_client/_client.py +403 -0
  4. agentlin_client/_compat.py +219 -0
  5. agentlin_client/_constants.py +14 -0
  6. agentlin_client/_exceptions.py +108 -0
  7. agentlin_client/_files.py +123 -0
  8. agentlin_client/_models.py +835 -0
  9. agentlin_client/_qs.py +150 -0
  10. agentlin_client/_resource.py +43 -0
  11. agentlin_client/_response.py +832 -0
  12. agentlin_client/_streaming.py +333 -0
  13. agentlin_client/_types.py +260 -0
  14. agentlin_client/_utils/__init__.py +64 -0
  15. agentlin_client/_utils/_compat.py +45 -0
  16. agentlin_client/_utils/_datetime_parse.py +136 -0
  17. agentlin_client/_utils/_logs.py +25 -0
  18. agentlin_client/_utils/_proxy.py +65 -0
  19. agentlin_client/_utils/_reflection.py +42 -0
  20. agentlin_client/_utils/_resources_proxy.py +24 -0
  21. agentlin_client/_utils/_streams.py +12 -0
  22. agentlin_client/_utils/_sync.py +86 -0
  23. agentlin_client/_utils/_transform.py +457 -0
  24. agentlin_client/_utils/_typing.py +156 -0
  25. agentlin_client/_utils/_utils.py +421 -0
  26. agentlin_client/_version.py +4 -0
  27. agentlin_client/lib/.keep +4 -0
  28. agentlin_client/py.typed +0 -0
  29. agentlin_client/resources/__init__.py +33 -0
  30. agentlin_client/resources/conversations/__init__.py +33 -0
  31. agentlin_client/resources/conversations/conversations.py +489 -0
  32. agentlin_client/resources/conversations/items.py +558 -0
  33. agentlin_client/resources/responses.py +1136 -0
  34. agentlin_client/types/__init__.py +22 -0
  35. agentlin_client/types/conversation_create_params.py +28 -0
  36. agentlin_client/types/conversation_delete_response.py +15 -0
  37. agentlin_client/types/conversation_update_params.py +20 -0
  38. agentlin_client/types/conversations/__init__.py +74 -0
  39. agentlin_client/types/conversations/code_interpreter_tool_call.py +55 -0
  40. agentlin_client/types/conversations/code_interpreter_tool_call_param.py +54 -0
  41. agentlin_client/types/conversations/computer_screenshot_image.py +22 -0
  42. agentlin_client/types/conversations/computer_screenshot_image_param.py +21 -0
  43. agentlin_client/types/conversations/computer_tool_call.py +201 -0
  44. agentlin_client/types/conversations/computer_tool_call_output_resource.py +37 -0
  45. agentlin_client/types/conversations/computer_tool_call_param.py +199 -0
  46. agentlin_client/types/conversations/computer_tool_call_safety_check.py +16 -0
  47. agentlin_client/types/conversations/computer_tool_call_safety_check_param.py +18 -0
  48. agentlin_client/types/conversations/conversation_item.py +133 -0
  49. agentlin_client/types/conversations/conversation_item_list.py +26 -0
  50. agentlin_client/types/conversations/conversation_resource.py +32 -0
  51. agentlin_client/types/conversations/custom_tool_call.py +25 -0
  52. agentlin_client/types/conversations/custom_tool_call_output.py +26 -0
  53. agentlin_client/types/conversations/custom_tool_call_output_param.py +27 -0
  54. agentlin_client/types/conversations/custom_tool_call_param.py +24 -0
  55. agentlin_client/types/conversations/easy_input_message.py +26 -0
  56. agentlin_client/types/conversations/easy_input_message_param.py +27 -0
  57. agentlin_client/types/conversations/file_search_tool_call.py +42 -0
  58. agentlin_client/types/conversations/file_search_tool_call_param.py +44 -0
  59. agentlin_client/types/conversations/function_and_custom_tool_call_output.py +15 -0
  60. agentlin_client/types/conversations/function_and_custom_tool_call_output_param.py +16 -0
  61. agentlin_client/types/conversations/function_call_item_status.py +7 -0
  62. agentlin_client/types/conversations/function_tool_call.py +32 -0
  63. agentlin_client/types/conversations/function_tool_call_output_resource.py +33 -0
  64. agentlin_client/types/conversations/function_tool_call_param.py +31 -0
  65. agentlin_client/types/conversations/function_tool_call_resource.py +10 -0
  66. agentlin_client/types/conversations/image_gen_tool_call.py +22 -0
  67. agentlin_client/types/conversations/image_gen_tool_call_param.py +22 -0
  68. agentlin_client/types/conversations/includable.py +14 -0
  69. agentlin_client/types/conversations/input_content.py +32 -0
  70. agentlin_client/types/conversations/input_content_param.py +30 -0
  71. agentlin_client/types/conversations/input_file_content.py +25 -0
  72. agentlin_client/types/conversations/input_file_content_param.py +25 -0
  73. agentlin_client/types/conversations/input_image_content.py +28 -0
  74. agentlin_client/types/conversations/input_image_content_param.py +28 -0
  75. agentlin_client/types/conversations/input_item.py +209 -0
  76. agentlin_client/types/conversations/input_item_param.py +203 -0
  77. agentlin_client/types/conversations/input_message.py +30 -0
  78. agentlin_client/types/conversations/input_message_param.py +31 -0
  79. agentlin_client/types/conversations/input_text_content.py +15 -0
  80. agentlin_client/types/conversations/input_text_content_param.py +15 -0
  81. agentlin_client/types/conversations/item_create_params.py +24 -0
  82. agentlin_client/types/conversations/item_list_params.py +50 -0
  83. agentlin_client/types/conversations/item_retrieve_params.py +22 -0
  84. agentlin_client/types/conversations/local_shell_tool_call.py +45 -0
  85. agentlin_client/types/conversations/local_shell_tool_call_output.py +22 -0
  86. agentlin_client/types/conversations/local_shell_tool_call_output_param.py +22 -0
  87. agentlin_client/types/conversations/local_shell_tool_call_param.py +47 -0
  88. agentlin_client/types/conversations/mcp_approval_request.py +24 -0
  89. agentlin_client/types/conversations/mcp_approval_request_param.py +24 -0
  90. agentlin_client/types/conversations/mcp_approval_response_resource.py +25 -0
  91. agentlin_client/types/conversations/mcp_list_tools.py +39 -0
  92. agentlin_client/types/conversations/mcp_list_tools_param.py +39 -0
  93. agentlin_client/types/conversations/mcp_tool_call.py +44 -0
  94. agentlin_client/types/conversations/mcp_tool_call_param.py +44 -0
  95. agentlin_client/types/conversations/output_message.py +34 -0
  96. agentlin_client/types/conversations/output_message_param.py +34 -0
  97. agentlin_client/types/conversations/output_text_content.py +117 -0
  98. agentlin_client/types/conversations/output_text_content_param.py +115 -0
  99. agentlin_client/types/conversations/reasoning_item.py +44 -0
  100. agentlin_client/types/conversations/reasoning_item_param.py +45 -0
  101. agentlin_client/types/conversations/reasoning_text_content.py +15 -0
  102. agentlin_client/types/conversations/reasoning_text_content_param.py +15 -0
  103. agentlin_client/types/conversations/refusal_content.py +15 -0
  104. agentlin_client/types/conversations/refusal_content_param.py +15 -0
  105. agentlin_client/types/conversations/web_search_tool_call.py +67 -0
  106. agentlin_client/types/conversations/web_search_tool_call_param.py +66 -0
  107. agentlin_client/types/mcp_tool_filter.py +20 -0
  108. agentlin_client/types/mcp_tool_filter_param.py +22 -0
  109. agentlin_client/types/model_response_properties_standard.py +87 -0
  110. agentlin_client/types/response.py +166 -0
  111. agentlin_client/types/response_create_params.py +497 -0
  112. agentlin_client/types/response_list_input_items_params.py +34 -0
  113. agentlin_client/types/response_list_input_items_response.py +70 -0
  114. agentlin_client/types/response_properties.py +328 -0
  115. agentlin_client/types/response_retrieve_params.py +42 -0
  116. agentlin_client/types/response_tool.py +495 -0
  117. agentlin_client/types/response_tool_param.py +491 -0
  118. agentlin_client/types/text_response_format_configuration.py +59 -0
  119. agentlin_client/types/text_response_format_configuration_param.py +54 -0
  120. agentlin_client-0.1.0.dist-info/METADATA +429 -0
  121. agentlin_client-0.1.0.dist-info/RECORD +123 -0
  122. agentlin_client-0.1.0.dist-info/WHEEL +4 -0
  123. agentlin_client-0.1.0.dist-info/licenses/LICENSE +7 -0
@@ -0,0 +1,199 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union, Iterable
6
+ from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
+
8
+ from ..._types import SequenceNotStr
9
+ from .computer_tool_call_safety_check_param import ComputerToolCallSafetyCheckParam
10
+
11
+ __all__ = [
12
+ "ComputerToolCallParam",
13
+ "Action",
14
+ "ActionClick",
15
+ "ActionDoubleClick",
16
+ "ActionDrag",
17
+ "ActionDragPath",
18
+ "ActionKeypress",
19
+ "ActionMove",
20
+ "ActionScreenshot",
21
+ "ActionScroll",
22
+ "ActionType",
23
+ "ActionWait",
24
+ ]
25
+
26
+
27
+ class ActionClick(TypedDict, total=False):
28
+ button: Required[Literal["left", "right", "wheel", "back", "forward"]]
29
+ """Indicates which mouse button was pressed during the click.
30
+
31
+ One of `left`, `right`, `wheel`, `back`, or `forward`.
32
+ """
33
+
34
+ type: Required[Literal["click"]]
35
+ """Specifies the event type.
36
+
37
+ For a click action, this property is always set to `click`.
38
+ """
39
+
40
+ x: Required[int]
41
+ """The x-coordinate where the click occurred."""
42
+
43
+ y: Required[int]
44
+ """The y-coordinate where the click occurred."""
45
+
46
+
47
+ class ActionDoubleClick(TypedDict, total=False):
48
+ type: Required[Literal["double_click"]]
49
+ """Specifies the event type.
50
+
51
+ For a double click action, this property is always set to `double_click`.
52
+ """
53
+
54
+ x: Required[int]
55
+ """The x-coordinate where the double click occurred."""
56
+
57
+ y: Required[int]
58
+ """The y-coordinate where the double click occurred."""
59
+
60
+
61
+ class ActionDragPath(TypedDict, total=False):
62
+ x: Required[int]
63
+ """The x-coordinate."""
64
+
65
+ y: Required[int]
66
+ """The y-coordinate."""
67
+
68
+
69
+ class ActionDrag(TypedDict, total=False):
70
+ path: Required[Iterable[ActionDragPath]]
71
+ """An array of coordinates representing the path of the drag action.
72
+
73
+ Coordinates will appear as an array of objects, eg
74
+
75
+ ```
76
+ [
77
+ { x: 100, y: 200 },
78
+ { x: 200, y: 300 }
79
+ ]
80
+ ```
81
+ """
82
+
83
+ type: Required[Literal["drag"]]
84
+ """Specifies the event type.
85
+
86
+ For a drag action, this property is always set to `drag`.
87
+ """
88
+
89
+
90
+ class ActionKeypress(TypedDict, total=False):
91
+ keys: Required[SequenceNotStr[str]]
92
+ """The combination of keys the model is requesting to be pressed.
93
+
94
+ This is an array of strings, each representing a key.
95
+ """
96
+
97
+ type: Required[Literal["keypress"]]
98
+ """Specifies the event type.
99
+
100
+ For a keypress action, this property is always set to `keypress`.
101
+ """
102
+
103
+
104
+ class ActionMove(TypedDict, total=False):
105
+ type: Required[Literal["move"]]
106
+ """Specifies the event type.
107
+
108
+ For a move action, this property is always set to `move`.
109
+ """
110
+
111
+ x: Required[int]
112
+ """The x-coordinate to move to."""
113
+
114
+ y: Required[int]
115
+ """The y-coordinate to move to."""
116
+
117
+
118
+ class ActionScreenshot(TypedDict, total=False):
119
+ type: Required[Literal["screenshot"]]
120
+ """Specifies the event type.
121
+
122
+ For a screenshot action, this property is always set to `screenshot`.
123
+ """
124
+
125
+
126
+ class ActionScroll(TypedDict, total=False):
127
+ scroll_x: Required[int]
128
+ """The horizontal scroll distance."""
129
+
130
+ scroll_y: Required[int]
131
+ """The vertical scroll distance."""
132
+
133
+ type: Required[Literal["scroll"]]
134
+ """Specifies the event type.
135
+
136
+ For a scroll action, this property is always set to `scroll`.
137
+ """
138
+
139
+ x: Required[int]
140
+ """The x-coordinate where the scroll occurred."""
141
+
142
+ y: Required[int]
143
+ """The y-coordinate where the scroll occurred."""
144
+
145
+
146
+ class ActionType(TypedDict, total=False):
147
+ text: Required[str]
148
+ """The text to type."""
149
+
150
+ type: Required[Literal["type"]]
151
+ """Specifies the event type.
152
+
153
+ For a type action, this property is always set to `type`.
154
+ """
155
+
156
+
157
+ class ActionWait(TypedDict, total=False):
158
+ type: Required[Literal["wait"]]
159
+ """Specifies the event type.
160
+
161
+ For a wait action, this property is always set to `wait`.
162
+ """
163
+
164
+
165
+ Action: TypeAlias = Union[
166
+ ActionClick,
167
+ ActionDoubleClick,
168
+ ActionDrag,
169
+ ActionKeypress,
170
+ ActionMove,
171
+ ActionScreenshot,
172
+ ActionScroll,
173
+ ActionType,
174
+ ActionWait,
175
+ ]
176
+
177
+
178
+ class ComputerToolCallParam(TypedDict, total=False):
179
+ id: Required[str]
180
+ """The unique ID of the computer call."""
181
+
182
+ action: Required[Action]
183
+ """A click action."""
184
+
185
+ call_id: Required[str]
186
+ """An identifier used when responding to the tool call with output."""
187
+
188
+ pending_safety_checks: Required[Iterable[ComputerToolCallSafetyCheckParam]]
189
+ """The pending safety checks for the computer call."""
190
+
191
+ status: Required[Literal["in_progress", "completed", "incomplete"]]
192
+ """The status of the item.
193
+
194
+ One of `in_progress`, `completed`, or `incomplete`. Populated when items are
195
+ returned via API.
196
+ """
197
+
198
+ type: Required[Literal["computer_call"]]
199
+ """The type of the computer call. Always `computer_call`."""
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["ComputerToolCallSafetyCheck"]
6
+
7
+
8
+ class ComputerToolCallSafetyCheck(BaseModel):
9
+ id: str
10
+ """The ID of the pending safety check."""
11
+
12
+ code: str
13
+ """The type of the pending safety check."""
14
+
15
+ message: str
16
+ """Details about the pending safety check."""
@@ -0,0 +1,18 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Required, TypedDict
6
+
7
+ __all__ = ["ComputerToolCallSafetyCheckParam"]
8
+
9
+
10
+ class ComputerToolCallSafetyCheckParam(TypedDict, total=False):
11
+ id: Required[str]
12
+ """The ID of the pending safety check."""
13
+
14
+ code: Required[str]
15
+ """The type of the pending safety check."""
16
+
17
+ message: Required[str]
18
+ """Details about the pending safety check."""
@@ -0,0 +1,133 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Union, Optional
4
+ from typing_extensions import Literal, Annotated, TypeAlias
5
+
6
+ from ..._utils import PropertyInfo
7
+ from ..._models import BaseModel
8
+ from .mcp_tool_call import McpToolCall
9
+ from .mcp_list_tools import McpListTools
10
+ from .reasoning_item import ReasoningItem
11
+ from .refusal_content import RefusalContent
12
+ from .custom_tool_call import CustomToolCall
13
+ from .computer_tool_call import ComputerToolCall
14
+ from .input_file_content import InputFileContent
15
+ from .input_text_content import InputTextContent
16
+ from .image_gen_tool_call import ImageGenToolCall
17
+ from .input_image_content import InputImageContent
18
+ from .output_text_content import OutputTextContent
19
+ from .mcp_approval_request import McpApprovalRequest
20
+ from .web_search_tool_call import WebSearchToolCall
21
+ from .file_search_tool_call import FileSearchToolCall
22
+ from .local_shell_tool_call import LocalShellToolCall
23
+ from .reasoning_text_content import ReasoningTextContent
24
+ from .custom_tool_call_output import CustomToolCallOutput
25
+ from .code_interpreter_tool_call import CodeInterpreterToolCall
26
+ from .function_tool_call_resource import FunctionToolCallResource
27
+ from .local_shell_tool_call_output import LocalShellToolCallOutput
28
+ from .mcp_approval_response_resource import McpApprovalResponseResource
29
+ from .computer_tool_call_output_resource import ComputerToolCallOutputResource
30
+ from .function_tool_call_output_resource import FunctionToolCallOutputResource
31
+
32
+ __all__ = [
33
+ "ConversationItem",
34
+ "Message",
35
+ "MessageContent",
36
+ "MessageContentText",
37
+ "MessageContentSummaryText",
38
+ "MessageContentComputerScreenshot",
39
+ ]
40
+
41
+
42
+ class MessageContentText(BaseModel):
43
+ text: str
44
+
45
+ type: Literal["text"]
46
+
47
+
48
+ class MessageContentSummaryText(BaseModel):
49
+ text: str
50
+ """A summary of the reasoning output from the model so far."""
51
+
52
+ type: Literal["summary_text"]
53
+ """The type of the object. Always `summary_text`."""
54
+
55
+
56
+ class MessageContentComputerScreenshot(BaseModel):
57
+ file_id: Optional[str] = None
58
+ """The identifier of an uploaded file that contains the screenshot."""
59
+
60
+ image_url: Optional[str] = None
61
+ """The URL of the screenshot image."""
62
+
63
+ type: Literal["computer_screenshot"]
64
+ """Specifies the event type.
65
+
66
+ For a computer screenshot, this property is always set to `computer_screenshot`.
67
+ """
68
+
69
+
70
+ MessageContent: TypeAlias = Annotated[
71
+ Union[
72
+ InputTextContent,
73
+ OutputTextContent,
74
+ MessageContentText,
75
+ MessageContentSummaryText,
76
+ ReasoningTextContent,
77
+ RefusalContent,
78
+ InputImageContent,
79
+ MessageContentComputerScreenshot,
80
+ InputFileContent,
81
+ ],
82
+ PropertyInfo(discriminator="type"),
83
+ ]
84
+
85
+
86
+ class Message(BaseModel):
87
+ id: str
88
+ """The unique ID of the message."""
89
+
90
+ content: List[MessageContent]
91
+ """The content of the message"""
92
+
93
+ role: Literal["unknown", "user", "assistant", "system", "critic", "discriminator", "developer", "tool"]
94
+ """The role of the message.
95
+
96
+ One of `unknown`, `user`, `assistant`, `system`, `critic`, `discriminator`,
97
+ `developer`, or `tool`.
98
+ """
99
+
100
+ status: Literal["in_progress", "completed", "incomplete"]
101
+ """The status of item.
102
+
103
+ One of `in_progress`, `completed`, or `incomplete`. Populated when items are
104
+ returned via API.
105
+ """
106
+
107
+ type: Literal["message"]
108
+ """The type of the message. Always set to `message`."""
109
+
110
+
111
+ ConversationItem: TypeAlias = Annotated[
112
+ Union[
113
+ Message,
114
+ FunctionToolCallResource,
115
+ FunctionToolCallOutputResource,
116
+ FileSearchToolCall,
117
+ WebSearchToolCall,
118
+ ImageGenToolCall,
119
+ ComputerToolCall,
120
+ ComputerToolCallOutputResource,
121
+ ReasoningItem,
122
+ CodeInterpreterToolCall,
123
+ LocalShellToolCall,
124
+ LocalShellToolCallOutput,
125
+ McpListTools,
126
+ McpApprovalRequest,
127
+ McpApprovalResponseResource,
128
+ McpToolCall,
129
+ CustomToolCall,
130
+ CustomToolCallOutput,
131
+ ],
132
+ PropertyInfo(discriminator="type"),
133
+ ]
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+ from .conversation_item import ConversationItem
8
+
9
+ __all__ = ["ConversationItemList"]
10
+
11
+
12
+ class ConversationItemList(BaseModel):
13
+ data: List[ConversationItem]
14
+ """A list of conversation items."""
15
+
16
+ first_id: str
17
+ """The ID of the first item in the list."""
18
+
19
+ has_more: bool
20
+ """Whether there are more items available."""
21
+
22
+ last_id: str
23
+ """The ID of the last item in the list."""
24
+
25
+ object: Literal["list"]
26
+ """The type of object returned, must be `list`."""
@@ -0,0 +1,32 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["ConversationResource"]
9
+
10
+
11
+ class ConversationResource(BaseModel):
12
+ id: str
13
+ """The unique ID of the conversation."""
14
+
15
+ created_at: int
16
+ """
17
+ The time at which the conversation was created, measured in seconds since the
18
+ Unix epoch.
19
+ """
20
+
21
+ metadata: Optional[Dict[str, str]] = None
22
+ """Set of 16 key-value pairs that can be attached to an object.
23
+
24
+ This can be useful for storing additional information about the object in a
25
+ structured format, and querying for objects via API or the dashboard.
26
+
27
+ Keys are strings with a maximum length of 64 characters. Values are strings with
28
+ a maximum length of 512 characters.
29
+ """
30
+
31
+ object: Literal["conversation"]
32
+ """The object type, which is always `conversation`."""
@@ -0,0 +1,25 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["CustomToolCall"]
9
+
10
+
11
+ class CustomToolCall(BaseModel):
12
+ call_id: str
13
+ """An identifier used to map this custom tool call to a tool call output."""
14
+
15
+ input: str
16
+ """The input for the custom tool call generated by the model."""
17
+
18
+ name: str
19
+ """The name of the custom tool being called."""
20
+
21
+ type: Literal["custom_tool_call"]
22
+ """The type of the custom tool call. Always `custom_tool_call`."""
23
+
24
+ id: Optional[str] = None
25
+ """The unique ID of the custom tool call in the OpenAI platform."""
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Union, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+ from .function_and_custom_tool_call_output import FunctionAndCustomToolCallOutput
8
+
9
+ __all__ = ["CustomToolCallOutput"]
10
+
11
+
12
+ class CustomToolCallOutput(BaseModel):
13
+ call_id: str
14
+ """The call ID, used to map this custom tool call output to a custom tool call."""
15
+
16
+ output: Union[str, List[FunctionAndCustomToolCallOutput]]
17
+ """
18
+ The output from the custom tool call generated by your code. Can be a string or
19
+ an list of output content.
20
+ """
21
+
22
+ type: Literal["custom_tool_call_output"]
23
+ """The type of the custom tool call output. Always `custom_tool_call_output`."""
24
+
25
+ id: Optional[str] = None
26
+ """The unique ID of the custom tool call output in the OpenAI platform."""
@@ -0,0 +1,27 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union, Iterable
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from .function_and_custom_tool_call_output_param import FunctionAndCustomToolCallOutputParam
9
+
10
+ __all__ = ["CustomToolCallOutputParam"]
11
+
12
+
13
+ class CustomToolCallOutputParam(TypedDict, total=False):
14
+ call_id: Required[str]
15
+ """The call ID, used to map this custom tool call output to a custom tool call."""
16
+
17
+ output: Required[Union[str, Iterable[FunctionAndCustomToolCallOutputParam]]]
18
+ """
19
+ The output from the custom tool call generated by your code. Can be a string or
20
+ an list of output content.
21
+ """
22
+
23
+ type: Required[Literal["custom_tool_call_output"]]
24
+ """The type of the custom tool call output. Always `custom_tool_call_output`."""
25
+
26
+ id: str
27
+ """The unique ID of the custom tool call output in the OpenAI platform."""
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Required, TypedDict
6
+
7
+ __all__ = ["CustomToolCallParam"]
8
+
9
+
10
+ class CustomToolCallParam(TypedDict, total=False):
11
+ call_id: Required[str]
12
+ """An identifier used to map this custom tool call to a tool call output."""
13
+
14
+ input: Required[str]
15
+ """The input for the custom tool call generated by the model."""
16
+
17
+ name: Required[str]
18
+ """The name of the custom tool being called."""
19
+
20
+ type: Required[Literal["custom_tool_call"]]
21
+ """The type of the custom tool call. Always `custom_tool_call`."""
22
+
23
+ id: str
24
+ """The unique ID of the custom tool call in the OpenAI platform."""
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Union, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+ from .input_content import InputContent
8
+
9
+ __all__ = ["EasyInputMessage"]
10
+
11
+
12
+ class EasyInputMessage(BaseModel):
13
+ content: Union[str, List[InputContent]]
14
+ """
15
+ Text, image, or audio input to the model, used to generate a response. Can also
16
+ contain previous assistant responses.
17
+ """
18
+
19
+ role: Literal["user", "assistant", "system", "developer"]
20
+ """The role of the message input.
21
+
22
+ One of `user`, `assistant`, `system`, or `developer`.
23
+ """
24
+
25
+ type: Optional[Literal["message"]] = None
26
+ """The type of the message input. Always `message`."""
@@ -0,0 +1,27 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union, Iterable
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from .input_content_param import InputContentParam
9
+
10
+ __all__ = ["EasyInputMessageParam"]
11
+
12
+
13
+ class EasyInputMessageParam(TypedDict, total=False):
14
+ content: Required[Union[str, Iterable[InputContentParam]]]
15
+ """
16
+ Text, image, or audio input to the model, used to generate a response. Can also
17
+ contain previous assistant responses.
18
+ """
19
+
20
+ role: Required[Literal["user", "assistant", "system", "developer"]]
21
+ """The role of the message input.
22
+
23
+ One of `user`, `assistant`, `system`, or `developer`.
24
+ """
25
+
26
+ type: Literal["message"]
27
+ """The type of the message input. Always `message`."""
@@ -0,0 +1,42 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["FileSearchToolCall", "Result"]
9
+
10
+
11
+ class Result(BaseModel):
12
+ file_id: Optional[str] = None
13
+ """The unique ID of the file."""
14
+
15
+ filename: Optional[str] = None
16
+ """The name of the file."""
17
+
18
+ score: Optional[float] = None
19
+ """The relevance score of the file - a value between 0 and 1."""
20
+
21
+ text: Optional[str] = None
22
+ """The text that was retrieved from the file."""
23
+
24
+
25
+ class FileSearchToolCall(BaseModel):
26
+ id: str
27
+ """The unique ID of the file search tool call."""
28
+
29
+ queries: List[str]
30
+ """The queries used to search for files."""
31
+
32
+ status: Literal["in_progress", "searching", "completed", "incomplete", "failed"]
33
+ """The status of the file search tool call.
34
+
35
+ One of `in_progress`, `searching`, `incomplete` or `failed`,
36
+ """
37
+
38
+ type: Literal["file_search_call"]
39
+ """The type of the file search tool call. Always `file_search_call`."""
40
+
41
+ results: Optional[List[Result]] = None
42
+ """The results of the file search tool call."""
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Iterable, Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from ..._types import SequenceNotStr
9
+
10
+ __all__ = ["FileSearchToolCallParam", "Result"]
11
+
12
+
13
+ class Result(TypedDict, total=False):
14
+ file_id: str
15
+ """The unique ID of the file."""
16
+
17
+ filename: str
18
+ """The name of the file."""
19
+
20
+ score: float
21
+ """The relevance score of the file - a value between 0 and 1."""
22
+
23
+ text: str
24
+ """The text that was retrieved from the file."""
25
+
26
+
27
+ class FileSearchToolCallParam(TypedDict, total=False):
28
+ id: Required[str]
29
+ """The unique ID of the file search tool call."""
30
+
31
+ queries: Required[SequenceNotStr[str]]
32
+ """The queries used to search for files."""
33
+
34
+ status: Required[Literal["in_progress", "searching", "completed", "incomplete", "failed"]]
35
+ """The status of the file search tool call.
36
+
37
+ One of `in_progress`, `searching`, `incomplete` or `failed`,
38
+ """
39
+
40
+ type: Required[Literal["file_search_call"]]
41
+ """The type of the file search tool call. Always `file_search_call`."""
42
+
43
+ results: Optional[Iterable[Result]]
44
+ """The results of the file search tool call."""