Skip to content

Commit 8ce88f6

Browse files
committed
switching to goal_object in xray
1 parent a18e8e5 commit 8ce88f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/agentlab/analyze/agent_xray.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from agentlab.experiments.exp_utils import RESULTS_DIR
2222
from agentlab.experiments.study import get_most_recent_study
2323
from agentlab.llm.chat_api import make_system_message, make_user_message
24+
from agentlab.llm.llm_utils import BaseMessage as AgentLabBaseMessage
2425
from agentlab.llm.llm_utils import Discussion
2526

2627
select_dir_instructions = "Select Experiment Directory"
@@ -740,7 +741,7 @@ def get_episode_info(info: Info):
740741
steps_info = info.exp_result.steps_info
741742
step_info = steps_info[info.step]
742743
try:
743-
goal = step_info.obs["goal"]
744+
goal = step_info.obs["goal_object"]
744745
except KeyError:
745746
goal = None
746747
try:
@@ -757,7 +758,7 @@ def get_episode_info(info: Info):
757758
758759
**Goal:**
759760
760-
{code(goal)}
761+
{code(str(AgentLabBaseMessage('', goal)))}
761762
762763
**Task info:**
763764

0 commit comments

Comments
 (0)