mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #677] [MERGED] fix: Redundant insertion of system/user prompts in the function-calling agent #1491
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/677
Author: @ExenVitor
Created: 4/8/2025
Status: ✅ Merged
Merged: 4/14/2025
Merged by: @crazywoola
Base:
main← Head:fix-agent-repeatedly-init-historical-msgs📝 Commits (2)
136a4e5fix: redundant insertion of system/user prompts into message history per agent iteration.19b49f3bump version📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
agent-strategies/cot_agent/manifest.yaml(+1 -1)📝
agent-strategies/cot_agent/strategies/function_calling.py(+2 -2)📄 Description
Related Issue or Context
The function-calling agent redundantly inserts system and user prompts into message history every iteration.
Type of Change
Version Control (if applicable)
Versionfield, not in Meta section)Test Evidence (if applicable)
Before: System/User prompts have been inserted into
prompt_messagesseveral times wheniteration_step> 1After: System/User prompts have been inserted into
prompt_messagesonly once wheniteration_step> 1Environment Verification
Local Deployment Environment
Local Deployment Dify Version: 1.1.3
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.