Expand description
AI Intent snapshot.
Intent is the immutable entry point of the agent workflow. It
captures one revision of the user’s request plus the optional
analyzed IntentSpec.
§How to use this object
- Create a root
Intentwhen Libra accepts a new user request. - Create a new
Intentrevision when the request is refined, branched, or merged; link earlier revisions throughparents. - Fill
specbefore persistence if analysis has already produced a structured request. - Freeze analysis-time context through
analysis_context_frameswhenContextFrames were used to derive theIntentSpec.
§How it works with other objects
Plan.intentpoints back to theIntentthat the plan belongs to.Task.intentmay point back to the originatingIntent.analysis_context_framesfreezes the context used to derive the storedIntentSpec.IntentEventrecords lifecycle facts such as analyzed / completed / cancelled.
§How Libra should call it
Libra should persist a new Intent for every semantic revision of
the request, then keep “current thread head”, “selected plan”, and
other mutable session state in Libra projections rather than on the
Intent object itself.
Structs§
- Intent
- Immutable request/spec revision.
- Intent
Spec - Structured request payload derived from the free-form prompt.