nat.atif.subagent_trajectory_ref#
Subagent trajectory reference model for ATIF trajectories.
Classes#
Reference to a delegated subagent trajectory (ATIF v1.7). |
Module Contents#
- class SubagentTrajectoryRef(/, **data: Any)#
Bases:
pydantic.BaseModelReference to a delegated subagent trajectory (ATIF v1.7).
A ref MUST be resolvable via at least one of two mechanisms:
Embedded form —
trajectory_idmatches thetrajectory_idof an entry in the parentTrajectory.subagent_trajectoriesarray.File-ref form —
trajectory_pathreferences an external file (path, S3 URL, database identifier, etc.).
A ref MUST set at least one of
trajectory_idortrajectory_path; setting both is permitted (an embedded ref MAY also record the original file path for debug).session_idis run-scoped and informational only — it is NOT a valid resolution key (two sibling subagents MAY legitimately share asession_id).Breaking vs. v1.6: in v1.6
session_idwas required on the ref and served as the resolution key. Under v1.7 a ref of the shape{"session_id": "..."}(notrajectory_idand notrajectory_path) no longer validates. Producers MUST migrate by settingtrajectory_idfor embedded refs ortrajectory_pathfor external-file refs. Pre-v1.7 refs that already settrajectory_pathremain valid.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.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- _validate_resolution_key_present() Self#