Documentation
¶
Overview ¶
Package runtime manages the lifecycle of a Provider with optional hooks and a post-processing Pipeline. It is the top-level entry point for traced, observable LLM interactions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime manages the lifecycle of a Provider with hooks and an optional post-processing Pipeline.
For simple use cases, calling Provider.Generate directly is fine. Runtime adds value when you want:
- Telemetry hooks on every generation
- Consistent post-processing pipeline
func (*Runtime) Generate ¶
Generate sends a request to the provider and returns a stream of frames, optionally processed through the attached pipeline. Hooks are invoked at each stage.