pub struct AssistantDescriptor {
pub harnesses: Vec<AssistantHarnessDescriptor>,
pub default_harness: Option<String>,
pub tools: AssistantToolsDescriptor,
pub sessions_enabled: bool,
pub sessions_disabled_reason: Option<String>,
pub grants: Vec<AssistantGrantDescriptor>,
}Expand description
The served description of the built-in assistant.
Fields§
§harnesses: Vec<AssistantHarnessDescriptor>Every harness this server can open an assistant session on — the build’s catalogue, in catalogue order, each with its availability on this machine.
default_harness: Option<String>The harness THIS caller last opened a session on, or None before they
have opened one.
A memory, not a policy: it is written by createSession from what the
operator actually did, and it is caller-scoped, so one operator’s habit
never preselects another’s console. None is a complete answer — a
client preselects the first available entry rather than the server
inventing a choice nobody made.
tools: AssistantToolsDescriptorThe tool wiring every session on this server is handed.
sessions_enabled: boolWhether this server can open an assistant session at all.
sessions_disabled_reason: Option<String>Why it cannot, in words an operator can act on, or None when it can.
Reserved for a refusal the PRODUCT can name — today, a durable store this
server could not read at start-up. It is never “not configured”: a stock
server with no [assistant] section serves the assistant, and a harness
this machine cannot run is said per entry, with its install hint, rather
than as one sentence about the whole surface.
grants: Vec<AssistantGrantDescriptor>Every grant word this deployment defines, and whether the caller reading this description holds it.
Trait Implementations§
Source§impl Clone for AssistantDescriptor
impl Clone for AssistantDescriptor
Source§fn clone(&self) -> AssistantDescriptor
fn clone(&self) -> AssistantDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AssistantDescriptor
impl Debug for AssistantDescriptor
impl Eq for AssistantDescriptor
Source§impl PartialEq for AssistantDescriptor
impl PartialEq for AssistantDescriptor
Source§impl Serialize for AssistantDescriptor
impl Serialize for AssistantDescriptor
impl StructuralPartialEq for AssistantDescriptor
Auto Trait Implementations§
impl Freeze for AssistantDescriptor
impl RefUnwindSafe for AssistantDescriptor
impl Send for AssistantDescriptor
impl Sync for AssistantDescriptor
impl Unpin for AssistantDescriptor
impl UnsafeUnpin for AssistantDescriptor
impl UnwindSafe for AssistantDescriptor
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
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<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§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>
T in a tonic::Request