Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: add step part to ChatPart (#7750)

Myles Scolnick5b97ae873b3c
diff --git a/marimo/_ai/_types.py b/marimo/_ai/_types.py
index b05f4a7a88..369aff94ca 100644
--- a/marimo/_ai/_types.py
+++ b/marimo/_ai/_types.py
@@ -167,6 +167,11 @@ class DataReasoningPart:
data: ReasoningData
+@dataclass
+class StepStartPart:
+ type: Literal["step-start"]
+
+
if TYPE_CHECKING:
ChatPart = Union[
TextPart,
@@ -174,6 +179,7 @@ if TYPE_CHECKING:
ToolInvocationPart,
FilePart,
DataReasoningPart,
+ StepStartPart,
]
else:
ChatPart = dict[str, Any]
@@ -184,6 +190,7 @@ PART_TYPES = [
ToolInvocationPart,
FilePart,
DataReasoningPart,
+ StepStartPart,
]