()
| 29 | |
| 30 | |
| 31 | def 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 | ) |