Skip to content

Commit

Permalink
Add system msg when calling inside the assistant tool loop (#4308) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gziz authored Nov 22, 2024
1 parent 97fd6cc commit 232068a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ async def on_messages_stream(
return

# Generate an inference result based on the current model context.
llm_messages = self._system_messages + self._model_context
result = await self._model_client.create(
self._model_context, tools=self._tools + self._handoff_tools, cancellation_token=cancellation_token
llm_messages, tools=self._tools + self._handoff_tools, cancellation_token=cancellation_token
)
self._model_context.append(AssistantMessage(content=result.content, source=self.name))

Expand Down

0 comments on commit 232068a

Please sign in to comment.