Skip to content

release: 0.11.3#358

Open
stainless-app[bot] wants to merge 3 commits into
mainfrom
release-please--branches--main--changes--next
Open

release: 0.11.3#358
stainless-app[bot] wants to merge 3 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented May 18, 2026

Automated Release PR

0.11.3 (2026-05-19)

Full Changelog: v0.11.2...v0.11.3

Features

  • api: add schedule, checkpoints, and deployment endpoints (53b5c36)

Bug Fixes

  • resolve lint and test failures from new endpoints (#360) (bdf129c)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

Greptile Summary

This release (0.11.3) adds three new resource groups to the SDK: agents/deployments, agents/schedules, and checkpoints, along with their corresponding TypedDict params and response types. The agents resource is refactored into a sub-package to accommodate the two new nested resources.

  • New resources: DeploymentsResource (CRUD + preview_rpc + promote), SchedulesResource (CRUD + pause/unpause/trigger), and CheckpointsResource (list, get_tuple, put, put_writes, delete_thread) are all wired into both the sync and async clients, including with_raw_response and with_streaming_response variants.
  • Import restructure: AgentsResource moves from resources/agents.py to resources/agents/agents.py; _client.py import updated accordingly.
  • TypedDict path-param mismatch: SchedulePauseParams and ScheduleUnpauseParams declare agent_id: Required[str] as a body field, but the corresponding resource methods use agent_id only as a path parameter and never include it in the maybe_transform body dict — mirroring the same issue already noted for DeploymentPreviewRpcParams.

Confidence Score: 4/5

Safe to merge with one known TypedDict mismatch that should be corrected in a follow-up or alongside this release.

Both SchedulePauseParams and ScheduleUnpauseParams declare agent_id as a required body field, but neither resource method ever sends it in the request body — agent_id is consumed only as a URL path segment. Users who instantiate these TypedDicts directly will provide a value that is silently discarded, and static type checkers will not catch the mismatch. The same defect was already flagged for DeploymentPreviewRpcParams in a prior review cycle, so this appears to be a systematic codegen issue across the new params files.

src/agentex/types/agents/schedule_pause_params.py and src/agentex/types/agents/schedule_unpause_params.py — both carry an agent_id field that belongs in the method signature, not the TypedDict body.

Important Files Changed

Filename Overview
src/agentex/types/agents/schedule_pause_params.py agent_id declared as Required body field but is used only as a path param and never sent in the body
src/agentex/types/agents/schedule_unpause_params.py Same agent_id / path-param mismatch as SchedulePauseParams
src/agentex/resources/agents/schedules.py New SchedulesResource with CRUD + pause/unpause/trigger; agent_id path-param mismatch in pause/unpause TypedDicts
src/agentex/resources/agents/deployments.py New DeploymentsResource with CRUD + preview_rpc + promote; body transforms correctly exclude path params
src/agentex/resources/checkpoints.py New CheckpointsResource exposing list, delete_thread, get_tuple, put, put_writes; params TypedDicts look correct
src/agentex/resources/agents/agents.py Agents resource moved to sub-package; gains deployments and schedules sub-resources; existing methods preserved
src/agentex/_client.py Adds checkpoints cached_property to sync/async clients and all response wrapper variants; import path updated from resources.agents to resources.agents.agents
src/agentex/types/agents/deployment_preview_rpc_params.py agent_id spurious body field already flagged in previous review thread; no new issues beyond that

Fix All in Cursor Fix All in Claude Code Fix All in Codex

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
src/agentex/types/agents/schedule_pause_params.py:12-13
**Spurious `agent_id` field in `SchedulePauseParams` and `ScheduleUnpauseParams`**

`agent_id: Required[str]` appears in both `SchedulePauseParams` (line 13) and `ScheduleUnpauseParams` (line 13 of that file), but in both `SchedulesResource.pause()` and `SchedulesResource.unpause()`, `agent_id` is consumed exclusively as a path parameter and is deliberately excluded from the `maybe_transform` body dict — only `{"note": note}` is sent in the body. Any caller who constructs these TypedDicts will expect to supply `agent_id` as a body field, but it is silently dropped at runtime and never reaches the server. The same pattern was flagged for `DeploymentPreviewRpcParams`; `SchedulePauseParams` and `ScheduleUnpauseParams` have the identical mismatch.

Reviews (2): Last reviewed commit: "release: 0.11.3" | Re-trigger Greptile

Greptile also left 1 inline comment on this PR.

@declan-scale declan-scale changed the title release: 0.12.0 release: 0.11.3 May 18, 2026
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented May 18, 2026

Release version edited manually

The Pull Request version has been manually set to 0.11.3 and will be used for the release.

If you instead want to use the version number 0.12.0 generated from conventional commits, just remove the label autorelease: custom version from this Pull Request.

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from b4a6a9e to 58a77ef Compare May 18, 2026 22:43


class DeploymentPreviewRpcParams(TypedDict, total=False):
agent_id: Required[str]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Spurious agent_id field in body params TypedDict

agent_id: Required[str] is declared as a required body parameter here, but in DeploymentsResource.preview_rpc, agent_id is used exclusively as a path parameter and is deliberately excluded from the maybe_transform body dict. Every other params TypedDict in this PR (e.g., DeploymentCreateParams, ScheduleCreateParams) correctly omits path parameters. Mypy/pyright users who instantiate this TypedDict directly will expect to provide agent_id in the body, which does not match actual runtime behaviour.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agentex/types/agents/deployment_preview_rpc_params.py
Line: 21

Comment:
**Spurious `agent_id` field in body params TypedDict**

`agent_id: Required[str]` is declared as a required body parameter here, but in `DeploymentsResource.preview_rpc`, `agent_id` is used exclusively as a path parameter and is deliberately excluded from the `maybe_transform` body dict. Every other params TypedDict in this PR (e.g., `DeploymentCreateParams`, `ScheduleCreateParams`) correctly omits path parameters. Mypy/pyright users who instantiate this TypedDict directly will expect to provide `agent_id` in the body, which does not match actual runtime behaviour.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Cursor Fix in Claude Code Fix in Codex

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 58a77ef to 6cde3e9 Compare May 19, 2026 16:07
Comment thread src/agentex/types/agents/schedule_pause_params.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant