format#

Classes#

Module Contents#

class format.FormatRefiner(llm, parser, max_retries, prompt_template_name)#

Bases: janus.refiners.refiner.JanusRefiner

Parameters:
format_chain: langchain_core.runnables.RunnableSerializable#
parse_completion(completion, prompt_value, **kwargs)#
Parameters:
  • completion (str) –

  • prompt_value (langchain_core.prompt_values.PromptValue) –

Return type:

Any

class format.CodeFormatRefiner(llm, parser, max_retries)#

Bases: FormatRefiner

Parameters:
class format.RequirementsFormatRefiner(llm, parser, max_retries)#

Bases: FormatRefiner

Parameters: