Skip to content

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
def __init__(
    self,
    model: str,
):
    self.message = f"Tools are not supported with {model} models. Refer to the documentation at https://platform.openai.com/docs/guides/reasoning#limitations"
    super().__init__(self.message)

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'