-
Notifications
You must be signed in to change notification settings - Fork 620
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
Address missing GenerateAnswer
in trajectories, no answers after Complete
tools, and better history
#726
Conversation
mskarlin
commented
Nov 27, 2024
- Moved the tool_history into session -- so it can be externally accessed for tests + debugging.
- Added a history check for gen_answer in runner, it uses the history to ensure it's there.
- Added a sentinel into complete tool, this will allow trajectories where this tool is used outside of the runner to have something populated in the answer.
…unner; add sentinel into complete tool
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.
@@ -357,6 +354,8 @@ class Complete(NamedTool): | |||
r" \| " + EnvironmentState.STATUS_SEARCH_REGEX_PATTERN | |||
) | |||
|
|||
NO_ANSWER_PHRASE: ClassVar[str] = "No answer generated." |
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.
Should we move this to PQASession
since that's where it will be used most likely? Imo housing this in the Complete
tool makes it less accessible (since Complete
tool is sort of an agent implementation detail)
Note I'm merging w.o CI passing because we seem to still be getting 502s from openAI |