Skip to content

Conversation

@eyurtsev
Copy link
Collaborator

@eyurtsev eyurtsev commented Oct 27, 2025

Simplify backend protocol

default: BackendProtocol | StateBackend,
routes: dict[str, BackendProtocol],
default: Backend,
routes: dict[str, Backend],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is routes a dictionary? Why so general?

...
# Backend factory function types
BackendProvider = Callable[[ToolRuntime], Backend]
AsyncBackendProvider = Callable[[ToolRuntime], Awaitable[Backend]]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need async support at some point for all operations + the factory itself. Would suggest not adding it until we're ready to add full async support

checkpointer: Checkpointer | None = None,
store: BaseStore | None = None,
backend: BackendProtocol | None = None,
backend: BackendProvider | None = None,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be Backend

@langchain-ai langchain-ai deleted a comment from eyurtsev Oct 27, 2025
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

Successfully merging this pull request may close these issues.

2 participants