oc_chat
Loading...
Searching...
No Matches
turn_layout.py File Reference

Go to the source code of this file.

Classes

class  oc_ui.terminal.turn_layout.LineIndenter

Namespaces

namespace  oc_ui
namespace  oc_ui.terminal
namespace  oc_ui.terminal.turn_layout

Functions

str oc_ui.terminal.turn_layout.indent_text (str text, str indent=TURN_INDENT)
str oc_ui.terminal.turn_layout.start_rule_label (str ts)
str oc_ui.terminal.turn_layout.turn_rule_label (int turn_number, str ts)
str oc_ui.terminal.turn_layout.turn_end_rule_label (int turn_number, str ts, str stats="")
list[tuple[str, str]] oc_ui.terminal.turn_layout.turn_end_rule_segments (int turn_number, str ts, str stats="")
str oc_ui.terminal.turn_layout.running_total_text (int turn_tokens, int session_tokens, "Callable[[int], str] | None" fmt=None)
list[tuple[str, str]] oc_ui.terminal.turn_layout.compose_rule (str|list[tuple[str, str]] label, int width, str trailer="", str fill=RULE_FILL)
str oc_ui.terminal.turn_layout.rule_line (str|list[tuple[str, str]] label, int width, str trailer="", str fill=RULE_FILL)
bool oc_ui.terminal.turn_layout.rule_fits (str|list[tuple[str, str]] label, int width)
str oc_ui.terminal.turn_layout.plain_box_top (int width, str title=ANSWER_BOX_TITLE, str indent=TURN_INDENT)
str oc_ui.terminal.turn_layout.plain_box_bottom (int width, str subtitle="", str indent=TURN_INDENT)

Variables

str oc_ui.terminal.turn_layout.TURN_INDENT = " "
str oc_ui.terminal.turn_layout.ANSWER_BOX_TITLE = "Assistant Answer:"
str oc_ui.terminal.turn_layout.REASONING_TITLE = "Assistant CoT:"
str oc_ui.terminal.turn_layout.RULE_FILL = "─"
str oc_ui.terminal.turn_layout.PLAIN_RULE_FILL = "·"
str oc_ui.terminal.turn_layout.PLAIN_BOX_FILL = "-"
int oc_ui.terminal.turn_layout._MIN_RULE_FILL = 4