Package com.google.genkit.ai.telemetry
Interface ModelTelemetryHelper.StreamingModelExecutor
- Enclosing class:
ModelTelemetryHelper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for streaming model execution.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(ModelRequest request) Executes the model with the given request (streaming mode).
-
Method Details
-
execute
Executes the model with the given request (streaming mode).- Parameters:
request- the model request- Returns:
- the model response
- Throws:
GenkitException- if execution fails
-