Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssistantText ¶
func AssistantText(am protocol.AssistantMessage) string
AssistantText returns the text content from an assistant message.
func LastAssistantText ¶
LastAssistantText returns the text from the last assistant message.
Types ¶
type MessageSummary ¶
MessageSummary is a simplified transcript entry.
func ToSummaries ¶
func ToSummaries(messages []protocol.Message) []MessageSummary
ToSummaries converts protocol messages to simplified summaries.
type UsageSummary ¶
UsageSummary reports token usage.
func LastUsage ¶
func LastUsage(messages []protocol.Message) *UsageSummary
LastUsage returns usage from the last assistant message, if any.
Click to show internal directories.
Click to hide internal directories.