Buckets:

download
raw
653 Bytes
# SPDX-License-Identifier: MIT
"""
Enums for stream module
"""
from enum import Enum
class MessageRole(str, Enum):
"""Message role enumeration"""
SYSTEM = "system"
USER = "user"
ASSISTANT = "assistant"
FUNCTION = "function"
class MessageStatus(str, Enum):
"""Message status enumeration"""
CREATED = "created"
RUNNING = "running"
COMPLETED = "completed"
FAILED = "failed"
CANCELLED = "cancelled"
class StreamEventType(str, Enum):
"""Stream event type"""
START = "start"
CONTENT = "content"
FUNCTION_CALL = "function_call"
ERROR = "error"
END = "end"
METADATA = "metadata"

Xet Storage Details

Size:
653 Bytes
·
Xet hash:
a39f8e2581154d310792ed48480b30b7747cb8b3e1989013a04feaba558929ea

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