pub struct PhiAgentConfig {
pub model: String,
pub enable_thinking: bool,
pub thinking_budget: Option<u64>,
pub thinking_effort: ReasoningEffort,
pub safety: SafetyConfig,
pub max_turns: Option<u32>,
}Expand description
phi-agent configuration (tool-agnostic).
This config covers model and safety settings only. Tools are registered
externally on AgentBuilder — phi-agent itself never bundles tools.
Fields§
§model: StringModel name passed to the LLM provider (e.g. "opus", "gpt-4o").
enable_thinking: boolEnable extended thinking / chain-of-thought.
thinking_budget: Option<u64>Token budget for thinking (provider-dependent). None means use the
provider default.
thinking_effort: ReasoningEffortReasoning intensity: Low / Medium / High / XHigh.
safety: SafetyConfigPer-turn safety limits (max tool calls, max consecutive failures, etc.).
max_turns: Option<u32>React-loop iteration cap for a single run (one user input).
None means use the builder default (200 in base_agent_builder).
Trait Implementations§
Source§impl Clone for PhiAgentConfig
impl Clone for PhiAgentConfig
Source§fn clone(&self) -> PhiAgentConfig
fn clone(&self) -> PhiAgentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PhiAgentConfig
impl RefUnwindSafe for PhiAgentConfig
impl Send for PhiAgentConfig
impl Sync for PhiAgentConfig
impl Unpin for PhiAgentConfig
impl UnsafeUnpin for PhiAgentConfig
impl UnwindSafe for PhiAgentConfig
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