Skip to content

Commit 0f65d42

Browse files
committed
Use constant
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 574d9f8 commit 0f65d42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/session/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (s *Session) GetMessages(a *agent.Agent) []chat.Message {
213213
}
214214

215215
messages = append(messages, chat.Message{
216-
Role: "system",
216+
Role: chat.MessageRoleSystem,
217217
Content: "You are a multi-agent system, make sure to answer the user query in the most helpful way possible. You have access to these sub-agents:\n" + subAgentsStr + "\nIMPORTANT: You can ONLY transfer tasks to the agents listed above using their ID. The valid agent IDs are: " + strings.Join(validAgentIDs, ", ") + ". You MUST NOT attempt to transfer to any other agent IDs - doing so will cause system errors.\n\nIf you are the best to answer the question according to your description, you can answer it.\n\nIf another agent is better for answering the question according to its description, call `transfer_task` function to transfer the question to that agent using the agent's ID. When transferring, do not generate any text other than the function call.\n\n",
218218
})
219219
}

0 commit comments

Comments
 (0)