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

Method format

libs/core/langchain_core/prompts/prompt.py:162–164  ·  view source on GitHub ↗
(self, **kwargs: Any)

Source from the content-addressed store, hash-verified

160 return "prompt"
161
162 def format(self, **kwargs: Any) -> str:
163 kwargs = self._merge_partial_and_user_variables(**kwargs)
164 return DEFAULT_FORMATTER_MAPPING[self.template_format](self.template, **kwargs)
165
166 @classmethod
167 def from_examples(

Callers 15

test_partial_init_stringFunction · 0.95
test_partial_init_funcFunction · 0.95
test_partialFunction · 0.95
promptMethod · 0.95
agent.pyFile · 0.45
create_promptFunction · 0.45
get_indices_infosFunction · 0.45
combine_documentsFunction · 0.45
get_system_messageFunction · 0.45
lazy_loadMethod · 0.45