pub struct ToolInvocationReportV1 {Show 21 fields
pub receipt_id: ArtifactId,
pub kind: ArtifactKindV1,
pub run_id: Option<ArtifactId>,
pub attempt_id: Option<ArtifactId>,
pub tool_id: String,
pub input: Value,
pub input_digest: String,
pub output: Option<Value>,
pub output_digest: Option<String>,
pub succeeded: bool,
pub outcome: ToolInvocationOutcomeV1,
pub permit_grant_id: Option<ArtifactId>,
pub permit_use_receipt_id: Option<ArtifactId>,
pub approval_decision_id: Option<ArtifactId>,
pub approval_request_id: Option<ArtifactId>,
pub schema_validation_receipt_ids: Vec<ArtifactId>,
pub canonical_backpointers: Vec<CanonicalBackpointerV1>,
pub lifecycle: Vec<ToolLifecycleStateV1>,
pub reason_codes: Vec<String>,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Fields§
§receipt_id: ArtifactId§kind: ArtifactKindV1§run_id: Option<ArtifactId>§attempt_id: Option<ArtifactId>§tool_id: String§input: Value§input_digest: String§output: Option<Value>§output_digest: Option<String>§succeeded: bool§outcome: ToolInvocationOutcomeV1§permit_grant_id: Option<ArtifactId>§permit_use_receipt_id: Option<ArtifactId>§approval_decision_id: Option<ArtifactId>§approval_request_id: Option<ArtifactId>§schema_validation_receipt_ids: Vec<ArtifactId>§canonical_backpointers: Vec<CanonicalBackpointerV1>§lifecycle: Vec<ToolLifecycleStateV1>§reason_codes: Vec<String>§started_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>Implementations§
Source§impl ToolInvocationReportV1
impl ToolInvocationReportV1
pub fn started(tool_id: impl Into<String>, input: Value) -> Self
pub fn with_execution_context(self, context: &AidensRunContextV1) -> Self
pub fn with_permit_grant(self, permit_grant_id: ArtifactId) -> Self
pub fn with_permit_use(self, permit_use_receipt_id: ArtifactId) -> Self
pub fn with_approval_request(self, approval_request_id: ArtifactId) -> Self
pub fn with_approval_decision(self, approval_decision_id: ArtifactId) -> Self
pub fn with_schema_validation( self, schema_validation_receipt_id: ArtifactId, ) -> Self
pub fn with_canonical_tool_receipt(self, receipt_id: impl Into<String>) -> Self
pub fn complete_success(self, output: Value) -> Self
pub fn complete_failure(self, reason: impl Into<String>) -> Self
pub fn complete_failure_with_output( self, reason: impl Into<String>, output: Value, ) -> Self
Trait Implementations§
Source§impl Clone for ToolInvocationReportV1
impl Clone for ToolInvocationReportV1
Source§fn clone(&self) -> ToolInvocationReportV1
fn clone(&self) -> ToolInvocationReportV1
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 ToolInvocationReportV1
impl Debug for ToolInvocationReportV1
Source§impl<'de> Deserialize<'de> for ToolInvocationReportV1
impl<'de> Deserialize<'de> for ToolInvocationReportV1
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
Source§impl JsonSchema for ToolInvocationReportV1
impl JsonSchema for ToolInvocationReportV1
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ToolInvocationReportV1
impl PartialEq for ToolInvocationReportV1
Source§fn eq(&self, other: &ToolInvocationReportV1) -> bool
fn eq(&self, other: &ToolInvocationReportV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolInvocationReportV1
impl Serialize for ToolInvocationReportV1
impl StructuralPartialEq for ToolInvocationReportV1
Auto Trait Implementations§
impl Freeze for ToolInvocationReportV1
impl RefUnwindSafe for ToolInvocationReportV1
impl Send for ToolInvocationReportV1
impl Sync for ToolInvocationReportV1
impl Unpin for ToolInvocationReportV1
impl UnsafeUnpin for ToolInvocationReportV1
impl UnwindSafe for ToolInvocationReportV1
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