Parse an output as a pydantic object.
This parser is used to parse the output of a chat model that uses Google Vertex
function format to invoke functions.
The parser extracts the function call invocation and matches them to the pydantic
schema provided.
An exception will be raised if the function call does not match the provided schema.