Skip to content

Implement tool output truncation #786

Description

@jfeser

It's relatively common in my tests for models to run tools that produce more output than fits in the context. Other harnesses (e.g. codex) implement tool output truncation. We should do something similar. Right now, using too much of the context causes a crash.

Other strategies we could consider:

  • Excessive context errors could be subject to retry.
  • Tool output could be spilled to a temporary file when it grows large enough.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions