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

Extend assistant-tool output handling #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

oliverroick
Copy link
Collaborator

This add support for tool_use messages from the assistant tool.

What I addressed:

  • The tool sometimes returns message as a string, sometimes as an array of messages. I extended the MessageAssistant so we can handle both cases.
  • For arrays of messages, I added handle for two cases:
    • We render the markdown if the type is text
    • We render an action button in all other cases.
  • Changed the chat history state to use Jotai.

I'm sure we need to extend this further going forward when we have a better picture what the API returns.

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.

1 participant