pub struct AgentAnswerContent {
pub agent: BuiltinAgentDefinition,
pub text: String,
}Expand description
Role-attributed task-chain answer stored as
SessionMessageKind::AgentAnswer content.
The durable encoding is one JSON object,
{"agent":"<BuiltinAgentDefinition::id>","text":"<answer>"}, so arbitrary
Markdown round-trips unchanged and new graph roles need only a new role
identity rather than a new message kind.
Fields§
§agent: BuiltinAgentDefinitionRole that produced the answer.
text: StringUser-visible answer text, including any clarification questions.
Implementations§
Trait Implementations§
Source§impl Clone for AgentAnswerContent
impl Clone for AgentAnswerContent
Source§impl Debug for AgentAnswerContent
impl Debug for AgentAnswerContent
impl Eq for AgentAnswerContent
Source§impl PartialEq for AgentAnswerContent
impl PartialEq for AgentAnswerContent
impl StructuralPartialEq for AgentAnswerContent
Auto Trait Implementations§
impl Freeze for AgentAnswerContent
impl RefUnwindSafe for AgentAnswerContent
impl Send for AgentAnswerContent
impl Sync for AgentAnswerContent
impl Unpin for AgentAnswerContent
impl UnsafeUnpin for AgentAnswerContent
impl UnwindSafe for AgentAnswerContent
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