mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-15 19:18:30 +00:00
fix: use unquoted type names in model descriptions
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -369,7 +369,7 @@ def test_generate_model_description_with_empty_description():
|
||||
age: int = Field(..., description=None)
|
||||
|
||||
description = generate_model_description(ModelWithEmptyDescription)
|
||||
expected = '{\n "name": "str",\n "age": "int"\n}'
|
||||
expected = '{\n "name": str,\n "age": int\n}'
|
||||
assert description == expected
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user