Update the system prompt and filter tools based on backend capabilities.
wrap_model_call(
self,
request: ModelRequest[ContextT],
handler: Callable[[ModelRequest[ContextT]], ModelResponse[ResponseT]]
) -> ModelResponse[ResponseT]| Name | Type | Description |
|---|---|---|
request* | ModelRequest[ContextT] | The model request being processed. |
handler* | Callable[[ModelRequest[ContextT]], ModelResponse[ResponseT]] | The handler function to call with the modified request. |