pub struct AgentNode {
pub id: String,
pub role: String,
pub agent: AgentFile,
}Expand description
A node in a multi-agent graph — an agent with a role label.
Fields§
§id: StringUnique node identifier within the graph.
role: StringHuman-readable role (e.g. “planner”, “executor”, “critic”).
agent: AgentFileThe agent’s full specification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentNode
impl<'de> Deserialize<'de> for AgentNode
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
Auto Trait Implementations§
impl Freeze for AgentNode
impl RefUnwindSafe for AgentNode
impl Send for AgentNode
impl Sync for AgentNode
impl Unpin for AgentNode
impl UnsafeUnpin for AgentNode
impl UnwindSafe for AgentNode
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