LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreoutput_parserspydanticPydanticOutputParserparse_result
    Method●Since v0.1

    parse_result

    Parse the result of an LLM call to a Pydantic object.

    Copy
    parse_result(
      self,
      result: list[Generation],
      *,
      partial: bool = False
    ) -> TBaseModel | None

    Parameters

    NameTypeDescription
    result*list[Generation]

    The result of the LLM call.

    partialbool
    Default:False

    Whether to parse partial JSON objects.

    If True, the output will be a JSON object containing all the keys that have been returned so far.

    View source on GitHub