major update
This commit is contained in:
@@ -8,6 +8,13 @@ from typing import Literal
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class CitationItem(BaseModel):
|
||||
"""A single citation from the sentiment analysis."""
|
||||
|
||||
url: str
|
||||
title: str
|
||||
|
||||
|
||||
class SentimentScoreResult(BaseModel):
|
||||
"""A single sentiment score record."""
|
||||
|
||||
@@ -16,6 +23,8 @@ class SentimentScoreResult(BaseModel):
|
||||
confidence: int = Field(ge=0, le=100)
|
||||
source: str
|
||||
timestamp: datetime
|
||||
reasoning: str = ""
|
||||
citations: list[CitationItem] = []
|
||||
|
||||
|
||||
class SentimentResponse(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user