> ## Documentation Index
> Fetch the complete documentation index at: https://icrl.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Models

> Trajectory, Step, Message, and related types

## Zod Schemas

```ts theme={null}
MessageSchema, StepSchema, StepExampleSchema, TrajectorySchema, StepContextSchema;
CurationMetadataSchema, DeferredValidationSchema;
```

## Types

* `Message` — `{ role, content }`
* `Step` — `{ observation, reasoning, action }`
* `StepExample` — step with goal, plan, trajectoryId, stepIndex
* `Trajectory` — `{ id?, goal, plan, steps, success, metadata? }`
* `StepContext` — context for prompt formatting
* `CurationMetadata` — retrieval/utility tracking
* `DeferredValidation` — validation metadata

## Helpers

```ts theme={null}
trajectoryToExampleString(trajectory)
stepExampleToString(example)
formatExamples(examples: StepExample[])
formatHistory(history: Step[])
updateCurationUtility(meta: CurationMetadata)
```
