mod capability;
mod events;
mod request;
mod scheme_impl;
pub use scheme_impl::OpenAIResponsesState;
#[derive(Debug, Clone)]
pub struct OpenAIResponsesScheme {
pub store: bool,
pub include_encrypted_content: bool,
pub send_max_output_tokens: bool,
pub send_sampling_params: bool,
}
impl Default for OpenAIResponsesScheme {
fn default() -> Self {
Self {
store: false,
include_encrypted_content: true,
send_max_output_tokens: true,
send_sampling_params: true,
}
}
}
impl OpenAIResponsesScheme {
pub fn new() -> Self {
Self::default()
}
pub fn with_store(mut self, store: bool) -> Self {
self.store = store;
self
}
pub fn with_include_encrypted_content(mut self, include: bool) -> Self {
self.include_encrypted_content = include;
self
}
pub fn with_send_max_output_tokens(mut self, send: bool) -> Self {
self.send_max_output_tokens = send;
self
}
pub fn with_send_sampling_params(mut self, send: bool) -> Self {
self.send_sampling_params = send;
self
}
}