[docs]classStrOutputParser(BaseTransformOutputParser[str]):"""OutputParser that parses LLMResult into the top likely string."""@classmethoddefis_lc_serializable(cls)->bool:"""StrOutputParser is serializable. Returns: True """returnTrue@classmethoddefget_lc_namespace(cls)->list[str]:"""Get the namespace of the langchain object. Default is ["langchain", "schema", "output_parser"]. """return["langchain","schema","output_parser"]@propertydef_type(self)->str:"""Return the output parser type for serialization."""return"default"
[docs]defparse(self,text:str)->str:"""Returns the input text with no changes."""returntext