Claude commited on
Commit
d831d96
·
unverified ·
1 Parent(s): 506d641

Include messages in ConversationLog.to_dict() for report conversation examples

Browse files

Without this, the training report's example conversations section would
have empty message histories since evaluate_prompt() calls to_dict().

https://claude.ai/code/session_01DPirJ78YYN4fJUvUFJ5D6V

Files changed (1) hide show
  1. layer0/reward.py +1 -0
layer0/reward.py CHANGED
@@ -78,6 +78,7 @@ class ConversationLog:
78
  "customer_persona": self.customer_persona,
79
  "true_intent": self.true_intent,
80
  "agent_intent": self.agent_intent,
 
81
  }
82
 
83
 
 
78
  "customer_persona": self.customer_persona,
79
  "true_intent": self.true_intent,
80
  "agent_intent": self.agent_intent,
81
+ "messages": self.messages,
82
  }
83
 
84