pub struct Dialect {
pub wire: Option<Wire>,
pub stream_events: Vec<String>,
pub list_merge: ListMerge,
pub tool_type_policy: ToolTypePolicy,
pub stream_unknown_policy: StreamUnknownPolicy,
}Expand description
Dialect selection and stream/tool policies.
Fields§
§wire: Option<Wire>chat-completions | messages | responses | gemini | converse.
stream_events: Vec<String>Recognized SSE event names (built-in list when omitted).
list_merge: ListMergeMerge policy for stream_events (and oauth.scopes when set there).
tool_type_policy: ToolTypePolicyHow to treat namespaced / hosted tool types.
stream_unknown_policy: StreamUnknownPolicyHow to treat unrecognized stream events.
Trait Implementations§
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Forget for Dialect
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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