fix: use unquoted type names in model descriptions

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-21 11:53:58 +00:00
parent da0d37af03
commit f80fe7d4c1
2 changed files with 3 additions and 3 deletions

View File

@@ -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