pub struct ResearchClient { /* private fields */ }Expand description
Handle for research requests.
Implementations§
Source§impl ResearchClient
impl ResearchClient
Sourcepub async fn create(
&self,
args: &CreateResearchArgs,
) -> Result<CreateChatCompletionResponse>
pub async fn create( &self, args: &CreateResearchArgs, ) -> Result<CreateChatCompletionResponse>
Creates a non-streaming research response.
Sourcepub async fn stream(&self, args: &CreateResearchArgs) -> Result<ChatStream>
pub async fn stream(&self, args: &CreateResearchArgs) -> Result<ChatStream>
Creates a streaming research response.
Trait Implementations§
Source§impl Clone for ResearchClient
impl Clone for ResearchClient
Source§fn clone(&self) -> ResearchClient
fn clone(&self) -> ResearchClient
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 moreAuto Trait Implementations§
impl Freeze for ResearchClient
impl !RefUnwindSafe for ResearchClient
impl Send for ResearchClient
impl Sync for ResearchClient
impl Unpin for ResearchClient
impl UnsafeUnpin for ResearchClient
impl !UnwindSafe for ResearchClient
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