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

Method get_name

libs/core/langchain_core/runnables/base.py:239–250  ·  view source on GitHub ↗

Get the name of the runnable.

(
        self, suffix: Optional[str] = None, *, name: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

237 """The name of the runnable. Used for debugging and tracing."""
238
239 def get_name(
240 self, suffix: Optional[str] = None, *, name: Optional[str] = None
241 ) -> str:
242 """Get the name of the runnable."""
243 name = name or self.name or self.__class__.__name__
244 if suffix:
245 if name[0].isupper():
246 return name + suffix.title()
247 else:
248 return name + "_" + suffix.lower()
249 else:
250 return name
251
252 @property
253 def InputType(self) -> Type[Input]:

Callers 15

InputTypeMethod · 0.95
OutputTypeMethod · 0.95
get_input_schemaMethod · 0.95
get_output_schemaMethod · 0.95
config_schemaMethod · 0.95
get_graphMethod · 0.95
_call_with_configMethod · 0.95
_acall_with_configMethod · 0.95
_batch_with_configMethod · 0.95
_abatch_with_configMethod · 0.95

Calls

no outgoing calls

Tested by 1

astreamMethod · 0.36