mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Typo fixes - Update Orchestrating_agents.ipynb (#1640)
This commit is contained in:
parent
3951f7347c
commit
347811fcf0
@ -575,7 +575,7 @@
|
|||||||
"messages.extend(response)\n",
|
"messages.extend(response)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"user_query = \"Actually, I want a refund.\" # implitly refers to the last item\n",
|
"user_query = \"Actually, I want a refund.\" # implicitly refers to the last item\n",
|
||||||
"print(\"User:\", user_query)\n",
|
"print(\"User:\", user_query)\n",
|
||||||
"messages.append({\"role\": \"user\", \"content\": user_query})\n",
|
"messages.append({\"role\": \"user\", \"content\": user_query})\n",
|
||||||
"response = run_full_turn(refund_agent, messages) # refund agent"
|
"response = run_full_turn(refund_agent, messages) # refund agent"
|
||||||
@ -596,7 +596,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"Now that agent can express the _intent_ to make a handoff, we must make it actually happen. There's many ways to do this, but there's one particularly clean way.\n",
|
"Now that agent can express the _intent_ to make a handoff, we must make it actually happen. There's many ways to do this, but there's one particularly clean way.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"For the agent functions we've defined so far, like `execute_refund` or `place_order` they return a string, which will be provided to the model. What if instead, we return an `Agent` object to indate which agent we want to transfer to? Like so:"
|
"For the agent functions we've defined so far, like `execute_refund` or `place_order` they return a string, which will be provided to the model. What if instead, we return an `Agent` object to indicate which agent we want to transfer to? Like so:"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user