Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /ParisNeo_lollms /backend /models /personality.py
| import datetime | |
| from typing import Optional, List | |
| from pydantic import BaseModel, Field, constr, ConfigDict | |
| class PersonalityBase(BaseModel): | |
| name: constr(min_length=1, max_length=100) | |
| category: Optional[str] = Field(None, max_length=100) | |
| author: Optional[str] = Field(None, max_length=100) | |
| description: Optional[str] = Field(None) | |
| prompt_text: str | |
| disclaimer: Optional[str] = Field(None) | |
| script_code: Optional[str] = None | |
| icon_base64: Optional[str] = None | |
| tools: Optional[List[str]] = Field(default_factory=list) | |
| required_context_options: Optional[List[str]] = Field(default_factory=list) | |
| data_source_type: Optional[str] = "none" | |
| data_source: Optional[str] = None | |
| class PersonalityCreate(PersonalityBase): | |
| is_public: Optional[bool] = False | |
| owner_type: Optional[str] = 'user' | |
| class PersonalityUpdate(PersonalityBase): | |
| name: Optional[constr(min_length=1, max_length=100)] = None | |
| prompt_text: Optional[str] = None | |
| is_public: Optional[bool] = None | |
| icon_base64: Optional[str] = None | |
| class PersonalityPublic(PersonalityBase): | |
| model_config = ConfigDict(from_attributes=True) | |
| id: str | |
| created_at: datetime.datetime | |
| updated_at: datetime.datetime | |
| is_public: bool | |
| owner_username: Optional[str] = None | |
| class PersonalitySendRequest(BaseModel): | |
| target_username: constr(min_length=3, max_length=50) | |
Xet Storage Details
- Size:
- 1.39 kB
- Xet hash:
- 291f4872df077ba9528ea9c080818642e09e2c04fe80f317a7f3e1945a350f9c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.