Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Frank committed Sep 24, 2024
1 parent 1cc4751 commit 90594e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/neuroagent/agents/simple_chat_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class SimpleChatAgent(BaseAgent):
"""Simple Agent class."""

memory: BaseCheckpointSaver
memory: BaseCheckpointSaver[Any]

@model_validator(mode="before")
@classmethod
Expand Down
4 changes: 2 additions & 2 deletions src/neuroagent/app/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def get_language_model(

async def get_agent_memory(
connection_string: Annotated[str | None, Depends(get_connection_string)],
) -> AsyncIterator[BaseCheckpointSaver | None]:
) -> AsyncIterator[BaseCheckpointSaver[Any] | None]:
"""Get the agent checkpointer."""
if connection_string:
if connection_string.startswith("sqlite"):
Expand Down Expand Up @@ -404,7 +404,7 @@ def get_agent(

def get_chat_agent(
llm: Annotated[ChatOpenAI, Depends(get_language_model)],
memory: Annotated[BaseCheckpointSaver, Depends(get_agent_memory)],
memory: Annotated[BaseCheckpointSaver[Any], Depends(get_agent_memory)],
literature_tool: Annotated[LiteratureSearchTool, Depends(get_literature_tool)],
br_resolver_tool: Annotated[
ResolveBrainRegionTool, Depends(get_brain_region_resolver_tool)
Expand Down

0 comments on commit 90594e9

Please sign in to comment.