Skip to content

Commit

Permalink
Update input/output types.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguonly committed Apr 18, 2024
1 parent b1c7702 commit deab0ed
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions backend/app/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
RunnableBinding,
)
from langgraph.checkpoint import CheckpointAt
from langgraph.graph.message import Messages
from langgraph.pregel import Pregel

from app.agent_types.tools_agent import get_tools_agent_executor
Expand Down Expand Up @@ -247,8 +248,8 @@ def __init__(
system_message=ConfigurableField(id="system_message", name="Instructions"),
)
.with_types(
input_type=Union[Sequence[AnyMessage], Dict[str, Any]],
output_type=Union[Sequence[AnyMessage], Dict[str, Any]],
input_type=Messages,
output_type=Sequence[AnyMessage],
)
)

Expand Down Expand Up @@ -312,8 +313,8 @@ def __init__(
thread_id=ConfigurableField(id="thread_id", name="Thread ID", is_shared=True),
)
.with_types(
input_type=Union[Sequence[AnyMessage], Dict[str, Any]],
output_type=Union[Sequence[AnyMessage], Dict[str, Any]],
input_type=Dict[str, Any],
output_type=Dict[str, Any],
)
)

Expand Down Expand Up @@ -352,8 +353,8 @@ def __init__(
chat_retrieval=chat_retrieval,
)
.with_types(
input_type=Union[Sequence[AnyMessage], Dict[str, Any]],
output_type=Union[Sequence[AnyMessage], Dict[str, Any]],
input_type=Messages,
output_type=Sequence[AnyMessage],
)
)

Expand Down

0 comments on commit deab0ed

Please sign in to comment.