Skip to content

Commit

Permalink
fix(langgraph): In this example, there is a slight problem with the c…
Browse files Browse the repository at this point in the history
…ode writing. Please fix it.
  • Loading branch information
rxyshww committed Dec 9, 2024
1 parent 3996017 commit ce31ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chatbots/customer_support_small_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"do not try to answer the question directly or gather information.\n",
"Instead, immediately transfer them to the billing or technical team by asking the user to hold for a moment.\n",
"Otherwise, just respond conversationally.`;\n",
" const supportResponse = model.invoke([\n",
" const supportResponse = await model.invoke([\n",
" { role: \"system\", content: SYSTEM_TEMPLATE },\n",
" ...state.messages,\n",
" ]);\n",
Expand Down Expand Up @@ -181,7 +181,7 @@
" // Some chat models can return complex content, but Together will not\n",
" const categorizationOutput = JSON.parse(categorizationResponse.content as string);\n",
" // Will append the response message to the current interaction state\n",
" return { messages: supportResponse, nextRepresentative: categorizationOutput.nextRepresentative };\n",
" return { messages: [supportResponse], nextRepresentative: categorizationOutput.nextRepresentative };\n",
"};"
]
},
Expand Down

0 comments on commit ce31ca0

Please sign in to comment.