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
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
"request": "launch",
"python": "./.venv/bin/python",
"module": "rogue",
"args": [],
"args": [
"--example=tshirt_store"
],
"envFile": "${workspaceFolder}/.env"
},
{
Expand Down
8 changes: 8 additions & 0 deletions examples/tshirt_store_agent/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
import warnings

warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
)


from .tshirt_store_agent import agent as root_agent
18 changes: 18 additions & 0 deletions rogue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@
This module provides a clean, library-oriented API for agent evaluation.
"""

import warnings

warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="websockets.legacy is deprecated",
)
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="websockets.server.WebSocketServerProtocol is deprecated",
)
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="remove second argument of ws_handler",
)

# Import submodules for backward compatibility
from . import (
common,
Expand Down
13 changes: 0 additions & 13 deletions rogue/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import subprocess # nosec: B404
import sys
import time
import warnings
from argparse import ArgumentParser, Namespace
from pathlib import Path

Expand All @@ -19,18 +18,6 @@
from .run_tui import run_rogue_tui
from .run_ui import run_ui, set_ui_args

# Suppress the specific Uvicorn/websockets deprecation warnings
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="websockets.legacy is deprecated",
)
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="websockets.server.WebSocketServerProtocol is deprecated",
)

load_dotenv()


Expand Down
18 changes: 18 additions & 0 deletions rogue/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,22 @@
Provides REST API endpoints and WebSocket support for agent evaluation.
"""

import warnings

warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="websockets.legacy is deprecated",
)
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="websockets.server.WebSocketServerProtocol is deprecated",
)
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="remove second argument of ws_handler",
)

from . import api, core, models, services, websocket
Loading