diff --git a/agents-api/agents_api/queries/agents/patch_agent.py b/agents-api/agents_api/queries/agents/patch_agent.py index 7fb63feda..2325ab33f 100644 --- a/agents-api/agents_api/queries/agents/patch_agent.py +++ b/agents-api/agents_api/queries/agents/patch_agent.py @@ -17,7 +17,6 @@ wrap_in_class, ) - # Define the raw SQL query agent_query = parse_one(""" UPDATE agents diff --git a/agents-api/agents_api/queries/entries/create_entries.py b/agents-api/agents_api/queries/entries/create_entries.py index 7f6e2d4d7..72de8db90 100644 --- a/agents-api/agents_api/queries/entries/create_entries.py +++ b/agents-api/agents_api/queries/entries/create_entries.py @@ -10,7 +10,7 @@ from ...common.utils.datetime import utcnow from ...common.utils.messages import content_to_json from ...metrics.counters import increase_counter -from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass +from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class # Query for checking if the session exists session_exists_query = """ diff --git a/agents-api/agents_api/queries/entries/delete_entries.py b/agents-api/agents_api/queries/entries/delete_entries.py index ce1590fd4..4539ae4df 100644 --- a/agents-api/agents_api/queries/entries/delete_entries.py +++ b/agents-api/agents_api/queries/entries/delete_entries.py @@ -9,7 +9,7 @@ from ...autogen.openapi_model import ResourceDeletedResponse from ...common.utils.datetime import utcnow from ...metrics.counters import increase_counter -from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass +from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class # Define the raw SQL query for deleting entries with a developer check delete_entry_query = parse_one(""" diff --git a/agents-api/agents_api/queries/entries/get_history.py b/agents-api/agents_api/queries/entries/get_history.py index 2c28b4f21..7ad940c0a 100644 --- a/agents-api/agents_api/queries/entries/get_history.py +++ b/agents-api/agents_api/queries/entries/get_history.py @@ -6,7 +6,7 @@ from sqlglot import parse_one from ...autogen.openapi_model import History -from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass +from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class # Define the raw SQL query for getting history with a developer check history_query = parse_one(""" diff --git a/agents-api/agents_api/queries/entries/list_entries.py b/agents-api/agents_api/queries/entries/list_entries.py index 657f5563b..4920e39c1 100644 --- a/agents-api/agents_api/queries/entries/list_entries.py +++ b/agents-api/agents_api/queries/entries/list_entries.py @@ -7,7 +7,7 @@ from ...autogen.openapi_model import Entry from ...metrics.counters import increase_counter -from ..utils import pg_query, rewrap_exceptions, wrap_in_class, partialclass +from ..utils import partialclass, pg_query, rewrap_exceptions, wrap_in_class # Query for checking if the session exists session_exists_query = """