Files
letta-server/letta/schemas/organization.py
2024-10-22 14:47:09 -07:00

21 lines
635 B
Python

from datetime import datetime
from typing import Optional
from pydantic import Field
from letta.schemas.letta_base import LettaBase
class OrganizationBase(LettaBase):
__id_prefix__ = "organization"
class Organization(OrganizationBase):
id: str = Field(..., description="The id of the organization.")
name: str = Field(..., description="The name of the organization.")
created_at: datetime = Field(default_factory=datetime.utcnow, description="The creation date of the organization.")
class OrganizationCreate(OrganizationBase):
name: Optional[str] = Field(None, description="The name of the organization.")