From 2247ebbcfc37ef9a3baa4a2cfdf3ce9938d39eb7 Mon Sep 17 00:00:00 2001 From: Adam Fourney Date: Wed, 29 May 2024 13:51:57 -0700 Subject: [PATCH] Move the temperature adjustment to right before updaitng the ledger/plan. --- autogen/agentchat/contrib/orchestrator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen/agentchat/contrib/orchestrator.py b/autogen/agentchat/contrib/orchestrator.py index 54cb742ed..444520c6d 100644 --- a/autogen/agentchat/contrib/orchestrator.py +++ b/autogen/agentchat/contrib/orchestrator.py @@ -230,8 +230,6 @@ Based on the team composition, and known and unknown facts, please devise a shor self.orchestrated_messages = [] for a in self._agents: a.reset() - if total_turns > 0: # Raise the temperature with each outer loop - self._temperature_bonus += 0.5 self.orchestrated_messages.append( { @@ -385,6 +383,8 @@ Please output an answer in pure JSON format according to the following schema. T stalled_count += 1 if stalled_count >= 3: + self._temperature_bonus += 0.5 # Be more creative. + self._print_thought("We aren't making progress. Let's reset.") new_facts_prompt = f"""It's clear we aren't making as much progress as we would like, but we may have learned something new. Please rewrite the following fact sheet, updating it to include anything new we have learned. This is also a good time to update educated guesses (please add or update at least one educated guess or hunch, and explain your reasoning).