fix(ciayn_agent.py): convert list input to string to handle create-react-agent tool calls correctly (#66)
This commit is contained in:
parent
b00fd47573
commit
1b239f07bf
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue