Files
rag-manager/typings/__init__.py
2025-09-21 01:38:47 +00:00

16 lines
322 B
Python

"""API response type definitions."""
from typing import TypedDict
class EmbeddingData(TypedDict):
"""Structure for embedding data from API response."""
embedding: list[float]
class EmbeddingResponse(TypedDict):
"""Structure for OpenAI-compatible embedding API response."""
data: list[EmbeddingData]