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_parsersbaseBaseLLMOutputParseraparse_result
    Method●Since v0.1

    aparse_result

    Parse a list of candidate model Generation objects into a specific format.

    Copy
    aparse_result(
      self,
      result: list[Generation],
      *,
      partial: bool = False
    ) -> T

    Parameters

    NameTypeDescription
    result*list[Generation]

    A list of Generation to be parsed.

    The Generations are assumed to be different candidate outputs for a single model input.

    partialbool
    Default:False

    Whether to parse the output as a partial result.

    This is useful for parsers that can parse partial results.

    View source on GitHub