pub struct LangSmithClient {
pub config: LangSmithConfig,
/* private fields */
}Expand description
LangSmith API client
Fields§
§config: LangSmithConfigConfiguration
Implementations§
Source§impl LangSmithClient
impl LangSmithClient
Sourcepub fn new(config: LangSmithConfig) -> Self
pub fn new(config: LangSmithConfig) -> Self
Create a new client
Sourcepub fn is_tracing_enabled(&self) -> bool
pub fn is_tracing_enabled(&self) -> bool
Check if tracing is enabled
Sourcepub fn project_name(&self) -> &str
pub fn project_name(&self) -> &str
Get the project name
Sourcepub async fn create_run(&self, run: &RunTree) -> Result<(), LangSmithError>
pub async fn create_run(&self, run: &RunTree) -> Result<(), LangSmithError>
Create a run (POST /runs)
Sourcepub async fn update_run(&self, run: &RunTree) -> Result<(), LangSmithError>
pub async fn update_run(&self, run: &RunTree) -> Result<(), LangSmithError>
Update a run (PATCH /runs/{run_id})
Auto Trait Implementations§
impl !RefUnwindSafe for LangSmithClient
impl !UnwindSafe for LangSmithClient
impl Freeze for LangSmithClient
impl Send for LangSmithClient
impl Sync for LangSmithClient
impl Unpin for LangSmithClient
impl UnsafeUnpin for LangSmithClient
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