pub struct AgentSnapshot {Show 13 fields
pub agent: AgentId,
pub schema: AgentSchemaVersion,
pub mode: AgentMode,
pub description: String,
pub document_source: AgentDocumentSource,
pub document_fingerprint: Sha256Digest,
pub composed_prompt: String,
pub prompt_fingerprint: Sha256Digest,
pub max_output_tokens: u64,
pub permissions: Vec<PermissionRule>,
pub delegation: Option<FrozenDelegationPolicy>,
pub fallback_chain: Vec<FrozenModelBinding>,
pub selected_suffix_start: u32,
}Fields§
§agent: AgentId§schema: AgentSchemaVersion§mode: AgentMode§description: String§document_source: AgentDocumentSource§document_fingerprint: Sha256Digest§composed_prompt: String§prompt_fingerprint: Sha256Digest§max_output_tokens: u64§permissions: Vec<PermissionRule>§delegation: Option<FrozenDelegationPolicy>§fallback_chain: Vec<FrozenModelBinding>§selected_suffix_start: u32Implementations§
Source§impl AgentSnapshot
impl AgentSnapshot
pub const MAX_PROMPT_BYTES: usize
pub fn validate(&self) -> Result<(), AgentSchemaError>
pub fn validate_selection( &self, selection: &RunSelection, ) -> Result<(), AgentSchemaError>
pub fn validate_selected_suffix( &self, selection: &RunSelection, selected_suffix: &[FrozenModelBinding], ) -> Result<(), AgentSchemaError>
Trait Implementations§
Source§impl Clone for AgentSnapshot
impl Clone for AgentSnapshot
Source§fn clone(&self) -> AgentSnapshot
fn clone(&self) -> AgentSnapshot
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 AgentSnapshot
impl Debug for AgentSnapshot
Source§impl<'de> Deserialize<'de> for AgentSnapshot
impl<'de> Deserialize<'de> for AgentSnapshot
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AgentSnapshot
impl JsonSchema for AgentSnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AgentSnapshot
impl PartialEq for AgentSnapshot
Source§fn eq(&self, other: &AgentSnapshot) -> bool
fn eq(&self, other: &AgentSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentSnapshot
impl Serialize for AgentSnapshot
impl StructuralPartialEq for AgentSnapshot
Auto Trait Implementations§
impl Freeze for AgentSnapshot
impl RefUnwindSafe for AgentSnapshot
impl Send for AgentSnapshot
impl Sync for AgentSnapshot
impl Unpin for AgentSnapshot
impl UnsafeUnpin for AgentSnapshot
impl UnwindSafe for AgentSnapshot
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