MCPcopy Create free account
hub / github.com/langroid/langroid / format_example

Method format_example

langroid/agent/tool_message.py:216–217  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214 return self.model_dump_json(indent=4, exclude=self._get_excluded_fields())
215
216 def format_example(self) -> str:
217 return self.model_dump_json(indent=4, exclude=self._get_excluded_fields())
218
219 def dict_example(self) -> Dict[str, Any]:
220 return self.model_dump(exclude=self._get_excluded_fields())

Callers 6

usage_examplesMethod · 0.45
test_formatFunction · 0.45
test_roundtripFunction · 0.45

Calls 1

_get_excluded_fieldsMethod · 0.95

Tested by 5

test_formatFunction · 0.36
test_roundtripFunction · 0.36