wrap_model_call(
self,
request: ModelRequest[ContextT],
handler: Callable[[ModelRequest[ContextT| Name | Type | Description |
|---|---|---|
request* | ModelRequest[ContextT] | Model request to execute. |
handler* | Callable[[ModelRequest[ContextT]], ModelResponse[ResponseT]] |
Filter unsupported input blocks, then invoke the model.
Callback that executes the model request.