Commit d5e79998
Changed files (7)
src
openai
src/openai/types/conversations/conversation_item.py
@@ -177,12 +177,25 @@ class McpCall(BaseModel):
type: Literal["mcp_call"]
"""The type of the item. Always `mcp_call`."""
+ approval_request_id: Optional[str] = None
+ """
+ Unique identifier for the MCP tool call approval request. Include this value in
+ a subsequent `mcp_approval_response` input to approve or reject the
+ corresponding tool call.
+ """
+
error: Optional[str] = None
"""The error from the tool call, if any."""
output: Optional[str] = None
"""The output from the tool call."""
+ status: Optional[Literal["in_progress", "completed", "incomplete", "calling", "failed"]] = None
+ """The status of the tool call.
+
+ One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.
+ """
+
ConversationItem: TypeAlias = Annotated[
Union[
src/openai/types/responses/response_input_item.py
@@ -267,12 +267,25 @@ class McpCall(BaseModel):
type: Literal["mcp_call"]
"""The type of the item. Always `mcp_call`."""
+ approval_request_id: Optional[str] = None
+ """
+ Unique identifier for the MCP tool call approval request. Include this value in
+ a subsequent `mcp_approval_response` input to approve or reject the
+ corresponding tool call.
+ """
+
error: Optional[str] = None
"""The error from the tool call, if any."""
output: Optional[str] = None
"""The output from the tool call."""
+ status: Optional[Literal["in_progress", "completed", "incomplete", "calling", "failed"]] = None
+ """The status of the tool call.
+
+ One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.
+ """
+
class ItemReference(BaseModel):
id: str
src/openai/types/responses/response_input_item_param.py
@@ -268,12 +268,25 @@ class McpCall(TypedDict, total=False):
type: Required[Literal["mcp_call"]]
"""The type of the item. Always `mcp_call`."""
+ approval_request_id: Optional[str]
+ """
+ Unique identifier for the MCP tool call approval request. Include this value in
+ a subsequent `mcp_approval_response` input to approve or reject the
+ corresponding tool call.
+ """
+
error: Optional[str]
"""The error from the tool call, if any."""
output: Optional[str]
"""The output from the tool call."""
+ status: Literal["in_progress", "completed", "incomplete", "calling", "failed"]
+ """The status of the tool call.
+
+ One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.
+ """
+
class ItemReference(TypedDict, total=False):
id: Required[str]
src/openai/types/responses/response_input_param.py
@@ -269,12 +269,25 @@ class McpCall(TypedDict, total=False):
type: Required[Literal["mcp_call"]]
"""The type of the item. Always `mcp_call`."""
+ approval_request_id: Optional[str]
+ """
+ Unique identifier for the MCP tool call approval request. Include this value in
+ a subsequent `mcp_approval_response` input to approve or reject the
+ corresponding tool call.
+ """
+
error: Optional[str]
"""The error from the tool call, if any."""
output: Optional[str]
"""The output from the tool call."""
+ status: Literal["in_progress", "completed", "incomplete", "calling", "failed"]
+ """The status of the tool call.
+
+ One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.
+ """
+
class ItemReference(TypedDict, total=False):
id: Required[str]
src/openai/types/responses/response_item.py
@@ -175,12 +175,25 @@ class McpCall(BaseModel):
type: Literal["mcp_call"]
"""The type of the item. Always `mcp_call`."""
+ approval_request_id: Optional[str] = None
+ """
+ Unique identifier for the MCP tool call approval request. Include this value in
+ a subsequent `mcp_approval_response` input to approve or reject the
+ corresponding tool call.
+ """
+
error: Optional[str] = None
"""The error from the tool call, if any."""
output: Optional[str] = None
"""The output from the tool call."""
+ status: Optional[Literal["in_progress", "completed", "incomplete", "calling", "failed"]] = None
+ """The status of the tool call.
+
+ One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.
+ """
+
ResponseItem: TypeAlias = Annotated[
Union[
src/openai/types/responses/response_output_item.py
@@ -93,12 +93,25 @@ class McpCall(BaseModel):
type: Literal["mcp_call"]
"""The type of the item. Always `mcp_call`."""
+ approval_request_id: Optional[str] = None
+ """
+ Unique identifier for the MCP tool call approval request. Include this value in
+ a subsequent `mcp_approval_response` input to approve or reject the
+ corresponding tool call.
+ """
+
error: Optional[str] = None
"""The error from the tool call, if any."""
output: Optional[str] = None
"""The output from the tool call."""
+ status: Optional[Literal["in_progress", "completed", "incomplete", "calling", "failed"]] = None
+ """The status of the tool call.
+
+ One of `in_progress`, `completed`, `incomplete`, `calling`, or `failed`.
+ """
+
class McpListToolsTool(BaseModel):
input_schema: object
.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 118
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-49233088b5e73dbb96bf7af27be3d4547632e3db1c2b00f14184900613325bbc.yml
-openapi_spec_hash: b34f14b141d5019244112901c5c7c2d8
-config_hash: 94e9ba08201c3d1ca46e093e6a0138fa
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-e205b1f2da6a1f2caa229efa9ede63f2d3d2fedeeb2dd6ed3d880bafdcb0ab88.yml
+openapi_spec_hash: c8aee2469a749f6a838b40c57e4b7b06
+config_hash: 45dcba51451ba532959c020a0ddbf23c