mirror of
https://github.com/langgenius/dify.git
synced 2026-08-29 02:16:23 +08:00
FunctionCallStrategy and ReActStrategy were passing user=self.context.user_id to ModelInstance.invoke_llm() which doesn't accept that parameter. This caused tool-using agent runs to fail with: "ModelInstance.invoke_llm() got an unexpected keyword argument 'user'" Verified: Agent V2 with current_time tool now works end-to-end: ROUND 1: LLM thought -> CALL current_time -> got time ROUND 2: LLM generates answer with time info Made-with: Cursor |
||
|---|---|---|
| .. | ||
| output_parser | ||
| patterns | ||
| prompt | ||
| strategy | ||
| __init__.py | ||
| agent_app_runner.py | ||
| base_agent_runner.py | ||
| cot_agent_runner.py | ||
| cot_chat_agent_runner.py | ||
| cot_completion_agent_runner.py | ||
| entities.py | ||
| errors.py | ||
| fc_agent_runner.py | ||
| plugin_entities.py | ||