Skip to content

ToolNotFoundEvent

autogen.beta.events.types.ToolNotFoundEvent #

Bases: ToolError

ToolError raised when the requested tool cannot be found.

parent_id instance-attribute #

parent_id

name instance-attribute #

name

raw_content class-attribute instance-attribute #

raw_content = None

content property writable #

content

error instance-attribute #

error

to_api #

to_api()
Source code in autogen/beta/events/types.py
def to_api(self) -> dict[str, Any]:
    return {
        "role": "tool",
        "tool_call_id": self.parent_id,
        "content": self.content,
    }