Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use PostgresSaver Err #3

Open
asynchat opened this issue Nov 17, 2024 · 1 comment
Open

use PostgresSaver Err #3

asynchat opened this issue Nov 17, 2024 · 1 comment

Comments

@asynchat
Copy link

use PostgresSaver

   |   File ".venv/lib/python3.11/site-packages/copilotkit/langgraph_agent.py", line 251, in _stream_events
...
...
    |     saved = await self.checkpointer.aget_tuple(self.checkpoint_config)
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File ".venv/lib/python3.11/site-packages/langgraph/checkpoint/base/__init__.py", line 344, in aget_tuple
    |     raise NotImplementedError
    | NotImplementedError
    +------------------------------------

use AsyncPostgresSaver

Traceback (most recent call last):
  File ".venv/lib/python3.11/site-packages/copilotkit/integrations/fastapi.py", line 142, in handle_execute_agent
    events = sdk.execute_agent(
             ^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/copilotkit/sdk.py", line 167, in execute_agent
    raise AgentExecutionException(name, error) from error
copilotkit.exc.AgentExecutionException: Agent 'pro-table' failed to execute: Synchronous calls to AsyncPostgresSaver are only allowed from a different thread. From the main thread, use the async interface.For example, use `await checkpointer.aget_tuple(...)` or `await graph.ainvoke(...)`.
@RafaelChicovis
Copy link

I'm experiencing the same issue. Has there been any update on this?"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants