pub struct AgentDetail {
pub id: String,
pub agent: AgentRef,
pub draft: AgentDraft,
pub version: u64,
pub state: AgentLife,
pub origin_text: String,
pub mode: ModeView,
pub cant_start: Option<String>,
pub changed_at: DateTime<Utc>,
pub changed_on: Option<String>,
pub granted: Vec<GrantedUse>,
}Expand description
One agent a person added (spec 3.3 §5.7): what Settings shows.
Fields§
§id: StringIts kernel target, for commands. Never shown.
agent: AgentRefThe agent as threads and decisions name it.
draft: AgentDraftIts definition.
version: u64The version a change is made against. Never shown.
state: AgentLifeWhere it is in its life.
origin_text: String“Added by you on 25 Oct”, or “Suggested by ADK-Rust, added by you on 25 Oct”.
mode: ModeViewHow much it asks first, with its words.
cant_start: Option<String>Why the kernel cannot build it: “No key for Anthropic”.
changed_at: DateTime<Utc>When it was last changed.
changed_on: Option<String>The surface it was last changed on — web, terminal, phone — when the kernel
knows it; a change refused as out of date names it.
granted: Vec<GrantedUse>What the home lets it do beyond its definition, “On this home it can also:”, from the uses the host granted every agent it runs; empty for an agent that does not run, and absent when empty (spec 3.3 §5.7, S-I12, S-I13).
Implementations§
Source§impl AgentDetail
impl AgentDetail
Sourcepub fn of(
record: &AgentRecord,
cant_start: Option<String>,
user: &str,
primary: &str,
offset: FixedOffset,
) -> Self
pub fn of( record: &AgentRecord, cant_start: Option<String>, user: &str, primary: &str, offset: FixedOffset, ) -> Self
The detail of record for user, with the kernel’s reason it cannot start, when it
cannot; primary names the suggesting agent (“ADK-Rust”).
Trait Implementations§
Source§impl Clone for AgentDetail
impl Clone for AgentDetail
Source§impl Debug for AgentDetail
impl Debug for AgentDetail
Source§impl<'de> Deserialize<'de> for AgentDetail
impl<'de> Deserialize<'de> for AgentDetail
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 AgentDetail
Source§impl JsonSchema for AgentDetail
impl JsonSchema for AgentDetail
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 AgentDetail
impl PartialEq for AgentDetail
Source§impl Serialize for AgentDetail
impl Serialize for AgentDetail
impl StructuralPartialEq for AgentDetail
Auto Trait Implementations§
impl Forget for AgentDetail
impl Freeze for AgentDetailwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<GrantedUse>: Freeze,
impl Move for AgentDetail
impl RefUnwindSafe for AgentDetail
impl Send for AgentDetail
impl Sync for AgentDetail
impl Unpin for AgentDetail
impl UnsafeUnpin for AgentDetailwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<GrantedUse>: UnsafeUnpin,
impl UnwindSafe for AgentDetail
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