pub struct AgentResult {
pub response: String,
pub messages: Vec<ChatMessage>,
pub tool_calls_count: usize,
pub iterations: usize,
pub task_plan: Vec<Task>,
pub feedback: ExecutionFeedback,
}Expand description
Agent loop result.
Fields§
§response: String§messages: Vec<ChatMessage>§tool_calls_count: usize§iterations: usize§task_plan: Vec<Task>Task plan generated by the planner (empty if no planning was used).
feedback: ExecutionFeedbackExecution feedback for the evolution engine (EVO-1).
Implementations§
Source§impl AgentResult
impl AgentResult
Sourcepub fn to_node_result(&self, task_id: impl Into<String>) -> NodeResult
pub fn to_node_result(&self, task_id: impl Into<String>) -> NodeResult
Convert to protocol-layer [NodeResult] for stdio_rpc/agent_chat/P2P.
task_id is echoed back; use a generated UUID when the caller did not provide one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResult
impl Sync for AgentResult
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResult
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> 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 more