llmp.components.job_factory.job_factory

llmp.components.job_factory.job_factory(job_name: str, instruction: str = None, input_model: Type[BaseModel] = None, output_model: Type[BaseModel] = None, input_examples: Union[dict, list[dict]] = None, output_examples: Union[dict, list[dict]] = None, example_pairs: list[tuple[dict], structgenie.components.examples.base.Example, dict] = None, prompt_template: str = None, input_template: str = None, output_template: str = None, config: dict = None, **kwargs) JobRecord[source]
Parameters
  • job_name (str) – The job_name name or id of the job.

  • instruction (str) – The instruction for the job.

  • input_model (Type[BaseModel]) – The input model for the job.

  • output_model (Type[BaseModel]) – The output model for the job.

  • input_examples (Union[dict, list[dict]]) – The input examples for the job.

  • output_examples (Union[dict, list[dict]]) – The output examples for the job.

  • example_pairs (list[tuple[dict], Example, dict]) – The example pairs for the job.

  • prompt_template (str) – The prompt template for the job.

  • input_template (str) – The input template for the job.

  • output_template (str) – The output template for the job.

  • config (dict) – The config for the job.