# Your conversation history
history = [
{'role': 'user', 'content': 'What is pasta?'},
{'role': 'assistant', 'content': 'Pasta is an Italian dish...'}
]
# Fetch prompt with history
formatted_prompt = fp_client.prompts.get_formatted(
project_id=project_id,
template_name="chat-assistant",
environment="latest",
variables={"user_question": "How do I make it?"},
history=history # Freeplay handles formatting
)