_get_ls_params() — langchain Function Reference
Architecture documentation for the _get_ls_params() function in chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 466fdea3_110c_5713_eca3_4f13aef9b934["_get_ls_params()"] 24cf3ac3_ed46_66ab_27f4_5b5d67f0b7f0["ChatMistralAI"] 466fdea3_110c_5713_eca3_4f13aef9b934 -->|defined in| 24cf3ac3_ed46_66ab_27f4_5b5d67f0b7f0 style 466fdea3_110c_5713_eca3_4f13aef9b934 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/mistralai/langchain_mistralai/chat_models.py lines 533–548
def _get_ls_params(
self, stop: list[str] | None = None, **kwargs: Any
) -> LangSmithParams:
"""Get standard params for tracing."""
params = self._get_invocation_params(stop=stop, **kwargs)
ls_params = LangSmithParams(
ls_provider="mistral",
ls_model_name=params.get("model", self.model),
ls_model_type="chat",
ls_temperature=params.get("temperature", self.temperature),
)
if ls_max_tokens := params.get("max_tokens", self.max_tokens):
ls_params["ls_max_tokens"] = ls_max_tokens
if ls_stop := stop or params.get("stop", None):
ls_params["ls_stop"] = ls_stop
return ls_params
Domain
Subdomains
Source
Frequently Asked Questions
What does _get_ls_params() do?
_get_ls_params() is a function in the langchain codebase, defined in libs/partners/mistralai/langchain_mistralai/chat_models.py.
Where is _get_ls_params() defined?
_get_ls_params() is defined in libs/partners/mistralai/langchain_mistralai/chat_models.py at line 533.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free