pub struct AgentPrompt {
pub name: &'static str,
pub description: &'static str,
pub arguments: Vec<(&'static str, &'static str, bool)>,
}Expand description
A prompt an agent starts a task with: its name, what it is for and its arguments, by name, with what each is and whether it is required.
Fields§
§name: &'static str§description: &'static str§arguments: Vec<(&'static str, &'static str, bool)>Trait Implementations§
Source§impl Clone for AgentPrompt
impl Clone for AgentPrompt
Source§fn clone(&self) -> AgentPrompt
fn clone(&self) -> AgentPrompt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentPrompt
impl Debug for AgentPrompt
Source§impl PartialEq for AgentPrompt
impl PartialEq for AgentPrompt
impl StructuralPartialEq for AgentPrompt
Auto Trait Implementations§
impl Freeze for AgentPrompt
impl RefUnwindSafe for AgentPrompt
impl Send for AgentPrompt
impl Sync for AgentPrompt
impl Unpin for AgentPrompt
impl UnsafeUnpin for AgentPrompt
impl UnwindSafe for AgentPrompt
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