structured_output
Nicolas Nahas 6 months ago
parent 4a3ee63205
commit 08be6a456f

@ -822,9 +822,7 @@ class Agent(BaseStructure):
all_responses.append(response) all_responses.append(response)
# TODO: Implement reliablity check
if self.tools is not None: if self.tools is not None:
result = None
result = self.parse_function_call_and_execute(response) result = self.parse_function_call_and_execute(response)
if self.code_interpreter is True: if self.code_interpreter is True:
@ -852,7 +850,6 @@ class Agent(BaseStructure):
# all_responses.append(evaluated_response) # all_responses.append(evaluated_response)
if self.output_validation: if self.output_validation:
result = None
result = self.pydantic_validation(response) result = self.pydantic_validation(response)
# Sentiment analysis # Sentiment analysis

Loading…
Cancel
Save