pynydus.api.raw_types¶
Data types for spawner/hatcher interfaces and the pipeline.
ParseResult is produced by spawner.parse() from redacted files.
RenderResult is produced by hatcher.render() with placeholders intact.
RawSkill and RawMemory are row-level records inside ParseResult.
Module Contents¶
Classes¶
A skill extracted verbatim from a source platform. |
|
A single memory snippet extracted from a source platform. |
|
Output of |
|
Output of |
API¶
- class pynydus.api.raw_types.RawSkill(/, **data: typing.Any)¶
Bases:
pydantic.BaseModelA skill extracted verbatim from a source platform.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.
- class pynydus.api.raw_types.RawMemory(/, **data: typing.Any)¶
Bases:
pydantic.BaseModelA single memory snippet extracted from a source platform.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- label: pynydus.common.enums.MemoryLabel | None¶
None
Optional label hint from the spawner (e.g. MemoryLabel.PERSONA).
- timestamp: datetime.datetime | None¶
None
Optional timestamp from source data.
- class pynydus.api.raw_types.ParseResult(/, **data: typing.Any)¶
Bases:
pydantic.BaseModelOutput of
spawner.parse(): structured records from redacted files.Spawners produce this after receiving pre-redacted file contents. No secrets, no raw_artifacts, no source_type: those are pipeline concerns.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.- skills: list[pynydus.api.raw_types.RawSkill]¶
‘Field(…)’
- memory: list[pynydus.api.raw_types.RawMemory]¶
‘Field(…)’
- class pynydus.api.raw_types.RenderResult(/, **data: typing.Any)¶
Bases:
pydantic.BaseModelOutput of
hatcher.render(): target file contents from Egg records.Hatchers produce this from an Egg. Files contain
{{SECRET_NNN}}and{{PII_NNN}}placeholders. the pipeline substitutes real values at the secrets-IN boundary.Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.