pub struct AgentDefSummary {
pub name: String,
pub description: String,
pub model: Option<String>,
pub source: Option<String>,
pub memory_scope: Option<String>,
pub tools_summary: String,
}Expand description
Read-only summary of a sub-agent definition (template) for the TUI settings
view (issue #6024), distinct from a runtime spawned instance (SubAgentMetrics).
Fields§
§name: StringAgent definition name.
description: StringHuman-readable description from the definition’s frontmatter.
model: Option<String>Effective model spec as a string ("inherit" or a named provider), if any.
source: Option<String>Definition source, e.g. "project/my-agent.md".
memory_scope: Option<String>Stringified memory scope ("user", "project", "local"), if any.
tools_summary: StringHuman-readable summary of the tool access policy (e.g. "allow: shell, Read").
Implementations§
Source§impl AgentDefSummary
impl AgentDefSummary
Sourcepub fn build_all(defs: &[SubAgentDef]) -> Arc<[Self]>
pub fn build_all(defs: &[SubAgentDef]) -> Arc<[Self]>
Build the summary list for the settings view’s Agents tab from the loaded
sub-agent definitions (.zeph/agents/*.md templates), not runtime instances.
§Examples
use zeph_subagent::SubAgentDef;
use zeph_core::metrics::AgentDefSummary;
let def = SubAgentDef::for_test("reviewer");
let summaries = AgentDefSummary::build_all(&[def]);
assert_eq!(summaries[0].name, "reviewer");Trait Implementations§
Source§impl Clone for AgentDefSummary
impl Clone for AgentDefSummary
Source§fn clone(&self) -> AgentDefSummary
fn clone(&self) -> AgentDefSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentDefSummary
impl Debug for AgentDefSummary
Source§impl Default for AgentDefSummary
impl Default for AgentDefSummary
Source§fn default() -> AgentDefSummary
fn default() -> AgentDefSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentDefSummary
impl RefUnwindSafe for AgentDefSummary
impl Send for AgentDefSummary
impl Sync for AgentDefSummary
impl Unpin for AgentDefSummary
impl UnsafeUnpin for AgentDefSummary
impl UnwindSafe for AgentDefSummary
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
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<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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request