Structure
AISessionPayload
The full structured payload returned by shipit ai-session.
struct AISessionPayloadOverview
This is a stable, versioned JSON contract for AI agent consumption. Check version before parsing to detect breaking changes.
Contract version history
"1"— initial release
Topics
Initializers
Instance Properties
let agentPrompt: StringA concise system prompt the host agent should include in its context.
let ambiguities: [AmbiguityFlag]Fields where multiple candidates exist and user confirmation is needed.
let appConfig: [InferredConfigEntry]Inferred configuration entries with full provenance and confidence.
let goal: StringThe goal this session was built for.
let missing: [SuggestedShipfile.MissingValue]Fields that are required for the goal but could not be resolved.
let nextAction: NextActionThe single next deterministic step the agent should take.
let nextQuestion: String?The single most valuable question to ask the user, or
nilif ready to proceed.let readiness: AIReadinessReady-to-build diagnosis for the requested goal.
let suggestedShipfile: StringSuggested Shipfile.yml content — ready to write after reviewing
missing.let version: StringContract version. Increment on breaking payload changes.
Default Implementations
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype