pub struct AssistantDescriptor {Show 16 fields
pub workflow_type: String,
pub task_queue: String,
pub content_hash: String,
pub document_filename: &'static str,
pub document_bytes: usize,
pub input_schema: Value,
pub signals: Vec<AssistantSignal>,
pub queries: Vec<String>,
pub session: AssistantSessionContract,
pub residency: AssistantResidency,
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§
§workflow_type: StringThe workflow type an operator starts.
task_queue: StringThe private task queue a worker must serve for a session to run.
Published because an operator with no checkout has no other way to
learn it, and because getting it wrong is silent: a worker on the wrong
queue connects, registers, and never receives a dispatch. Derived from
the document’s own identity and never default — see
super::document::private_task_queue.
content_hash: StringThe embedded document’s content hash — its version identity.
document_filename: &'static strThe document’s filename inside the binary.
document_bytes: usizeLength of the embedded document in bytes, so a client can tell a
truncated fetch of /assistant/document from a complete one.
input_schema: ValueStart input schema, draft 2020-12, derived from the document.
signals: Vec<AssistantSignal>Every declared signal with its payload schema.
queries: Vec<String>Every declared query name, in document order.
session: AssistantSessionContractThe verified session contract.
residency: AssistantResidencyWhere the embedded version stands in the catalog right now.
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