Agents 1.4.0
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::Message Struct Reference

Message in a conversation. More...

#include <types.h>

Public Types

enum class  Role {
  SYSTEM ,
  USER ,
  ASSISTANT ,
  TOOL
}
 The role of the message. More...

Public Attributes

Role role
 The role of the message.
std::string content
 The content of the message.
std::optional< std::string > name = std::nullopt
 The name of the message.
std::optional< std::string > tool_call_id = std::nullopt
 The tool call id of the message.
std::vector< std::pair< std::string, JsonObject > > tool_calls = {}
 The tool calls that were made.

Detailed Description

Message in a conversation.

Note
This is a message in a conversation. It contains the role of the message, the content of the message, the name of the message, the tool call id, and the tool calls.

Member Enumeration Documentation

◆ Role

enum class agents::Message::Role
strong

The role of the message.

Enumerator
SYSTEM 

System role message.

USER 

User role message.

ASSISTANT 

Assistant role message.

TOOL 

Tool role message.