Skip to content

Commit

Permalink
Update tools.ipynb: concat system messages in the tool_agent_caller_l…
Browse files Browse the repository at this point in the history
…oop session
  • Loading branch information
zysoong authored Jan 15, 2025
1 parent 46ea0ad commit 7251f93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
" @message_handler\n",
" async def handle_user_message(self, message: Message, ctx: MessageContext) -> Message:\n",
" # Create a session of messages.\n",
" session: List[LLMMessage] = [UserMessage(content=message.content, source=\"user\")]\n",
" session: List[LLMMessage] = [self._system_messages] + [UserMessage(content=message.content, source=\"user\")]\n",
" # Run the caller loop to handle tool calls.\n",
" messages = await tool_agent_caller_loop(\n",
" self,\n",
Expand Down

0 comments on commit 7251f93

Please sign in to comment.