125
126 Raises:
127▶ ValueError: If `early_stopping_method` is not supported.
128 """
129 if early_stopping_method == "force":
· · ·
134 )
135 msg = f"Got unsupported early_stopping_method `{early_stopping_method}`"
136▶ raise ValueError(msg)
137
138 @classmethod
· · ·
155 Agent object.
156 """
157▶ raise NotImplementedError
158
159 @property
· · ·
160 def _agent_type(self) -> str:
161 """Return Identifier of an agent type."""
162▶ raise NotImplementedError
163
164 @override
· · ·
172 try:
173 _type = self._agent_type
174▶ except NotImplementedError:
175 _type = None
176 if isinstance(_type, AgentType):
+ 59 more matches in this file