feat: make Agent output recognisable
This commit is contained in:
parent
4e106e174f
commit
9d87390246
1 changed files with 2 additions and 1 deletions
3
agent.py
3
agent.py
|
|
@ -67,13 +67,14 @@ class ExploreAgent(Agent):
|
|||
def decide(self) -> Optional[str]:
|
||||
if not self.look_sent:
|
||||
self.look_sent = True
|
||||
print("[Agent] Exploring room, sending 'schau'")
|
||||
return self.look_command
|
||||
|
||||
if self.pending_targets:
|
||||
target = self.pending_targets.popleft()
|
||||
key = target.lower()
|
||||
self.inspected_targets.add(key)
|
||||
progress = f"Explored {len(self.inspected_targets)}/{len(self.seen_targets)}"
|
||||
progress = f"[Agent] Explored {len(self.inspected_targets)}/{len(self.seen_targets)} — untersuche {target}"
|
||||
print(progress)
|
||||
return f"{self.inspect_command} {target}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue