Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/elevenlabs/types/object_json_schema_property_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Config:
smart_union = True
extra = pydantic.Extra.allow


from .array_json_schema_property_input import ArrayJsonSchemaPropertyInput # noqa: E402, I001
from .object_json_schema_property_input_properties_value import ObjectJsonSchemaPropertyInputPropertiesValue # noqa: E402, I001

update_forward_refs(ObjectJsonSchemaPropertyInput)
update_forward_refs(ObjectJsonSchemaPropertyInput, ArrayJsonSchemaPropertyInput=ArrayJsonSchemaPropertyInput)
4 changes: 3 additions & 1 deletion src/elevenlabs/types/object_json_schema_property_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Config:
extra = pydantic.Extra.allow



from .array_json_schema_property_output import ArrayJsonSchemaPropertyOutput # noqa: E402, I001
from .object_json_schema_property_output_properties_value import ObjectJsonSchemaPropertyOutputPropertiesValue # noqa: E402, I001

update_forward_refs(ObjectJsonSchemaPropertyOutput)
update_forward_refs(ObjectJsonSchemaPropertyOutput, ArrayJsonSchemaPropertyOutput=ArrayJsonSchemaPropertyOutput)
6 changes: 6 additions & 0 deletions tests/test_convai_imports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from elevenlabs import ElevenLabs


def test_convai_imports():
client = ElevenLabs(api_key="")
client.conversational_ai.agents
11 changes: 11 additions & 0 deletions tests/test_recursive_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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()