[STACKED] Add list_episodes autopilot tool#6293
[STACKED] Add list_episodes autopilot tool#6293anndvision wants to merge 8 commits intoandrew/list-episodes-rust-clientfrom
list_episodes autopilot tool#6293Conversation
list_episodes autopilot toollist_episodes autopilot tool
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1549d07701
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
47936cf to
1ddb8ee
Compare
cda5a24 to
82a8cf9
Compare
1bef0ed to
05fec1a
Compare
3414927 to
514443c
Compare
There was a problem hiding this comment.
can we make better assertions than just that this tool returns valid JSON?
virajmehta
left a comment
There was a problem hiding this comment.
can you document if there's any leaf-handling behavior here? it's not obvious at the call site.
05fec1a to
d873b58
Compare
d08efc7 to
4b79f06
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Adds a new
ListEpisodesToolthat allows autopilot to list episodes with cursor-based pagination (before/after). Wires it through theTensorZeroClienttrait, the embedded client implementation, and the autopilot worker. Includes integration tests covering basic usage, both pagination directions, and error propagation.Note
Medium Risk
Introduces a new cross-crate client API method and embedded gateway path for episode queries; risk is mainly correctness/compatibility of request/schema and client trait changes affecting implementers.
Overview
Adds a new production
ListEpisodesTool(list_episodes) that lists episodes via cursor pagination (before/after) and optional filtering (function_nameplus structuredInferenceFilter), including a manually constructed parameters schema for structured outputs.Wires
list_episodesend-to-end by registering the tool inautopilot-toolsand extending thedurable-toolsTensorZeroClienttrait plus both SDK (client_ext) and embedded client implementations to call the underlyingtensorzero_coreepisodes endpoint. Adds integration tests and mock support to validate request shaping, pagination directions, filter handling, schema generation, and error propagation.Written by Cursor Bugbot for commit 45e0899. This will update automatically on new commits. Configure here.