OrbitMC/Mythos-storage / agent /responses.py
OrbitMC's picture
download
raw
1.62 kB
"""
Streaming event types yielded by Agent.stream().
Each event is a plain dict with at least a ``"type"`` key.
"""
# ── Text chunk ──────────────────────────────────────────────────────────
# {"type": "text", "content": "partial assistant message"}
TEXT = "text"
# ── Reasoning (e.g. DeepSeek R1 chain-of-thought) ──────────────────────
# {"type": "reasoning", "content": "model thinking"}
REASONING = "reasoning"
# ── Tool was called by the model ────────────────────────────────────────
# {"type": "tool_call", "name": "fetch_webpage", "arguments": '{"url":"..."}'}
TOOL_CALL = "tool_call"
# ── Tool execution output ───────────────────────────────────────────────
# {"type": "tool_output", "name": "fetch_webpage", "content": "<html>..."}
TOOL_OUTPUT = "tool_output"
# ── Final response (no more tool calls) ─────────────────────────────────
# {"type": "done", "content": "full assistant message"}
DONE = "done"
# ── Fatal error ─────────────────────────────────────────────────────────
# {"type": "error", "content": "API key invalid"}
ERROR = "error"

Xet Storage Details

Size:
1.62 kB
·
Xet hash:
4872516915ec02a7f41bcc139386eb8e19d38e9e0a704f923be4b642ead269e6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.