Skip to content

Commit

Permalink
Move the object message history inside workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
givenscj committed Jan 15, 2025
1 parent 92151dc commit 815def9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ async def invoke_async(self, request: KnowledgeManagementCompletionRequest) -> C
self.user_identity,
self.config)

request.objects['message_history'] = request.message_history

# Get message history
if agent.conversation_history_settings.enabled:
messages = self._build_conversation_history_message_list(request.message_history, agent.conversation_history_settings.max_history)
Expand All @@ -553,8 +555,6 @@ async def invoke_async(self, request: KnowledgeManagementCompletionRequest) -> C
return response
# End External Agent workflow implementation

request.objects['message_history'] = request.message_history

# Start LangChain Expression Language (LCEL) implementation

# Get the vector document retriever, if it exists.
Expand Down

0 comments on commit 815def9

Please sign in to comment.