Skip to content

latent.agents.guided.journeys

Journey data models for GuidedAgent multi-step SOPs.

Classes

Journey

Journey(name: str, steps: list[Step])

A multi-step process (SOP) the agent guides the user through.

JourneyState

JourneyState(journey: Journey, current_step_index: int = 0, completed: bool = False)

Mutable runtime state for one active journey conversation.

Step

Step(name: str, instructions: str, advance_when: str = '', tools: tuple[str, ...] = tuple())

A single step in a journey.

Methods

JourneyState.advance

advance() -> bool

Move to the next step. Returns True if the journey is now complete.

JourneyState.current_step