diff --git a/.castiron.stats.yml b/.castiron.stats.yml index eafc361c2c..06d9408f34 100644 --- a/.castiron.stats.yml +++ b/.castiron.stats.yml @@ -1,7 +1,7 @@ schema_version: 1 -generation_id: b0f1a2bb-5d48-43d4-a0b8-f050b37cbbd9 -openapi_spec_hash: a1dc66efb759a0dc5b3b20904545890f -openapi_transformed_spec_hash: 8e506c394d2f27f9329518058d5aa3b9 +generation_id: 9126dcfe-8d90-474b-94c3-e8385bd3789d +openapi_spec_hash: 5e1804457f3d482bd25e99e86f1988d6 +openapi_transformed_spec_hash: 79577ce15c57e0d07a472e594c7bd768 config_hash: fb6bc01fab5ad1159ebbfcd9580b679d -codegen_sha: 4a0c1dcef5111e4fdbec4bdbaf957055ec903856 -codegen_hash: fb2cfdf4eba8a2a31de14717d791ea94c01a844969ef43a116c576713d8ace9d +codegen_sha: 544266af1a80139c2a0cafbad6e7192ffb79a6a5 +codegen_hash: ad5a89bfdc0b7ab49927c66b76475a9fa9a3e89a1147972d92a2a97a0b8a6270 diff --git a/api_reference/openapi.transformed.yml b/api_reference/openapi.transformed.yml index 78da92b994..a8473b082f 100644 --- a/api_reference/openapi.transformed.yml +++ b/api_reference/openapi.transformed.yml @@ -34588,7 +34588,7 @@ paths: delete: operationId: deleteAgentSession summary: Delete an agent session - description: Removes a managed agent session from the public API and returns a deletion confirmation. If backend execution has ended, deletion can cancel a still-open public turn and abandon unpublished outputs. Running execution must be cancelled first. Physical cleanup may continue asynchronously. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage). + description: Removes a managed agent session from the public API and returns a deletion confirmation. If backend execution has ended, deletion can cancel a still-open public turn and abandon unpublished outputs. Deletion may stop an active turn. If an active turn prevents deletion, cancel it or wait for it to finish, then retry. Physical cleanup may continue asynchronously. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage). tags: - Agents parameters: diff --git a/scripts/castiron/generated-files.json b/scripts/castiron/generated-files.json index 2ea75e0805..23610b0b1d 100644 --- a/scripts/castiron/generated-files.json +++ b/scripts/castiron/generated-files.json @@ -335,7 +335,7 @@ }, "src/openai/resources/beta/agents/sessions/sessions.py": { "mode": "100644", - "sha256": "9c06955ff757005cdbca553ba06708755842299bd74e687c0a05a8d149dfa04b" + "sha256": "258e60de2fb73ef434ac6433284dfc6c6f0ea8f4e682ff7d578ea16e80464924" }, "src/openai/resources/beta/agents/sessions/subagents/__init__.py": { "mode": "100644", diff --git a/src/openai/resources/beta/agents/sessions/sessions.py b/src/openai/resources/beta/agents/sessions/sessions.py index 821f67e419..f002bfe480 100644 --- a/src/openai/resources/beta/agents/sessions/sessions.py +++ b/src/openai/resources/beta/agents/sessions/sessions.py @@ -492,8 +492,9 @@ def delete( """ Removes a managed agent session from the public API and returns a deletion confirmation. If backend execution has ended, deletion can cancel a still-open - public turn and abandon unpublished outputs. Running execution must be cancelled - first. Physical cleanup may continue asynchronously. See + public turn and abandon unpublished outputs. Deletion may stop an active turn. + If an active turn prevents deletion, cancel it or wait for it to finish, then + retry. Physical cleanup may continue asynchronously. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage). Args: @@ -936,8 +937,9 @@ async def delete( """ Removes a managed agent session from the public API and returns a deletion confirmation. If backend execution has ended, deletion can cancel a still-open - public turn and abandon unpublished outputs. Running execution must be cancelled - first. Physical cleanup may continue asynchronously. See + public turn and abandon unpublished outputs. Deletion may stop an active turn. + If an active turn prevents deletion, cancel it or wait for it to finish, then + retry. Physical cleanup may continue asynchronously. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage). Args: