79708740

Date: 2025-07-21 08:05:37
Score: 1
Natty:
Report link

User's custom config can be injected to overall RunnableConfig:

from typing import TypedDict

class UserConfig(TypedDict):
    user_id: str

user_config = UserConfig(user_id = "user-123")
config: RunnableConfig = {
    "configurable": {
        "thread_id": "thread-123",
        **user_config
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ebwood