Skip to content

Commit

Permalink
rename construct to component in observation.py and fix pasted docstr…
Browse files Browse the repository at this point in the history
…ing.

PiperOrigin-RevId: 588695472
Change-Id: Ice2bfd995bfd0366108bf803cc17c90223236391
  • Loading branch information
jzleibo authored and copybara-github committed Dec 7, 2023
1 parent f43fe22 commit 7841e4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions concordia/components/agent/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(
verbose: bool = False,
log_colour='green',
):
"""Initialize a construct containing the agent's plan for the day.
"""Summarize the agent's observations.
Args:
model: a language model
Expand Down Expand Up @@ -120,8 +120,8 @@ def update(self):
context = '\n'.join(
[
f"{self._agent_name}'s "
+ (construct.name() + ':\n' + construct.state())
for construct in self._components
+ (comp.name() + ':\n' + comp.state())
for comp in self._components
]
)

Expand Down

0 comments on commit 7841e4f

Please sign in to comment.