Skip to content

Fixed LDP runner's TRUNCATED not calling gen_answer, and documented AgentStatus #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

jamesbraza
Copy link
Collaborator

@jamesbraza jamesbraza commented Nov 15, 2024

  • Moved gen_answer failover logic so that all runners call it, which inadvertently fixes the LDP runner not calling gen_answer upon truncation
  • Documented AgentStatus enum values a bit more
    • Also added a TODO for it to be renamed

@jamesbraza jamesbraza added the bug Something isn't working label Nov 15, 2024
@jamesbraza jamesbraza self-assigned this Nov 15, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. documentation Improvements or additions to documentation labels Nov 15, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 15, 2024
logger.exception("Trajectory failed.")
status = AgentStatus.FAIL
if status == AgentStatus.TRUNCATED:
# Fail over after truncation (too many steps, timeout): just answer
Copy link
Collaborator

Choose a reason for hiding this comment

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

love it

@jamesbraza jamesbraza force-pushed the removing-failed-to-answer branch from f9ad07e to 0ab2b13 Compare November 15, 2024 18:42
@jamesbraza jamesbraza merged commit 4dfd033 into main Nov 15, 2024
5 checks passed
@jamesbraza jamesbraza deleted the removing-failed-to-answer branch November 15, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants