Pydantic model representing a single step in AI agent trajectories with validation and metadata.
# Source: https://github.com/NousResearch/harbor | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Step model for ATIF trajectories."""
from datetime import datetime
from typing import Any, Literal
from pydantic import BaseModel, Field, field_validator, model_validator
from harbor.models.trajectories.metrics import Metrics
from harbor.models.trajectories.observation import Observation
from harbor.models.trajectories.tool_call import ToolCall
class Step(BaseModel):
"""A single step in the trajectory."""
step_id: int = Field(
default=...,
ge=1,
description="Ordinal index of the turn (starting from 1)",
)
timestamp: str | None = Field(
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key