Skip to content

Commit

Permalink
feat: Updated agents-api/agents_api/models/user/cr
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Apr 13, 2024
1 parent ebd1b1e commit 7112c80
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions agents-api/agents_api/models/user/create_user.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
This module contains the functionality for creating a new user in the CozoDB database.
It defines a query for inserting user data into the 'users' relation.
"""
from uuid import UUID

import pandas as pd
Expand All @@ -7,6 +11,20 @@



"""
Constructs and executes a datalog query to create a new user in the CozoDB database.
Parameters:
user_id (UUID): The unique identifier for the user.
developer_id (UUID): The unique identifier for the developer creating the user.
name (str): The name of the user.
about (str): A brief description about the user.
metadata (dict, optional): Additional metadata about the user. Defaults to an empty dict.
client (CozoClient, optional): The CozoDB client instance to run the query. Defaults to a pre-configured client instance.
Returns:
pd.DataFrame: A DataFrame containing the result of the query execution.
"""
def create_user_query(
user_id: UUID,
developer_id: UUID,
Expand Down

0 comments on commit 7112c80

Please sign in to comment.