Skip to main content

rig_harness/
agent_title.rs

1//! An agent's title, saved where a library program reads it.
2
3use bevy_ecs::prelude::*;
4use bevy_reflect::prelude::*;
5use rig_ecs::session_log::ReflectSaved;
6
7/// An agent's title, such as a subagent's task, which names it in views.
8/// Saved with the session as a string under rig-memory's `TITLE` (its type
9/// path, `rig::title`), so a library program reads it with
10/// `SavedAgent::title`.
11#[derive(Component, Reflect, Clone, Debug, Default, PartialEq, Eq)]
12#[reflect(Component, Saved, Default, Clone, Debug)]
13#[type_path = "rig"]
14#[type_name = "title"]
15pub struct AgentTitle(pub String);