pub struct AssistantConfig {
pub provider: AssistantProvider,
pub base_url: String,
pub api_key: Option<String>,
pub model: String,
pub max_steps: u32,
pub max_tokens: u32,
pub request_timeout: Duration,
pub run_timeout: Duration,
pub max_concurrent: usize,
pub retention_days: u32,
pub internal_urls: Vec<String>,
}Fields§
§provider: AssistantProvider§base_url: StringAPI base without a trailing slash; no user name or password in it.
api_key: Option<String>API key (secret – never log it). Optional for openai-compatible.
model: StringModel id (or Azure deployment name), e.g. claude-opus-5-5.
max_steps: u32Most model calls (tool-use rounds) of one run.
max_tokens: u32Output tokens per model call.
request_timeout: DurationTime limit of one HTTP call.
run_timeout: DurationTime limit of a whole run.
max_concurrent: usizeRuns at the same time on this server.
retention_days: u32Days an idle conversation (thread) is kept before it is deleted.
internal_urls: Vec<String>Base URLs the administrator marked as internal / self-hosted (without a
trailing slash). Groups that switched external_llm off allow the
assistant only when AssistantConfig::is_internal.
Implementations§
Source§impl AssistantConfig
impl AssistantConfig
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Whether the provider base URL is on the administrator’s internal list.
Sourcepub fn insecure_key_warning(&self) -> Option<String>
pub fn insecure_key_warning(&self) -> Option<String>
A warning when the key would travel over plain http to a host that
is not this computer.
Trait Implementations§
Source§impl Clone for AssistantConfig
impl Clone for AssistantConfig
Auto Trait Implementations§
impl Freeze for AssistantConfig
impl RefUnwindSafe for AssistantConfig
impl Send for AssistantConfig
impl Sync for AssistantConfig
impl Unpin for AssistantConfig
impl UnsafeUnpin for AssistantConfig
impl UnwindSafe for AssistantConfig
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.