Decorator used to dynamically generate system prompts for the model.
This is a convenience decorator that creates middleware using wrap_model_call
specifically for dynamic prompt generation. The decorated function should return
a string that will be set as the system prompt for the model request.
The decorated function should return:
str – The system prompt string to use for the model requestSystemMessage – A complete system message to use for the model requestThe function to be decorated.
Must accept: request: ModelRequest - Model request (contains state and
runtime)