Skip to content
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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ahau-square
Copy link
Collaborator

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.

@@ -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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants