Skip to content

[STACKED] Add list_episodes autopilot tool#6293

Open
anndvision wants to merge 8 commits intoandrew/list-episodes-rust-clientfrom
andrew/list-episodes-tool
Open

[STACKED] Add list_episodes autopilot tool#6293
anndvision wants to merge 8 commits intoandrew/list-episodes-rust-clientfrom
andrew/list-episodes-tool

Conversation

@anndvision
Copy link
Member

@anndvision anndvision commented Feb 12, 2026

Adds a new ListEpisodesTool that allows autopilot to list episodes with cursor-based pagination (before/after). Wires it through the TensorZeroClient trait, 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_name plus structured InferenceFilter), including a manually constructed parameters schema for structured outputs.

Wires list_episodes end-to-end by registering the tool in autopilot-tools and extending the durable-tools TensorZeroClient trait plus both SDK (client_ext) and embedded client implementations to call the underlying tensorzero_core episodes 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.

@anndvision anndvision changed the title Add list_episodes autopilot tool [STACKED] Add list_episodes autopilot tool Feb 12, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 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".

Copy link
Member

Choose a reason for hiding this comment

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

can we make better assertions than just that this tool returns valid JSON?

Copy link
Member

@virajmehta virajmehta left a comment

Choose a reason for hiding this comment

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

can you document if there's any leaf-handling behavior here? it's not obvious at the call site.

@anndvision anndvision force-pushed the andrew/list-episodes-rust-client branch from 05fec1a to d873b58 Compare February 15, 2026 18:12
@anndvision anndvision force-pushed the andrew/list-episodes-tool branch from d08efc7 to 4b79f06 Compare February 15, 2026 18:15
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

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.

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.

2 participants