Skip to content

Commit

Permalink
Remove sqlglot
Browse files Browse the repository at this point in the history
  • Loading branch information
HamadaSalhab committed Dec 27, 2024
1 parent 40c1a82 commit 9e82981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions agents-api/agents_api/queries/chat/prepare_chat_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from uuid import UUID

from beartype import beartype
from sqlglot import parse_one

from ...common.protocol.sessions import ChatContext, make_session
from ..utils import (
Expand All @@ -14,7 +13,7 @@
T = TypeVar("T")


sql_query = parse_one("""
sql_query = """
SELECT * FROM
(
SELECT jsonb_agg(u) AS users FROM (
Expand Down Expand Up @@ -101,7 +100,7 @@
session_id = $2 AND
session_lookup.participant_type = 'agent'
) r
) AS toolsets""").sql(pretty=True)
) AS toolsets"""


def _transform(d):
Expand Down
1 change: 1 addition & 0 deletions drafts/cozo
Submodule cozo added at faf89e

0 comments on commit 9e82981

Please sign in to comment.