CallOptions

This commit is contained in:
lda
2026-08-30 03:39:26 +07:00 Verified
parent 2587b07b4a
commit 282dc5b4e8
8 changed files with 59 additions and 65 deletions
+8 -1
View File
@@ -15,6 +15,13 @@ CallEventKind = Literal[
ShellStatus = Literal["ready", "running", "error"]
@dataclass
class CallOptions:
"""Presentation and execution hints attached to one call."""
collapsed: bool = False
@dataclass
class CallEvent:
"""One ordered, UI-safe event emitted while a call executes."""
@@ -54,7 +61,7 @@ class CallResponse:
call_id: str
shell_name: str
code: str
collapsed: bool
options: CallOptions
result: CallResult
events: list[CallEvent]
shell: ShellInfo