MCPcopy
hub / github.com/langchain-ai/langchain / dict

Method dict

libs/core/langchain_core/language_models/llms.py:1181–1185  ·  view source on GitHub ↗

Return a dictionary of the LLM.

(self, **kwargs: Any)

Source from the content-addressed store, hash-verified

1179 """Return type of llm."""
1180
1181 def dict(self, **kwargs: Any) -> Dict:
1182 """Return a dictionary of the LLM."""
1183 starter_dict = dict(self._identifying_params)
1184 starter_dict["_type"] = self._llm_type
1185 return starter_dict
1186
1187 def save(self, file_path: Union[Path, str]) -> None:
1188 """Save the LLM.

Callers 15

streamMethod · 0.95
astreamMethod · 0.95
generateMethod · 0.95
agenerateMethod · 0.95
saveMethod · 0.95
_compare_run_with_errorFunction · 0.45
_compare_run_with_errorFunction · 0.45
_parse_inputMethod · 0.45
_complete_llm_runMethod · 0.45

Calls

no outgoing calls

Tested by 5

_compare_run_with_errorFunction · 0.36
_compare_run_with_errorFunction · 0.36