Plugin not found when i use agent #8761

Closed
opened 2026-02-21 18:27:27 -05:00 by yindo · 11 comments
Owner

Originally created by @avasquezkudaw on GitHub (Feb 28, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

When i run a workflow using agent, fail. The error show "plugin not found" on agent node, but wikipedia plugin already installed.

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @avasquezkudaw on GitHub (Feb 28, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce When i run a workflow using agent, fail. The error show "plugin not found" on agent node, but wikipedia plugin already installed. ![Image](https://github.com/user-attachments/assets/f640af6a-b7e5-4017-bb6e-a733815a9e94) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:27:27 -05:00
yindo closed this issue 2026-02-21 18:27:27 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 28, 2025):

Hello, @avasquezkudaw! I'm here to help you with any bugs, questions, or contributions you might have. Let's tackle this issue together!

The "Plugin not found" error on the agent node, despite having the Wikipedia plugin installed, might occur because the plugin needs to be reinstalled. This issue can happen if the plugin is installed from GitHub and is not properly recognized or linked in the system. You should try going to the Plugins section in Dify and reinstalling the plugin to resolve this issue [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 28, 2025): <!-- Greeting --> Hello, @avasquezkudaw! I'm here to help you with any bugs, questions, or contributions you might have. Let's tackle this issue together! <!-- Answer --> The "Plugin not found" error on the agent node, despite having the Wikipedia plugin installed, might occur because the plugin needs to be reinstalled. This issue can happen if the plugin is installed from GitHub and is not properly recognized or linked in the system. You should try going to the Plugins section in Dify and reinstalling the plugin to resolve this issue <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/i18n/es-ES/workflow.ts)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1f5d26af-04d3-464e-b094-8f3118fae4dd?feedback_type=other)</sup>
Author
Owner

@avasquezkudaw commented on GitHub (Feb 28, 2025):

@dosu I have reinstalled all plugins and the error has changed. Now I get the following error:

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for FunctionCallingParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/model_type"}

Image

Image

@avasquezkudaw commented on GitHub (Feb 28, 2025): @dosu I have reinstalled all plugins and the error has changed. Now I get the following error: Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for FunctionCallingParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/model_type"} ![Image](https://github.com/user-attachments/assets/682011bd-1d47-4355-84cd-2a830e786b6f) ![Image](https://github.com/user-attachments/assets/bd2d4a9e-3ab6-4990-bd41-bad6ae95c9ff)
Author
Owner

@dosubot[bot] commented on GitHub (Feb 28, 2025):

The error you're encountering indicates that the model.entity field in the FunctionCallingParams is not being correctly populated with a valid dictionary or instance of AIModelEntity. This is likely causing the ValidationError.

To resolve this issue, ensure that the model field in your FunctionCallingParams is correctly set up. It should be an instance of AIModelEntity or a valid dictionary that matches the expected structure. Here's a brief overview of what the AIModelEntity should include:

  • model: The identifier of the model (e.g., "gpt-4").
  • model_type: The type of model, such as "llm" for language models.
  • Other optional fields like label, features, and model_properties can be included as needed.

Make sure that the model field in your configuration is not null and is properly defined. You might need to check the part of your workflow where the model is being set and ensure it aligns with the expected format for AIModelEntity [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 28, 2025): <!-- Answer --> The error you're encountering indicates that the `model.entity` field in the `FunctionCallingParams` is not being correctly populated with a valid dictionary or instance of `AIModelEntity`. This is likely causing the `ValidationError`. To resolve this issue, ensure that the `model` field in your `FunctionCallingParams` is correctly set up. It should be an instance of `AIModelEntity` or a valid dictionary that matches the expected structure. Here's a brief overview of what the `AIModelEntity` should include: - `model`: The identifier of the model (e.g., "gpt-4"). - `model_type`: The type of model, such as "llm" for language models. - Other optional fields like `label`, `features`, and `model_properties` can be included as needed. Make sure that the `model` field in your configuration is not `null` and is properly defined. You might need to check the part of your workflow where the model is being set and ensure it aligns with the expected format for `AIModelEntity` <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/__base/ai_model.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/9390b850-996c-4995-b96d-fde35532e413?feedback_type=other)</sup>
Author
Owner

