Skip to content

Commit

Permalink
Fix cruds
Browse files Browse the repository at this point in the history
  • Loading branch information
danylo-boiko committed Jan 27, 2025
1 parent 5904c9d commit 419538c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/backend/crud/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_agent_by_id(
Args:
db (Session): Database session.
agent_id (str): Agent ID.
user_id (str): User ID.
override_user_id (bool): Override user ID check. Should only be used for internal operations.
Returns:
Expand All @@ -65,6 +66,7 @@ def get_agent_by_name(db: Session, agent_name: str, user_id: str) -> Agent:
Args:
db (Session): Database session.
agent_name (str): Agent name.
user_id (str): User ID.
Returns:
Agent: Agent with the given name.
Expand Down Expand Up @@ -93,10 +95,11 @@ def get_agents(
Args:
db (Session): Database session.
user_id (str): User ID.
offset (int): Offset of the results.
limit (int): Limit of the results.
organization_id (str): Organization ID.
user_id (str): User ID.
visibility (AgentVisibility): Visibility of the agents.
override_user_id (bool): Override user ID check. Should only be used for internal operations.
Returns:
Expand Down Expand Up @@ -133,6 +136,7 @@ def update_agent(
db (Session): Database session.
agent (Agent): Agent to be updated.
new_agent (UpdateAgentRequest): New agent.
user_id (str): User ID.
Returns:
Agent: Updated agent.
Expand All @@ -158,6 +162,7 @@ def delete_agent(db: Session, agent_id: str, user_id: str) -> bool:
Args:
db (Session): Database session.
agent_id (str): Agent ID.
user_id (str): User ID.
Returns:
bool: True if the Agent was deleted, False otherwise
Expand Down
1 change: 0 additions & 1 deletion src/backend/crud/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def create_deployment_by_config(db: Session, deployment_config: DeploymentDefini
Args:
db (Session): Database session.
deployment (str): Deployment data to be created.
deployment_config (DeploymentDefinition): Deployment config.
Returns:
Expand Down

0 comments on commit 419538c

Please sign in to comment.