pub struct LaunchingSystem<C, S, H>{ /* private fields */ }Expand description
A running local system whose threads are created through
thread_builder, each with its own tools and
prompt unioned onto the system-wide configuration. New threads cannot be
created by attaching a handle: thread_handle only
reattaches to a thread that was launched or already exists in the store.
Implementations§
Source§impl<C, S, H> LaunchingSystem<C, S, H>
impl<C, S, H> LaunchingSystem<C, S, H>
Sourcepub fn thread_builder(&self) -> ThreadBuilder<'_, C, S, H>
pub fn thread_builder(&self) -> ThreadBuilder<'_, C, S, H>
Start configuring a new thread. Finish with
ThreadBuilder::launch.
Sourcepub async fn thread_handle(
&self,
thread_id: &ThreadId<str>,
) -> Result<Option<ThreadHandle>, C::Error>
pub async fn thread_handle( &self, thread_id: &ThreadId<str>, ) -> Result<Option<ThreadHandle>, C::Error>
Attach to an existing thread. Returns Ok(None) if the thread was not
launched in this process and does not exist in the conversation store.
New threads are created with thread_builder.
Sourcepub fn sender(&self) -> ChannelSender
pub fn sender(&self) -> ChannelSender
The system’s InputSender, for callback
servers and any other external message injectors.
Sourcepub async fn next_lifecycle_event(&mut self) -> Option<ThreadLifecycleEvent>
pub async fn next_lifecycle_event(&mut self) -> Option<ThreadLifecycleEvent>
Wait for the next thread-driver lifecycle transition. See
RunningSystem::next_lifecycle_event.
Auto Trait Implementations§
impl<C, S, H> !RefUnwindSafe for LaunchingSystem<C, S, H>
impl<C, S, H> !Send for LaunchingSystem<C, S, H>
impl<C, S, H> !Sync for LaunchingSystem<C, S, H>
impl<C, S, H> !UnwindSafe for LaunchingSystem<C, S, H>
impl<C, S, H> Freeze for LaunchingSystem<C, S, H>
impl<C, S, H> Unpin for LaunchingSystem<C, S, H>
impl<C, S, H> UnsafeUnpin for LaunchingSystem<C, S, H>
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