pub struct ActionResult {
pub extracted_content: Option<String>,
pub include_in_memory: bool,
pub error: Option<String>,
pub is_done: bool,
pub long_term_memory: Option<String>,
pub attachments: Vec<String>,
pub images: Vec<String>,
pub metadata: IndexMap<String, Value>,
}Fields§
§extracted_content: Option<String>§include_in_memory: bool§error: Option<String>§is_done: bool§long_term_memory: Option<String>§attachments: Vec<String>§images: Vec<String>§metadata: IndexMap<String, Value>Implementations§
Source§impl ActionResult
impl ActionResult
pub fn ok(content: impl Into<String>) -> Self
pub fn err(message: impl Into<String>) -> Self
pub fn done(content: impl Into<String>) -> Self
pub fn with_attachment(self, path: impl Into<String>) -> Self
pub fn with_image(self, b64: impl Into<String>) -> Self
pub fn is_error(&self) -> bool
Trait Implementations§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§fn clone(&self) -> ActionResult
fn clone(&self) -> ActionResult
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 ActionResult
impl Debug for ActionResult
Source§impl Default for ActionResult
impl Default for ActionResult
Source§fn default() -> ActionResult
fn default() -> ActionResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionResult
impl<'de> Deserialize<'de> for ActionResult
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 ActionResult
impl RefUnwindSafe for ActionResult
impl Send for ActionResult
impl Sync for ActionResult
impl Unpin for ActionResult
impl UnsafeUnpin for ActionResult
impl UnwindSafe for ActionResult
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