-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): refactored agent params into params directory
- Loading branch information
Showing
5 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
""" | ||
Query and Path Parameters for Agents | ||
""" | ||
from fastapi import Path | ||
from typing import Annotated | ||
|
||
agent_id_path = Path( | ||
from fastapi import Path, Query | ||
|
||
from backend.schemas.agent import AgentVisibility | ||
|
||
VisibilityQueryParam = Annotated[AgentVisibility, Query( | ||
title="Visibility", | ||
description="Agent visibility", | ||
)] | ||
|
||
AgentIdPathParam = Annotated[str, Path( | ||
title="Agent ID", | ||
description="Agent ID for agent in question", | ||
) | ||
)] | ||
|
||
agent_tool_metadata_id_path = Path( | ||
AgentToolMetadataIdPathParam = Annotated[str, Path( | ||
title="Agent Tool Metadata ID", | ||
description="Agent Tool Metadata ID for tool metadata in question", | ||
) | ||
|
||
file_id_path = Path( | ||
title="File ID", | ||
description="File ID for file in question", | ||
) | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
Query and Path Parameters for Files | ||
""" | ||
from typing import Annotated | ||
|
||
from fastapi import Path | ||
|
||
FileIdPathParam = Annotated[str, Path( | ||
title="File ID", | ||
description="File ID for file in question", | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
Query and Path Parameters for Organizations | ||
""" | ||
from typing import Annotated, Optional | ||
|
||
from fastapi import Query | ||
|
||
OrganizationIdQueryParam = Annotated[Optional[str], Query( | ||
title="Organization ID", | ||
description="Organization ID of the agent", | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters