pub struct LangChainAdapter;Expand description
LangChain framework adapter.
Detects LangChain projects by looking for:
pyproject.tomlwithlangchaindependencyrequirements.txtcontaininglangchainorlanggraphlanggraph.jsonconfiguration file- Python files importing
from langchain/from langchain_core/from langgraph
Trait Implementations§
Source§impl Adapter for LangChainAdapter
impl Adapter for LangChainAdapter
Source§fn load(&self, root: &Path, ignore_tests: bool) -> Result<Vec<ScanTarget>>
fn load(&self, root: &Path, ignore_tests: bool) -> Result<Vec<ScanTarget>>
Load artifacts from the directory into scan targets.
When
ignore_tests is true, test files are excluded before parsing.fn load_with_filter( &self, root: &Path, filter: &ScanPathFilter, ) -> Result<Vec<ScanTarget>>
Auto Trait Implementations§
impl Freeze for LangChainAdapter
impl RefUnwindSafe for LangChainAdapter
impl Send for LangChainAdapter
impl Sync for LangChainAdapter
impl Unpin for LangChainAdapter
impl UnsafeUnpin for LangChainAdapter
impl UnwindSafe for LangChainAdapter
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