Skip to content

Commit 4fc413a

Browse files
Addressing formatting issue.
1 parent 008d6c4 commit 4fc413a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/howtos/integrations/ag_ui.ipynb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"\n",
7373
"load_dotenv()\n",
7474
"# Patch the existing notebook loop so we can await coroutines safely\n",
75-
"nest_asyncio.apply()\n"
75+
"nest_asyncio.apply()"
7676
]
7777
},
7878
{
@@ -115,7 +115,7 @@
115115
" ]\n",
116116
")\n",
117117
"\n",
118-
"scientist_questions\n"
118+
"scientist_questions"
119119
]
120120
},
121121
{
@@ -156,7 +156,7 @@
156156
" ]\n",
157157
")\n",
158158
"\n",
159-
"weather_queries\n"
159+
"weather_queries"
160160
]
161161
},
162162
{
@@ -187,7 +187,7 @@
187187
"evaluator_llm = LangchainLLMWrapper(ChatOpenAI(model=\"gpt-4o-mini\"))\n",
188188
"\n",
189189
"qa_metrics = [FactualCorrectness(llm=evaluator_llm)]\n",
190-
"tool_metrics = [ToolCallF1()] # rule-based, no LLM required\n"
190+
"tool_metrics = [ToolCallF1()] # rule-based, no LLM required"
191191
]
192192
},
193193
{
@@ -210,7 +210,7 @@
210210
"AG_UI_ENDPOINT = \"http://localhost:8000/agentic_chat\" # Update to match your agent\n",
211211
"\n",
212212
"RUN_FACTUAL_EVAL = False\n",
213-
"RUN_TOOL_EVAL = False\n"
213+
"RUN_TOOL_EVAL = False"
214214
]
215215
},
216216
{
@@ -328,10 +328,11 @@
328328
" metadata=True,\n",
329329
" )\n",
330330
"\n",
331+
"\n",
331332
"if RUN_FACTUAL_EVAL:\n",
332333
" factual_result = await evaluate_factual()\n",
333334
" factual_df = factual_result.to_pandas()\n",
334-
" display(factual_df)\n"
335+
" display(factual_df)"
335336
]
336337
},
337338
{
@@ -426,10 +427,11 @@
426427
" evaluator_llm=evaluator_llm,\n",
427428
" )\n",
428429
"\n",
430+
"\n",
429431
"if RUN_TOOL_EVAL:\n",
430432
" tool_result = await evaluate_tool_usage()\n",
431433
" tool_df = tool_result.to_pandas()\n",
432-
" display(tool_df)\n"
434+
" display(tool_df)"
433435
]
434436
},
435437
{
@@ -480,7 +482,7 @@
480482
"\n",
481483
"messages_from_snapshot = convert_messages_snapshot(snapshot)\n",
482484
"\n",
483-
"messages_from_stream, messages_from_snapshot\n"
485+
"messages_from_stream, messages_from_snapshot"
484486
]
485487
},
486488
{

0 commit comments

Comments
 (0)