pub struct RunHandle {
pub root: PathBuf,
pub name: String,
pub agent: Option<AcpAgentConfig>,
pub mcp_config: Option<McpConfig>,
pub mcp_diagnostics: Vec<String>,
pub prompt: String,
pub cancel: CancelToken,
}Expand description
Handle for a client-side ACP run.
Fields§
§root: PathBuf§name: String§agent: Option<AcpAgentConfig>§mcp_config: Option<McpConfig>§mcp_diagnostics: Vec<String>§prompt: String§cancel: CancelTokenImplementations§
Source§impl RunHandle
impl RunHandle
Sourcepub fn new(
root: PathBuf,
name: String,
agent: Option<AcpAgentConfig>,
prompt: String,
) -> Self
pub fn new( root: PathBuf, name: String, agent: Option<AcpAgentConfig>, prompt: String, ) -> Self
Build an ACP run handle for acp:<name>.
Sourcepub fn with_mcp_config(self, mcp_config: McpConfig) -> Self
pub fn with_mcp_config(self, mcp_config: McpConfig) -> Self
Attach effective MCP config that should be offered to the ACP agent.
Sourcepub fn with_mcp_diagnostics(self, diagnostics: Vec<String>) -> Self
pub fn with_mcp_diagnostics(self, diagnostics: Vec<String>) -> Self
Attach redacted MCP config loader diagnostics.
Sourcepub fn spawn(self) -> Receiver<AgentEvent>
pub fn spawn(self) -> Receiver<AgentEvent>
Spawn an ACP run and return the normal agent event receiver.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunHandle
impl RefUnwindSafe for RunHandle
impl Send for RunHandle
impl Sync for RunHandle
impl Unpin for RunHandle
impl UnsafeUnpin for RunHandle
impl UnwindSafe for RunHandle
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.