Browse Source

Move the temperature adjustment to right before updaitng the ledger/plan.

ct_webarena_may22
Adam Fourney 2 years ago
parent
commit
2247ebbcfc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      autogen/agentchat/contrib/orchestrator.py

+ 2
- 2
autogen/agentchat/contrib/orchestrator.py View File

@@ -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).



Loading…
Cancel
Save