Class MRKLOutputParser
java.lang.Object
com.hw.langchain.schema.BaseLLMOutputParser<T>
com.hw.langchain.schema.BaseOutputParser<AgentResult>
com.hw.langchain.agents.agent.AgentOutputParser
com.hw.langchain.agents.mrkl.output.parser.MRKLOutputParser
- All Implemented Interfaces:
Serializable
- Author:
- HamaWhite
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInstructions on how the LLM output should be formatted.Parse the output of an LLM call.Methods inherited from class com.hw.langchain.schema.BaseOutputParser
parseResult, parseWithPrompt
-
Constructor Details
-
MRKLOutputParser
public MRKLOutputParser()
-
-
Method Details
-
parse
Description copied from class:BaseOutputParserParse the output of an LLM call. A method which takes in a string (assumed output of a language model) and parses it into some structure.- Specified by:
parsein classBaseOutputParser<AgentResult>- Parameters:
text- output of language model- Returns:
- structured output
-
getFormatInstructions
Description copied from class:BaseOutputParserInstructions on how the LLM output should be formatted.- Overrides:
getFormatInstructionsin classBaseOutputParser<AgentResult>- Returns:
- format instructions
-