Find answers from the community

Updated 8 months ago

Coa

I'm trying to get it to return structured JSON output
L
j
5 comments
Hmm, whoops, I don't think i left an easy way to do that.

Easiest would be to manually keep track of and pass in the chat history on each chat message, and include your system prompt there

Plain Text
agent.chat("hello", chat_history=[ChatMessage(role="system", content="..."), ...])
Wouldn't that break how COA works? How could I get the default COA system prompt πŸ€”
nope, because the COA prompt isn't part of the system prompt
It takes the current chat history and directly prompts with the COA prompt
Ah gotcha, thanks
Add a reply
Sign up and join the conversation on Discord