Skip to main content

Interface: SelfChangeTurn

Defined in: packages/agentos/src/cognition/learning/types.ts:264

The turn a recorded or guarded write belongs to, as the GMI read it from that turn's own preparation: a learner's turn keys the write to the learner; a turn with no learner keys it to the agent and the session, under the session form's namespace, with a second user's explicit id in turnUserId.

Properties​

conversationId?​

optional conversationId: string

Defined in: packages/agentos/src/cognition/learning/types.ts:271

The turn's conversation id: the session's row collects it, so forgetUser deletes the conversation's thread.


learner​

learner: "none" | "bound"

Defined in: packages/agentos/src/cognition/learning/types.ts:265


namespace​

namespace: string

Defined in: packages/agentos/src/cognition/learning/types.ts:267

The namespace of the turn's scopes (TurnScopes.namespace).


turnUserId?​

optional turnUserId: string

Defined in: packages/agentos/src/cognition/learning/types.ts:269

On a turn with no learner: the explicit id of the user whose turn it is, when it is not the session's learner.