@@ -44,7 +44,7 @@ class ScoreView(Score):
4444 @computed_field # type: ignore[prop-decorator]
4545 @property
4646 def scorer_type (self ) -> str :
47- """Return the scorer class name, or ``"Unknown"`` when unavailable."""
47+ """The scorer class name, or ``"Unknown"`` when unavailable."""
4848 identifier = self .scorer_class_identifier
4949 if identifier and identifier .class_name :
5050 return identifier .class_name
@@ -188,19 +188,19 @@ class MessageView(Message):
188188 @computed_field # type: ignore[prop-decorator]
189189 @property
190190 def turn_number (self ) -> int :
191- """Return the sequence of the first piece (the conversation turn)."""
191+ """The sequence of the first piece (the conversation turn)."""
192192 return self .message_pieces [0 ].sequence if self .message_pieces else 0
193193
194194 @computed_field # type: ignore[prop-decorator]
195195 @property
196196 def role (self ) -> ChatMessageRole :
197- """Return the role of the first piece."""
197+ """The role of the first piece."""
198198 return self .message_pieces [0 ].role if self .message_pieces else "user"
199199
200200 @computed_field # type: ignore[prop-decorator]
201201 @property
202202 def created_at (self ) -> datetime :
203- """Return the timestamp of the first piece."""
203+ """The timestamp of the first piece."""
204204 return self .message_pieces [0 ].timestamp if self .message_pieces else datetime .now (timezone .utc )
205205
206206
@@ -242,21 +242,21 @@ def _serialize_related_conversations(self, conversations: set[ConversationRefere
242242 @computed_field # type: ignore[prop-decorator]
243243 @property
244244 def attack_type (self ) -> str :
245- """Return the attack strategy class name, or ``"Unknown"``."""
245+ """The attack strategy class name, or ``"Unknown"``."""
246246 identifier = self .get_attack_strategy_identifier ()
247247 return identifier .class_name if identifier else "Unknown"
248248
249249 @computed_field # type: ignore[prop-decorator]
250250 @property
251251 def attack_specific_params (self ) -> dict [str , Any ] | None :
252- """Return the attack strategy params, or ``None``."""
252+ """The attack strategy params, or ``None``."""
253253 identifier = self .get_attack_strategy_identifier ()
254254 return (identifier .params or None ) if identifier else None
255255
256256 @computed_field # type: ignore[prop-decorator]
257257 @property
258258 def target (self ) -> TargetInfo | None :
259- """Return the objective target info extracted from the identifier."""
259+ """The objective target info extracted from the identifier."""
260260 identifier = self .get_attack_strategy_identifier ()
261261 target_id = identifier .get_child ("objective_target" ) if identifier else None
262262 if not target_id :
@@ -270,15 +270,15 @@ def target(self) -> TargetInfo | None:
270270 @computed_field # type: ignore[prop-decorator]
271271 @property
272272 def converters (self ) -> list [str ]:
273- """Return the request-converter class names applied in this attack."""
273+ """The request-converter class names applied in this attack."""
274274 identifier = self .get_attack_strategy_identifier ()
275275 converter_ids = identifier .get_child_list ("request_converters" ) if identifier else []
276276 return [c .class_name for c in converter_ids ]
277277
278278 @computed_field # type: ignore[prop-decorator]
279279 @property
280280 def related_conversation_ids (self ) -> list [str ]:
281- """Return the IDs of related conversations, sorted for stable output."""
281+ """The IDs of related conversations, sorted for stable output."""
282282 return sorted (ref .conversation_id for ref in self .related_conversations )
283283
284284
0 commit comments