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

ShellTools throwing error in gemini model. #1697

Open
samyogdhital opened this issue Jan 4, 2025 · 3 comments
Open

ShellTools throwing error in gemini model. #1697

samyogdhital opened this issue Jan 4, 2025 · 3 comments

Comments

@samyogdhital
Copy link

samyogdhital commented Jan 4, 2025

Here is a quick code.

test_agent = Agent(
    name="Test Agent",
    model=Gemini(
            id="gemini-2.0-flash-exp",
            api_key="*****************",
        ),
    tools=[ShellTools()],
    markdown=True,
    debug_mode=True,
)

On playground UI as well.

image

Error on terminal.

image

But with groq model this works perfectly.

@manthanguptaa
Copy link
Contributor

@samyogdhital This might be because you are trying to use the async methods of Gemini that we don't support right now. You will have to add use_async=False to get_app()

@samyogdhital
Copy link
Author

@manthanguptaa The problem is there with use_async kept False. Please check on your end as well.

@manthanguptaa
Copy link
Contributor

Thanks @samyogdhital! I was able to replicate the issue on my end. We will soon send a patch for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants