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-sdkauthtypesAssistantsCreate
    Classā—Since v0.1

    AssistantsCreate

    Copy
    AssistantsCreate()

    Bases

    typing.TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    assistant_idUUID
    graph_idstr
    configdict[str, typing.Any]
    contextdict[str, typing.Any]
    metadataMetadataInput
    if_existsOnConflictBehavior
    namestr
    attribute
    assistant_id: UUID

    Unique identifier for the assistant.

    attribute
    graph_id: str

    Graph ID to use for this assistant.

    attribute
    config: dict[str, typing.Any]

    typing.Optional configuration for the assistant.

    attribute
    context: dict[str, typing.Any]
    attribute
    metadata: MetadataInput

    typing.Optional metadata to attach to the assistant.

    attribute
    if_exists: OnConflictBehavior

    Behavior when an assistant with the same ID already exists.

    attribute
    name: str

    Name of the assistant.

    Payload for creating an assistant.

    Examples
    create_params = {
        "assistant_id": UUID("123e4567-e89b-12d3-a456-426614174000"),
        "graph_id": "graph123",
        "config": {"tags": ["tag1", "tag2"]},
        "context": {"key": "value"},
        "metadata": {"owner": "user123"},
        "if_exists": "do_nothing",
        "name": "Assistant 1"
    }