pub struct PromptInput {
pub message_id: Option<String>,
pub model: Option<Value>,
pub agent: Option<String>,
pub no_reply: Option<bool>,
pub tools: Option<Value>,
pub format: Option<Value>,
pub system: Option<String>,
pub variant: Option<String>,
pub parts: Vec<PartInput>,
}Expand description
Input payload for session prompt/prompt_async endpoints.
Fields§
§message_id: Option<String>Optional message id for follow-up operations.
model: Option<Value>Optional model selection payload.
agent: Option<String>Optional agent selector.
no_reply: Option<bool>Whether to suppress immediate reply behavior.
tools: Option<Value>Optional tools configuration.
format: Option<Value>Optional output format configuration.
system: Option<String>Optional system instruction text.
variant: Option<String>Optional prompt variant key.
parts: Vec<PartInput>Prompt parts in official schema-compatible shape.
Trait Implementations§
Source§impl Clone for PromptInput
impl Clone for PromptInput
Source§fn clone(&self) -> PromptInput
fn clone(&self) -> PromptInput
Returns a duplicate of the value. Read more
1.0.0 · 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 PromptInput
impl Debug for PromptInput
Source§impl Default for PromptInput
impl Default for PromptInput
Source§fn default() -> PromptInput
fn default() -> PromptInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptInput
impl<'de> Deserialize<'de> for PromptInput
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 PromptInput
impl RefUnwindSafe for PromptInput
impl Send for PromptInput
impl Sync for PromptInput
impl Unpin for PromptInput
impl UnsafeUnpin for PromptInput
impl UnwindSafe for PromptInput
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