fix(ciayn_agent.py): convert list input to string to handle create-react-agent tool calls correctly (#66)

This commit is contained in:
Ariel Frischer 2025-01-29 14:42:59 -08:00 committed by GitHub
parent b00fd47573
commit 1b239f07bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ Output **ONLY THE CODE** and **NO MARKDOWN BACKTICKS**"""
# create-react-agent tool calls can be lists # create-react-agent tool calls can be lists
if isinstance(text, List): if isinstance(text, List):
return 0 text = str(text)
if not text: if not text:
return 0 return 0