Skip to content

Commit 802fa68

Browse files
authored
Update commands.py
1 parent a23dda1 commit 802fa68

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎python_agent_harness/tui/commands.py‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
import os
1111
import shlex
1212
import threading
13+
from typing import TYPE_CHECKING, Any
1314

15+
from rich.console import Console
1416
from rich.live import Live
1517

1618
from .. import config
@@ -24,6 +26,11 @@
2426
unescape_role_header,
2527
)
2628

29+
if TYPE_CHECKING:
30+
from collections.abc import Callable
31+
32+
from ..agent_session import AgentSession
33+
2734

2835
class CommandMixin:
2936
"""Slash command methods for the TUI.
@@ -34,6 +41,30 @@ class CommandMixin:
3441
``_status_bar``, ``_flush``, ``_render_frame``.
3542
"""
3643

44+
if TYPE_CHECKING:
45+
session: AgentSession
46+
console: Console
47+
conversation_history: list[Message]
48+
_history_dirty: bool
49+
_data_event: threading.Event
50+
agent_running: bool
51+
status: str
52+
_current_tool: str
53+
_round_times: list[float]
54+
55+
def _start_agent(
56+
self,
57+
text: str,
58+
system: str | None = None,
59+
restore: Callable[[], None] | None = None,
60+
) -> None: ...
61+
62+
def _status_bar(self) -> Any: ...
63+
64+
def _flush(self) -> None: ...
65+
66+
def _render_frame(self) -> Any: ...
67+
3768
# ------------------------------------------------------------------
3869
# slash commands
3970
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)