pub struct LangSmithConfig {
pub api_key: String,
pub api_url: String,
pub workspace_id: Option<String>,
pub project_name: String,
pub tracing_enabled: bool,
}Expand description
LangSmith configuration
Fields§
§api_key: StringAPI key (starts with “ls_”)
api_url: StringAPI endpoint URL
workspace_id: Option<String>Workspace ID (required for org accounts)
project_name: StringProject name
tracing_enabled: boolWhether tracing is enabled
Implementations§
Source§impl LangSmithConfig
impl LangSmithConfig
Sourcepub fn with_project(self, project: impl Into<String>) -> Self
pub fn with_project(self, project: impl Into<String>) -> Self
Set project name
Sourcepub fn with_workspace(self, workspace_id: impl Into<String>) -> Self
pub fn with_workspace(self, workspace_id: impl Into<String>) -> Self
Set workspace ID
Sourcepub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
Set API endpoint
Sourcepub fn with_tracing(self, enabled: bool) -> Self
pub fn with_tracing(self, enabled: bool) -> Self
Enable or disable tracing
Trait Implementations§
Source§impl Clone for LangSmithConfig
impl Clone for LangSmithConfig
Source§fn clone(&self) -> LangSmithConfig
fn clone(&self) -> LangSmithConfig
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 moreAuto Trait Implementations§
impl Freeze for LangSmithConfig
impl RefUnwindSafe for LangSmithConfig
impl Send for LangSmithConfig
impl Sync for LangSmithConfig
impl Unpin for LangSmithConfig
impl UnsafeUnpin for LangSmithConfig
impl UnwindSafe for LangSmithConfig
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