pub struct AgentGraphBudget {
pub max_nodes: usize,
pub max_concurrency: usize,
pub max_provider_turns: usize,
pub max_tool_calls: u64,
pub max_duration_ms: u64,
}Expand description
Hard aggregate limits reserved before an agent graph may execute.
Fields§
§max_nodes: usizeMaximum number of nodes in the immutable graph.
max_concurrency: usizeMaximum number of provider-backed nodes allowed to run concurrently.
max_provider_turns: usizeAggregate provider-turn reservations across every node.
max_tool_calls: u64Aggregate tool-call reservations across every node.
max_duration_ms: u64Wall-clock ceiling for the complete graph.
Implementations§
Source§impl AgentGraphBudget
impl AgentGraphBudget
Sourcepub fn validate(&self) -> Result<(), AgentGraphError>
pub fn validate(&self) -> Result<(), AgentGraphError>
Rejects zero or internally inconsistent graph limits.
Trait Implementations§
Source§impl Clone for AgentGraphBudget
impl Clone for AgentGraphBudget
Source§fn clone(&self) -> AgentGraphBudget
fn clone(&self) -> AgentGraphBudget
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 moreSource§impl Debug for AgentGraphBudget
impl Debug for AgentGraphBudget
Source§impl<'de> Deserialize<'de> for AgentGraphBudget
impl<'de> Deserialize<'de> for AgentGraphBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentGraphBudget
Source§impl PartialEq for AgentGraphBudget
impl PartialEq for AgentGraphBudget
Source§impl Serialize for AgentGraphBudget
impl Serialize for AgentGraphBudget
impl StructuralPartialEq for AgentGraphBudget
Auto Trait Implementations§
impl Freeze for AgentGraphBudget
impl RefUnwindSafe for AgentGraphBudget
impl Send for AgentGraphBudget
impl Sync for AgentGraphBudget
impl Unpin for AgentGraphBudget
impl UnsafeUnpin for AgentGraphBudget
impl UnwindSafe for AgentGraphBudget
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