crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Update task.py: try to find json in task output using regex

Open ftoppi opened this issue 1 year ago • 0 comments

Sometimes the model replies with a valid and additional text, let's try to extract and validate it first. It's cheaper than calling LLM for that.

I think we could even replace the code above with only this one, the regex will match both.

ftoppi avatar Apr 22 '24 21:04 ftoppi