Struct SessionTools
pub struct SessionTools { /* private fields */ }Expand description
The five session tools, for the subagents of one agent.
Implementations§
§impl SessionTools
impl SessionTools
pub fn new(agents: impl IntoIterator<Item = SessionAgent>) -> SessionTools
pub fn new(agents: impl IntoIterator<Item = SessionAgent>) -> SessionTools
The tools for agents, whose names must be distinct. They are sorted by name, so the specs
do not depend on the order the folder listed them in.
pub fn with_limits(self, limits: SessionLimits) -> SessionTools
pub fn with_limits(self, limits: SessionLimits) -> SessionTools
These tools under limits instead of the defaults (16 open, 4 working, 20 rounds). The
specs do not mention the limits, so they are the same bytes under any.
pub fn tools(&self) -> Vec<Arc<dyn Tool>>
pub fn tools(&self) -> Vec<Arc<dyn Tool>>
The five tools, in SESSION_TOOLS order.
pub fn session_agents(&self) -> Vec<String>
pub fn session_agents(&self) -> Vec<String>
The registration names of the subagents a session can be started on:
what LlmAgentBuilder::session_agents takes.
pub fn bounds(&self) -> Vec<(String, SessionBounds)>
pub fn bounds(&self) -> Vec<(String, SessionBounds)>
The bounds of each subagent, by the name the model writes in agent (ADR 0054 decision
2), in the roster’s order: what [SessionBounds::admit] holds a start’s config to. The
assembly computes them once, at startup, from the subagent’s folder and the deployment, and
hands them here; a reader of the card lists them beside each helper (decision 8).
Trait Implementations§
§impl Clone for SessionTools
impl Clone for SessionTools
§fn clone(&self) -> SessionTools
fn clone(&self) -> SessionTools
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SessionTools
impl RefUnwindSafe for SessionTools
impl Send for SessionTools
impl Sync for SessionTools
impl Unpin for SessionTools
impl UnsafeUnpin for SessionTools
impl UnwindSafe for SessionTools
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].