Skip to content

Commit

Permalink
Observation summary component in agent factories now summarizes a tim…
Browse files Browse the repository at this point in the history
…e interval that includes the latest timestep.

PiperOrigin-RevId: 657500969
Change-Id: I7d20bc0734f30923dcc8d476c21a3862c75347f4
  • Loading branch information
jzleibo authored and copybara-github committed Jul 30, 2024
1 parent fc46093 commit d70e4e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concordia/factory/agent/basic_entity_agent__main_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def build_agent(
model=model,
clock_now=clock.now,
timeframe_delta_from=datetime.timedelta(hours=4),
timeframe_delta_until=datetime.timedelta(hours=1),
timeframe_delta_until=datetime.timedelta(hours=0),
pre_act_key=observation_summary_label,
logging_channel=measurements.get_channel('ObservationSummary').on_next,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def build_agent(
model=model,
clock_now=clock.now,
timeframe_delta_from=datetime.timedelta(hours=4),
timeframe_delta_until=datetime.timedelta(hours=1),
timeframe_delta_until=datetime.timedelta(hours=0),
components={_get_class_name(somatic_state): somatic_state_label},
pre_act_key=observation_summary_label,
logging_channel=measurements.get_channel('ObservationSummary').on_next,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def build_agent(
model=model,
clock_now=clock.now,
timeframe_delta_from=datetime.timedelta(hours=4),
timeframe_delta_until=datetime.timedelta(hours=1),
timeframe_delta_until=datetime.timedelta(hours=0),
pre_act_key=observation_summary_label,
logging_channel=measurements.get_channel('ObservationSummary').on_next,
)
Expand Down

0 comments on commit d70e4e7

Please sign in to comment.