From e5fb3635edc85b7233ebee1ebd58131a9513258d Mon Sep 17 00:00:00 2001 From: Sheepsta300 <128811766+Sheepsta300@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:52:30 +1300 Subject: [PATCH] Change order of cells --- .../tools/azure_content_safety.ipynb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/docs/integrations/tools/azure_content_safety.ipynb b/docs/docs/integrations/tools/azure_content_safety.ipynb index 0ba8f3e5a6f22..80392f351a232 100644 --- a/docs/docs/integrations/tools/azure_content_safety.ipynb +++ b/docs/docs/integrations/tools/azure_content_safety.ipynb @@ -89,7 +89,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Now we can use the `AzureContentSafetyTextTool` combine with a model, using `create_structured_chat_agent`." + "Now we can use the `AzureContentSafetyTextTool` combined with a model, using `create_structured_chat_agent`." ] }, { @@ -198,6 +198,22 @@ "## Invocation" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Input must be in the form of a string (`str`)." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "input = \"I hate you\"" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -241,7 +257,6 @@ "metadata": {}, "outputs": [], "source": [ - "input = \"I hate you\"\n", "agent_executor.invoke(\n", " {\"input\": f\"Can you check the following text for harmful content : {input}\"}\n", ")"