pub struct PromptOptions {
pub preamble: Option<String>,
pub additional_rules: Vec<String>,
pub examples: Vec<String>,
}Expand description
Options for customizing the generated prompt.
Ref: packages/react-lang/src/library.ts PromptOptions interface
Fields§
§preamble: Option<String>Custom preamble text (replaces the default)
additional_rules: Vec<String>Additional rules appended to the prompt
examples: Vec<String>Example OpenUI Lang code blocks
Trait Implementations§
Source§impl Default for PromptOptions
impl Default for PromptOptions
Source§fn default() -> PromptOptions
fn default() -> PromptOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PromptOptions
impl RefUnwindSafe for PromptOptions
impl Send for PromptOptions
impl Sync for PromptOptions
impl Unpin for PromptOptions
impl UnsafeUnpin for PromptOptions
impl UnwindSafe for PromptOptions
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