Skip to content

ToolResultEvent

autogen.beta.events.tool_events.ToolResultEvent #

Bases: ToolEvent

Represents a successful tool execution result.

parent_id instance-attribute #

parent_id

name instance-attribute #

name

result instance-attribute #

result

content property writable #

content

to_api #

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