pub struct AgentSpecExposure {
pub user_invocable: bool,
pub agent_invocable: bool,
}Expand description
Defines how an agent can be invoked.
Fields§
§user_invocable: boolWhether this agent can be invoked by users (e.g., as an ACP mode).
agent_invocable: boolWhether this agent can be invoked by other agents (e.g., as a sub-agent).
Implementations§
Source§impl AgentSpecExposure
impl AgentSpecExposure
Sourcepub fn none() -> Self
pub fn none() -> Self
Create an exposure that is neither user nor agent invocable.
Used internally for synthesized default specs (e.g., no-mode sessions). Not intended for authored agent definitions — all authored agents must have at least one invocation surface.
Sourcepub fn agent_only() -> Self
pub fn agent_only() -> Self
Create an exposure that is only agent invocable.
Trait Implementations§
Source§impl Clone for AgentSpecExposure
impl Clone for AgentSpecExposure
Source§fn clone(&self) -> AgentSpecExposure
fn clone(&self) -> AgentSpecExposure
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentSpecExposure
impl Debug for AgentSpecExposure
Source§impl Hash for AgentSpecExposure
impl Hash for AgentSpecExposure
Source§impl PartialEq for AgentSpecExposure
impl PartialEq for AgentSpecExposure
impl Copy for AgentSpecExposure
impl Eq for AgentSpecExposure
impl StructuralPartialEq for AgentSpecExposure
Auto Trait Implementations§
impl Freeze for AgentSpecExposure
impl RefUnwindSafe for AgentSpecExposure
impl Send for AgentSpecExposure
impl Sync for AgentSpecExposure
impl Unpin for AgentSpecExposure
impl UnsafeUnpin for AgentSpecExposure
impl UnwindSafe for AgentSpecExposure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.