mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Tavily component could not work in agent of workflow #383
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nadazero on GitHub (Jun 18, 2025).
Self Checks
Dify version
1.4.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I want to know whether it is a bug? agent tool could not work well to to the Tavily API?
✔️ Expected Behavior
Tavily component could work well in agent of workflow
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Jun 18, 2025):
This error is caused by a mismatch between how the Tavily tool is registered or configured and what the Dify agent workflow expects. Specifically, the workflow expects tool parameters to be objects with a .type attribute (ToolParameter objects), but in your case, it’s receiving a plain string or dictionary instead, which leads to the "'str' object has no attribute 'type'" error during invocation. This is a known integration pitfall for external or API tools like Tavily, not a general flaw in agent tool support.
To resolve this, check that the Tavily tool’s parameters are defined as ToolParameter objects, not just plain strings or dicts, in your configuration or registration. If you’re using environment variables or a UI/API to register the tool, make sure the parameter schema matches what Dify expects internally. After making changes, restart your plugin daemon and related containers to ensure the new configuration is loaded.
If you’re still seeing the error, it may be worth double-checking your DIFY_INNER_API_KEY and token handling, as some tool invocation errors in recent versions have also been linked to token/config mismatches. More details and similar issues can be found in the Dify repo here and here.
If you need more specific guidance on how to define the parameters, let me know how you’re registering/configuring the Tavily tool and I can help you check the schema.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
