Struct langchain_rust::agent::OpenAiToolAgent
source · pub struct OpenAiToolAgent { /* private fields */ }
Implementations§
source§impl OpenAiToolAgent
impl OpenAiToolAgent
pub fn create_prompt(prefix: &str) -> Result<MessageFormatterStruct, AgentError>
Trait Implementations§
source§impl Agent for OpenAiToolAgent
impl Agent for OpenAiToolAgent
fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
intermediate_steps: &'life1 [(AgentAction, String)],
inputs: PromptArgs
) -> Pin<Box<dyn Future<Output = Result<AgentEvent, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tools(&self) -> Vec<Arc<dyn Tool>>
Auto Trait Implementations§
impl Freeze for OpenAiToolAgent
impl !RefUnwindSafe for OpenAiToolAgent
impl Send for OpenAiToolAgent
impl Sync for OpenAiToolAgent
impl Unpin for OpenAiToolAgent
impl !UnwindSafe for OpenAiToolAgent
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