Replies: 6 comments 4 replies
-
|
To develop and deploy an agent strategy plugin in Dify, running it with Dify does not currently support true hot reloading for agent strategy plugins—meaning, if you change your plugin code, you need to manually restart the plugin process for changes to take effect. You do not need to restart the whole Dify platform, just the plugin process itself [source]. For production, package your plugin (e.g., with Official docs: If you run into issues, double-check your To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
python -m main {"event": "log", "data": {"level": "INFO", "message": "Installed agent: agent", "timestamp": 1767840496.2360218}} 我在本地启动了python -m main,看到上述消息,但是在dify的插件页面,我没看到这个安装后的插件,是什么配置错误了吗? |
Beta Was this translation helpful? Give feedback.
-
|
谢谢,我解决了这个问题,但是我的agent strategy 部署上去后,执行后,我在docker-api-1中发现显示如下的错误,这个大致是什么原因? ############################################################################# |
Beta Was this translation helpful? Give feedback.
-
|
但是我已经添加上了,在插件和chatflow中我都已经可以选择了。我在agent节点中可以选择我添加的agent strategy了。那不是应该节点已经添加成功了吗?现在说的这个是指什么没找到? 我按照python -m main方式安装后,在命令行窗口没有显示错误
|
Beta Was this translation helpful? Give feedback.
-
|
当我执行python -m main的时候,我在docker-plugin_daemon-1中看到如下的信息,这是否可以确认已经正确安装了 2026/01/08 03:54:33 /app/internal/db/executor.go:259 record not found 2026/01/08 03:54:33 /app/internal/db/executor.go:259 record not found |
Beta Was this translation helpful? Give feedback.
-
|
我在docker api -1的 log中看到如下很多的错误日志,这是说明了哪个方面的错误导致的 2026-01-08 11:57:20.122 ERROR [GraphWorker-1] [base.py:277] - Error in stream response for plugin {'code': -500, 'message': '{"message":"{\"args\":{},\"error_type\":\"ValidationError\",\"message\":\"8 validation errors for AgentInvokeMessage\\ntype\\n Field required [type=missing, input_value={'message': 'Error: 1 val...tic.dev/2.12/v/missing'}, input_type=dict]\\n For further information visit https://errors.pydantic.dev/2.12/v/missing\\\\nmessage.TextMessage\\\\n Input should be a valid dictionary or instance of TextMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\\\nmessage.JsonMessage\\\\n Input should be a valid dictionary or instance of JsonMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\\\nmessage.VariableMessage\\\\n Input should be a valid dictionary or instance of VariableMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\\\nmessage.BlobMessage\\\\n Input should be a valid dictionary or instance of BlobMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\\\nmessage.BlobChunkMessage\\\\n Input should be a valid dictionary or instance of BlobChunkMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\\\nmessage.LogMessage\\\\n Input should be a valid dictionary or instance of LogMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\\\nmessage.RetrieverResourceMessage\\\\n Input should be a valid dictionary or instance of RetrieverResourceMessage [type=model_type, input_value='Error: 1 validation erro...ntic.dev/2.12/v/missing', input_type=str]\\n For further information visit https://errors.pydantic.dev/2.12/v/model_type\\"}","error_type":"PluginInvokeError","args":null}', 'data': None} ** |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I want to develop a private agetn strategy. I want to hot to deploy it like a normal plugin with "python -m main". Is this correct?
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions