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

[BUG]why some models not call custom tools? #2383

Closed
iniwap opened this issue Mar 17, 2025 · 3 comments
Closed

[BUG]why some models not call custom tools? #2383

iniwap opened this issue Mar 17, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@iniwap
Copy link

iniwap commented Mar 17, 2025

Description

if use qwq 32b、deepseek-r1,it will not call task/custom tool _run,is this a bug???

Steps to Reproduce

1.task use custom tool
2.run
3.it will not call customtool's _run

Expected behavior

should call run

Screenshots/Code snippets

class CToolInput(BaseModel):
p: str = Field(description="p")

class CTool(BaseTool):
name: str = "c_tool"
description: str = "des"
args_schema: Type[BaseModel] = CToolInput

def _run(self,p: str) -> str:
    print("not call,no print")

Operating System

Windows 11

Python Version

3.10

crewAI Version

crewai, version 0.102.0

crewAI Tools Version

custom tool no ver

Virtual Environment

Venv

Evidence

no print

Possible Solution

i dont know why?

Additional context

how can fix this ?

@iniwap iniwap added the bug Something isn't working label Mar 17, 2025
@iniwap iniwap changed the title [BUG]why some models cant call custom tools? [BUG]why some models not call custom tools? Mar 17, 2025
devin-ai-integration bot added a commit that referenced this issue Mar 17, 2025
…ction calling support

Co-Authored-By: Joe Moura <joao@crewai.com>
@Vidit-Ostwal
Copy link
Contributor

Can you share the entire code, will try to reproduce.
Also can you try updating the version once.

@Vidit-Ostwal
Copy link
Contributor

@iniwap DeepSeek -R1 does not support the tool calling functionality that's why.
Check this out - https://sdk.vercel.ai/docs/guides/r1

qwq 32b model has been specifically made for tool calling, but still there is some issue
Check these out - vllm-project/vllm#11793,
https://huggingface.co/Qwen/QwQ-32B-Preview/discussions/52

@iniwap
Copy link
Author

iniwap commented Mar 18, 2025

@Vidit-Ostwal So, DeepSeek-R1 and QWQ-32B don't support tool calling, it's not a CrewAI bug? Got it, thanks!

@iniwap iniwap closed this as completed Mar 18, 2025
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