ModelToolNotSupportedError - AG2

ModelToolNotSupportedError

autogen.exception_utils.ModelToolNotSupportedError [#](https://docs.ag2.ai/0.9.1post0/docs/api-reference/autogen/exception_utils/ModelToolNotSupportedError/#autogen.exception_utils.ModelToolNotSupportedError "Permanent link")

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>

message instance-attribute #

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