@@ -145,73 +145,6 @@ class InputSchemaTool < Tool
145145 assert_equal ( { readOnlyHint : true , title : "Mock Tool" } , tool . annotations_value . to_h )
146146 end
147147
148- # Tests for Tool::Annotations class
149- test "Tool::Annotations initializes with all properties" do
150- annotations = Tool ::Annotations . new (
151- title : "Test Tool" ,
152- read_only_hint : true ,
153- destructive_hint : false ,
154- idempotent_hint : true ,
155- open_world_hint : false ,
156- )
157-
158- assert_equal "Test Tool" , annotations . title
159- assert annotations . read_only_hint
160- refute annotations . destructive_hint
161- assert annotations . idempotent_hint
162- refute annotations . open_world_hint
163- end
164-
165- test "Tool::Annotations initializes with partial properties" do
166- annotations = Tool ::Annotations . new (
167- title : "Test Tool" ,
168- read_only_hint : true ,
169- )
170-
171- assert_equal "Test Tool" , annotations . title
172- assert annotations . read_only_hint
173- assert_nil annotations . destructive_hint
174- assert_nil annotations . idempotent_hint
175- assert_nil annotations . open_world_hint
176- end
177-
178- test "Tool::Annotations#to_h omits nil values" do
179- annotations = Tool ::Annotations . new (
180- title : "Test Tool" ,
181- read_only_hint : true ,
182- )
183-
184- expected = {
185- title : "Test Tool" ,
186- readOnlyHint : true ,
187- }
188- assert_equal expected , annotations . to_h
189- end
190-
191- test "Tool::Annotations#to_h handles all properties" do
192- annotations = Tool ::Annotations . new (
193- title : "Test Tool" ,
194- read_only_hint : true ,
195- destructive_hint : false ,
196- idempotent_hint : true ,
197- open_world_hint : false ,
198- )
199-
200- expected = {
201- title : "Test Tool" ,
202- readOnlyHint : true ,
203- destructiveHint : false ,
204- idempotentHint : true ,
205- openWorldHint : false ,
206- }
207- assert_equal expected , annotations . to_h
208- end
209-
210- test "Tool::Annotations#to_h returns empty hash when all values are nil" do
211- annotations = Tool ::Annotations . new
212- assert_empty annotations . to_h
213- end
214-
215148 test "Tool class method annotations can be set and retrieved" do
216149 class AnnotationsTestTool < Tool
217150 tool_name "annotations_test"
0 commit comments