LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkauthtypesAuthContext
    Class●Since v0.1

    AuthContext

    Copy
    AuthContext(
      self,
      permissions: Sequence[str],
      user: BaseUser,
      resource: typing

    Bases

    BaseAuthContext

    Constructors

    Attributes

    Inherited fromBaseAuthContext

    Attributes

    Apermissions: Sequence[str]
    —

    The permissions granted to the authenticated user.

    Auser: BaseUser
    —

    The authenticated user.

    View source on GitHub
    .
    Literal
    [
    'runs'
    ,
    'threads'
    ,
    'crons'
    ,
    'assistants'
    ,
    'store'
    ]
    ,
    action
    :
    typing
    .
    Literal
    [
    'create'
    ,
    'read'
    ,
    'update'
    ,
    'delete'
    ,
    'search'
    ,
    'create_run'
    ,
    'put'
    ,
    'get'
    ,
    'list_namespaces'
    ]
    )
    constructor
    __init__
    NameType
    permissionsSequence[str]
    userBaseUser
    resourcetyping.Literal['runs', 'threads', 'crons', 'assistants', 'store']
    actiontyping.Literal['create', 'read', 'update', 'delete', 'search', 'create_run', 'put', 'get', 'list_namespaces']
    attribute
    resource: typing.Literal['runs', 'threads', 'crons', 'assistants', 'store']

    The resource being accessed.

    attribute
    action: typing.Literal['create', 'read', 'update', 'delete', 'search', 'create_run', 'put', 'get', 'list_namespaces']

    The action being performed on the resource.

    Most resources support the following actions:

    • create: Create a new resource
    • read: Read information about a resource
    • update: Update an existing resource
    • delete: Delete a resource
    • search: Search for resources

    The store supports the following actions:

    • put: Add or update an item in the store
    • get: Get an item from the store
    • search: Search for items within a namespace prefix
    • delete: Delete an item from the store
    • list_namespaces: List the namespaces in the store

    Complete authentication context with resource and action information.

    Extends BaseAuthContext with specific resource and action being accessed, allowing for fine-grained access control decisions.