pub struct AgUiConfig {
pub port: u16,
pub host: String,
pub max_connections: usize,
pub enable_processor: bool,
pub processor_config: Option<ProcessorConfig>,
}Expand description
Configuration for the AG-UI server.
Fields§
§port: u16Port to listen on.
host: StringHost address to bind to.
max_connections: usizeMaximum number of concurrent connections.
enable_processor: boolWhether to start the agent processor.
processor_config: Option<ProcessorConfig>Configuration for the agent processor (if enabled).
Implementations§
Source§impl AgUiConfig
impl AgUiConfig
Sourcepub fn with_processor(self, enable: bool) -> Self
pub fn with_processor(self, enable: bool) -> Self
Enables or disables the agent processor.
When enabled, the server will spawn an AgentProcessor that consumes messages from the message channel and processes them.
Sourcepub fn with_processor_config(self, config: ProcessorConfig) -> Self
pub fn with_processor_config(self, config: ProcessorConfig) -> Self
Sets the processor configuration.
Trait Implementations§
Source§impl Clone for AgUiConfig
impl Clone for AgUiConfig
Source§fn clone(&self) -> AgUiConfig
fn clone(&self) -> AgUiConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AgUiConfig
impl Debug for AgUiConfig
Auto Trait Implementations§
impl Freeze for AgUiConfig
impl RefUnwindSafe for AgUiConfig
impl Send for AgUiConfig
impl Sync for AgUiConfig
impl Unpin for AgUiConfig
impl UnsafeUnpin for AgUiConfig
impl UnwindSafe for AgUiConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.