pub struct AgentTeamRuntime { /* private fields */ }Implementations§
Source§impl AgentTeamRuntime
impl AgentTeamRuntime
pub fn new(audit_path: PathBuf) -> Self
pub async fn set_audit_path(&self, path: PathBuf)
pub async fn list_templates(&self) -> Vec<AgentTemplate>
pub async fn list_instances( &self, mission_id: Option<&str>, parent_instance_id: Option<&str>, status: Option<AgentInstanceStatus>, ) -> Vec<AgentInstance>
pub async fn list_mission_summaries(&self) -> Vec<AgentMissionSummary>
pub async fn instance_for_session( &self, session_id: &str, ) -> Option<AgentInstance>
pub async fn list_spawn_approvals(&self) -> Vec<PendingSpawnApproval>
pub async fn ensure_loaded_for_workspace( &self, workspace_root: &str, ) -> Result<()>
pub async fn spawn(&self, state: &AppState, req: SpawnRequest) -> SpawnResult
pub async fn approve_spawn_approval( &self, state: &AppState, approval_id: &str, reason: Option<&str>, ) -> Option<SpawnResult>
pub async fn deny_spawn_approval( &self, approval_id: &str, reason: Option<&str>, ) -> Option<PendingSpawnApproval>
pub async fn cancel_instance( &self, state: &AppState, instance_id: &str, reason: &str, ) -> Option<AgentInstance>
pub async fn cancel_mission( &self, state: &AppState, mission_id: &str, reason: &str, ) -> usize
pub async fn handle_engine_event(&self, state: &AppState, event: &EngineEvent)
pub async fn set_for_test( &self, workspace_root: Option<String>, policy: Option<SpawnPolicy>, templates: Vec<AgentTemplate>, )
Trait Implementations§
Source§impl Clone for AgentTeamRuntime
impl Clone for AgentTeamRuntime
Source§fn clone(&self) -> AgentTeamRuntime
fn clone(&self) -> AgentTeamRuntime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AgentTeamRuntime
impl Default for AgentTeamRuntime
Source§fn default() -> AgentTeamRuntime
fn default() -> AgentTeamRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentTeamRuntime
impl !RefUnwindSafe for AgentTeamRuntime
impl Send for AgentTeamRuntime
impl Sync for AgentTeamRuntime
impl Unpin for AgentTeamRuntime
impl UnsafeUnpin for AgentTeamRuntime
impl !UnwindSafe for AgentTeamRuntime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().