Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.conversational_ai.create_agent() returns NameError: name 'ArrayJsonSchemaProperty' is not defined #470

Open
bbekdemir opened this issue Jan 31, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@bbekdemir
Copy link

bbekdemir commented Jan 31, 2025

Description

Not exactly sure which class is causing the issue, but when I try to create an agent with tools, I get
NameError: name 'ArrayJsonSchemaProperty' is not defined

It works when I add

for finder, modname, ispkg in pkgutil.walk_packages(elevenlabs.__path__, prefix=elevenlabs.__name__ + "."):
    module = importlib.import_module(modname)
    module.__dict__["ArrayJsonSchemaProperty"] = ArrayJsonSchemaProperty

Code example

No response

Additional context

It seems to be working for a simple agent without tools.

@bbekdemir bbekdemir added the bug Something isn't working label Jan 31, 2025
@AngeloGiacco
Copy link
Collaborator

AngeloGiacco commented Jan 31, 2025

hey @bbekdemir ! thanks for the issue! could you add information about the tools you're passing to the agent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants