pub enum AgentRole {
Concierge,
AgentDesk,
Inbox,
Steward,
Growth,
Revenue,
Guardian,
Finance,
}Expand description
One of the site’s eight agents (spec 3.5 §7.19).
§Example
use adk_website::team::AgentRole;
use adk_harness::website::{SiteRef, WebsitePartition};
let site = SiteRef::new(uuid::Uuid::nil(), "bakery", "https://bakery.example");
assert_eq!(AgentRole::AgentDesk.principal(&site), "urn:adk:agent:bakery/agent-desk");
assert_eq!(AgentRole::Inbox.partition(), WebsitePartition::Public);
assert_eq!("guardian".parse::<AgentRole>().unwrap(), AgentRole::Guardian);Variants§
Concierge
Conversation with visitors in their language.
AgentDesk
The front door for agents over A2A, MCP and HTTP.
Inbox
The site’s email, social mentions and messages.
Steward
Onboarding, charter, planning, KPIs, the weekly review; leads the team.
Growth
SEO, AEO, agent search, freshness, languages, experiments, advertising, social.
Revenue
Leads, nurture, handoff, orders, donations and subscriptions.
Guardian
Releases, drift and rollback, site watch, alarms, incidents.
Finance
The wallet, costs, profit and loss, budget requests.
Implementations§
Source§impl AgentRole
impl AgentRole
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The agent’s name, as its principal and HarnessAgent name use it.
Sourcepub fn principal(self, site: &SiteRef) -> String
pub fn principal(self, site: &SiteRef) -> String
The agent’s principal on site: urn:adk:agent:{site}/{agent}.
Sourcepub fn partition(self) -> WebsitePartition
pub fn partition(self) -> WebsitePartition
The agent’s partition (spec 3.5 §7.10).
Sourcepub fn default_mode(self) -> DefaultMode
pub fn default_mode(self) -> DefaultMode
The agent’s default mode (spec 3.5 §7.19).
Sourcepub fn wakes(self) -> &'static [WakeSource]
pub fn wakes(self) -> &'static [WakeSource]
What wakes the agent (spec 3.5 §7.19).
Trait Implementations§
impl Copy for AgentRole
Source§impl<'de> Deserialize<'de> for AgentRole
impl<'de> Deserialize<'de> for AgentRole
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 AgentRole
Source§impl Ord for AgentRole
impl Ord for AgentRole
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for AgentRole
impl PartialOrd for AgentRole
impl StructuralPartialEq for AgentRole
Auto Trait Implementations§
impl Forget for AgentRole
impl Freeze for AgentRole
impl Move for AgentRole
impl RefUnwindSafe for AgentRole
impl Send for AgentRole
impl Sync for AgentRole
impl Unpin for AgentRole
impl UnsafeUnpin for AgentRole
impl UnwindSafe for AgentRole
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> 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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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