mirror of
https://github.com/MODSetter/SurfSense
synced 2026-06-21 13:44:09 +00:00
27 lines
829 B
Python
27 lines
829 B
Python
"""Mutable facts collected while relaying one agent stream (``stream_output``)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass, field
|
|
from typing import Any
|
|
|
|
|
|
@dataclass
|
|
class StreamingResult:
|
|
accumulated_text: str = ""
|
|
is_interrupted: bool = False
|
|
sandbox_files: list[str] = field(default_factory=list)
|
|
request_id: str | None = None
|
|
turn_id: str = ""
|
|
filesystem_mode: str = "cloud"
|
|
client_platform: str = "web"
|
|
intent_detected: str = "chat_only"
|
|
intent_confidence: float = 0.0
|
|
write_attempted: bool = False
|
|
write_succeeded: bool = False
|
|
verification_succeeded: bool = False
|
|
commit_gate_passed: bool = True
|
|
commit_gate_reason: str = ""
|
|
assistant_message_id: int | None = None
|
|
content_builder: Any | None = field(default=None, repr=False)
|