pub struct AgentSettings {
pub model: Text,
pub reasoning: String,
pub voice_model: Option<Voice>,
pub persona: PartialDemographic,
pub instructions: String,
pub daily_limit: f64,
pub spent_today: f64,
pub approve_outbound: bool,
pub enabled_at: DateTime<Utc>,
}Expand description
Each inbox has at most one agent, with its own model and “System prompt”
(instructions). It answers the inbox’s new messages and reaches people
from the inbox’s own accounts. daily_limit and spent_today are dollars per
UTC day; at the limit the agent pauses until midnight UTC. reasoning is one
of the text model’s catalog tiers, empty for its default; voice_model is the
realtime voice the agent talks with on calls, None for the catalog’s first. persona is
who the agent is, a partial demographic; its calls use the voice nearest it. With
approve_outbound, the agent’s replies to anyone but the owners wait: Fauna texts the
draft to the owners, and an owner’s SEND sends it while any other answer drops it.
Fields§
§model: Text§reasoning: String§voice_model: Option<Voice>§persona: PartialDemographic§instructions: String§daily_limit: f64§spent_today: f64§approve_outbound: bool§enabled_at: DateTime<Utc>Implementations§
Source§impl AgentSettings
impl AgentSettings
pub fn from_json(json: &Value) -> AgentSettings
Trait Implementations§
Source§impl Clone for AgentSettings
impl Clone for AgentSettings
Source§impl Debug for AgentSettings
impl Debug for AgentSettings
Source§impl PartialEq for AgentSettings
impl PartialEq for AgentSettings
Source§impl Serialize for AgentSettings
impl Serialize for AgentSettings
impl StructuralPartialEq for AgentSettings
Auto Trait Implementations§
impl Forget for AgentSettings
impl Freeze for AgentSettings
impl Move for AgentSettings
impl RefUnwindSafe for AgentSettings
impl Send for AgentSettings
impl Sync for AgentSettings
impl Unpin for AgentSettings
impl UnsafeUnpin for AgentSettings
impl UnwindSafe for AgentSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more