MCPcopy
hub / github.com/Forethought-Technologies/AutoChain / test_arg_description

Function test_arg_description

tests/tools/test_base_tool.py:31–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_arg_description():
32 valid_arg_description = {"k": "key of the arg"}
33
34 invalid_arg_description = {"not_k": "key of the arg"}
35
36 _ = Tool(
37 func=sample_tool_func,
38 description="""This is just a dummy tool""",
39 arg_description=valid_arg_description,
40 )
41
42 with pytest.raises(ValueError):
43 _ = Tool(
44 func=sample_tool_func,
45 description="""This is just a dummy tool""",
46 arg_description=invalid_arg_description,
47 )

Callers

nothing calls this directly

Calls 1

ToolClass · 0.90

Tested by

no test coverage detected