trading_agent.terminal.screens.sessions_screen
¶
The Sessions page: a desk's memory search, its sessions with their exchanges, its daily summaries and its notes.
It copies the web page's SessionsPage.tsx.
Typical usage example:
app.push_screen(SessionsScreen('general'))
SessionsScreen
¶
Bases: PageScreen
The Sessions page.
Creates the page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
desk_name
|
str
|
The desk the chat shows. |
required |
Source code in src/trading_agent/terminal/screens/sessions_screen.py
compose_page
¶
Builds the search, the session list, the exchanges and the summaries and notes.
Yields:
| Type | Description |
|---|---|
Widget
|
The page's parts. |
Source code in src/trading_agent/terminal/screens/sessions_screen.py
refresh_page
async
¶
Reads the desk's sessions, summaries and notes.
Source code in src/trading_agent/terminal/screens/sessions_screen.py
action_next_desk
¶
Shows the next desk, starting again from its summaries and notes.
action_focus_search
¶
on_option_list_option_selected
¶
Shows the chosen session's exchanges.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
OptionSelected
|
The choice. |
required |
Source code in src/trading_agent/terminal/screens/sessions_screen.py
on_input_submitted
¶
Searches the desk's memory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
Submitted
|
The search words. |
required |