Python typing definitions for minimal user, auth context, and API operation types.
# Source: https://github.com/langchain-ai/langgraph | License: MIT | Copyright 2024 LangChain, Inc
# Provided via justclaw.it.com; keep this notice with the code.
"""Authentication and authorization types for LangGraph.
This module defines the core types used for authentication, authorization, and
request handling in LangGraph. It includes user protocols, authentication contexts,
and typed dictionaries for various API operations.
Note:
All typing.TypedDict classes use total=False to make all fields typing.Optional by default.
"""
from __future__ import annotations
import typing
from collections.abc import Awaitable, Callable, Sequence
from dataclasses import dataclass
from datetime import datetime
from uuid import UUID
import typing_extensions
RunStatus = typing.Literal["pending"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key