Skip to content

feat(spec): add message role #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat(spec): add message role #155

wants to merge 2 commits into from

Conversation

matoushavlena
Copy link
Contributor

@matoushavlena matoushavlena commented May 22, 2025

Refs #141

This PR adds a role field to the Message schema in the OpenAPI specification.

Motivation

It's important to clearly track message originators within conversation history. Introducing the role field explicitly captures whether a message originated from a user or a specific agent, supporting the following scenarios:

  • User ↔ single agent conversations
  • User ↔ multiple agents interactions
  • Agent ↔ agent communication

This addition maintains compatibility with standard conversational roles (user, assistant) widely adopted by chat-based LLM templates.

Next actions

  • Update SDKs
  • Update existing examples
  • Update docs

Signed-off-by: Matous Havlena <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants