LangSmithParams Class — langchain Architecture
Architecture documentation for the LangSmithParams class in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ff688c7f_be4e_5b19_a876_fcd5b032bc87["LangSmithParams"] d2346df7_0af9_9808_4af4_3dbe3daa01f5["base.py"] ff688c7f_be4e_5b19_a876_fcd5b032bc87 -->|defined in| d2346df7_0af9_9808_4af4_3dbe3daa01f5
Relationship Graph
Source Code
libs/core/langchain_core/language_models/base.py lines 49–71
class LangSmithParams(TypedDict, total=False):
"""LangSmith parameters for tracing."""
ls_provider: str
"""Provider of the model."""
ls_model_name: str
"""Name of the model."""
ls_model_type: Literal["chat", "llm"]
"""Type of the model.
Should be `'chat'` or `'llm'`.
"""
ls_temperature: float | None
"""Temperature for generation."""
ls_max_tokens: int | None
"""Max tokens for generation."""
ls_stop: list[str] | None
"""Stop words for generation."""
Source
Frequently Asked Questions
What is the LangSmithParams class?
LangSmithParams is a class in the langchain codebase, defined in libs/core/langchain_core/language_models/base.py.
Where is LangSmithParams defined?
LangSmithParams is defined in libs/core/langchain_core/language_models/base.py at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free