pub struct ResponseCreateParams {
pub model: Option<String>,
pub input: Option<ResponseInputPayload>,
pub temperature: Option<f32>,
pub tools: Vec<ChatToolDefinition>,
pub stream: Option<bool>,
}Expand description
表示 Responses 创建参数。
Fields§
§model: Option<String>模型 ID。
input: Option<ResponseInputPayload>输入载荷。
temperature: Option<f32>温度。
tools: Vec<ChatToolDefinition>工具定义。
stream: Option<bool>是否启用流式。
Trait Implementations§
Source§impl Clone for ResponseCreateParams
impl Clone for ResponseCreateParams
Source§fn clone(&self) -> ResponseCreateParams
fn clone(&self) -> ResponseCreateParams
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 ResponseCreateParams
impl Debug for ResponseCreateParams
Source§impl Default for ResponseCreateParams
impl Default for ResponseCreateParams
Source§fn default() -> ResponseCreateParams
fn default() -> ResponseCreateParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseCreateParams
impl<'de> Deserialize<'de> for ResponseCreateParams
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 ResponseCreateParams
impl RefUnwindSafe for ResponseCreateParams
impl Send for ResponseCreateParams
impl Sync for ResponseCreateParams
impl Unpin for ResponseCreateParams
impl UnsafeUnpin for ResponseCreateParams
impl UnwindSafe for ResponseCreateParams
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