mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-27 01:52:25 +02:00
docs: update cloud how-tos (#747)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"client = get_client()\n",
|
||||
"assistant = await client.assistants.create(\"agent\")\n",
|
||||
"assistant_id = \"agent\"\n",
|
||||
"thread = await client.threads.create()"
|
||||
]
|
||||
},
|
||||
@@ -41,7 +41,7 @@
|
||||
"# this run will be interrupted\n",
|
||||
"first_run = await client.runs.create(\n",
|
||||
" thread[\"thread_id\"],\n",
|
||||
" assistant[\"assistant_id\"],\n",
|
||||
" assistant_id,\n",
|
||||
" input={\"messages\": [{\"role\": \"human\", \"content\": \"what's the weather in sf?\"}]},\n",
|
||||
")"
|
||||
]
|
||||
@@ -54,7 +54,7 @@
|
||||
"source": [
|
||||
"second_run = await client.runs.create(\n",
|
||||
" thread[\"thread_id\"],\n",
|
||||
" assistant[\"assistant_id\"],\n",
|
||||
" assistant_id,\n",
|
||||
" input={\"messages\": [{\"role\": \"human\", \"content\": \"what's the weather in nyc?\"}]},\n",
|
||||
" multitask_strategy=\"enqueue\",\n",
|
||||
")"
|
||||
@@ -175,10 +175,14 @@
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "",
|
||||
"name": ""
|
||||
},
|
||||
"language_info": {
|
||||
"name": "python"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
"nbformat_minor": 4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user