| Name | Type | Description |
|---|---|---|
assistant_id* | str | Assistant to update. |
graph_id | str | None | Default: NoneThe ID of the graph the assistant should use.
The graph ID is normally set in your langgraph.json configuration. If |
config | Config | None | Default: NoneConfiguration to use for the graph. |
context | Context | None | Default: None |
metadata | Json | Default: None |
name | str | None | Default: None |
headers | Mapping[str, str] | None | Default: None |
description | str | None | Default: None |
params | QueryParamTypes | None | Default: None |
Update an assistant.
Use this to point to a different graph, update the configuration, or change the metadata of an assistant.
client = get_client(url="http://localhost:2024")
assistant = await client.assistants.update(
assistant_id='e280dad7-8618-443f-87f1-8e41841c180f',
graph_id="other-graph",
context={"model_name": "anthropic"},
metadata={"number":2}
)Static context to add to the assistant.
Metadata to merge with existing assistant metadata.
The new name for the assistant.
Optional custom headers to include with the request.
Optional description of the assistant. The description field is available for langgraph-api server version>=0.0.45
Optional query parameters to include with the request.