[docs]: add auth and small changes (#1356)

* wip

* m

* nit
This commit is contained in:
Isaac Francisco
2024-08-15 18:25:53 +00:00
committed by GitHub
parent 388a9643a5
commit 64636ee978
17 changed files with 125 additions and 72 deletions
+3 -6
View File
@@ -9,7 +9,7 @@ First let's set up our client and thread:
```python
from langgraph_sdk import get_client
client = get_client(url="<DEPLOYMENT_URL>")
client = get_client(url=<DEPLOYMENT_URL>)
# create thread
thread = await client.threads.create()
print(thread)
@@ -20,7 +20,7 @@ First let's set up our client and thread:
```js
import { Client } from "@langchain/langgraph-sdk";
const client = new Client({ apiUrl:"<DEPLOYMENT_URL>" });
const client = new Client({ apiUrl: <DEPLOYMENT_URL> });
// create thread
const thread = await client.threads.create();
console.log(thread)
@@ -31,10 +31,7 @@ First let's set up our client and thread:
```bash
curl --request POST \
--url <DEPLOYMENT_URL>/threads \
--header 'Content-Type: application/json' \
--data '{
"metadata": {}
}'
--header 'Content-Type: application/json'
```
Output: