1515
1616
1717# Pydantic models for tool parameters
18- class TestCustomToolParams (BaseModel ):
18+ class CustomToolParams (BaseModel ):
1919 message : str = Field (description = "Message to repeat" )
2020 count : int = Field (default = 1 , description = "Number of times" )
2121
2222
23- class TestToolWithDefaultParams (BaseModel ):
23+ class ToolWithDefaultParams (BaseModel ):
2424 value : str = Field (description = "Value" )
2525 suffix : str = Field (default = "!" , description = "Suffix" )
2626
@@ -45,27 +45,27 @@ class ProcessItemsParams(BaseModel):
4545
4646
4747# Test helper tool classes (defined in module scope so they can be imported by call_custom_tool)
48- class TestCustomTool (ExplorerTool [TestCustomToolParams ]):
49- params_model = TestCustomToolParams
48+ class SampleCustomTool (ExplorerTool [CustomToolParams ]):
49+ params_model = CustomToolParams
5050
5151 @classmethod
5252 def get_description (cls ) -> str :
5353 return "A test tool"
5454
5555 @classmethod
56- def execute (cls , organization , params : TestCustomToolParams ) -> str :
56+ def execute (cls , organization , params : CustomToolParams ) -> str :
5757 return params .message * params .count
5858
5959
60- class TestToolWithDefault (ExplorerTool [TestToolWithDefaultParams ]):
61- params_model = TestToolWithDefaultParams
60+ class SampleToolWithDefault (ExplorerTool [ToolWithDefaultParams ]):
61+ params_model = ToolWithDefaultParams
6262
6363 @classmethod
6464 def get_description (cls ) -> str :
6565 return "Test tool with default parameter"
6666
6767 @classmethod
68- def execute (cls , organization , params : TestToolWithDefaultParams ) -> str :
68+ def execute (cls , organization , params : ToolWithDefaultParams ) -> str :
6969 return params .value + params .suffix
7070
7171
@@ -182,7 +182,7 @@ def test_extract_tool_schema_with_list_params(self):
182182 def test_call_custom_tool_success (self ):
183183 """Test calling a custom tool successfully."""
184184 # Use test tool from this test module
185- module_path = "tests.sentry.seer.explorer.test_custom_tool_utils.TestCustomTool "
185+ module_path = "tests.sentry.seer.explorer.test_custom_tool_utils.SampleCustomTool "
186186
187187 # Call via the utility function
188188 result = call_custom_tool (
@@ -196,7 +196,7 @@ def test_call_custom_tool_success(self):
196196
197197 def test_call_custom_tool_with_optional_param (self ):
198198 """Test calling a custom tool with default parameter."""
199- module_path = "tests.sentry.seer.explorer.test_custom_tool_utils.TestToolWithDefault "
199+ module_path = "tests.sentry.seer.explorer.test_custom_tool_utils.SampleToolWithDefault "
200200 result = call_custom_tool (
201201 module_path = module_path ,
202202 allowed_prefixes = ("sentry." , "tests.sentry." ),
0 commit comments