Skip to content

Commit

Permalink
docs: fix cruds and routers docstrings (#924)
Browse files Browse the repository at this point in the history
* Fix routers

* Fix cruds
  • Loading branch information
danylo-boiko authored Jan 28, 2025
1 parent 9f82c26 commit 75594fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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
1 change: 0 additions & 1 deletion src/backend/routers/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ async def update_or_create_tool_metadata(
agent (Agent): Agent.
new_tool_metadata (AgentToolMetadata): New tool metadata.
session (DBSessionDep): Database session.
request (Request): Request object.
ctx (Context): Context object.
"""

Expand Down

0 comments on commit 75594fb

Please sign in to comment.