Skip to content

Commit

Permalink
feat(agent):fix agent overrid bug (#2235)
Browse files Browse the repository at this point in the history
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
  • Loading branch information
yhjun1026 and fangyinc authored Dec 21, 2024
1 parent 1bdf695 commit 78c0368
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dbgpt/serve/agent/agents/expand/app_start_assisant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def prepare_act_param(
received_message: Optional[AgentMessage],
sender: Agent,
rely_messages: Optional[List[AgentMessage]] = None,
**kwargs,
) -> Dict[str, Any]:
return {
"user_input": received_message.content,
Expand All @@ -67,9 +68,10 @@ async def _load_thinking_messages(
received_message: AgentMessage,
sender: Agent,
rely_messages: Optional[List[AgentMessage]] = None,
historical_dialogues: Optional[List[AgentMessage]] = None,
context: Optional[Dict[str, Any]] = None,
is_retry_chat: Optional[bool] = False,
) -> tuple[List[AgentMessage], Optional[Dict]]:
is_retry_chat: bool = False,
) -> Tuple[List[AgentMessage], Optional[Dict]]:
if rely_messages and len(rely_messages) > 0:
return rely_messages[-1:], None
else:
Expand Down

0 comments on commit 78c0368

Please sign in to comment.