format#
Classes#
Module Contents#
- class format.FormatRefiner(llm, parser, max_retries, prompt_template_name)#
Bases:
janus.refiners.refiner.JanusRefiner
- Parameters:
llm (janus.llm.models_info.JanusModel) –
parser (janus.parsers.parser.JanusParser) –
max_retries (int) –
prompt_template_name (str) –
- format_chain: langchain_core.runnables.RunnableSerializable#
- class format.CodeFormatRefiner(llm, parser, max_retries)#
Bases:
FormatRefiner
- Parameters:
llm (janus.llm.models_info.JanusModel) –
parser (janus.parsers.parser.JanusParser) –
max_retries (int) –
- class format.RequirementsFormatRefiner(llm, parser, max_retries)#
Bases:
FormatRefiner
- Parameters:
llm (janus.llm.models_info.JanusModel) –
parser (janus.parsers.parser.JanusParser) –
max_retries (int) –