File size: 994 Bytes
8ce97f0
e7801d4
8ce97f0
 
 
 
 
e7801d4
 
 
 
 
 
 
 
8ce97f0
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pydantic import BaseModel, Field 
from typing import List , Optional

class ToolResponseFormatter(BaseModel):
  tools: List[str] = Field(description="Returns the name of the tool, tools, or an empty list.")

class UserReferenceResponseFormatter(BaseModel):
    video_idea: Optional[str] = Field(
        default=None,
        description="Returns the video idea as it is, otherwise null"
    )
    video_story: Optional[str] = Field(
        default=None,
        description="Returns the video story as it is, otherwise null"
    )

class ValidationFormatter(BaseModel):
    tool: List[str] = Field(description="Returns the name of the tool or tools as it is.")
    query_response: str = Field(description="Returns the reply of query as it is.")
    image_caption: str = Field(description="Returns the information of image as it is.")
    video_idea: str = Field(description="Returns the video idea as it is.")
    video_story: str = Field(description="Returns the video story as it is.")