Skip to content

Commit d2373be

Browse files
authored
Style & link updates Assistants deployment (#1724)
1 parent 2250fb2 commit d2373be

File tree

2 files changed

+146
-132
lines changed

2 files changed

+146
-132
lines changed

src/langsmith/assistants.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For example, imagine a general-purpose writing agent built on a common graph arc
99

1010
![assistant versions](/langsmith/images/assistants.png)
1111

12-
The Agent Server API provides several endpoints for creating and managing assistants and their versions. See the @[API reference][AssistantsAPI] for more details.
12+
The Agent Server API provides several endpoints for creating and managing assistants and their versions. See the [API reference](/langsmith/server-api-ref) for more details.
1313

1414
<Info>
1515
Assistants are a [LangSmith Deployment](/langsmith/deployments) concept. They are not available in the open source LangGraph library.
@@ -108,7 +108,7 @@ Assistants build on the LangGraph open source concept of [configuration](/oss/la
108108

109109
While configuration is available in the open source LangGraph library, assistants are only present in [LangSmith Deployment](/langsmith/deployments) because they are tightly coupled to your deployed graph. Upon deployment, [Agent Server](/langsmith/agent-server) will automatically create a default assistant for each graph using the graph's default configuration settings.
110110

111-
In practice, an assistant is just an _instance_ of a graph with a specific configuration. Therefore, multiple assistants can reference the same graph but can contain different configurations (e.g. prompts, models, tools). The LangSmith Deployment API provides several endpoints for creating and managing assistants. See the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/) and [this how-to](/langsmith/configuration-cloud) for more details on how to create assistants.
111+
In practice, an assistant is just an _instance_ of a graph with a specific configuration. Therefore, multiple assistants can reference the same graph but can contain different configurations (e.g. prompts, models, tools). The LangSmith Deployment API provides several endpoints for creating and managing assistants. See the [API reference](/langsmith/server-api-ref) and [this how-to](/langsmith/configuration-cloud) for more details on how to create assistants.
112112

113113
### Versioning
114114

@@ -188,7 +188,7 @@ When executing a run:
188188
- Multiple runs can use the same assistant configuration.
189189
- The assistant's configuration affects how the underlying graph executes.
190190

191-
The Agent Server API provides several endpoints for creating and managing runs. For more details, refer to the [API reference](https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref/).
191+
The Agent Server API provides several endpoints for creating and managing runs. For more details, refer to the [API reference](/langsmith/server-api-ref)).
192192

193193
## Video guide
194194

src/langsmith/use-threads.mdx

Lines changed: 143 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,18 @@ curl --request POST \
9999
```
100100
</CodeGroup>
101101

102-
For more information, refer to the @[Python][ThreadsClient.create] and @[JS][ThreadsClient.create] SDK docs, or the @[REST API][ThreadsAPI.create] reference.
102+
For more information, refer to the @[Python][ThreadsClient.create] and @[JS][ThreadsClient.create] SDK docs, or the [REST API](/langsmith/agent-server-api/threads/create-thread) reference.
103103

104104
Output:
105105

106-
```
106+
```json
107107
{
108-
"thread_id": "123e4567-e89b-12d3-a456-426614174000",
109-
"created_at": "2025-05-12T14:04:08.268Z",
110-
"updated_at": "2025-05-12T14:04:08.268Z",
111-
"metadata": {},
112-
"status": "idle",
113-
"values": {}
108+
"thread_id": "123e4567-e89b-12d3-a456-426614174000",
109+
"created_at": "2025-05-12T14:04:08.268Z",
110+
"updated_at": "2025-05-12T14:04:08.268Z",
111+
"metadata": {},
112+
"status": "idle",
113+
"values": {}
114114
}
115115
```
116116

