Skip to content

Async runnables #7

@tgram-3D

Description

@tgram-3D

Quick question: the default langchain.runnables class supports async, but when I try to use async functions in chains with PubSub I get an error traced back to the transform_stream_with_config method:

TypeError: Cannot invoke a coroutine function synchronously.Use ainvoke instead.

I admittedly have not dug into the permchain or runnables code very deep to see what's actually going on, nor would I probably understand it anyway, but I'm curious if there's any way around this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions