Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/askui/chat/api/runs/runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/askui/tools/askui/askui_controller_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ class AskUiControllerSettings(BaseSettings):
".",
)
controller_args: str | None = Field(
default="--showOverlay true",
default="--showOverlay false",
description=(
"Arguments to pass to the AskUI Remote Device Controller executable. "
"Supported arguments: --showOverlay [true|false], --debugDraw [true|false],"
"--configFile <AbsolutePathToConfigFile>.\n"
"Examples:\n"
" --showOverlay false --configFile /path/to/config.json\n"
" --showOverlay false\n"
"Default: --showOverlay true"
"Default: --showOverlay false"
),
)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tools/askui/test_askui_controller_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def test_assertion_error_when_no_controller_found(self) -> None:
def test_controller_args_default_value(self) -> None:
"""Test that controller_args is set correctly with default value."""
settings = AskUiControllerSettings(component_registry_file="/dummy")
assert settings.controller_args == "--showOverlay true"
assert settings.controller_args == "--showOverlay false"

def test_controller_args_constructor(self) -> None:
"""Test that controller_args is set correctly with constructor."""
Expand Down