Skip to content

Commit

Permalink
Lint file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheepsta300 committed Dec 10, 2024
1 parent 71ae221 commit 75bcf2a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/docs/integrations/tools/azure_content_safety.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import getpass\n",
"from langchain import hub"
"import os"
]
},
{
Expand All @@ -90,10 +89,11 @@
"metadata": {},
"outputs": [],
"source": [
"from langchain_openai import AzureChatOpenAI\n",
"\n",
"from libs.community.langchain_community.tools.azure_ai_services.content_safety import (\n",
" AzureContentSafetyTextTool,\n",
")\n",
"from langchain_openai import AzureChatOpenAI"
")"
]
},
{
Expand Down Expand Up @@ -266,7 +266,13 @@
"metadata": {},
"outputs": [],
"source": [
"agent.invoke({\"messages\": [(\"user\", f\"Can you check the following text for harmful content : {input}\")]})"
"agent.invoke(\n",
" {\n",
" \"messages\": [\n",
" (\"user\", f\"Can you check the following text for harmful content : {input}\")\n",
" ]\n",
" }\n",
")"
]
},
{
Expand Down

0 comments on commit 75bcf2a

Please sign in to comment.