Skip to content

Commit

Permalink
chore: Move ti queries directory
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Dec 19, 2024
1 parent 7dd2bf0 commit a7d10da
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 44 deletions.
15 changes: 0 additions & 15 deletions agents-api/agents_api/models/chat/get_cached_response.py

This file was deleted.

19 changes: 0 additions & 19 deletions agents-api/agents_api/models/chat/set_cached_response.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@
# ruff: noqa: F401, F403, F405

from .gather_messages import gather_messages
from .get_cached_response import get_cached_response
from .prepare_chat_context import prepare_chat_context
from .set_cached_response import set_cached_response
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from beartype import beartype
from fastapi import HTTPException
from pycozo.client import QueryException
from pydantic import ValidationError

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


@rewrap_exceptions(
{
QueryException: partialclass(HTTPException, status_code=400),
ValidationError: partialclass(HTTPException, status_code=400),
TypeError: partialclass(HTTPException, status_code=400),
}
)
# TODO: implement this part
# @rewrap_exceptions(
# {
# ValidationError: partialclass(HTTPException, status_code=400),
# TypeError: partialclass(HTTPException, status_code=400),
# }
# )
@wrap_in_class(
ChatContext,
one=True,
Expand Down

0 comments on commit a7d10da

Please sign in to comment.