Struct SessionAgent
pub struct SessionAgent {
pub name: String,
pub agent: String,
pub description: String,
pub within: Option<Duration>,
pub remote: bool,
pub bounds: SessionBounds,
}Expand description
One subagent a session may be started on.
Fields§
§name: StringThe subagent’s name, as the model writes it in agent.
agent: StringThe name it is registered under on the runtime (coder/reviewer).
description: StringWhat the subagent is for: shown to the model in the description of subagent_start.
within: Option<Duration>The time limit of each of its rounds (None: none).
remote: boolWhether it runs on another system (an A2A agent). A session on it is started like any
other: its rounds are runs of the agent registered as agent, which talks
to the remote. What differs is the answer to a message sent while a round works: such an
agent says in its round state (queues_messages) whether the remote takes the message at
once (steered) or only after its current task (queued).
bounds: SessionBoundsThe most a session on it may ask of each option (ADR 0054 decision 2): what the
subagent’s folder declares, narrowed by what the deployment allows, computed once by the
assembly at startup. [SessionBounds::admit] holds a subagent_start’s config to them;
a request above one is refused by name, never clamped.
Trait Implementations§
§impl Clone for SessionAgent
impl Clone for SessionAgent
§fn clone(&self) -> SessionAgent
fn clone(&self) -> SessionAgent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for SessionAgent
impl Debug for SessionAgent
impl Eq for SessionAgent
§impl PartialEq for SessionAgent
impl PartialEq for SessionAgent
impl StructuralPartialEq for SessionAgent
Auto Trait Implementations§
impl Freeze for SessionAgent
impl RefUnwindSafe for SessionAgent
impl Send for SessionAgent
impl Sync for SessionAgent
impl Unpin for SessionAgent
impl UnsafeUnpin for SessionAgent
impl UnwindSafe for SessionAgent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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].