Skip to content

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

Closed
thucpn wants to merge 6 commits intorun-llama:mainfrom
thucpn:feat/add-nextjs-llamaindex-agent-example
Closed

feat: add-nextjs-llamaindex-agent-example#27
thucpn wants to merge 6 commits intorun-llama:mainfrom
thucpn:feat/add-nextjs-llamaindex-agent-example

Conversation

@thucpn
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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