Skip to content

Instruction

6 types. Import any of them from opencode.types.

InstructionEntryInfo

key instance-attribute

value instance-attribute

value: Any

JSON value attached to the session's instructions

InstructionEntryKey module-attribute

InstructionEntryKey: TypeAlias = str

Instruction entry key (lowercase alphanumerics plus . _ -)

InstructionEntrySnapshot module-attribute

InstructionEntrySnapshot: TypeAlias = list[
    InstructionEntrySnapshotItem
]

InstructionEntrySnapshotItem

key instance-attribute

value instance-attribute

value: Any

JSON value attached to the session's instructions

removed instance-attribute

removed: bool

InstructionHash module-attribute

InstructionHash: TypeAlias = str

InstructionKey module-attribute

InstructionKey: TypeAlias = str