pub struct AgentPreview {Show 15 fields
pub id: String,
pub action: String,
pub heading: String,
pub abilities: Vec<String>,
pub risk: Risk,
pub risk_text: String,
pub money: bool,
pub widens: bool,
pub needs_presence: bool,
pub fields: Vec<String>,
pub was: Option<AgentDraft>,
pub now: Option<AgentDraft>,
pub ended: Option<EndedWork>,
pub digest: String,
pub code: String,
}Expand description
Here is what Finance can do (spec 3.3 §5.7): what a change lets an agent do, its risk, and the digest the change is confirmed with.
Fields§
§id: StringThe agent’s kernel target; for an agent not added yet, the id it would get. Never shown.
action: StringThe change: create, change, pause, resume or remove.
heading: String“Here is what Finance can do”.
abilities: Vec<String>What it can do, one plain sentence each.
risk: RiskThe risk of the result.
risk_text: String“Medium risk”.
money: boolIt can spend money.
widens: boolThe change lets the agent do more: it needs what adding it at that risk needs, and it first ends the agent’s waiting decisions.
needs_presence: boolConfirming needs presence: “Confirm it’s you” in the home, or a paired local terminal.
fields: Vec<String>The fields a change changes.
was: Option<AgentDraft>“Was”: the definition before a change.
now: Option<AgentDraft>“Now”: the definition after it.
ended: Option<EndedWork>What removing it ends.
digest: StringThe digest the change applies with. Never shown.
code: StringThe first six characters of the digest: the terminal’s --confirm code.
Implementations§
Source§impl AgentPreview
impl AgentPreview
Sourcepub fn of(preview: &AgentPreview, name: &str) -> Self
pub fn of(preview: &AgentPreview, name: &str) -> Self
The kernel’s preview of a change to the agent named name, in the surfaces’ words.
Trait Implementations§
Source§impl Clone for AgentPreview
impl Clone for AgentPreview
Source§impl Debug for AgentPreview
impl Debug for AgentPreview
Source§impl<'de> Deserialize<'de> for AgentPreview
impl<'de> Deserialize<'de> for AgentPreview
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>,
impl Eq for AgentPreview
Source§impl JsonSchema for AgentPreview
impl JsonSchema for AgentPreview
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for AgentPreview
impl PartialEq for AgentPreview
Source§impl Serialize for AgentPreview
impl Serialize for AgentPreview
impl StructuralPartialEq for AgentPreview
Auto Trait Implementations§
impl Forget for AgentPreview
impl Freeze for AgentPreview
impl Move for AgentPreview
impl RefUnwindSafe for AgentPreview
impl Send for AgentPreviewwhere
RawVecInner: Send,
impl Sync for AgentPreviewwhere
RawVecInner: Sync,
impl Unpin for AgentPreview
impl UnsafeUnpin for AgentPreviewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AgentPreviewwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more