@@ -501,39 +501,6 @@ def test_no_assistant_message(self):
501501 }
502502 )
503503
504- def test_last_message_not_assistant (self ):
505- validator = self ._make_validator ()
506- with pytest .raises (EvaluationException , match = "last message must have role 'assistant'" ):
507- validator .validate_eval_input (
508- {
509- "messages" : [
510- {"role" : "user" , "content" : [{"type" : "text" , "text" : "Hello" }]},
511- {"role" : "assistant" , "content" : [{"type" : "text" , "text" : "Hi" }]},
512- {"role" : "user" , "content" : [{"type" : "text" , "text" : "Bye" }]},
513- ]
514- }
515- )
516-
517- def test_last_assistant_no_text_content (self ):
518- validator = self ._make_validator ()
519- with pytest .raises (EvaluationException , match = "must contain text content" ):
520- validator .validate_eval_input (
521- {
522- "messages" : [
523- {"role" : "user" , "content" : [{"type" : "text" , "text" : "Do something" }]},
524- {
525- "role" : "assistant" ,
526- "content" : [
527- {
528- "type" : "tool_call" ,
529- "tool_call" : {"id" : "1" , "function" : {"name" : "f" , "arguments" : {}}},
530- },
531- ],
532- },
533- ]
534- }
535- )
536-
537504 def test_developer_role_accepted (self ):
538505 """Developer role messages should be accepted."""
539506 validator = self ._make_validator ()
0 commit comments