-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
🌊 Stream responses for task execution #631
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
(text) => { | ||
result += text; | ||
executionMessage.info += result; | ||
console.log(executionMessage.info); |
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.
Remove this
next/src/stores/messageStore.ts
Outdated
const oldMessage = state.messages.find((message) => message.id === newMessage.id); | ||
if (oldMessage) { | ||
const updatedMessages = state.messages.map((message) => { | ||
return message.id === oldMessage.id ? newMessage : message; |
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 can be a braceless arrow func
@@ -68,7 +69,7 @@ async def execute_task_agent( | |||
goal: str, | |||
task: str, | |||
analysis: Analysis, | |||
) -> str: | |||
) -> StreamingResponse: | |||
print("Execution analysis:", analysis) |
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 should be loguru in the future
@@ -68,7 +72,9 @@ async def call(self, goal: str, task: str, input_str: str) -> str: | |||
answer_values.append(", ".join(answer_box.get("snippetHighlighted"))) | |||
|
|||
if len(answer_values) > 0: | |||
return "\n".join(answer_values) | |||
print("ANSWERING") |
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.
remove me
No description provided.