Skip to content

fix(agentic): report exhausted responses clearly - #188

Open
OllieinCanada wants to merge 1 commit into
VectorInstitute:mainfrom
OllieinCanada:agent/180-empty-agent-response
Open

fix(agentic): report exhausted responses clearly#188
OllieinCanada wants to merge 1 commit into
VectorInstitute:mainfrom
OllieinCanada:agent/180-empty-agent-response

Conversation

@OllieinCanada

Copy link
Copy Markdown

Summary

Prevent exhausted WTI analyst runs from surfacing as misleading JSON parse
failures, and give the code-execution preset enough response headroom to finish
tool work and return its structured forecast.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • 📝 Documentation update
  • 🧪 Test improvements

Changes Made

  • raise a descriptive error when AgentPredictor receives an empty response
  • increase the WTI code-execution preset default from 16K to 32K output tokens
  • document the behavior and keep the concierge source snapshot synchronized

Testing

  • Relevant tests pass locally (16 passed)
  • Type checking passes (local full-package run was interrupted after an excessive runtime; CI will verify)
  • Linting passes (ruff check on all changed Python files)
  • Manual testing performed (describe below)

Manual testing details:

Both regressions were first run against the original implementation and failed:
the empty response leaked JSONDecodeError, and the WTI preset returned 16,384.
The same focused tests pass after the fix. No model, API, or external service was
used.

Related Issues

Fixes #180

Deployment Notes

No migration or deployment change is required.

Checklist

  • Code follows the project's style guidelines
  • Self-review of code completed
  • Documentation updated
  • No sensitive information exposed

Signed-off-by: Oliver Slapinski <olliefromcanada@gmail.com>
@OllieinCanada
OllieinCanada marked this pull request as ready for review August 16, 2026 23:07
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.

Code-executing WTI agent can exhaust output budget and return empty response

1 participant