pub struct AgentCardView {
pub id: String,
pub agent: AgentRef,
pub description: String,
pub lines: Vec<CardLine>,
pub instructions: String,
pub instructions_truncated: bool,
pub abilities: Vec<String>,
pub compared: Option<String>,
pub allowed_without_asking: String,
pub draft: AgentDraft,
}Expand description
The definition on the decision that adds a suggested agent (spec 3.3 §5.7 “The decision that adds an agent”, S-I13): every field, from the inbox entry the kernel wrote, never from the model.
Fields§
§id: StringThe id the suggested agent would get: what Change it first replaces. Never shown.
agent: AgentRefThe agent it would add.
description: String“What it does”, in one line.
lines: Vec<CardLine>The definition, one line per field: area, how much it asks first, what it runs on, files, shell, web, packs, drivers, the daily limit.
instructions: StringThe instructions, quoted, cut short past the call limit.
instructions_truncated: boolThe instructions are cut short: they must be expanded before the agent can be added.
abilities: Vec<String>What it can do, in plain words.
compared: Option<String>“It can do no more than ADK-Rust, and has no shell or web.”
allowed_without_asking: StringWhat it would start with: “Nothing yet”.
draft: AgentDraftThe suggestion, for Change it first.
Implementations§
Source§impl AgentCardView
impl AgentCardView
Sourcepub fn of_request(
request: &ApprovalRequest,
suggester: &str,
area: &str,
) -> Option<Self>
pub fn of_request( request: &ApprovalRequest, suggester: &str, area: &str, ) -> Option<Self>
The card of the suggestion request (kernel:agent.create), whose arguments are the
definition; None when they are not one. suggester is the suggesting agent’s display
name, area its area’s name.
Trait Implementations§
Source§impl Clone for AgentCardView
impl Clone for AgentCardView
Source§impl Debug for AgentCardView
impl Debug for AgentCardView
Source§impl<'de> Deserialize<'de> for AgentCardView
impl<'de> Deserialize<'de> for AgentCardView
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 AgentCardView
Source§impl JsonSchema for AgentCardView
impl JsonSchema for AgentCardView
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 AgentCardView
impl PartialEq for AgentCardView
Source§impl Serialize for AgentCardView
impl Serialize for AgentCardView
impl StructuralPartialEq for AgentCardView
Auto Trait Implementations§
impl Forget for AgentCardView
impl Freeze for AgentCardViewwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<CardLine>: Freeze,
PhantomData<String>: Freeze,
impl Move for AgentCardView
impl RefUnwindSafe for AgentCardView
impl Send for AgentCardViewwhere
RawVecInner: Send,
impl Sync for AgentCardViewwhere
RawVecInner: Sync,
impl Unpin for AgentCardView
impl UnsafeUnpin for AgentCardViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<CardLine>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AgentCardViewwhere
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