-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
51 lines (42 loc) · 1 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from typing import Optional
from pydantic import BaseModel, Field
class Item(BaseModel):
email_id: Optional[str]
bot_username: str
api_key: str
name: str
description: str
id: str
profile: Optional[str]
tags: str
publish: bool
type: str
streaming: Optional[bool] = Field(default=False)
publish_all : bool
category: Optional[str]
class BotList(BaseModel):
bots : list
class AgentUpdate(BaseModel):
name: Optional[str]
desc: Optional[str] = Field(alias="description")
avatar_mxc: Optional[str] = Field(alias="avatar")
prompt: Optional[str]
llmModel: Optional[str]
class Bots(BaseModel):
id: str
username: str
bot_username: str
desc: str
name: str
tags: list
type: str
avatar_mxc: Optional[str]
profile_photo: Optional[str]
prompt: Optional[str]
llmModel: Optional[str]
class Duplicate(BaseModel):
username: str
agent_id: str
owner_id: Optional[str]
name: str
description: str