ModelToolNotSupportedError - AG2

ModelToolNotSupportedError

``autogen.exception_utils.ModelToolNotSupportedError #

ModelToolNotSupportedError(model)

Bases: Exception

Exception raised when attempting to use tools with models that do not support them.

Source code in autogen/exception_utils.py

<br>68<br>69<br>70<br>71<br>72<br>73<br> <br>def __init__(<br> self,<br> model: str,<br>):<br> self.message = f"Tools are not supported with {model} models. Refer to the documentation at https://platform.openai.com/docs/guides/reasoning#limitations"<br> super().__init__(self.message)<br>

``messageinstance-attribute#

message = f'Tools are not supported with {model} models. Refer to the documentation at https://platform.openai.com/docs/guides/reasoning#limitations'