Skip to content

nimterm/transcript

This page is generated from the module’s exported API and ## documentation comments.

Retained, agent-agnostic transcript state.

TranscriptItemKind = enum
tikUser, tikAssistant, tikThinking, tikTool, tikError, tikStatus

View source

TranscriptItem = object
kind*: TranscriptItemKind
id*: string
runId*: string
title*: string
text*: string
pending*: bool
isError*: bool
approvalRequired*: bool
expanded*: bool
toolInput*: JsonNode
durationMs*: int
step*: int
model*: string
approvalChoices*: seq[ApprovalChoice]
cancelChoiceId*: string
revision*: int

View source

Transcript = object
items*: seq[TranscriptItem]
activeRunId*: string
activeStep*: int

View source

proc newTranscript(): Transcript {.raises: [], tags: [], forbids: [].}

Returns: Transcript.

View source

proc appendUser(transcript: var Transcript; text: string; id = "") {.raises: [],
tags: [], forbids: [].}
Name Type Default
transcript var Transcript
text string
id inferred ""

View source

proc apply(transcript: var Transcript; event: AgentUiEvent) {.raises: [],
tags: [], forbids: [].}
Name Type Default
transcript var Transcript
event AgentUiEvent

View source