-
Notifications
You must be signed in to change notification settings - Fork 823
Add per-thread TTL configuration #1316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Since v0.4.11, we have been able to configure per-thread TTLs but this was never documented.
|
Mintlify preview ID generated: preview-l2andp-1762447628-62ec6b8 |
lnhsingh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @katmayb
| --- | ||
| title: How to add TTLs to your application | ||
| sidebarTitle: Add TTLs to your application | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| ## Configuring checkpoint TTL | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Configuring checkpoint TTL | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| }, | ||
| "checkpointer": { | ||
| "ttl": { | ||
| "ttl": {c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "ttl": {c | |
| "ttl": { |
|
|
||
| ## Configuring Per-Thread TTL | ||
|
|
||
| From `langgraph-api` [v0.4.11](https://docs.langchain.com/langsmith/agent-server-changelog#v0-4-11) you are now able to apply TTL configurations per-thread via thread updates. Here is an example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| From `langgraph-api` [v0.4.11](https://docs.langchain.com/langsmith/agent-server-changelog#v0-4-11) you are now able to apply TTL configurations per-thread via thread updates. Here is an example: | |
| You can apply [TTL configurations per-thread](https://reference.langchain.com/python/langsmith/deployment/sdk/#langgraph_sdk.client.ThreadsClient.create). |
| } | ||
| ``` | ||
|
|
||
| ## Configuring Per-Thread TTL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Configuring Per-Thread TTL | |
| ## Configure per-thread TTL |
Overview
Since v0.4.11, we have been able to configure per-thread TTLs but this was never documented.
Type of change
**Type:**Update existing documentation
Checklist
docs devsrc/docs.jsonif needed