Open janwirth opened 3 weeks ago
I agree, want a mix between chat response and structured
I found a solution, happy to share when it's tested. my discord is jannibeu
My current workaround is adding a "commentary" field for outputting LLM thought process.
I'm injecting a zod schema and a prompt to communicate in JSON, then I put the current streamed result through jsonrepair, then zod.
Would tools work for you?
I tried to get tools to work but really couldn't.
I think I see now how they could be used but yeah I wasn't smart enough. We have something we like now.
For me, it was too difficult to control when a tool would be called
Feature Description
Adding a schema option to useChat should allow me to render chat messages other than
string
.Use Case
I would like to enrich our chat interface with custom UI like chatbot buttons.
Additional context
No response