-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: give synopsis get_hints tool to fetch relevant developer hints from local context store #178
base: main
Are you sure you want to change the base?
Conversation
src/goose/cli/session.py
Outdated
@@ -218,6 +218,8 @@ def reply(self) -> None: | |||
for tool_use in response.tool_use: | |||
tool_result = self.exchange.call_function(tool_use) | |||
content.append(tool_result) | |||
if tool_use.name == "get_hints": # todo find more elegant solution to inject hints into moderator |
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.
could you help me understand what makes this not elegant? maybe include some details on the lifecycle of a hints 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.
Feels a bit weird to make a case here for this particular tool use to then change the moderator state. Would maybe prefer if the tool could act on the moderator state directly?
490f5dd
to
941c710
Compare
Co-authored-by: Michael Neale <[email protected]>
840d41e
to
59abaf7
Compare
Beginning sketch of how Goose might retrieve context from a local context store via an additional tool call.
The local context store referenced is an interface to LanceDB as defined here: https://github.com/squareup/goose-context-store
The general idea is that based on a new task, Goose will first fetch relevant hints based on text and semantic queries to the local context store, and append those to its existing .goosehints as part of the system prompt.