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,7 +998,10 @@ class Agent:
# return self.agent_output_type(all_responses) # return self.agent_output_type(all_responses)
return concat_strings(all_responses) if self.output_type == "json":
return asdict(self.agent_output)
else:
return concat_strings(all_responses)
except Exception as error: except Exception as error:
logger.info( logger.info(

Loading…
Cancel
Save