pub struct AgentServerBuilder<'a> { /* private fields */ }Expand description
Builder for configuring and launching an AgentServer.
Implementations§
Source§impl<'a> AgentServerBuilder<'a>
impl<'a> AgentServerBuilder<'a>
pub fn new( port: u16, provider: Providers, system_message: &'a str, model: &'a str, ) -> Self
pub fn api_key(self, api_key: &'a str) -> Self
pub fn temperature(self, temperature: f64) -> Self
pub fn max_tokens(self, max_tokens: u64) -> Self
pub fn build(self) -> Result<AgentServer, Error>
pub fn build_with_schema<J: JsonSchema>(self) -> Result<AgentServer, Error>
pub fn build_with_tool<T: Tool + 'static>( self, tool: ToolWrapper<T>, ) -> Result<AgentServer, Error>
Auto Trait Implementations§
impl<'a> Freeze for AgentServerBuilder<'a>
impl<'a> RefUnwindSafe for AgentServerBuilder<'a>
impl<'a> Send for AgentServerBuilder<'a>
impl<'a> Sync for AgentServerBuilder<'a>
impl<'a> Unpin for AgentServerBuilder<'a>
impl<'a> UnsafeUnpin for AgentServerBuilder<'a>
impl<'a> UnwindSafe for AgentServerBuilder<'a>
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