Skip to content

Commit e847824

Browse files
DEBUG: Add print statement to client parser
1 parent 723ef99 commit e847824

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/envs/dipg_safety_env/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ def _step_payload(self, action: DIPGAction) -> dict:
66
return {"llm_response": action.llm_response}
77

88
def _parse_result(self, payload: dict) -> StepResult[DIPGObservation]:
9+
# --- ADD THESE DEBUG LINES ---
10+
print("--- DEBUG: Raw payload received by client ---")
11+
print(payload)
12+
print("-------------------------------------------")
13+
# -----------------------------
914
obs = DIPGObservation(**payload["observation"])
1015
return StepResult(
1116
observation=obs,

0 commit comments

Comments
 (0)