pub struct AgentProfile {Show 27 fields
pub prompt: Option<String>,
pub style: Option<String>,
pub temperature: Option<f32>,
pub model_provider: Option<String>,
pub model_name: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub denied_tools: Option<Vec<String>>,
pub memory_k: usize,
pub top_p: f32,
pub max_context_tokens: Option<usize>,
pub enable_graph: bool,
pub graph_memory: bool,
pub graph_depth: usize,
pub graph_weight: f32,
pub auto_graph: bool,
pub graph_threshold: f32,
pub graph_steering: bool,
pub fast_reasoning: bool,
pub fast_model_provider: Option<String>,
pub fast_model_name: Option<String>,
pub fast_model_temperature: f32,
pub fast_model_tasks: Vec<String>,
pub escalation_threshold: f32,
pub show_reasoning: bool,
pub enable_audio_transcription: bool,
pub audio_response_mode: String,
pub audio_scenario: Option<String>,
}Expand description
Configuration for a specific agent profile
Fields§
§prompt: Option<String>System prompt for this agent
style: Option<String>Conversational style or personality
temperature: Option<f32>Temperature override for this agent (0.0 to 2.0)
model_provider: Option<String>Model provider override (e.g., “openai”, “anthropic”, “lmstudio”)
model_name: Option<String>Model name override (e.g., “gpt-4”, “claude-3-opus”)
allowed_tools: Option<Vec<String>>List of tools this agent is allowed to use
denied_tools: Option<Vec<String>>List of tools this agent is forbidden from using
memory_k: usizeMemory parameters: number of messages to recall (k for top-k)
top_p: f32Top-p sampling parameter for memory recall
max_context_tokens: Option<usize>Maximum context window size for this agent
enable_graph: boolEnable knowledge graph features for this agent
graph_memory: boolUse graph-based memory recall (combines with embeddings)
graph_depth: usizeMaximum graph traversal depth for context building
graph_weight: f32Weight for graph-based relevance vs semantic similarity (0.0 to 1.0)
auto_graph: boolAutomatically build graph from conversations
graph_threshold: f32Graph-based tool recommendation threshold (0.0 to 1.0)
graph_steering: boolUse graph for decision steering
fast_reasoning: boolEnable fast reasoning with a smaller model
fast_model_provider: Option<String>Model provider for fast reasoning (e.g., “mlx”, “ollama”, “lmstudio”)
fast_model_name: Option<String>Model name for fast reasoning (e.g., “lmstudio-community/Llama-3.2-3B-Instruct”)
fast_model_temperature: f32Temperature for fast model (typically lower for consistency)
fast_model_tasks: Vec<String>Tasks to delegate to fast model
escalation_threshold: f32Confidence threshold to escalate to main model
show_reasoning: boolDisplay reasoning summary to user (requires fast model for summarization)
enable_audio_transcription: boolEnable audio transcription for this agent
audio_response_mode: StringAudio response mode: “immediate” or “batch”
audio_scenario: Option<String>Preferred audio transcription scenario for testing
Implementations§
Source§impl AgentProfile
impl AgentProfile
Sourcepub fn is_tool_allowed(&self, tool_name: &str) -> bool
pub fn is_tool_allowed(&self, tool_name: &str) -> bool
Check if a tool is allowed for this agent
Sourcepub fn effective_temperature(&self, default: f32) -> f32
pub fn effective_temperature(&self, default: f32) -> f32
Get the effective temperature (override or default)
Sourcepub fn effective_provider<'a>(&'a self, default: &'a str) -> &'a str
pub fn effective_provider<'a>(&'a self, default: &'a str) -> &'a str
Get the effective model provider (override or default)
Trait Implementations§
Source§impl Clone for AgentProfile
impl Clone for AgentProfile
Source§fn clone(&self) -> AgentProfile
fn clone(&self) -> AgentProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentProfile
impl Debug for AgentProfile
Source§impl Default for AgentProfile
impl Default for AgentProfile
Source§fn default() -> AgentProfile
fn default() -> AgentProfile
Source§impl<'de> Deserialize<'de> for AgentProfile
impl<'de> Deserialize<'de> for AgentProfile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for AgentProfile
impl Serialize for AgentProfile
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for AgentProfile
impl RefUnwindSafe for AgentProfile
impl Send for AgentProfile
impl Sync for AgentProfile
impl Unpin for AgentProfile
impl UnwindSafe for AgentProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().