Download data/tests/test_recursive_models.py from introvoyz045/elevenlabs-python: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/datasets/introvoyz045/elevenlabs-python/resolve/main/data/tests/test_recursive_models.py
- Command line
-
hf download hf://datasets/introvoyz045/elevenlabs-python/data/tests/test_recursive_models.py
-
curl -L -o test_recursive_models.py https://huggingface.co/datasets/introvoyz045/elevenlabs-python/resolve/main/data/tests/test_recursive_models.py
425 Bytes
| from elevenlabs import AgentWorkflowRequestModel, ObjectJsonSchemaPropertyInput, ObjectJsonSchemaPropertyOutput | |
| def test_recursive_models(): | |
| # Should be able to import and use the recursive types without PydanticUserError | |
| # ObjectJsonSchemaPropertyInput has no required fields, so it can be instantiated | |
| ObjectJsonSchemaPropertyInput() | |
| ObjectJsonSchemaPropertyOutput() | |
| AgentWorkflowRequestModel() | |