mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
fix: added extra asserts to tests to make clear what the expected behavior is
This commit is contained in:
parent
36805b70dd
commit
7a799c260f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user