Interface TurnPreparation

What a learner session prepares for a turn. Every model step of the turn uses the one preparation.

interface TurnPreparation {
    systemPrompts: {
        content: string;
        priority: number;
        source: string;
    }[];
    learner: "none" | "bound";
    noLearnerReason?: NoLearnerReason;
    mode: LearningMode;
    scopes?: TurnScopes;
    turnUserId?: string;
}

Properties

systemPrompts: {
    content: string;
    priority: number;
    source: string;
}[]

The personality section, when the traits render one: priority 2, source learning:personality.

Type declaration

  • content: string
  • priority: number
  • source: string
learner: "none" | "bound"

none: the authored traits render, nothing is learned from the turn, and the self-modification tools refuse.

noLearnerReason?: NoLearnerReason

Set when learner is none.

The turn's mode: the configured mode with the process switches applied.

scopes?: TurnScopes

The turn's scope ids, which the GMI puts on every tool call.

turnUserId?: string

On a turn with no learner: the turn's user id when it is explicit, outside the anonymous ids and not the session's learner's. A write of the turn records it, so forgetUser for that user finds the write.