pub struct RequestSettings {
pub thinking_budgets: Option<ThinkingBudgets>,
pub websocket_connect_timeout_ms: Result<Option<f64>, String>,
pub stream: Result<Option<Value>, String>,
pub transport: Option<String>,
}Fields§
§thinking_budgets: Option<ThinkingBudgets>§websocket_connect_timeout_ms: Result<Option<f64>, String>§stream: Result<Option<Value>, String>providerRequestOptions ({timeoutMs, maxRetries?, maxRetryDelayMs}; none: no stream defaults), or why the
HTTP idle timeout is invalid.
transport: Option<String>The transport setting when one is configured (sse, websocket, websocket-cached, auto).
Implementations§
Source§impl RequestSettings
impl RequestSettings
Sourcepub fn from_settings(settings: &Value) -> Self
pub fn from_settings(settings: &Value) -> Self
From merged settings JSON.
Sourcepub fn from_manager(settings: &SettingsManager) -> Self
pub fn from_manager(settings: &SettingsManager) -> Self
From a settings manager (the worker’s, read now).
Sourcepub fn stream_options(&self) -> Option<Value>
pub fn stream_options(&self) -> Option<Value>
The stream options as the session’s harness keeps them (an operation’s streamOptions): None when the
settings fill none or are invalid.
Trait Implementations§
Source§impl Clone for RequestSettings
impl Clone for RequestSettings
Source§impl Debug for RequestSettings
impl Debug for RequestSettings
Source§impl Default for RequestSettings
impl Default for RequestSettings
Source§impl PartialEq for RequestSettings
impl PartialEq for RequestSettings
impl StructuralPartialEq for RequestSettings
Auto Trait Implementations§
impl Forget for RequestSettings
impl Freeze for RequestSettings
impl Move for RequestSettings
impl RefUnwindSafe for RequestSettings
impl Send for RequestSettings
impl Sync for RequestSettings
impl Unpin for RequestSettings
impl UnsafeUnpin for RequestSettings
impl UnwindSafe for RequestSettings
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