Skip to content

Why draw_messages() in src/streamlit_app.py expects only human and ai types? #39

Closed Answered by JoshuaC215
7sunstudio asked this question in Q&A
Discussion options

You must be logged in to vote

The expected pattern is that a ToolMessage will follow an AIMessage that contains tool_calls, so the ToolMessage is handled with an inner iteration rather than in the main loop - see here.

However I recently saw some unexpected errors in the current version of the app when the research assistant requests multiple parallel tool calls. This used to work but seems to be broken now. I haven't had a chance to debug but it does suggest that this code isn't perfect currently :)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JoshuaC215
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants