-
Notifications
You must be signed in to change notification settings - Fork 609
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
fake
agent allowing timeouts or exceptions,
#672
Conversation
paperqa/agents/main.py
Outdated
if traj.steps[-1].truncated: | ||
nonlocal status | ||
status = AgentStatus.TRUNCATED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is confusing - can you just return status in rollout
? This modification is like three levels deep and I'm actually unclear on if it always works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Believe it or not, locally I have this exact change in the works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, done. Good to see we are both still thinking
50f53ce
to
a0771aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool
Easier to read diff: https://github.com/Future-House/paper-qa/compare/standard-rollouts?expand=1&w=1
This PR:
run_with_timeout_failure
that runs a rollout withAgentStatus.TRUNCATED
(timeout) orAgentStatus.FAIL
(Exception
) supportAgentStatus.TRUNCATED
support for the LDP agent runner