Bug about debugging agent strategy plugin locally #72

Closed
opened 2026-02-16 00:19:36 -05:00 by yindo · 1 comment
Owner

Originally created by @QunBB on GitHub (Mar 27, 2025).

When i want to develope agent strategy plugin and debug it locally, and run it by python -m main.
Everytime, the agent strategy plugin with model-selector will raise:

fc_params = FunctionCallingParams(**parameters)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

pydantic_core._pydantic_core.ValidationError: 1 validation error for FunctionCallingParams
model.entity
  Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.8/v/model_type

I try to print the input parameters:

{'instruction': 'You are a helpful agent assistant.', 'maximum_iterations': 3, 'mcp_server': '', 'model': {'completion_params': {}, 'entity': None, 'mode': 'chat', 'model': 'DeepSeek-V3', 'model_type': 'llm', 'provider': 'langgenius/volcengine_maas/volcengine_maas', 'type': 'model-selector'}, 'query': '你好', 'tools':.......

and found the problem is that entity is None unexpectedly.

plugin-daemon version:
docker, langgenius/dify-plugin-daemon:0.0.6-local

Originally created by @QunBB on GitHub (Mar 27, 2025). When i want to develope agent strategy plugin and debug it locally, and run it by `python -m main`. Everytime, the agent strategy plugin with `model-selector` will raise: ``` fc_params = FunctionCallingParams(**parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for FunctionCallingParams model.entity Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.8/v/model_type ``` I try to print the input parameters: ``` {'instruction': 'You are a helpful agent assistant.', 'maximum_iterations': 3, 'mcp_server': '', 'model': {'completion_params': {}, 'entity': None, 'mode': 'chat', 'model': 'DeepSeek-V3', 'model_type': 'llm', 'provider': 'langgenius/volcengine_maas/volcengine_maas', 'type': 'model-selector'}, 'query': '你好', 'tools':....... ``` and found the problem is that `entity` is `None` unexpectedly. plugin-daemon version: docker, langgenius/dify-plugin-daemon:0.0.6-local
yindo closed this issue 2026-02-16 00:19:36 -05:00
Author
Owner

@Yeuoly commented on GitHub (Mar 28, 2025):

It should has been fixed in the latest SDK, feel free to update your SDK

@Yeuoly commented on GitHub (Mar 28, 2025): It should has been fixed in the latest SDK, feel free to update your SDK
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#72