Struct Loaded
pub struct Loaded {
pub loader: String,
pub tools: Vec<String>,
pub note: String,
pub note_is_server: bool,
}Expand description
One group of tools a run has loaded, as the loader that loaded it recorded it.
A loader is an own tool of the agent named load__group__<name>:
its call returns the whole list of what the run has loaded, with its own entry added, and the
loop makes that the run’s durable list (Conversation::loaded) in the same commit as the
result. The tools arrive on the next request, appended after every other tool of it (ADR 0044,
decision 1 and ADR 0066).
Fields§
§loader: StringThe loader’s tool name, as the call that loaded it named it: load__group__bash.
tools: Vec<String>The tools it made available, in the order the request offers them.
note: StringThe group’s note, in one line, at most MAX_LOADED_NOTE_BYTES: what its tools are for.
A compaction copies it into its marker, so it is text a reader of the conversation keeps.
note_is_server: boolThe note is an MCP server’s own words (a when server’s instructions), not the agent’s:
the compaction’s recap labels it so a reader does not take third-party text for the loop’s.
Trait Implementations§
§impl<'de> Deserialize<'de> for Loaded
impl<'de> Deserialize<'de> for Loaded
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Loaded, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Loaded, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Loaded
§impl Serialize for Loaded
impl Serialize for Loaded
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Loaded
Auto Trait Implementations§
impl Freeze for Loaded
impl RefUnwindSafe for Loaded
impl Send for Loaded
impl Sync for Loaded
impl Unpin for Loaded
impl UnsafeUnpin for Loaded
impl UnwindSafe for Loaded
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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].