forgeant
docs-test-0
Build LLM-powered agents in C++
Loading...
Searching...
No Matches
role.hpp
Go to the documentation of this file.
1
#ifndef FORGEANT_TYPES_ROLE_HPP
2
#define FORGEANT_TYPES_ROLE_HPP
3
4
#include <cstdint>
5
#include <
forgeant/json/json.hpp
>
6
7
namespace
forgeant
{
8
9
enum class
Role
: std::uint8_t {
system
,
user
,
assistant
,
tool
};
10
11
void
to_json
(
Json
& j,
Role
role);
12
void
from_json
(
const
Json
& j,
Role
& role);
13
14
}
// namespace forgeant
15
16
#endif
// FORGEANT_TYPES_ROLE_HPP
forgeant::Json
Definition
json.hpp:27
json.hpp
forgeant
Definition
agent.hpp:25
forgeant::to_json
void to_json(Json &j, const TextBlock &block)
forgeant::from_json
void from_json(const Json &j, TextBlock &block)
forgeant::Role
Role
Definition
role.hpp:9
forgeant::Role::tool
@ tool
forgeant::Role::system
@ system
forgeant::Role::user
@ user
forgeant::Role::assistant
@ assistant
include
forgeant
types
role.hpp
Generated by
1.9.8