Skip to content

A programming framework for agentic AI

update human in the loop docs for agentchat (#5720)

Victor Dibia1f30622adcfc
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb
index ef2cde7b0..fb25938c7 100644
--- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb
+++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb
@@ -83,26 +83,19 @@
"---------- user ----------\n",
"Write a 4-line poem about the ocean.\n",
"---------- assistant ----------\n",
- "Waves whisper secrets to the shore’s embrace, \n",
- "A dance of blue under the sun's warm grace. \n",
- "Endless horizons where dreams take flight, \n",
- "The ocean's heart glimmers, a canvas of light. \n",
+ "In endless blue where whispers play, \n",
+ "The ocean's waves dance night and day. \n",
+ "A world of depths, both calm and wild, \n",
+ "Nature's heart, forever beguiled. \n",
"TERMINATE\n",
- "[Prompt tokens: 46, Completion tokens: 49]\n",
"---------- user_proxy ----------\n",
- "APPROVE\n",
- "---------- Summary ----------\n",
- "Number of messages: 3\n",
- "Finish reason: Text 'APPROVE' mentioned\n",
- "Total prompt tokens: 46\n",
- "Total completion tokens: 49\n",
- "Duration: 6.64 seconds\n"
+ "APPROVE\n"
]
},
{
"data": {
"text/plain": [
- "TaskResult(messages=[TextMessage(source='user', models_usage=None, content='Write a 4-line poem about the ocean.', type='TextMessage'), TextMessage(source='assistant', models_usage=RequestUsage(prompt_tokens=46, completion_tokens=49), content=\"Waves whisper secrets to the shore’s embrace, \\nA dance of blue under the sun's warm grace. \\nEndless horizons where dreams take flight, \\nThe ocean's heart glimmers, a canvas of light. \\nTERMINATE\", type='TextMessage'), TextMessage(source='user_proxy', models_usage=None, content='APPROVE', type='TextMessage')], stop_reason=\"Text 'APPROVE' mentioned\")"
+ "TaskResult(messages=[TextMessage(source='user', models_usage=None, metadata={}, content='Write a 4-line poem about the ocean.', type='TextMessage'), TextMessage(source='assistant', models_usage=RequestUsage(prompt_tokens=46, completion_tokens=43), metadata={}, content=\"In endless blue where whispers play, \\nThe ocean's waves dance night and day. \\nA world of depths, both calm and wild, \\nNature's heart, forever beguiled. \\nTERMINATE\", type='TextMessage'), UserInputRequestedEvent(source='user_proxy', models_usage=None, metadata={}, request_id='2622a0aa-b776-4e54-9e8f-4ecbdf14b78d', content='', type='UserInputRequestedEvent'), TextMessage(source='user_proxy', models_usage=None, metadata={}, content='APPROVE', type='TextMessage')], stop_reason=\"Text 'APPROVE' mentioned\")"
]
},
"execution_count": 1,
@@ -468,7 +461,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.12.7"
+ "version": "3.11.9"
}
},
"nbformat": 4,