pub struct BamlFunction {
pub name: String,
pub params: Vec<(String, BamlType)>,
pub return_type: String,
pub client: String,
pub prompt: String,
}Expand description
A parsed BAML function (→ tool definition + prompt).
Fields§
§name: String§params: Vec<(String, BamlType)>§return_type: String§client: String§prompt: StringTrait Implementations§
Source§impl Clone for BamlFunction
impl Clone for BamlFunction
Source§fn clone(&self) -> BamlFunction
fn clone(&self) -> BamlFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BamlFunction
impl RefUnwindSafe for BamlFunction
impl Send for BamlFunction
impl Sync for BamlFunction
impl Unpin for BamlFunction
impl UnsafeUnpin for BamlFunction
impl UnwindSafe for BamlFunction
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