Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.example.com/assistants \
--header 'Content-Type: application/json' \
--data '
{
"graph_id": "<string>",
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"context": {},
"metadata": {},
"if_exists": "raise",
"name": "<string>",
"description": "<string>"
}
'{
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"graph_id": "<string>",
"config": {
"tags": [
"<string>"
],
"recursion_limit": 123,
"configurable": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {},
"context": {},
"version": 123,
"name": "<string>",
"description": "<string>"
}Create an assistant.
An initial version of the assistant will be created and the assistant is set to that version. To change versions, use the POST /assistants/{assistant_id}/latest endpoint.
curl --request POST \
--url https://api.example.com/assistants \
--header 'Content-Type: application/json' \
--data '
{
"graph_id": "<string>",
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"context": {},
"metadata": {},
"if_exists": "raise",
"name": "<string>",
"description": "<string>"
}
'{
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"graph_id": "<string>",
"config": {
"tags": [
"<string>"
],
"recursion_limit": 123,
"configurable": {}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {},
"context": {},
"version": 123,
"name": "<string>",
"description": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Payload for creating an assistant.
The ID of the graph the assistant should use. The graph ID is normally set in your langgraph.json configuration.
The ID of the assistant. If not provided, a random UUID will be generated.
Configuration to use for the graph. Useful when graph is configurable and you want to create different assistants based on different configurations.
Static context added to the assistant.
Metadata to add to assistant.
How to handle duplicate creation. Must be either 'raise' (raise error if duplicate), or 'do_nothing' (return existing assistant).
raise, do_nothing The name of the assistant. Defaults to 'Untitled'.
The description of the assistant. Defaults to null.
Success
The ID of the assistant.
The ID of the graph.
The assistant config.
Show child attributes
The time the assistant was created.
The last time the assistant was updated.
The assistant metadata.
Static context added to the assistant.
The version of the assistant
The name of the assistant
The description of the assistant
Was this page helpful?