janus.parsers.parser#
Attributes#
Classes#
Module Contents#
- janus.parsers.parser.log#
- class janus.parsers.parser.JanusParser#
Bases:
langchain.schema.output_parser.BaseOutputParser
[str
]- parse_input(block)#
Parse the input block into raw string input ready to be passed to an LLM. Also perform any processing or saving of metadata.
- Parameters:
block (janus.language.block.CodeBlock) – The CodeBlock to be processed
- Returns:
A parsed version of the input text
- Return type:
- parse_combined_output(text)#
Parse the output text from the LLM when multiple inputs are combined
- parse_into_block(text, block)#
- Parameters:
text (str | langchain_core.messages.BaseMessage) –
block (janus.language.block.CodeBlock) –