Skip to content
Open

test #12

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ec0ee99
test
Cursx Dec 2, 2025
f2efef8
修复正常对话重复回答问题
Cursx Dec 2, 2025
2ce8980
suggestion
Cursx Dec 2, 2025
6809e23
修复调用直返工具时重复输出
Cursx Dec 2, 2025
62e15c6
修复fc的一个潜在bug
Cursx Dec 2, 2025
db3859c
Update api/core/agent/fc_agent_runner.py
Cursx Dec 2, 2025
8b4e0e8
Update fc_agent_runner.py
Cursx Dec 2, 2025
fbecfe6
suggestion
Cursx Dec 2, 2025
121d645
Merge branch 'return' of https://github.com/Cursx/dify into return
Cursx Dec 2, 2025
2155dfa
suggestion
Cursx Dec 2, 2025
dffdcb0
移除冗余代码
Cursx Dec 3, 2025
2d1f1d3
优化输出处理
Cursx Dec 3, 2025
62a6142
Update fc_agent_runner.py
Cursx Dec 3, 2025
60e5049
Update api/core/tools/workflow_as_tool/tool.py
Cursx Dec 3, 2025
b704fb2
优化部分代码
Cursx Dec 3, 2025
61c4343
解决冗余
Cursx Dec 3, 2025
d874333
解决冗余+回退,前端渲染绑定thought
Cursx Dec 3, 2025
5339af0
Update tool_engine.py
Cursx Dec 3, 2025
cc0356e
添加注释
Cursx Dec 3, 2025
254ca03
update
Cursx Dec 3, 2025
2308e8e
Update fc_agent_runner.py
Cursx Dec 3, 2025
eeda932
Update cot_agent_runner.py
Cursx Dec 3, 2025
c005d2e
Update fc_agent_runner.py
Cursx Dec 3, 2025
936bea6
Update fc_agent_runner.py
Cursx Dec 3, 2025
f0c66ba
Update fc_agent_runner.py
Cursx Dec 3, 2025
5df9386
Update cot_agent_runner.py
Cursx Dec 3, 2025
a888835
完善cot部分
Cursx Dec 3, 2025
a1f4f16
suggestion
Cursx Dec 4, 2025
5e7fb8d
添加注释
Cursx Dec 4, 2025
fc9f3e0
注释/冗余
Cursx Dec 4, 2025
5cd8973
补充参数
Cursx Dec 4, 2025
cc9a3db
Update cot_agent_runner.py
Cursx Dec 4, 2025
86d992c
Update tool.py
Cursx Dec 4, 2025
9c7be06
Squashed commit of the following:
Cursx Dec 4, 2025
2069a98
Update fc_agent_runner.py
Cursx Dec 4, 2025
a96b9da
Update fc_agent_runner.py
Cursx Dec 4, 2025
3229e78
Revert "Squashed commit of the following:"
Cursx Dec 4, 2025
1629a2e
Merge branch 'main' into return
Cursx Dec 4, 2025
542af06
Update fc_agent_runner.py
Cursx Dec 4, 2025
9283526
Merge branch 'return' of https://github.com/Cursx/dify into return
Cursx Dec 4, 2025
d2b9490
Merge branch 'return' of https://github.com/Cursx/dify into return
Cursx Dec 4, 2025
7529a83
Update fc_agent_runner.py
Cursx Dec 4, 2025
f516141
Update api/core/agent/fc_agent_runner.py
Cursx Dec 4, 2025
3a765e5
Merge branch 'main' into return
Cursx Dec 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions api/core/agent/cot_agent_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ def _save_and_publish_final_thought(self, thought_id: str, final_answer: str, th
answer=final_answer,
messages_ids=[],
)
self.queue_manager.publish(QueueAgentThoughtEvent(agent_thought_id=thought_id), PublishFrom.APPLICATION_MANAGER)
self.queue_manager.publish(
QueueAgentThoughtEvent(agent_thought_id=thought_id), PublishFrom.APPLICATION_MANAGER
)

def _handle_invoke_action(
self,
Expand Down Expand Up @@ -450,4 +452,4 @@ def _organize_historic_prompt_messages(
history_messages=result,
memory=self.memory,
).get_prompt()
return historic_prompts
return historic_prompts
2 changes: 1 addition & 1 deletion api/core/agent/fc_agent_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,4 +674,4 @@ def _organize_prompt_messages(self):
if len(self._current_thoughts) != 0:
# clear messages after the first iteration
prompt_messages = self._clear_user_prompt_image_messages(prompt_messages)
return prompt_messages
return prompt_messages
2 changes: 1 addition & 1 deletion api/core/tools/entities/tool_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,4 +491,4 @@ class Parameter(BaseModel):
tool_parameters: Mapping[str, Parameter] = Field(..., description="Parameters, type llm")

def to_plugin_parameter(self) -> dict[str, Any]:
return self.model_dump()
return self.model_dump()
2 changes: 1 addition & 1 deletion api/core/tools/tool_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,4 @@ def _create_message_files(

db.session.close()

return result
return result
2 changes: 1 addition & 1 deletion api/core/tools/workflow_as_tool/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,4 @@ def _update_file_mapping(self, file_dict: dict):
file_dict["tool_file_id"] = file_dict.get("related_id")
elif transfer_method == FileTransferMethod.LOCAL_FILE:
file_dict["upload_file_id"] = file_dict.get("related_id")
return file_dict
return file_dict