pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::orch::Message Struct Reference

One turn of a conversation. More...

#include <message.hpp>

Public Types

enum class  Role { User , Assistant }
 

Public Member Functions

std::string text () const
 The text blocks joined, without thinking or tool calls.
 
std::vector< const ContentBlock * > tool_uses () const
 The tool calls, in order.
 

Static Public Member Functions

static Message User (std::string text)
 
static Message Assistant (std::string text)
 

Public Attributes

Role role = Role::User
 
std::vector< ContentBlock > content
 

Detailed Description

One turn of a conversation.

Member Enumeration Documentation

◆ Role

enum class pulsatrix::orch::Message::Role
strong
Enumerator
User 
Assistant 

Member Function Documentation

◆ Assistant()

static Message pulsatrix::orch::Message::Assistant ( std::string  text)
static

◆ text()

std::string pulsatrix::orch::Message::text ( ) const

The text blocks joined, without thinking or tool calls.

◆ tool_uses()

std::vector< const ContentBlock * > pulsatrix::orch::Message::tool_uses ( ) const

The tool calls, in order.

◆ User()

static Message pulsatrix::orch::Message::User ( std::string  text)
static

Member Data Documentation

◆ content

std::vector<ContentBlock> pulsatrix::orch::Message::content

◆ role

Role pulsatrix::orch::Message::role = Role::User

The documentation for this struct was generated from the following file: