Describe the bug
When the Genkit renders the dotprompt prompt, it always uses the "user" role and ignores the dotprompt-defined roles.
To Reproduce
Use the PromptWithMultiMessage from go/samples/prompts to reproduce.
Expected behavior
The dotprompt-defined roles are retained.
Screenshots
The following screenshot of debugging the go/samples/prompts sample shows that the system prompt You are a great pirate and an AI assistant. has been added as a user message after rendering.
Runtime (please complete the following information):
Go version
go version go1.25.2 darwin/arm64
Additional context
Relates to #3710
Describe the bug
When the Genkit renders the dotprompt prompt, it always uses the "user" role and ignores the dotprompt-defined roles.
To Reproduce
Use the PromptWithMultiMessage from
go/samples/promptsto reproduce.Expected behavior
The dotprompt-defined roles are retained.
Screenshots
The following screenshot of debugging the
go/samples/promptssample shows that the system promptYou are a great pirate and an AI assistant.has been added as a user message after rendering.Runtime (please complete the following information):
Go version
Additional context
Relates to #3710