Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
badgeir committed Aug 22, 2024
1 parent b6dbb4d commit d8e10a7
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions examples/notebooks/simple_task_manager.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"The `Agent.speak` method is used to interact with the agent. This method sends a message to the language model and returns the response.\n",
"If tool call requests are received, the agent will execute the appropriate tool method and return the result to the language model, continuing the iteration until only a message is returned.\n",
"\n",
"The `speak` method returns the received message from the language model, and conversation history so far.\n",
"The `speak` method returns an `llmio.AgentResponse` object containing the received message from the language model, and conversation history so far.\n",
"Since the agent is designed to be stateless, in order for parallel execution of messages / commands to be possible, the conversation history is used to maintain the state of the agent. We will therefore store the history and use it to continue the conversation in the later interactions."
]
},
Expand Down Expand Up @@ -240,7 +240,7 @@
"output_type": "stream",
"text": [
"** Adding task 'Grocery Shopping' with status 'todo'\n",
"** Bot (message_handler): 'Ive added a grocery shopping task to buy eggs, bacon, bread, tomatoes, and orange juice. If you need anything else, just let me know!'\n"
"** Bot (message_handler): 'I've added a grocery task to buy eggs, bacon, bread, tomatoes, and orange juice. If you need anything else, just let me know!'\n"
]
},
{
Expand Down Expand Up @@ -270,14 +270,14 @@
"output_type": "stream",
"text": [
"** Adding task 'Clean the House' with status 'todo'\n",
"** Bot (message_handler): 'I've added a task to clean the house. If there's anything more you would like to do, feel free to ask!'\n"
"** Bot (message_handler): 'I've added a task to clean the house. If you have any more tasks to add or need further assistance, just let me know!'\n"
]
},
{
"data": {
"text/plain": [
"[Task(id=1, name='Grocery Shopping', description='Buy eggs, bacon, bread, tomatoes, and orange juice.', status='todo'),\n",
" Task(id=2, name='Clean the House', description='Thoroughly clean the house, including vacuuming and dusting.', status='todo')]"
" Task(id=2, name='Clean the House', description='Thoroughly clean the living room, kitchen, and bathrooms.', status='todo')]"
]
},
"execution_count": 9,
Expand All @@ -301,14 +301,14 @@
"output_type": "stream",
"text": [
"** Updating task 1\n",
"** Bot (message_handler): 'I've updated the grocery shopping task to include milk. If you need any further assistance, just let me know!'\n"
"** Bot (message_handler): 'I've updated the grocery task to include buying milk. If there's anything else you need, feel free to ask!'\n"
]
},
{
"data": {
"text/plain": [
"[Task(id=1, name='Grocery Shopping', description='Buy eggs, bacon, bread, tomatoes, orange juice, and milk.', status='todo'),\n",
" Task(id=2, name='Clean the House', description='Thoroughly clean the house, including vacuuming and dusting.', status='todo')]"
" Task(id=2, name='Clean the House', description='Thoroughly clean the living room, kitchen, and bathrooms.', status='todo')]"
]
},
"execution_count": 10,
Expand All @@ -332,14 +332,14 @@
"output_type": "stream",
"text": [
"** Updating task 1\n",
"** Bot (message_handler): 'I've marked the grocery task as done. If there's anything else you'd like to do, just let me know!'\n"
"** Bot (message_handler): 'I've marked the grocery task as done. If you have any more tasks to update or anything else you'd like help with, just let me know!'\n"
]
},
{
"data": {
"text/plain": [
"[Task(id=1, name='Grocery Shopping', description='Buy eggs, bacon, bread, tomatoes, orange juice, and milk.', status='done'),\n",
" Task(id=2, name='Clean the House', description='Thoroughly clean the house, including vacuuming and dusting.', status='todo')]"
" Task(id=2, name='Clean the House', description='Thoroughly clean the living room, kitchen, and bathrooms.', status='todo')]"
]
},
"execution_count": 11,
Expand All @@ -362,15 +362,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"** Listing tasks\n",
"** Removing task 1\n",
"** Bot (message_handler): 'The completed task \"Grocery Shopping\" has been removed. If you need any further assistance, feel free to ask!'\n"
"** Bot (message_handler): 'I've removed the completed grocery task. If you need to do anything else or manage more tasks, just let me know!'\n"
]
},
{
"data": {
"text/plain": [
"[Task(id=2, name='Clean the House', description='Thoroughly clean the house, including vacuuming and dusting.', status='todo')]"
"[Task(id=2, name='Clean the House', description='Thoroughly clean the living room, kitchen, and bathrooms.', status='todo')]"
]
},
"execution_count": 12,
Expand All @@ -383,6 +382,13 @@
"\n",
"TASKS"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit d8e10a7

Please sign in to comment.