streamevent

package
v0.8.2 Latest Latest
Warning

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

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

Documentation

Overview

Package streamevent encodes GoAI events for SDK NDJSON streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Type string `json:"type"`
	Data any    `json:"data,omitempty"`
}

Line is one NDJSON event envelope.

func FromEvent

func FromEvent(event stream.Event) Line

FromEvent converts value and pointer error payloads to their wire representation. Malformed error payloads produce a descriptive error event.

Jump to

Keyboard shortcuts

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