pub struct OpenOpts {
pub tool_prompt: Option<String>,
pub skip_prelude: bool,
pub tool_schemas: Option<HashMap<String, Value>>,
pub event_sink: Option<Sender<Result<MSEvent, ModelSocketError>>>,
pub toolbox: Option<Box<dyn Toolbox>>,
}Fields§
§tool_prompt: Option<String>Optional system prompt to use when tools are enabled
skip_prelude: boolSkips system prompt prescribed by model authors
tool_schemas: Option<HashMap<String, Value>>Optional map of tool names to JSON Schema fragments used for tool arg typing.
event_sink: Option<Sender<Result<MSEvent, ModelSocketError>>>Optional sink for listening to all events related to this sequence
toolbox: Option<Box<dyn Toolbox>>Tools available for use on this sequence
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpenOpts
impl !UnwindSafe for OpenOpts
impl Freeze for OpenOpts
impl Send for OpenOpts
impl Sync for OpenOpts
impl Unpin for OpenOpts
impl UnsafeUnpin for OpenOpts
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