mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Fix: agent toolcall null response & schema validation & DeepSeek think history (#14425)
### What problem does this PR solve? agent toolcall null response & schema validation & DeepSeek think history ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -145,7 +145,8 @@ class Agent(LLM, ToolBase):
|
||||
self._param.function_name = self._id.split("-->")[-1]
|
||||
m = super().get_meta()
|
||||
if hasattr(self._param, "user_prompt") and self._param.user_prompt:
|
||||
m["function"]["parameters"]["properties"]["user_prompt"] = self._param.user_prompt
|
||||
# Keep the JSON schema valid; user_prompt is a string field, not a schema node.
|
||||
m["function"]["parameters"]["properties"]["user_prompt"]["default"] = self._param.user_prompt
|
||||
return m
|
||||
|
||||
def get_input_form(self) -> dict[str, dict]:
|
||||
|
||||
Reference in New Issue
Block a user