Skip to content

corpus_reader_cm

CheckMate stage implementation of the Corpus Reader

Attributes

Classes

CorpusReaderState

Bases: BaseStageState

Attributes

agent_name class-attribute instance-attribute
agent_name: str | None = None
agent_pkid instance-attribute
agent_pkid: str
collection_name instance-attribute
collection_name: str
collection_pkid class-attribute instance-attribute
collection_pkid: str | None = None
corpus instance-attribute
corpus: str
corpus_obj class-attribute instance-attribute
corpus_obj: FileObj | None = None
derived_trace_id class-attribute instance-attribute
derived_trace_id: str | None = None
derived_trace_session_id class-attribute instance-attribute
derived_trace_session_id: str | None = None
derived_trace_tags class-attribute instance-attribute
derived_trace_tags: List[str] | None = None
namespace_pkid instance-attribute
namespace_pkid: str
session_name class-attribute instance-attribute
session_name: str | None = None
session_pkid class-attribute instance-attribute
session_pkid: str | None = None
trace_session_id instance-attribute
trace_session_id: str | None
trace_tags instance-attribute
trace_tags: List[str] | None

GenerateBatch

Bases: BaseStage[CorpusReaderState]

Functions

cancel
cancel()
execute_stage
execute_stage() -> None

Initialize

Bases: BaseStage[CorpusReaderState]

Functions

execute_stage
execute_stage() -> None

Functions

cm_factory_corpus_reader

cm_factory_corpus_reader(
    task_id: str | None = None,
    stage_templates: CorpusReaderState | None = None,
    **kwargs
) -> CheckMate