Add reload_lms method and debug forward()

This commit is contained in:
2026-01-24 00:37:42 -08:00
parent 10163277ca
commit fa1a5847cf

View File

@@ -230,7 +230,7 @@ class RLMCodingProgram(PrecompiledProgram):
if not task:
return dspy.Prediction(answer="No Task Given.")
print(f"{YELLOW}DEBUG forward() - agent.get_lm().model: {self.agent.get_lm().model}{RESET}")
print(f"{YELLOW}DEBUG forward() - agent.get_lm(): {self.agent.get_lm()}{RESET}")
print(f"{YELLOW}DEBUG forward() - self.lm.model: {self.lm.model}{RESET}")
print(f"{YELLOW}DEBUG forward() - agent.sub_lm.model: {self.agent.sub_lm.model}{RESET}")
print(f"{YELLOW}DEBUG forward() - self.sub_lm.model: {self.sub_lm.model}{RESET}")