Skip to main content

Crate agent_tui

Crate agent_tui 

Source
Expand description

agent-tui - Library for AI agents to interact with TUI applications

This library provides the core functionality for managing PTY sessions, detecting UI elements, and interacting with terminal applications.

§Modules

  • session - Session management and lifecycle
  • detection - UI element detection (buttons, inputs, checkboxes, etc.)
  • terminal - Virtual terminal emulation
  • pty - PTY (pseudo-terminal) handling
  • wait - Wait conditions for synchronization

Re-exports§

pub use detection::Element;
pub use detection::ElementDetector;
pub use detection::Framework;
pub use pty::PtyError;
pub use pty::PtyHandle;
pub use session::Session;
pub use session::SessionError;
pub use session::SessionId;
pub use session::SessionInfo;
pub use session::SessionManager;
pub use terminal::CursorPosition;
pub use terminal::ScreenBuffer;
pub use terminal::VirtualTerminal;
pub use wait::WaitCondition;

Modules§

detection
Element detection for TUI applications
pty
PTY management using portable-pty
session
Session management for agent-tui
sync_utils
Synchronization utilities with poison recovery
terminal
Terminal emulation using vt100
wait
Wait conditions for agent-tui