pub struct ExecutionProfile { /* private fields */ }Expand description
Host-owned execution selection recorded with a claimed step.
The ceremony definition remains provider-neutral. The host supplies the requested selection and records the actual selection it used, including an explicit fallback, agent incarnation and any checkpoint handoff.
Implementations§
Source§impl ExecutionProfile
impl ExecutionProfile
pub fn from_json(value: Value) -> Result<Self, DomainError>
pub fn new( requested_model: impl Into<String>, requested_reasoning_effort: impl Into<String>, required_capabilities: Vec<String>, fallback_policy: ExecutionProfileFallbackPolicy, fallback_model: Option<String>, fallback_reasoning_effort: Option<String>, actual_model: impl Into<String>, actual_reasoning_effort: impl Into<String>, actual_capabilities: Vec<String>, host_agent_id: impl Into<String>, host_agent_incarnation: impl Into<String>, inherited_from: Option<ExecutionProfileInheritance>, checkpoint_id: Option<String>, handoff_from: Option<String>, ) -> Result<Self, DomainError>
Sourcepub fn validate_resolution(&self) -> Result<(), DomainError>
pub fn validate_resolution(&self) -> Result<(), DomainError>
Validate the host’s requested-versus-actual selection.
pub fn requested_model(&self) -> &str
pub fn requested_reasoning_effort(&self) -> &str
pub fn required_capabilities(&self) -> &[String]
pub const fn fallback_policy(&self) -> ExecutionProfileFallbackPolicy
pub fn actual_model(&self) -> &str
pub fn actual_reasoning_effort(&self) -> &str
pub fn actual_capabilities(&self) -> &[String]
pub fn host_agent_id(&self) -> &str
pub fn host_agent_incarnation(&self) -> &str
pub fn inherited_from(&self) -> Option<ExecutionProfileInheritance>
pub fn checkpoint_id(&self) -> Option<&str>
pub fn handoff_from(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ExecutionProfile
impl Clone for ExecutionProfile
Source§impl Debug for ExecutionProfile
impl Debug for ExecutionProfile
Source§impl<'de> Deserialize<'de> for ExecutionProfile
impl<'de> Deserialize<'de> for ExecutionProfile
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 ExecutionProfile
Source§impl PartialEq for ExecutionProfile
impl PartialEq for ExecutionProfile
Source§impl Serialize for ExecutionProfile
impl Serialize for ExecutionProfile
impl StructuralPartialEq for ExecutionProfile
Auto Trait Implementations§
impl Freeze for ExecutionProfile
impl RefUnwindSafe for ExecutionProfile
impl Send for ExecutionProfile
impl Sync for ExecutionProfile
impl Unpin for ExecutionProfile
impl UnsafeUnpin for ExecutionProfile
impl UnwindSafe for ExecutionProfile
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