MCPcopy Create free account
hub / github.com/github/copilot-sdk / test_function_style_requires_name

Method test_function_style_requires_name

python/test_tools.py:240–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238 assert tool.parameters["properties"]["value"]["description"] == "Value to look up"
239
240 def test_function_style_requires_name(self):
241 class Params(BaseModel):
242 value: str
243
244 with pytest.raises(ValueError, match="name is required"):
245 define_tool(
246 description="My tool",
247 handler=lambda params, inv: params.value.upper(),
248 params_type=Params,
249 )
250
251
252class TestNormalizeResult:

Callers

nothing calls this directly

Calls 1

define_toolFunction · 0.90

Tested by

no test coverage detected