release: 0.11.3#358
Conversation
Release version edited manuallyThe Pull Request version has been manually set to If you instead want to use the version number |
b4a6a9e to
58a77ef
Compare
|
|
||
|
|
||
| class DeploymentPreviewRpcParams(TypedDict, total=False): | ||
| agent_id: Required[str] |
There was a problem hiding this 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.
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.58a77ef to
6cde3e9
Compare
Automated Release PR
0.11.3 (2026-05-19)
Full Changelog: v0.11.2...v0.11.3
Features
Bug Fixes
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, andcheckpoints, along with their corresponding TypedDict params and response types. Theagentsresource is refactored into a sub-package to accommodate the two new nested resources.DeploymentsResource(CRUD +preview_rpc+promote),SchedulesResource(CRUD +pause/unpause/trigger), andCheckpointsResource(list,get_tuple,put,put_writes,delete_thread) are all wired into both the sync and async clients, includingwith_raw_responseandwith_streaming_responsevariants.AgentsResourcemoves fromresources/agents.pytoresources/agents/agents.py;_client.pyimport updated accordingly.SchedulePauseParamsandScheduleUnpauseParamsdeclareagent_id: Required[str]as a body field, but the corresponding resource methods useagent_idonly as a path parameter and never include it in themaybe_transformbody dict — mirroring the same issue already noted forDeploymentPreviewRpcParams.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
Prompt To Fix All With AI
Reviews (2): Last reviewed commit: "release: 0.11.3" | Re-trigger Greptile