pub struct SessionChatParams {
pub model_id: String,
pub parts: Vec<PartInput>,
pub provider_id: String,
pub message_id: Option<String>,
pub mode: Option<String>,
pub system: Option<String>,
pub tools: Option<HashMap<String, bool>>,
}Expand description
Parameters for the chat endpoint (POST /session/{id}/message).
Fields§
§model_id: StringThe model to use.
parts: Vec<PartInput>Input parts (text and/or file).
provider_id: StringThe provider to use.
message_id: Option<String>Optional message identifier for continuing a conversation.
mode: Option<String>Optional mode override.
system: Option<String>Optional system prompt override.
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