Add test for timestamp in log_step_metadata

- Implemented test_log_step_metadata_timestamp to verify that a timestamp is included in the log result when logging step metadata.
pull/615/head
Sambhav Dixit 6 months ago committed by GitHub
parent 672f3eeab4
commit e80d182092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -38,3 +38,6 @@ class TestAgentLogging(unittest.TestCase):
log_result = self.agent.log_step_metadata(1, "prompt", "response")
self.assertEqual(log_result['memory_usage']['long_term'], {})
def test_log_step_metadata_timestamp(self):
log_result = self.agent.log_step_metadata(1, "prompt", "response")
self.assertIn('timestamp', log_result)

Loading…
Cancel
Save