awrap_model_call(
self,
request: ModelRequest,
handler: Callable[[ModelRequest], Awaitable[ModelResponse]]| Name | Type | Description |
|---|---|---|
request* | ModelRequest | |
handler* | Callable[[ModelRequest], Awaitable[ModelResponse]] |
Inject local context into system prompt (async).
The model request being processed.
The async handler function to call with the modified request.