Skip to content

Commit 3e88d43

Browse files
committed
tiny fix
1 parent 7bfb065 commit 3e88d43

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

use-cases/ai-agent.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@
319319
"## Configure the agent\n",
320320
"This step configures agent planning, which includes how the agent handles tool execution and responses. After configuring the LLM, you define the following functions:\n",
321321
"- `tool_selector`: Uses the LLM to determine the best tool based on the user's input.\n",
322+
"- `get_llm_response`: Helper function for LLM response generation.\n",
322323
"- `generate_answer`: Orchestrates the agent workflow for a task."
323324
]
324325
},
@@ -498,7 +499,7 @@
498499
},
499500
{
500501
"cell_type": "code",
501-
"execution_count": 16,
502+
"execution_count": null,
502503
"metadata": {},
503504
"outputs": [
504505
{
@@ -516,19 +517,19 @@
516517
],
517518
"source": [
518519
"message_1 = generate_response(\n",
519-
" session_id=\"1234\",\n",
520+
" session_id=\"123\",\n",
520521
" user_input=\"What was MongoDB's latest acquisition?\",\n",
521522
")\n",
522523
"print(message_1)\n",
523524
"\n",
524525
"message_2 = generate_response(\n",
525-
" session_id=\"1234\",\n",
526+
" session_id=\"123\",\n",
526527
" user_input=\"What do they do?\",\n",
527528
")\n",
528529
"print(message_2)\n",
529530
"\n",
530531
"message_3 = generate_response(\n",
531-
" session_id=\"1234\",\n",
532+
" session_id=\"123\",\n",
532533
" user_input=\"What's 15*25?\",\n",
533534
")\n",
534535
"print(message_3)"

0 commit comments

Comments
 (0)