pub struct AgUiChannelConfig {
pub anonymous: bool,
pub token: Option<String>,
pub session_expiration_seconds: u32,
pub rate_limit_per_minute: Option<u32>,
pub tool_visibility: AgUiToolVisibility,
pub generic_tool_text: String,
pub auth: Option<AppEndpointAuthConfig>,
}Expand description
Typed AG-UI channel configuration.
Parsed from the channel_config JSON field on App.
Fields§
§anonymous: boolWhether anonymous access is allowed for this endpoint. Enabled by default for the initial AG-UI rollout.
token: Option<String>Optional shared bearer token for the public AG-UI endpoint. When set, requests must include the token in a supported header.
session_expiration_seconds: u32How long (in seconds) a thread can be resumed after its session was
created. Once this elapses, the same thread_id cannot reuse the
existing session and must start a new one. 0 disables expiration.
Defaults to 6 hours.
rate_limit_per_minute: Option<u32>Optional per-IP rate limit applied to this app’s AG-UI endpoint, in
requests per minute. None or Some(0) disables the per-app limit
(the global API limit still applies). Set a positive value to enforce
a stricter cap on anonymous traffic for this app.
tool_visibility: AgUiToolVisibilityPublic tool activity visibility for anonymous AG-UI streams.
generic_tool_text: StringGeneric public text shown when tool_visibility is generic.
auth: Option<AppEndpointAuthConfig>Optional inline auth config for this public endpoint. When omitted,
legacy anonymous + token behavior applies.
Trait Implementations§
Source§impl Clone for AgUiChannelConfig
impl Clone for AgUiChannelConfig
Source§fn clone(&self) -> AgUiChannelConfig
fn clone(&self) -> AgUiChannelConfig
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 AgUiChannelConfig
impl Debug for AgUiChannelConfig
Source§impl<'de> Deserialize<'de> for AgUiChannelConfig
impl<'de> Deserialize<'de> for AgUiChannelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AgUiChannelConfig
impl RefUnwindSafe for AgUiChannelConfig
impl Send for AgUiChannelConfig
impl Sync for AgUiChannelConfig
impl Unpin for AgUiChannelConfig
impl UnsafeUnpin for AgUiChannelConfig
impl UnwindSafe for AgUiChannelConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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