pub struct SessionConfigAdmin { /* private fields */ }Implementations§
Source§impl SessionConfigAdmin
impl SessionConfigAdmin
pub async fn update(&self, patch: SessionConfigPatch) -> Result<()>
pub async fn update_session_config( &self, provider: Option<ProviderHandle>, model: Option<ModelSpec>, prompt: Option<PromptLayer>, ) -> Result<()>
pub async fn set_prompt_template(&self, template: PromptTemplate) -> Result<()>
pub async fn clear_prompt_template(&self) -> Result<()>
pub async fn add_prompt_contribution( &self, contribution: PromptContribution, ) -> Result<()>
pub async fn replace_prompt_slot( &self, slot: PromptSlot, contributions: impl IntoIterator<Item = PromptContribution>, ) -> Result<()>
pub async fn clear_prompt_slot(&self, slot: PromptSlot) -> Result<()>
Trait Implementations§
Source§impl Clone for SessionConfigAdmin
impl Clone for SessionConfigAdmin
Source§fn clone(&self) -> SessionConfigAdmin
fn clone(&self) -> SessionConfigAdmin
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SessionConfigAdmin
impl !UnwindSafe for SessionConfigAdmin
impl Freeze for SessionConfigAdmin
impl Send for SessionConfigAdmin
impl Sync for SessionConfigAdmin
impl Unpin for SessionConfigAdmin
impl UnsafeUnpin for SessionConfigAdmin
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