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.
Automated Release PR
0.11.3 (2026-05-18)
Full Changelog: v0.11.2...v0.11.3
Features
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 automated release (v0.11.3) adds three new API resource groups to the Python SDK:
agents/deployments,agents/schedules, and a top-levelcheckpointsresource, all generated from the OpenAPI spec by Stainless.resources/agents.pyis promoted to a sub-package (resources/agents/agents.py) withdeployments.pyandschedules.pyas sibling modules; the__init__.pyre-exports everything so existing import paths remain compatible.DeploymentsResourceexposes CRUD +preview_rpc+promotefor agent deployments;SchedulesResourceexposes CRUD +pause,unpause, andtriggerfor Temporal-backed schedules.CheckpointsResource(sync + async) coveringlist,delete_thread,get_tuple,put, andput_writesendpoints is wired into both the main client and all raw/streaming response wrapper classes.Confidence Score: 4/5
Safe to merge; all new endpoints are additive and the restructured agents sub-package preserves backward-compatible import paths via the new init.py.
The change is entirely Stainless-generated and follows established SDK patterns. The only inconsistency found is a spurious
agent_id: Required[str]inDeploymentPreviewRpcParamsthat doesn't match how every other params TypedDict in this PR is structured and doesn't reflect what is actually sent in the request body. Runtime behaviour is unaffected, but the field can mislead static type checkers and SDK consumers who reference the TypedDict directly.src/agentex/types/agents/deployment_preview_rpc_params.py —
agent_idis declared as a required body field but is used only as a path parameter and never included in the request body.Important Files Changed
deploymentsandschedulescached properties; all wrapper classes updated consistently.agent_id: Required[str]even though agent_id is a path parameter not sent in the request body; low risk at runtime but misleading for static analysis.Class Diagram
%%{init: {'theme': 'neutral'}}%% classDiagram class Agentex { +agents: AgentsResource +checkpoints: CheckpointsResource } class AgentsResource { +deployments: DeploymentsResource +schedules: SchedulesResource +retrieve(agent_id) +list() +delete(agent_id) +rpc(agent_id) } class DeploymentsResource { +create(agent_id, docker_image, ...) +retrieve(deployment_id, agent_id) +list(agent_id, ...) +delete(deployment_id, agent_id) +preview_rpc(deployment_id, agent_id, ...) +promote(deployment_id, agent_id) } class SchedulesResource { +create(agent_id, name, task_queue, ...) +retrieve(schedule_name, agent_id) +list(agent_id) +delete(schedule_name, agent_id) +pause(schedule_name, agent_id) +unpause(schedule_name, agent_id) +trigger(schedule_name, agent_id) } class CheckpointsResource { +list(thread_id, ...) +delete_thread(thread_id) +get_tuple(thread_id, ...) +put(checkpoint, checkpoint_id, thread_id, ...) +put_writes(checkpoint_id, thread_id, writes, ...) } Agentex --> AgentsResource Agentex --> CheckpointsResource AgentsResource --> DeploymentsResource AgentsResource --> SchedulesResourcePrompt To Fix All With AI
Reviews (1): Last reviewed commit: "release: 0.11.3" | Re-trigger Greptile