localstream

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalAssistantItem

func CanonicalAssistantItem(text string) lipapi.Item

CanonicalAssistantItem returns the item-authority equivalent of CanonicalAssistantMessage. It is used for materialized-history assertions where the continuation store uses Items.

func CanonicalAssistantMessage

func CanonicalAssistantMessage(text string) lipapi.Message

CanonicalAssistantMessage returns the canonical assistant message whose semantic identity must equal the tagged reply identity. It is the same construction used by runtime local-turn reply tagging so that replay identity is stable across frontends.

func Events

func Events(text string) []lipapi.Event

Events returns the canonical event slice for a text response without allocating a stream. Useful for ValidateEventSequence testing.

func NewTextStream

func NewTextStream(text string) lipapi.EventStream

NewTextStream returns a finite canonical EventStream with exactly one assistant text response. The sequence is response_started, message_started, text_delta, response_finished. It emits no usage, no B-leg identity, no background goroutine, and respects context cancellation via lipapi.FixedEventStream. The stream is valid for both streaming and non-streaming collection via lipapi.Collect.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL