Skip to content

feat: add max turns run budget#135

Open
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:feat/max-turns-budget
Open

feat: add max turns run budget#135
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:feat/max-turns-budget

Conversation

@EfeDurmaz16

Copy link
Copy Markdown

Summary

  • add optional maxTurns experiment config
  • include maxTurns in result fingerprints
  • fail completed runs when parsed transcript turns exceed the configured budget

Fixes #134.

Scope

This PR enforces the budget after a run completes using the parsed transcript summary. It does not interrupt a running agent mid-turn; early abort can be layered on later if agent adapters expose live turn counts.

Verification

  • npm run test -w packages/agent-eval -- --run src/lib/config.test.ts src/lib/fingerprint.test.ts src/lib/runner.test.ts
  • npm run build -w packages/agent-eval
  • git diff --check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support limiting max turns for agents in evals

1 participant