Skip to content

Commit

Permalink
Change system message to text message
Browse files Browse the repository at this point in the history
  • Loading branch information
sternakt committed Nov 19, 2024
1 parent a3e9b44 commit 0b65694
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions context_leakage_team/workflow/scenarios/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ def _validate_tool_call(
self, ui: UI, messages: list[dict[str, Any]], agent: Agent, action: str
) -> Agent | None:
if "tool_calls" not in messages[-1] and len(messages) > 1:
ui.system_message(
ui.text_message(
sender="Context leakage team",
message=f"Please call the function to {action}.",
recipient=agent.name,
body=f"Please call the function to {action}.",
)
return agent
return None
Expand Down

0 comments on commit 0b65694

Please sign in to comment.