From d64d4230cc755a097c970db84bf7f99eddc548d8 Mon Sep 17 00:00:00 2001 From: Adrian Stritzinger Date: Tue, 16 Sep 2025 08:21:23 +0200 Subject: [PATCH] fix(chat): agent identity --- src/askui/chat/api/runs/runner/runner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/askui/chat/api/runs/runner/runner.py b/src/askui/chat/api/runs/runner/runner.py index 98a2f3a8..3618a4bb 100644 --- a/src/askui/chat/api/runs/runner/runner.py +++ b/src/askui/chat/api/runs/runner/runner.py @@ -100,7 +100,13 @@ def _build_system(self) -> list[BetaTextBlockParam]: "workspace_id": str(self._workspace_id), "assistant_id": str(self._run.assistant_id), } + is_custom_assistant = self._assistant.workspace_id is not None + custom_assistant_str = "custom " if is_custom_assistant else "" return [ + BetaTextBlockParam( + type="text", + text=f'You are an {custom_assistant_str}AI agent called "{self._assistant.name}" that is part of Caesr AI (AI agent platform developed by the company AskUI).', + ), *( [ BetaTextBlockParam(