streamevent

package
v0.263.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitDebugEvent

func EmitDebugEvent(eventType string, fields map[string]any)

EmitDebugEvent writes a JSON-line describing an operational lifecycle event keyed by `type`. Used for things that are NOT conversation messages (e.g. compaction triggers, token-threshold crossings).

No-op unless debug is enabled (see package docs).

func EmitDebugMessage

func EmitDebugMessage(role, content, kind string, extra map[string]any)

EmitDebugMessage writes a JSON line shaped like a conversation message but flagged hidden and tagged with kind, so observers can see internally injected messages such as system reminders apart from real turns. It is a no-op unless debug is enabled.

func SetDebugEnabledForTest

func SetDebugEnabledForTest(enabled bool) func()

SetDebugEnabledForTest forces the debug gate to a specific value, bypassing the global-logger probe. Returns a restore function. Test-only.

func SetWriter

func SetWriter(w io.Writer) func()

SetWriter overrides the destination io.Writer for emitted events and returns a restore function. Used by tests. Production callers should not touch it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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