# langgraph_sdk

> Python package

📖 [View in docs](https://reference.langchain.com/python/langgraph-sdk)

## Classes

- [`SWRResult`](https://reference.langchain.com/python/langgraph-sdk/cache/SWRResult)
- [`LangGraphError`](https://reference.langchain.com/python/langgraph-sdk/errors/LangGraphError)
- [`APIError`](https://reference.langchain.com/python/langgraph-sdk/errors/APIError)
- [`APIResponseValidationError`](https://reference.langchain.com/python/langgraph-sdk/errors/APIResponseValidationError)
- [`APIStatusError`](https://reference.langchain.com/python/langgraph-sdk/errors/APIStatusError)
- [`APIConnectionError`](https://reference.langchain.com/python/langgraph-sdk/errors/APIConnectionError)
- [`APITimeoutError`](https://reference.langchain.com/python/langgraph-sdk/errors/APITimeoutError)
- [`BadRequestError`](https://reference.langchain.com/python/langgraph-sdk/errors/BadRequestError)
- [`AuthenticationError`](https://reference.langchain.com/python/langgraph-sdk/errors/AuthenticationError)
- [`PermissionDeniedError`](https://reference.langchain.com/python/langgraph-sdk/errors/PermissionDeniedError)
- [`NotFoundError`](https://reference.langchain.com/python/langgraph-sdk/errors/NotFoundError)
- [`ConflictError`](https://reference.langchain.com/python/langgraph-sdk/errors/ConflictError)
- [`UnprocessableEntityError`](https://reference.langchain.com/python/langgraph-sdk/errors/UnprocessableEntityError)
- [`RateLimitError`](https://reference.langchain.com/python/langgraph-sdk/errors/RateLimitError)
- [`InternalServerError`](https://reference.langchain.com/python/langgraph-sdk/errors/InternalServerError)
- [`BytesLineDecoder`](https://reference.langchain.com/python/langgraph-sdk/sse/BytesLineDecoder)
- [`SSEDecoder`](https://reference.langchain.com/python/langgraph-sdk/sse/SSEDecoder)
- [`LangSmithTracing`](https://reference.langchain.com/python/langgraph-sdk/schema/LangSmithTracing)
- [`Config`](https://reference.langchain.com/python/langgraph-sdk/schema/Config)
- [`Checkpoint`](https://reference.langchain.com/python/langgraph-sdk/schema/Checkpoint)
- [`GraphSchema`](https://reference.langchain.com/python/langgraph-sdk/schema/GraphSchema)
- [`AssistantBase`](https://reference.langchain.com/python/langgraph-sdk/schema/AssistantBase)
- [`AssistantVersion`](https://reference.langchain.com/python/langgraph-sdk/schema/AssistantVersion)
- [`Assistant`](https://reference.langchain.com/python/langgraph-sdk/schema/Assistant)
- [`AssistantsSearchResponse`](https://reference.langchain.com/python/langgraph-sdk/schema/AssistantsSearchResponse)
- [`Interrupt`](https://reference.langchain.com/python/langgraph-sdk/schema/Interrupt)
- [`Thread`](https://reference.langchain.com/python/langgraph-sdk/schema/Thread)
- [`ThreadTask`](https://reference.langchain.com/python/langgraph-sdk/schema/ThreadTask)
- [`ThreadState`](https://reference.langchain.com/python/langgraph-sdk/schema/ThreadState)
- [`ThreadUpdateStateResponse`](https://reference.langchain.com/python/langgraph-sdk/schema/ThreadUpdateStateResponse)
- [`Run`](https://reference.langchain.com/python/langgraph-sdk/schema/Run)
- [`Cron`](https://reference.langchain.com/python/langgraph-sdk/schema/Cron)
- [`CronUpdate`](https://reference.langchain.com/python/langgraph-sdk/schema/CronUpdate)
- [`RunCreate`](https://reference.langchain.com/python/langgraph-sdk/schema/RunCreate)
- [`Item`](https://reference.langchain.com/python/langgraph-sdk/schema/Item)
- [`ListNamespaceResponse`](https://reference.langchain.com/python/langgraph-sdk/schema/ListNamespaceResponse)
- [`SearchItem`](https://reference.langchain.com/python/langgraph-sdk/schema/SearchItem)
- [`SearchItemsResponse`](https://reference.langchain.com/python/langgraph-sdk/schema/SearchItemsResponse)
- [`StreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/StreamPart)
- [`TaskPayload`](https://reference.langchain.com/python/langgraph-sdk/schema/TaskPayload)
- [`TaskResultPayload`](https://reference.langchain.com/python/langgraph-sdk/schema/TaskResultPayload)
- [`CheckpointTaskPayload`](https://reference.langchain.com/python/langgraph-sdk/schema/CheckpointTaskPayload)
- [`CheckpointPayload`](https://reference.langchain.com/python/langgraph-sdk/schema/CheckpointPayload)
- [`RunMetadataPayload`](https://reference.langchain.com/python/langgraph-sdk/schema/RunMetadataPayload)
- [`ValuesStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/ValuesStreamPart)
- [`UpdatesStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/UpdatesStreamPart)
- [`MessagesPartialStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/MessagesPartialStreamPart)
- [`MessagesCompleteStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/MessagesCompleteStreamPart)
- [`MessagesMetadataStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/MessagesMetadataStreamPart)
- [`MessagesTupleStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/MessagesTupleStreamPart)
- [`CustomStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/CustomStreamPart)
- [`CheckpointsStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/CheckpointsStreamPart)
- [`TasksStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/TasksStreamPart)
- [`DebugStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/DebugStreamPart)
- [`MetadataStreamPart`](https://reference.langchain.com/python/langgraph-sdk/schema/MetadataStreamPart)
- [`Send`](https://reference.langchain.com/python/langgraph-sdk/schema/Send)
- [`Command`](https://reference.langchain.com/python/langgraph-sdk/schema/Command)
- [`RunCreateMetadata`](https://reference.langchain.com/python/langgraph-sdk/schema/RunCreateMetadata)
- [`LangGraphBetaWarning`](https://reference.langchain.com/python/langgraph-sdk/encryption/LangGraphBetaWarning)
- [`DuplicateHandlerError`](https://reference.langchain.com/python/langgraph-sdk/encryption/DuplicateHandlerError)
- [`Encryption`](https://reference.langchain.com/python/langgraph-sdk/encryption/Encryption)
- [`EncryptionContext`](https://reference.langchain.com/python/langgraph-sdk/encryption/types/EncryptionContext)
- [`SyncCronClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/cron/SyncCronClient)
- [`SyncStoreClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/store/SyncStoreClient)
- [`SyncLangGraphClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/client/SyncLangGraphClient)
- [`SyncThreadsClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/threads/SyncThreadsClient)
- [`SyncAssistantsClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/assistants/SyncAssistantsClient)
- [`SyncHttpClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/http/SyncHttpClient)
- [`SyncRunsClient`](https://reference.langchain.com/python/langgraph-sdk/_sync/runs/SyncRunsClient)
- [`Auth`](https://reference.langchain.com/python/langgraph-sdk/auth/Auth)
- [`MinimalUser`](https://reference.langchain.com/python/langgraph-sdk/auth/types/MinimalUser)
- [`MinimalUserDict`](https://reference.langchain.com/python/langgraph-sdk/auth/types/MinimalUserDict)
- [`BaseUser`](https://reference.langchain.com/python/langgraph-sdk/auth/types/BaseUser)
- [`StudioUser`](https://reference.langchain.com/python/langgraph-sdk/auth/types/StudioUser)
- [`BaseAuthContext`](https://reference.langchain.com/python/langgraph-sdk/auth/types/BaseAuthContext)
- [`AuthContext`](https://reference.langchain.com/python/langgraph-sdk/auth/types/AuthContext)
- [`ThreadTTL`](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadTTL)
- [`ThreadsCreate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadsCreate)
- [`ThreadsRead`](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadsRead)
- [`ThreadsUpdate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadsUpdate)
- [`ThreadsDelete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadsDelete)
- [`ThreadsSearch`](https://reference.langchain.com/python/langgraph-sdk/auth/types/ThreadsSearch)
- [`RunsCreate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/RunsCreate)
- [`AssistantsCreate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/AssistantsCreate)
- [`AssistantsRead`](https://reference.langchain.com/python/langgraph-sdk/auth/types/AssistantsRead)
- [`AssistantsUpdate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/AssistantsUpdate)
- [`AssistantsDelete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/AssistantsDelete)
- [`AssistantsSearch`](https://reference.langchain.com/python/langgraph-sdk/auth/types/AssistantsSearch)
- [`CronsCreate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/CronsCreate)
- [`CronsDelete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/CronsDelete)
- [`CronsRead`](https://reference.langchain.com/python/langgraph-sdk/auth/types/CronsRead)
- [`CronsUpdate`](https://reference.langchain.com/python/langgraph-sdk/auth/types/CronsUpdate)
- [`CronsSearch`](https://reference.langchain.com/python/langgraph-sdk/auth/types/CronsSearch)
- [`StoreGet`](https://reference.langchain.com/python/langgraph-sdk/auth/types/StoreGet)
- [`StoreSearch`](https://reference.langchain.com/python/langgraph-sdk/auth/types/StoreSearch)
- [`StoreListNamespaces`](https://reference.langchain.com/python/langgraph-sdk/auth/types/StoreListNamespaces)
- [`StorePut`](https://reference.langchain.com/python/langgraph-sdk/auth/types/StorePut)
- [`StoreDelete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/StoreDelete)
- [`on`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on)
- [`threads`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads)
- [`create`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads/create)
- [`create_run`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads/create_run)
- [`read`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads/read)
- [`update`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads/update)
- [`delete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads/delete)
- [`search`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/threads/search)
- [`assistants`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/assistants)
- [`create`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/assistants/create)
- [`read`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/assistants/read)
- [`update`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/assistants/update)
- [`delete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/assistants/delete)
- [`search`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/assistants/search)
- [`crons`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/crons)
- [`create`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/crons/create)
- [`read`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/crons/read)
- [`update`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/crons/update)
- [`delete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/crons/delete)
- [`search`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/crons/search)
- [`store`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/store)
- [`put`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/store/put)
- [`get`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/store/get)
- [`search`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/store/search)
- [`delete`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/store/delete)
- [`list_namespaces`](https://reference.langchain.com/python/langgraph-sdk/auth/types/on/store/list_namespaces)
- [`HTTPException`](https://reference.langchain.com/python/langgraph-sdk/auth/exceptions/HTTPException)
- [`CronClient`](https://reference.langchain.com/python/langgraph-sdk/_async/cron/CronClient)
- [`StoreClient`](https://reference.langchain.com/python/langgraph-sdk/_async/store/StoreClient)
- [`LangGraphClient`](https://reference.langchain.com/python/langgraph-sdk/_async/client/LangGraphClient)
- [`ThreadsClient`](https://reference.langchain.com/python/langgraph-sdk/_async/threads/ThreadsClient)
- [`AssistantsClient`](https://reference.langchain.com/python/langgraph-sdk/_async/assistants/AssistantsClient)
- [`HttpClient`](https://reference.langchain.com/python/langgraph-sdk/_async/http/HttpClient)
- [`RunsClient`](https://reference.langchain.com/python/langgraph-sdk/_async/runs/RunsClient)

## Functions

- [`cache_get()`](https://reference.langchain.com/python/langgraph-sdk/cache/cache_get)
- [`cache_set()`](https://reference.langchain.com/python/langgraph-sdk/cache/cache_set)
- [`swr()`](https://reference.langchain.com/python/langgraph-sdk/cache/swr)
- [`aiter_lines_raw()`](https://reference.langchain.com/python/langgraph-sdk/sse/aiter_lines_raw)
- [`iter_lines_raw()`](https://reference.langchain.com/python/langgraph-sdk/sse/iter_lines_raw)
- [`get_sync_client()`](https://reference.langchain.com/python/langgraph-sdk/_sync/client/get_sync_client)
- [`is_studio_user()`](https://reference.langchain.com/python/langgraph-sdk/auth/is_studio_user)
- [`get_client()`](https://reference.langchain.com/python/langgraph-sdk/_async/client/get_client)
- [`configure_loopback_transports()`](https://reference.langchain.com/python/langgraph-sdk/_shared/utilities/configure_loopback_transports)
- [`get_asgi_transport()`](https://reference.langchain.com/python/langgraph-sdk/_shared/utilities/get_asgi_transport)

## Types

- [`BytesLike`](https://reference.langchain.com/python/langgraph-sdk/sse/BytesLike)
- [`Json`](https://reference.langchain.com/python/langgraph-sdk/schema/Json)
- [`PrimitiveData`](https://reference.langchain.com/python/langgraph-sdk/schema/PrimitiveData)
- [`QueryParamTypes`](https://reference.langchain.com/python/langgraph-sdk/schema/QueryParamTypes)
- [`DebugPayload`](https://reference.langchain.com/python/langgraph-sdk/schema/DebugPayload)
- [`StreamPartV2`](https://reference.langchain.com/python/langgraph-sdk/schema/StreamPartV2)
- [`Input`](https://reference.langchain.com/python/langgraph-sdk/schema/Input)
- [`Context`](https://reference.langchain.com/python/langgraph-sdk/schema/Context)
- [`FilterType`](https://reference.langchain.com/python/langgraph-sdk/auth/types/FilterType)
- [`HandlerResult`](https://reference.langchain.com/python/langgraph-sdk/auth/types/HandlerResult)
- [`TimeoutTypes`](https://reference.langchain.com/python/langgraph-sdk/_shared/types/TimeoutTypes)
