Skip to content

ToolResult

autogen.beta.events.types.ToolResult #

Bases: ToolEvent

Represents a successful tool execution result.

parent_id instance-attribute #

parent_id

name instance-attribute #

name

raw_content class-attribute instance-attribute #

raw_content = None

content property writable #

content

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,
    }