wrapper
wrapper
¶
Instrumented wrappers for inference engines — timing and telemetry publishing.
Classes¶
Functions:¶
instrumented_generate
¶
instrumented_generate(
engine: InferenceEngine,
messages: Sequence[Message],
*,
model: str,
bus: EventBus,
temperature: float = 0.7,
max_tokens: int = 1024,
**kwargs: Any,
) -> Dict[str, Any]
Call engine.generate() and publish telemetry events on bus.
Returns the raw result dict from the engine.