pub struct MessageCreate {
pub role: MessageRole,
pub content: MessageCreateContent,
pub name: Option<String>,
pub otid: Option<String>,
pub sender_id: Option<LettaId>,
pub batch_item_id: Option<LettaId>,
pub group_id: Option<LettaId>,
}Expand description
Request to create a message for Letta agents.
Fields§
§role: MessageRoleMessage role.
content: MessageCreateContentMessage content (can be string or complex content).
name: Option<String>Optional participant name.
otid: Option<String>Offline threading ID.
sender_id: Option<LettaId>Sender ID.
batch_item_id: Option<LettaId>Batch item ID.
group_id: Option<LettaId>Group ID for multi-agent conversations.
Implementations§
Source§impl MessageCreate
impl MessageCreate
Sourcepub fn builder() -> MessageCreateBuilder
pub fn builder() -> MessageCreateBuilder
Create an instance of MessageCreate using the builder syntax
Trait Implementations§
Source§impl Clone for MessageCreate
impl Clone for MessageCreate
Source§fn clone(&self) -> MessageCreate
fn clone(&self) -> MessageCreate
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 MessageCreate
impl Debug for MessageCreate
Source§impl Default for MessageCreate
impl Default for MessageCreate
Source§impl<'de> Deserialize<'de> for MessageCreate
impl<'de> Deserialize<'de> for MessageCreate
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 MessageCreate
impl RefUnwindSafe for MessageCreate
impl Send for MessageCreate
impl Sync for MessageCreate
impl Unpin for MessageCreate
impl UnsafeUnpin for MessageCreate
impl UnwindSafe for MessageCreate
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