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

Unable to use tools with AWS Claude #977

Open
subhashnaidu opened this issue May 22, 2024 · 1 comment
Open

Unable to use tools with AWS Claude #977

subhashnaidu opened this issue May 22, 2024 · 1 comment

Comments

@subhashnaidu
Copy link

I'm trying to use Claude Sonnet hosted on AWS Bedrock.
The tools that I pass in to the assistant are never used.
It hallucinates function name and parameters and never actually calls any function.

This example from the cookbook modified to use the Claude assistant never calls the DuckDuckGo tool.

from phi.assistant import Assistant
from phi.llm.aws.claude import Claude
from phi.tools.duckduckgo import DuckDuckGo
from dotenv import load_dotenv

load_dotenv()

assistant = Assistant(llm=Claude(model="anthropic.claude-3-sonnet-20240229-v1:0",temperature=0.2), tools=[DuckDuckGo()], show_tool_calls=True, read_chat_history=True)
assistant.cli_app(markdown=True)
@ysolanky
Copy link
Contributor

Hi @subhashnaidu,

Claude has recently updated the tool calling format. We will be implementing these updates on our end soon.

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