Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: added extra asserts to tests to make clear what the expected behavior is

cpackerf780c739a037
diff --git a/tests/test_tool_schema_parsing.py b/tests/test_tool_schema_parsing.py
index 151329c0c..fd35be5f2 100644
--- a/tests/test_tool_schema_parsing.py
+++ b/tests/test_tool_schema_parsing.py
@@ -203,5 +203,12 @@ def test_composio_tool_schema_generation(openai_model: str, structured_output: b
print(tool_create)
+ assert tool_create.json_schema
schema = tool_create.json_schema
- _openai_payload(openai_model, schema, structured_output)
+
+ try:
+ _openai_payload(openai_model, schema, structured_output)
+ print(f"Successfully called OpenAI using schema {schema} generated from {action_name}")
+ except:
+ print(f"Failed to call OpenAI using schema {schema} generated from {action_name}")
+ raise