pub struct AgentPublicConfig {
pub enabled: bool,
pub system_prompt: Option<String>,
pub greeting: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub max_messages_per_session: Option<i64>,
pub max_concurrent_sessions: Option<i64>,
pub rate_limit_sessions_per_ip: Option<i64>,
pub rate_limit_messages_per_min: Option<i64>,
pub daily_message_limit: Option<i64>,
}Expand description
AgentPublicConfig model.
Fields§
§enabled: bool§system_prompt: Option<String>§greeting: Option<String>§allowed_tools: Option<Vec<String>>§max_messages_per_session: Option<i64>§max_concurrent_sessions: Option<i64>§rate_limit_sessions_per_ip: Option<i64>§rate_limit_messages_per_min: Option<i64>§daily_message_limit: Option<i64>Messages per UTC day per visitor identity (a hash of IP + anonymous visitor id). Enforced
ONLY for the featured landing agent — the one GET /admin/config/landing names as
public_agent_id; every other public agent keeps its per-session caps and ignores this.
Over the cap the server answers 429 with code: "DAILY_LIMIT". Unset means the platform
default of 15.
Trait Implementations§
Source§impl Clone for AgentPublicConfig
impl Clone for AgentPublicConfig
Source§fn clone(&self) -> AgentPublicConfig
fn clone(&self) -> AgentPublicConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentPublicConfig
impl Debug for AgentPublicConfig
Source§impl Default for AgentPublicConfig
impl Default for AgentPublicConfig
Source§fn default() -> AgentPublicConfig
fn default() -> AgentPublicConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentPublicConfig
impl<'de> Deserialize<'de> for AgentPublicConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentPublicConfig
impl PartialEq for AgentPublicConfig
Source§impl Serialize for AgentPublicConfig
impl Serialize for AgentPublicConfig
impl StructuralPartialEq for AgentPublicConfig
Auto Trait Implementations§
impl Freeze for AgentPublicConfig
impl RefUnwindSafe for AgentPublicConfig
impl Send for AgentPublicConfig
impl Sync for AgentPublicConfig
impl Unpin for AgentPublicConfig
impl UnsafeUnpin for AgentPublicConfig
impl UnwindSafe for AgentPublicConfig
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
Mutably borrows from an owned value. Read more