Documentation
¶
Overview ¶
Package streaming is the Stage-1 namespace for response caching, formatting, stream optimisation, thinking protocol, and steering. See ../REFACTOR_PLAN.md.
Index ¶
- Constants
- func FixCodeFences(text string) string
- func FixMarkdown(text string) string
- func HashPrompt(prompt string) string
- func RemoveFluff(text string) string
- func ShouldCache(prompt string) bool
- type CacheEntry
- type CacheStats
- type FormatRule
- type FormattedResponse
- type ResponseCache
- type ResponseFormatter
- type SteeringMessage
- type SteeringQueue
- type StreamOptimizer
- type StreamStats
- type ThinkingPhase
- type ThinkingProtocol
- type ThinkingStep
Constants ¶
View Source
const DefaultMaxEntries = engine.DefaultMaxEntries
Variables ¶
This section is empty.
Functions ¶
func FixCodeFences ¶
func FixMarkdown ¶
func HashPrompt ¶
func RemoveFluff ¶
func ShouldCache ¶
Types ¶
type CacheEntry ¶
type CacheEntry = engine.CacheEntry
type CacheStats ¶
type CacheStats = engine.CacheStats
type FormatRule ¶
type FormatRule = engine.FormatRule
type FormattedResponse ¶
type FormattedResponse = engine.FormattedResponse
type ResponseCache ¶
type ResponseCache = engine.ResponseCache
func NewResponseCache ¶
func NewResponseCache(maxEntries int, maxAge time.Duration) *ResponseCache
type ResponseFormatter ¶
type ResponseFormatter = engine.ResponseFormatter
func NewResponseFormatter ¶
func NewResponseFormatter() *ResponseFormatter
type SteeringMessage ¶
type SteeringMessage = engine.SteeringMessage
type SteeringQueue ¶
type SteeringQueue = engine.SteeringQueue
func NewSteeringQueue ¶
func NewSteeringQueue() *SteeringQueue
type StreamOptimizer ¶
type StreamOptimizer = engine.StreamOptimizer
func NewStreamOptimizer ¶
func NewStreamOptimizer() *StreamOptimizer
type StreamStats ¶
type StreamStats = engine.StreamStats
type ThinkingPhase ¶
type ThinkingPhase = engine.ThinkingPhase
type ThinkingProtocol ¶
type ThinkingProtocol = engine.ThinkingProtocol
func NewThinkingProtocol ¶
func NewThinkingProtocol() *ThinkingProtocol
type ThinkingStep ¶
type ThinkingStep = engine.ThinkingStep
Click to show internal directories.
Click to hide internal directories.