quivr/backend/repository/brain/create_brain.py

10 lines
300 B
Python

from models.brain_entity import BrainEntity
from models.databases.supabase.brains import CreateBrainProperties
from models.settings import get_supabase_db
def create_brain(brain: CreateBrainProperties) -> BrainEntity:
supabase_db = get_supabase_db()
return supabase_db.create_brain(brain)