pub struct AssistantCreationRequest { /* private fields */ }
Expand description
Struct representing a request for creating or modifying an assistant.
Implementations§
Source§impl AssistantCreationRequest
impl AssistantCreationRequest
Sourcepub fn new(model: String) -> Self
pub fn new(model: String) -> Self
Create a new instance of AssistantCreationRequest
.
§Arguments
model
- Model name to be used for the assistant.
§Returns
A new instance of AssistantCreationRequest
.
Sourcepub fn description(self, description: String) -> Self
pub fn description(self, description: String) -> Self
Set the description for the assistant request.
Sourcepub fn instructions(self, instructions: String) -> Self
pub fn instructions(self, instructions: String) -> Self
Set the instructions for the assistant request.
Sourcepub fn tool_resources(self, tool_resources: Value) -> Self
pub fn tool_resources(self, tool_resources: Value) -> Self
Set the tool resources for the assistant request.
Sourcepub fn temperature(self, temperature: f64) -> Self
pub fn temperature(self, temperature: f64) -> Self
Set the temperature for the assistant request.
Sourcepub fn response_format(self, response_format: Value) -> Self
pub fn response_format(self, response_format: Value) -> Self
Set the response format for the assistant request.
Trait Implementations§
Source§impl Default for AssistantCreationRequest
impl Default for AssistantCreationRequest
Source§fn default() -> AssistantCreationRequest
fn default() -> AssistantCreationRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssistantCreationRequest
impl RefUnwindSafe for AssistantCreationRequest
impl Send for AssistantCreationRequest
impl Sync for AssistantCreationRequest
impl Unpin for AssistantCreationRequest
impl UnwindSafe for AssistantCreationRequest
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