langchain_google_vertexai.chains.get_output_parser

langchain_google_vertexai.chains.get_output_parser(functions: Sequence[Type[BaseModel]]) Union[BaseOutputParser, BaseGenerationOutputParser][source]

Get the appropriate function output parser given the user functions.

Parameters

functions (Sequence[Type[BaseModel]]) – Sequence where element is a dictionary, a pydantic.BaseModel class, or a Python function. If a dictionary is passed in, it is assumed to already be a valid OpenAI function.

Returns

A PydanticFunctionsOutputParser

Return type

Union[BaseOutputParser, BaseGenerationOutputParser]