@avasquezkudaw commented on GitHub (Feb 28, 2025):

@dosu It is important to mention that the test was performed using the Azure Open AI GPT-4o model. However, when using OpenAI's GPT-4o, it works correctly.

@avasquezkudaw commented on GitHub (Feb 28, 2025): @dosu It is important to mention that the test was performed using the Azure Open AI GPT-4o model. However, when using OpenAI's GPT-4o, it works correctly.
Author
Owner

@dosubot[bot] commented on GitHub (Feb 28, 2025):

The issue you're experiencing with the Azure OpenAI GPT-4O model, but not with OpenAI's GPT-54O, might be related to differences in how these models are configured or validated in Dify.

Ensure that the AIModelEntity for the Azure OpenAI model is correctly set up. The structure should include the model identifier, model_type, and other necessary properties. It's crucial that the credentials and model properties are correctly specified for Azure OpenAI models, as they might differ from those used for OpenAI models.

Additionally, check for any known issues or limitations with Azure OpenAI models in Dify. For instance, if the Azure model version is below 0613, it might not support certain features like function calls, which could lead to errors [1].

Review the configuration and validation steps for Azure OpenAI models to ensure compatibility with Dify's platform. If the issue persists, it might be helpful to compare the configurations of both models to identify any discrepancies.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 28, 2025): <!-- Answer --> The issue you're experiencing with the Azure OpenAI GPT-4O model, but not with OpenAI's GPT-54O, might be related to differences in how these models are configured or validated in Dify. Ensure that the `AIModelEntity` for the Azure OpenAI model is correctly set up. The structure should include the `model` identifier, `model_type`, and other necessary properties. It's crucial that the credentials and model properties are correctly specified for Azure OpenAI models, as they might differ from those used for OpenAI models. Additionally, check for any known issues or limitations with Azure OpenAI models in Dify. For instance, if the Azure model version is below 0613, it might not support certain features like function calls, which could lead to errors <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/jp/learn-more/faq/llms-use-faq.md)</sup>. Review the configuration and validation steps for Azure OpenAI models to ensure compatibility with Dify's platform. If the issue persists, it might be helpful to compare the configurations of both models to identify any discrepancies. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ea5e2c4b-d6cf-4253-a5a0-966f0a626dc5?feedback_type=other)</sup>
Author
Owner

@severian42 commented on GitHub (Feb 28, 2025):

@dosu I have reinstalled all plugins and the error has changed. Now I get the following error:

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for FunctionCallingParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/model_type"}

Image

Image

I am now getting the exact same error when make an external API call to a workflow run. It was working perfectly just a few days ago. I am using the Web Pro version as well and have installed all the necessary plugins over again.

