Handler function type for wrapping model calls. Takes a model request and returns the AI message response.
The model request containing model, messages, systemPrompt, tools, state, and runtime
The AI message response from the model
Handler function type for wrapping model calls. Takes a model request and returns the AI message response.