pub struct SessionChatRequest {
pub session_id: Option<String>,
pub model: Option<String>,
pub message: String,
pub tools: Option<Vec<ChatTool>>,
pub tool_results: Option<Vec<ToolResult>>,
pub stream: Option<bool>,
pub system_prompt: Option<String>,
pub context_config: Option<ContextConfig>,
pub provider_options: Option<HashMap<String, Value>>,
}Expand description
Request body for session-based chat.
Fields§
§session_id: Option<String>Session identifier. Omit to create a new session.
model: Option<String>Model to use for generation.
message: StringThe user message.
tools: Option<Vec<ChatTool>>Tools the model can call.
tool_results: Option<Vec<ToolResult>>Results from previous tool calls.
stream: Option<bool>Enable streaming.
system_prompt: Option<String>System prompt for the session.
context_config: Option<ContextConfig>Context management configuration.
provider_options: Option<HashMap<String, Value>>Provider-specific settings.
Trait Implementations§
Source§impl Clone for SessionChatRequest
impl Clone for SessionChatRequest
Source§fn clone(&self) -> SessionChatRequest
fn clone(&self) -> SessionChatRequest
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 SessionChatRequest
impl Debug for SessionChatRequest
Source§impl Default for SessionChatRequest
impl Default for SessionChatRequest
Source§fn default() -> SessionChatRequest
fn default() -> SessionChatRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionChatRequest
impl RefUnwindSafe for SessionChatRequest
impl Send for SessionChatRequest
impl Sync for SessionChatRequest
impl Unpin for SessionChatRequest
impl UnsafeUnpin for SessionChatRequest
impl UnwindSafe for SessionChatRequest
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