@severian42 commented on GitHub (Feb 28, 2025): > [@dosu](https://github.com/dosu) I have reinstalled all plugins and the error has changed. Now I get the following error: > > Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for FunctionCallingParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit [https://errors.pydantic.dev/2.8/v/model_type"}](https://errors.pydantic.dev/2.8/v/model_type%22%7D) > > ![Image](https://github.com/user-attachments/assets/682011bd-1d47-4355-84cd-2a830e786b6f) > > ![Image](https://github.com/user-attachments/assets/bd2d4a9e-3ab6-4990-bd41-bad6ae95c9ff) I am now getting the exact same error when make an external API call to a workflow run. It was working perfectly just a few days ago. I am using the Web Pro version as well and have installed all the necessary plugins over again.
Author
Owner

@EcoleKeine commented on GitHub (Mar 4, 2025):

same problem
model: volcengine_maas + deepseek-v3

@EcoleKeine commented on GitHub (Mar 4, 2025): same problem model: volcengine_maas + deepseek-v3
Author
Owner

@sprt-kmelchor commented on GitHub (Mar 4, 2025):

@dosu I have reinstalled all plugins and the error has changed. Now I get the following error:

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for FunctionCallingParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/model_type"}

Image

Image

getting the same error when trying to use Agent as a node.

Model settings: Azure OpenAI Service Model --> gpt-4o-mini-2024-07-18

@sprt-kmelchor commented on GitHub (Mar 4, 2025): > [@dosu](https://github.com/dosu) I have reinstalled all plugins and the error has changed. Now I get the following error: > > Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for FunctionCallingParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit [https://errors.pydantic.dev/2.8/v/model_type"}](https://errors.pydantic.dev/2.8/v/model_type%22%7D) > > ![Image](https://github.com/user-attachments/assets/682011bd-1d47-4355-84cd-2a830e786b6f) > > ![Image](https://github.com/user-attachments/assets/bd2d4a9e-3ab6-4990-bd41-bad6ae95c9ff) getting the same error when trying to use Agent as a node. Model settings: Azure OpenAI Service Model --> gpt-4o-mini-2024-07-18
Author
Owner

@HamaWhiteGG commented on GitHub (Mar 13, 2025):

Image

After debugging, it was determined that the error requires modifying the dependency code within the plugin.

Modify the __init__.py file in the directory volumes/plugin_daemon/cwd/langgenius/agent-0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13/.venv/lib64/python3.12/site-packages/dify_plugin/interfaces/agent, and set the default value of entity in the AgentModelConfig class to None.

Before modification:

class AgentModelConfig(LLMModelConfig):
    entity: AIModelEntity

After modification:

class AgentModelConfig(LLMModelConfig):
    entity: Optional[AIModelEntity] = Field(default=None)

To restart the docker-plugin_daemon-1 container after modifying the code, you can use the following command:

docker restart docker-plugin_daemon-1

Verification result:

Image
@HamaWhiteGG commented on GitHub (Mar 13, 2025): <img width="793" alt="Image" src="https://github.com/user-attachments/assets/21bcc46e-0f54-4ebb-a325-ca147720cc22" /> After debugging, it was determined that the error requires modifying the dependency code within the plugin. Modify the `__init__.py` file in the directory `volumes/plugin_daemon/cwd/langgenius/agent-0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13/.venv/lib64/python3.12/site-packages/dify_plugin/interfaces/agent`, and set the default value of `entity` in the `AgentModelConfig` class to `None`. Before modification: ```python class AgentModelConfig(LLMModelConfig): entity: AIModelEntity ``` After modification: ```python class AgentModelConfig(LLMModelConfig): entity: Optional[AIModelEntity] = Field(default=None) ``` To restart the docker-plugin_daemon-1 container after modifying the code, you can use the following command: ```shell docker restart docker-plugin_daemon-1 ``` Verification result: <img width="815" alt="Image" src="https://github.com/user-attachments/assets/183b63c1-a478-47b3-a2e2-e8c6eef14c00" />
Author
Owner

@dickens88 commented on GitHub (Mar 22, 2025):

Hi, I got the same issue. After upgraded to v1.1.2 the agent flow with gpt4o truely restore. But the error still existing if I use Ollama with qwen2.5 ...

@dickens88 commented on GitHub (Mar 22, 2025): Hi, I got the same issue. After upgraded to v1.1.2 the agent flow with gpt4o truely restore. But the error still existing if I use Ollama with qwen2.5 ...
Author
Owner

@avasquezkudaw commented on GitHub (Mar 24, 2025):

The solution I found was to update the plugins one by one and I was able to fix it.

@avasquezkudaw commented on GitHub (Mar 24, 2025): The solution I found was to update the plugins one by one and I was able to fix it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8761