Skip to content

Commit

Permalink
fix: Fix return types
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Dec 20, 2024
1 parent 59b24ac commit 32dbbba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/tools/delete_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def delete_tool(
developer_id: UUID,
agent_id: UUID,
tool_id: UUID,
) -> tuple[list[str], dict]:
) -> tuple[list[str], list]:
developer_id = str(developer_id)
agent_id = str(agent_id)
tool_id = str(tool_id)
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/queries/tools/get_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_tool(
developer_id: UUID,
agent_id: UUID,
tool_id: UUID,
) -> tuple[list[str], dict]:
) -> tuple[list[str], list]:
developer_id = str(developer_id)
agent_id = str(agent_id)
tool_id = str(tool_id)
Expand Down
4 changes: 2 additions & 2 deletions agents-api/agents_api/queries/tools/list_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
""")

if not sql_query.is_valid():
raise InvalidSQLQuery("get_tool")
raise InvalidSQLQuery("list_tools")


# @rewrap_exceptions(
Expand Down Expand Up @@ -59,7 +59,7 @@ def list_tools(
offset: int = 0,
sort_by: Literal["created_at", "updated_at"] = "created_at",
direction: Literal["asc", "desc"] = "desc",
) -> tuple[list[str], dict]:
) -> tuple[list[str], list]:
developer_id = str(developer_id)
agent_id = str(agent_id)

Expand Down

0 comments on commit 32dbbba

Please sign in to comment.