pub struct ChatSisoRequest {
pub system_prompt: String,
pub user_prompt: String,
pub model_params: ChatModelParams,
}
Expand description
A SISO (single input, single output) request for the OpenAI Chat API.
Refer to the Orchestrator
for usage.
Fields§
§system_prompt: String
§user_prompt: String
§model_params: ChatModelParams
Implementations§
Source§impl ChatSisoRequest
impl ChatSisoRequest
pub fn new( system_prompt: String, user_prompt: String, model_params: ChatModelParams, ) -> Self
Trait Implementations§
Source§impl Clone for ChatSisoRequest
impl Clone for ChatSisoRequest
Source§fn clone(&self) -> ChatSisoRequest
fn clone(&self) -> ChatSisoRequest
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 OrchRequest for ChatSisoRequest
impl OrchRequest for ChatSisoRequest
Source§type Res = ChatSisoResponse
type Res = ChatSisoResponse
The type of response returned by the request.
Source§fn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Business logic of a request. Given the policies, keys, and request ID
(for debugging, send the request and return the response.
Auto Trait Implementations§
impl Freeze for ChatSisoRequest
impl RefUnwindSafe for ChatSisoRequest
impl Send for ChatSisoRequest
impl Sync for ChatSisoRequest
impl Unpin for ChatSisoRequest
impl UnwindSafe for ChatSisoRequest
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