pub struct AiChatManager {
pub projects: Vec<AiProject>,
pub models: Vec<AiModel>,
pub contexts: Vec<BaseContext>,
}Fields§
§projects: Vec<AiProject>§models: Vec<AiModel>§contexts: Vec<BaseContext>Implementations§
Source§impl AiChatManager
impl AiChatManager
pub fn init(&mut self, fs: &mut FileSystem)
pub fn handle_event(&mut self, cx: &mut Cx, event: &Event, fs: &mut FileSystem)
pub fn run_ai_chat( &self, cx: &mut Cx, chat_id: LiveId, history_slot: usize, item_id: usize, fs: &mut FileSystem, )
pub fn cancel_chat_generation( &mut self, cx: &mut Cx, ui: &WidgetRef, chat_id: LiveId, fs: &mut FileSystem, )
pub fn send_chat_to_backend( &mut self, cx: &mut Cx, chat_id: LiveId, history_slot: usize, fs: &mut FileSystem, )
pub fn redraw_ai_chat_by_id( &mut self, cx: &mut Cx, chat_id: LiveId, ui: &WidgetRef, fs: &mut FileSystem, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AiChatManager
impl RefUnwindSafe for AiChatManager
impl Send for AiChatManager
impl Sync for AiChatManager
impl Unpin for AiChatManager
impl UnwindSafe for AiChatManager
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