-
Notifications
You must be signed in to change notification settings - Fork 43
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: read web content #90
Conversation
e89ead2
to
a0132a4
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.
overall looks good! two small things:
@@ -30,8 +35,27 @@ This is an example of expected response from you: | |||
} | |||
} | |||
|
|||
Your response must always be in JSON format and must include string "thought" and object "action", which contains the string "name" of tool of choice, and necessary arguments ("args") if required by the 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.
when voiceMode
is false, maybe add the content in thought
instead?
src/state/currentTask.ts
Outdated
if (voiceMode && "thought" in query.action) { | ||
voiceControl.speak(query.action.thought, onError); | ||
if (voiceMode && "speak" in query.action && query.action.speak) { | ||
voiceControl.speak(query.action.speak, onError); |
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.
fallback to thought
if speak
does not exist?
resolve #88