withStateAwareSystemPrompt

Set a custom system prompt creator that also receives the current state. This is useful for state machines where the prompt needs to reflect the current state.