forgeant docs-test-0
Build LLM-powered agents in C++
Loading...
Searching...
No Matches
forgeant::Conversation Class Reference

#include <conversation.hpp>

Public Member Functions

 Conversation ()=default
 
 Conversation (std::string system_prompt)
 
void set_system_prompt (std::string prompt)
 
const std::optional< std::string > & system_prompt () const
 
void add (Message message)
 
std::span< const Messagemessages () const
 
void clear ()
 
bool operator== (const Conversation &) const =default
 

Constructor & Destructor Documentation

◆ Conversation() [1/2]

forgeant::Conversation::Conversation ( )
default

◆ Conversation() [2/2]

forgeant::Conversation::Conversation ( std::string  system_prompt)
inlineexplicit

Member Function Documentation

◆ add()

void forgeant::Conversation::add ( Message  message)
inline

◆ clear()

void forgeant::Conversation::clear ( )
inline

◆ messages()

std::span< const Message > forgeant::Conversation::messages ( ) const
inline

◆ operator==()

bool forgeant::Conversation::operator== ( const Conversation ) const
default

◆ set_system_prompt()

void forgeant::Conversation::set_system_prompt ( std::string  prompt)
inline

◆ system_prompt()

const std::optional< std::string > & forgeant::Conversation::system_prompt ( ) const
inline

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