pub struct SessionChatParams {
pub parts: Vec<PartInput>,
pub model: Option<SessionChatModel>,
pub message_id: Option<String>,
pub agent: Option<String>,
pub no_reply: Option<bool>,
pub format: Option<OutputFormat>,
pub system: Option<String>,
pub variant: Option<String>,
pub tools: Option<HashMap<String, bool>>,
}Expand description
Parameters for the chat endpoint (POST /session/{id}/message).
Fields§
§parts: Vec<PartInput>Input parts (text, file, agent, subtask).
model: Option<SessionChatModel>Optional model selection (nested providerID + modelID).
message_id: Option<String>Optional message identifier for continuing a conversation.
agent: Option<String>Optional agent override.
no_reply: Option<bool>Whether to suppress the reply.
format: Option<OutputFormat>Optional output format.
system: Option<String>Optional system prompt override.
variant: Option<String>Optional variant.
tools: Option<HashMap<String, bool>>Optional map of tool names to their enabled state.
Trait Implementations§
Source§impl Clone for SessionChatParams
impl Clone for SessionChatParams
Source§fn clone(&self) -> SessionChatParams
fn clone(&self) -> SessionChatParams
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 SessionChatParams
impl Debug for SessionChatParams
Source§impl<'de> Deserialize<'de> for SessionChatParams
impl<'de> Deserialize<'de> for SessionChatParams
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
Source§impl PartialEq for SessionChatParams
impl PartialEq for SessionChatParams
Source§impl Serialize for SessionChatParams
impl Serialize for SessionChatParams
impl StructuralPartialEq for SessionChatParams
Auto Trait Implementations§
impl Freeze for SessionChatParams
impl RefUnwindSafe for SessionChatParams
impl Send for SessionChatParams
impl Sync for SessionChatParams
impl Unpin for SessionChatParams
impl UnwindSafe for SessionChatParams
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