pub struct Grammar<'a> {
pub syntax: &'static str,
pub definition: &'a str,
pub property: &'a str,
}Expand description
How to send a tool as an OpenAI grammar-constrained custom tool.
Fields§
§syntax: &'static strlark or regex.
definition: &'a strThe grammar, in syntax.
property: &'a strThe tool’s one required string argument, which holds the raw input.
Trait Implementations§
impl<'a> StructuralPartialEq for Grammar<'a>
Auto Trait Implementations§
impl<'a> Freeze for Grammar<'a>
impl<'a> RefUnwindSafe for Grammar<'a>
impl<'a> Send for Grammar<'a>
impl<'a> Sync for Grammar<'a>
impl<'a> Unpin for Grammar<'a>
impl<'a> UnsafeUnpin for Grammar<'a>
impl<'a> UnwindSafe for Grammar<'a>
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