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: add-nextjs-llamaindex-agent-example #27

Closed
wants to merge 6 commits into from
Closed

feat: add-nextjs-llamaindex-agent-example #27

wants to merge 6 commits into from

Conversation

thucpn
Copy link
Contributor

@thucpn thucpn commented Mar 29, 2024

No description provided.

runAsyncFnWithoutBlocking(async () => {
if (sources.length) {
const toolOutput = sources[0];
if (toolOutput.toolName === "wikipedia_tool") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this handler should not be part of the wiki-assistant tool - instead the wiki-assistant folder should just contain the code of this condition (i.e. the code that is related to the wiki tool)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I have refactored code by adding function createAgentStreamableUI. It can reuse in many places to handle streamable UI

@thucpn thucpn closed this by deleting the head repository Apr 8, 2024
@thucpn
Copy link
Contributor Author

thucpn commented Apr 8, 2024

Sorry, I accidentally deleted it while cleaning up my repo. I re-created it again here: #29

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

Successfully merging this pull request may close these issues.

2 participants