edit run return

- edit "run" return type with condition on how to return if output type is JSON .
pull/615/head
Sambhav Dixit 2 months ago committed by GitHub
parent e8b8d48f24
commit 8b552badba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -998,6 +998,9 @@ class Agent:
# return self.agent_output_type(all_responses)
if self.output_type == "json":
return asdict(self.agent_output)
else:
return concat_strings(all_responses)
except Exception as error:

Loading…
Cancel
Save