quivr/backend/repository/brain/create_brain.py

9 lines
260 B
Python
Raw Normal View History

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