@@ -137,7 +137,7 @@ curl --request POST --url <DEPLOYMENT_URL>/threads/thread["thread_id"]/copy \
137137
```
138138
</CodeGroup>
139139

140-
For more information, refer to the @[Python][ThreadsClient.copy] and @[JS][ThreadsClient.copy] SDK docs, or the @[REST API][ThreadsAPI.copy] reference.
140+
For more information, refer to the @[Python][ThreadsClient.copy] and @[JS][ThreadsClient.copy] SDK docs, or the [REST API](/langsmith/agent-server-api/threads/copy-thread) reference.
141141

142142
### Prepopulated State
143143

@@ -270,39 +270,41 @@ curl --request POST \
270270

271271
Output:
272272

273-
```
274-
{
275-
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
276-
"created_at": "2025-05-12T15:37:08.935038+00:00",
277-
"updated_at": "2025-05-12T15:37:08.935046+00:00",
278-
"metadata": {"graph_id": "agent"},
279-
"status": "idle",
280-
"config": {},
281-
"values": {
282-
"messages": [
283-
{
284-
"content": "hello",
285-
"additional_kwargs": {},
286-
"response_metadata": {},
287-
"type": "human",
288-
"name": null,
289-
"id": "8701f3be-959c-4b7c-852f-c2160699b4ab",
290-
"example": false
291-
},
273+
```json
292274
{
293-
"content": "Hello! How can I assist you today?",
294-
"additional_kwargs": {},
295-
"response_metadata": {},
296-
"type": "ai",
297-
"name": null,
298-
"id": "4d8ea561-7ca1-409a-99f7-6b67af3e1aa3",
299-
"example": false,
300-
"tool_calls": [],
301-
"invalid_tool_calls": [],
302-
"usage_metadata": null
303-
}
304-
]
305-
}
275+
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
276+
"created_at": "2025-05-12T15:37:08.935038+00:00",
277+
"updated_at": "2025-05-12T15:37:08.935046+00:00",
278+
"metadata": {
279+
"graph_id": "agent"
280+
},
281+
"status": "idle",
282+
"config": {},
283+
"values": {
284+
"messages": [
285+
{
286+
"content": "hello",
287+
"additional_kwargs": {},
288+
"response_metadata": {},
289+
"type": "human",
290+
"name": null,
291+
"id": "8701f3be-959c-4b7c-852f-c2160699b4ab",
292+
"example": false
293+
},
294+
{
295+
"content": "Hello! How can I assist you today?",
296+
"additional_kwargs": {},
297+
"response_metadata": {},
298+
"type": "ai",
299+
"name": null,
300+
"id": "4d8ea561-7ca1-409a-99f7-6b67af3e1aa3",
301+
"example": false,
302+
"tool_calls": [],
303+
"invalid_tool_calls": [],
304+
"usage_metadata": null
305+
}
306+
]
307+
}
306308
}
307309
```
308310

@@ -354,20 +356,24 @@ curl --request POST \
354356
```
355357
</CodeGroup>
356358

357-
For more information, refer to the @[Python][ThreadsClient.search] and @[JS][ThreadsClient.search] SDK docs, or the @[REST API][ThreadsAPI.search] reference.
359+
For more information, refer to the @[Python][ThreadsClient.search] and @[JS][ThreadsClient.search] SDK docs, or the [REST API](/langsmith/agent-server-api/threads/search-threads) reference.
358360

359361
Output:
360362

361-
```
363+
```json
362364
[
363-
{
364-
'thread_id': 'cacf79bb-4248-4d01-aabc-938dbd60ed2c',
365-
'created_at': '2024-08-14T17:36:38.921660+00:00',
366-
'updated_at': '2024-08-14T17:36:38.921660+00:00',
367-
'metadata': {'graph_id': 'agent'},
368-
'status': 'idle',
369-
'config': {'configurable': {}}
370-
}
365+
{
366+
"thread_id": "cacf79bb-4248-4d01-aabc-938dbd60ed2c",
367+
"created_at": "2024-08-14T17:36:38.921660+00:00",
368+
"updated_at": "2024-08-14T17:36:38.921660+00:00",
369+
"metadata": {
370+
"graph_id": "agent"
371+
},
372+
"status": "idle",
373+
"config": {
374+
"configurable": {}
375+
}
376+
}
371377
]
372378
```
373379

@@ -398,16 +404,20 @@ curl --request POST \
398404

399405
Output:
400406

401-
```
407+
```json
402408
[
403-
{
404-
'thread_id': 'cacf79bb-4248-4d01-aabc-938dbd60ed2c',
405-
'created_at': '2024-08-14T17:36:38.921660+00:00',
406-
'updated_at': '2024-08-14T17:36:38.921660+00:00',
407-
'metadata': {'graph_id': 'agent'},
408-
'status': 'idle',
409-
'config': {'configurable': {}}
410-
}
409+
{
410+
"thread_id": "cacf79bb-4248-4d01-aabc-938dbd60ed2c",
411+
"created_at": "2024-08-14T17:36:38.921660+00:00",
412+
"updated_at": "2024-08-14T17:36:38.921660+00:00",
413+
"metadata": {
414+
"graph_id": "agent"
415+
},
416+
"status": "idle",
417+
"config": {
418+
"configurable": {}
419+
}
420+
}
411421
]
412422
```
413423

@@ -463,18 +473,22 @@ curl --request GET \
463473

464474
Output:
465475

466-
```
476+
```json
467477
{
468-
'thread_id': 'cacf79bb-4248-4d01-aabc-938dbd60ed2c',
469-
'created_at': '2024-08-14T17:36:38.921660+00:00',
470-
'updated_at': '2024-08-14T17:36:38.921660+00:00',
471-
'metadata': {'graph_id': 'agent'},
472-
'status': 'idle',
473-
'config': {'configurable': {}}
478+
"thread_id": "cacf79bb-4248-4d01-aabc-938dbd60ed2c",
479+
"created_at": "2024-08-14T17:36:38.921660+00:00",
480+
"updated_at": "2024-08-14T17:36:38.921660+00:00",
481+
"metadata": {
482+
"graph_id": "agent"
483+
},
484+
"status": "idle",
485+
"config": {
486+
"configurable": {}
487+
}
474488
}
475489
```
476490

477-
For more information, refer to the @[Python][ThreadsClient.get] and @[JS][ThreadsClient.get] SDK docs, or the @[REST API][ThreadsAPI.get] reference.
491+
For more information, refer to the @[Python][ThreadsClient.get] and @[JS][ThreadsClient.get] SDK docs, or the [REST API](/langsmith/agent-server-api/threads/get-thread) reference.
478492

479493
### Inspect thread state
480494

@@ -502,70 +516,70 @@ curl --request GET \
502516

503517
Output:
504518

505-
```
506-
{
507-
"values": {
508-
"messages": [
519+
```json
509520
{
510-
"content": "hello",
511-
"additional_kwargs": {},
512-
"response_metadata": {},
513-
"type": "human",
514-
"name": null,
515-
"id": "8701f3be-959c-4b7c-852f-c2160699b4ab",
516-
"example": false
517-
},
518-
{
519-
"content": "Hello! How can I assist you today?",
520-
"additional_kwargs": {},
521-
"response_metadata": {},
522-
"type": "ai",
523-
"name": null,
524-
"id": "4d8ea561-7ca1-409a-99f7-6b67af3e1aa3",
525-
"example": false,
526-
"tool_calls": [],
527-
"invalid_tool_calls": [],
528-
"usage_metadata": null
529-
}
530-
]
531-
},
532-
"next": [],
533-
"tasks": [],
534-
"metadata": {
535-
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
536-
"checkpoint_id": "1f02f46f-7308-616c-8000-1b158a9a6955",
537-
"graph_id": "agent_with_quite_a_long_name",
538-
"source": "update",
539-
"step": 1,
540-
"writes": {
541-
"call_model": {
542-
"messages": [
543-
{
544-
"content": "Hello! How can I assist you today?",
545-
"type": "ai"
546-
}
547-
]
548-
}
549-
},
550-
"parents": {}
551-
},
552-
"created_at": "2025-05-12T15:37:09.008055+00:00",
553-
"checkpoint": {
554-
"checkpoint_id": "1f02f46f-733f-6b58-8001-ea90dcabb1bd",
555-
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
556-
"checkpoint_ns": ""
557-
},
558-
"parent_checkpoint": {
559-
"checkpoint_id": "1f02f46f-7308-616c-8000-1b158a9a6955",
560-
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
561-
"checkpoint_ns": ""
562-
},
563-
"checkpoint_id": "1f02f46f-733f-6b58-8001-ea90dcabb1bd",
564-
"parent_checkpoint_id": "1f02f46f-7308-616c-8000-1b158a9a6955"
521+
"values": {
522+
"messages": [
523+
{
524+
"content": "hello",
525+
"additional_kwargs": {},
526+
"response_metadata": {},
527+
"type": "human",
528+
"name": null,
529+
"id": "8701f3be-959c-4b7c-852f-c2160699b4ab",
530+
"example": false
531+
},
532+
{
533+
"content": "Hello! How can I assist you today?",
534+
"additional_kwargs": {},
535+
"response_metadata": {},
536+
"type": "ai",
537+
"name": null,
538+
"id": "4d8ea561-7ca1-409a-99f7-6b67af3e1aa3",
539+
"example": false,
540+
"tool_calls": [],
541+
"invalid_tool_calls": [],
542+
"usage_metadata": null
543+
}
544+
]
545+
},
546+
"next": [],
547+
"tasks": [],
548+
"metadata": {
549+
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
550+
"checkpoint_id": "1f02f46f-7308-616c-8000-1b158a9a6955",
551+
"graph_id": "agent_with_quite_a_long_name",
552+
"source": "update",
553+
"step": 1,
554+
"writes": {
555+
"call_model": {
556+
"messages": [
557+
{
558+
"content": "Hello! How can I assist you today?",
559+
"type": "ai"
560+
}
561+
]
562+
}
563+
},
564+
"parents": {}
565+
},
566+
"created_at": "2025-05-12T15:37:09.008055+00:00",
567+
"checkpoint": {
568+
"checkpoint_id": "1f02f46f-733f-6b58-8001-ea90dcabb1bd",
569+
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
570+
"checkpoint_ns": ""
571+
},
572+
"parent_checkpoint": {
573+
"checkpoint_id": "1f02f46f-7308-616c-8000-1b158a9a6955",
574+
"thread_id": "f15d70a1-27d4-4793-a897-de5609920b7d",
575+
"checkpoint_ns": ""
576+
},
577+
"checkpoint_id": "1f02f46f-733f-6b58-8001-ea90dcabb1bd",
578+
"parent_checkpoint_id": "1f02f46f-7308-616c-8000-1b158a9a6955"
565579
}
566580
```
567581

568-
For more information, refer to the @[Python][ThreadsClient.get_state] and @[JS][ThreadsClient.get_state] SDK docs, or the @[REST API][ThreadsAPI.get_state] reference.
582+
For more information, refer to the @[Python][ThreadsClient.get_state] and @[JS][ThreadsClient.get_state] SDK docs, or the [REST API](/langsmith/agent-server-api/threads/get-thread-state) reference.
569583

570584
Optionally, to view the state of a thread at a given checkpoint, pass in the checkpoint ID. This is useful for inspecting the thread state at a specific point in its execution history.
571585

@@ -666,7 +680,7 @@ This method is particularly useful for:
666680
- Auditing conversation history and state changes.
667681
- Replaying or analyzing past interactions.
668682

669-
For more information, refer to the @[Python][ThreadsClient.get_history] and @[JS][ThreadsClient.get_history] SDK docs, or the @[REST API][ThreadsAPI.get_history] reference.
683+
For more information, refer to the @[Python][ThreadsClient.get_history] and @[JS][ThreadsClient.get_history] SDK docs, or the [REST API](/langsmith/agent-server-api/threads/get-thread-history) reference.
670684

671685
</Tab>
672686
<Tab title="UI">

0 commit comments

Comments
 (0)