Skip to content

[Go] Genkit ignores dotprompt-defined roles #3711

@janishorsts

Description

@janishorsts

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.

Image

Runtime (please complete the following information):

  • OS: MacOS
  • Version 26

Go version

go version go1.25.2 darwin/arm64

Additional context

Relates to #3710

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggo

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions