MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / FormatOption

Class FormatOption

docling/document_converter.py:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50class FormatOption(BaseModel):
51 pipeline_cls: Type[BasePipeline]
52 pipeline_options: Optional[PipelineOptions] = None
53 backend: Type[AbstractDocumentBackend]
54
55 model_config = ConfigDict(arbitrary_types_allowed=True)
56
57 @model_validator(mode="after")
58 def set_optional_field_default(self) -> "FormatOption":
59 if self.pipeline_options is None:
60 self.pipeline_options = self.pipeline_cls.get_default_options()
61 return self
62
63
64class ExcelFormatOption(FormatOption):

Callers 1

_get_default_optionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected