pub enum EnvCmd {
SetModel(String),
SetClient(Client<OpenAIConfig>),
AddTool(Arc<dyn Tool>),
RemoveTool(String),
SetToolAvailability {
name: String,
available: bool,
},
SubscribeEnvState {
respond: Sender<Receiver<EnvStateEvent>>,
},
GetReActConfig {
respond: Sender<ReActConfig>,
},
GetModel {
respond: Sender<String>,
},
GetToolNames {
respond: Sender<Vec<String>>,
},
}Variants§
SetModel(String)
SetClient(Client<OpenAIConfig>)
AddTool(Arc<dyn Tool>)
RemoveTool(String)
SetToolAvailability
SubscribeEnvState
Fields
§
respond: Sender<Receiver<EnvStateEvent>>GetReActConfig
Fields
§
respond: Sender<ReActConfig>GetModel
GetToolNames
Auto Trait Implementations§
impl !RefUnwindSafe for EnvCmd
impl !UnwindSafe for EnvCmd
impl Freeze for EnvCmd
impl Send for EnvCmd
impl Sync for EnvCmd
impl Unpin for EnvCmd
impl UnsafeUnpin for EnvCmd
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