MCPcopy
hub / github.com/huggingface/smolagents / test_instance_to_source

Function test_instance_to_source

tests/test_utils.py:208–210  ·  view source on GitHub ↗
(tool, expected_tool_source)

Source from the content-addressed store, hash-verified

206 "tool, expected_tool_source", [(ValidTool(), VALID_TOOL_SOURCE), (valid_tool_function, VALID_TOOL_FUNCTION_SOURCE)]
207)
208def test_instance_to_source(tool, expected_tool_source):
209 tool_source = instance_to_source(tool, base_cls=Tool)
210 assert tool_source == expected_tool_source
211
212
213def test_e2e_class_tool_save(tmp_path):

Callers

nothing calls this directly

Calls 1

instance_to_sourceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…