pub struct SendMessageItem {
pub attachments: Option<Vec<Value>>,
pub display_prompt: Option<String>,
pub prompt: String,
pub required_tool: Option<String>,
/* private fields */
}Expand description
A single user message to append to the session as part of a session.sendMessages turn
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§attachments: Option<Vec<Value>>Optional attachments (files, directories, selections, blobs, GitHub references) to include with this message
display_prompt: Option<String>If provided, this is shown in the timeline instead of prompt
prompt: StringThe user message text
required_tool: Option<String>If set, the request will fail if the named tool is not available when this message is among the user messages at the start of the current exchange
Trait Implementations§
Source§impl Clone for SendMessageItem
impl Clone for SendMessageItem
Source§fn clone(&self) -> SendMessageItem
fn clone(&self) -> SendMessageItem
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 SendMessageItem
impl Debug for SendMessageItem
Source§impl Default for SendMessageItem
impl Default for SendMessageItem
Source§fn default() -> SendMessageItem
fn default() -> SendMessageItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendMessageItem
impl<'de> Deserialize<'de> for SendMessageItem
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 SendMessageItem
impl RefUnwindSafe for SendMessageItem
impl Send for SendMessageItem
impl Sync for SendMessageItem
impl Unpin for SendMessageItem
impl UnsafeUnpin for SendMessageItem
impl UnwindSafe for SendMessageItem
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