mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-13 05:07:51 +02:00
[Docs] Customer-Support Part 1: Configuration Fix (#623)
This commit is contained in:
@@ -1023,7 +1023,8 @@
|
||||
"\n",
|
||||
" def __call__(self, state: State, config: RunnableConfig):\n",
|
||||
" while True:\n",
|
||||
" passenger_id = config.get(\"passenger_id\", None)\n",
|
||||
" configuration = config.get(\"configurable\", {})\n",
|
||||
" passenger_id = configuration.get(\"passenger_id\", None)\n",
|
||||
" state = {**state, \"user_info\": passenger_id}\n",
|
||||
" result = self.runnable.invoke(state)\n",
|
||||
" # If the LLM happens to return an empty response, we will re-prompt it\n",
|
||||
@@ -1840,7 +1841,6 @@
|
||||
"\n",
|
||||
" def __call__(self, state: State, config: RunnableConfig):\n",
|
||||
" while True:\n",
|
||||
" passenger_id = config.get(\"passenger_id\", None)\n",
|
||||
" result = self.runnable.invoke(state)\n",
|
||||
" # If the LLM happens to return an empty response, we will re-prompt it\n",
|
||||
" # for an actual response.\n",
|
||||
|
||||
Reference in New Issue
Block a user