pub struct AgentHandle {
pub id: AgentId,
pub workspace: String,
pub endpoint: Option<Endpoint>,
pub created: bool,
}Expand description
Handle to a provisioned agent, resolved when it is attachable.
Fields§
§id: AgentId§workspace: String§endpoint: Option<Endpoint>Endpoint the agent’s per-agent socket is reachable at. None until the
backend has resolved one — e.g. a k8s agent between spawn and Running.
created: boolWhether this call actually started a new agent (#190).
ensure_agent is idempotent, and under k8s the CalibanTask name is
derived from the spec — so re-submitting an identical prompt resolves to
the existing agent. That is the right behaviour, but the caller must be
able to tell, or the UI reports a launch that never happened.
false from [crate::k8s::fleet::handle_from], which only ever observes
a CalibanTask that already exists.
Trait Implementations§
Source§impl Clone for AgentHandle
impl Clone for AgentHandle
Source§fn clone(&self) -> AgentHandle
fn clone(&self) -> AgentHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentHandle
impl Debug for AgentHandle
Source§impl<'de> Deserialize<'de> for AgentHandle
impl<'de> Deserialize<'de> for AgentHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentHandle
impl PartialEq for AgentHandle
Source§fn eq(&self, other: &AgentHandle) -> bool
fn eq(&self, other: &AgentHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentHandle
impl Serialize for AgentHandle
impl StructuralPartialEq for AgentHandle
Auto Trait Implementations§
impl Freeze for AgentHandle
impl RefUnwindSafe for AgentHandle
impl Send for AgentHandle
impl Sync for AgentHandle
impl Unpin for AgentHandle
impl UnsafeUnpin for AgentHandle
impl UnwindSafe for AgentHandle
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more