Agents 0.0.2
Edge AI Agents SDK
Loading...
Searching...
No Matches
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.
 
String content
 The content of the message.
 
std::optional< Stringname
 The name of the message.
 
std::optional< Stringtool_call_id
 The tool call id of the message.
 
std::vector< std::pair< 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.