chainfury_server.database module
- class chainfury_server.database.ChainLog(**kwargs)[source]
Bases:
Base
- created_at: datetime
- data: Dict[str, Any]
- id: str
- message: str
- node_id: str
- prompt_id: int
- worker_id: str
- class chainfury_server.database.ChatBot(**kwargs)[source]
Bases:
Base
- created_at: datetime
- created_by: str
- dag: Dict[str, Any]
- deleted_at: datetime
- description: str
- engine: str
- id: str
- meta: Dict[str, Any]
- name: str
- tag_id: str
- class chainfury_server.database.ChatBotTypes[source]
Bases:
object
- FURY = 'fury'
- LANGFLOW = 'langflow'
- class chainfury_server.database.JWTPayload(username: str, user_id: str)[source]
Bases:
object
- user_id: str
- username: str
- class chainfury_server.database.Prompt(**kwargs)[source]
Bases:
Base
- chatbot_id: str
- created_at: datetime
- gpt_rating: str
- id: int
- input_prompt: str
- meta: Dict[str, Any]
- num_tokens: int
- response: str
- session_id: Dict[str, Any]
- time_taken: float
- user_rating: int
- class chainfury_server.database.PromptRating(value)[source]
Bases:
Enum
Enum to know how the conversation went with chat.
- HAPPY = 3
- NEUTRAL = 2
- SAD = 1
- UNRATED = 0
- class chainfury_server.database.Template(**kwargs)[source]
Bases:
Base
- dag: Dict[str, Any]
- description: str
- id: int
- meta: Dict[str, Any]
- name: str
- class chainfury_server.database.User(**kwargs)[source]
Bases:
Base
- email: str
- id: str
- meta: Dict[str, Any]
- password: str
- username: str