pub struct PartBuilder(/* private fields */);Expand description
Builder for Part.
Implementations§
Source§impl PartBuilder
impl PartBuilder
pub fn thought(self, value: impl Into<bool>) -> Self
pub fn thought_signature(self, value: impl Into<String>) -> Self
pub fn part_metadata(self, value: impl Into<Rest>) -> Self
pub fn media_resolution(self, value: impl Into<MediaResolution>) -> Self
pub fn media_processing(self, value: impl Into<MediaProcessing>) -> Self
pub fn audio_transcription(self, value: impl Into<AudioTranscription>) -> Self
pub fn speech_metadata(self, value: impl Into<SpeechMetadata>) -> Self
pub fn text(self, value: impl Into<String>) -> Self
pub fn inline_data(self, value: impl Into<Blob>) -> Self
pub fn function_call(self, value: impl Into<FunctionCall>) -> Self
pub fn function_response(self, value: impl Into<FunctionResponse>) -> Self
pub fn file_data(self, value: impl Into<FileData>) -> Self
pub fn executable_code(self, value: impl Into<ExecutableCode>) -> Self
pub fn code_execution_result( self, value: impl Into<CodeExecutionResult>, ) -> Self
pub fn tool_call(self, value: impl Into<ToolCall>) -> Self
pub fn tool_response(self, value: impl Into<ToolResponse>) -> Self
pub fn video_metadata(self, value: impl Into<VideoMetadata>) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for PartBuilder
impl RefUnwindSafe for PartBuilder
impl Send for PartBuilder
impl Sync for PartBuilder
impl Unpin for PartBuilder
impl UnsafeUnpin for PartBuilder
impl UnwindSafe for PartBuilder
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