mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
b05bb9e136
Adds LangServe package * Integrate Runnables with Fast API creating Server and a RemoteRunnable client * Support multiple runnables for a given server * Support sync/async/batch/abatch/stream/astream/astream_log on the client side (using async implementations on server) * Adds validation using annotations (relying on pydantic under the hood) -- this still has some rough edges -- e.g., open api docs do NOT generate correctly at the moment * Uses pydantic v1 namespace Known issues: type translation code doesn't handle a lot of types (e.g., TypedDicts) --------- Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
5 lines
110 B
Python
5 lines
110 B
Python
from .client import RemoteRunnable
|
|
from .server import add_routes
|
|
|
|
__all__ = ["RemoteRunnable", "add_routes"]
|