Skip to content

ToolCalls

autogen.beta.events.types.ToolCalls #

Bases: BaseEvent

Container event holding a collection of tool calls.

calls class-attribute instance-attribute #

calls = Field(default_factory=list)

to_api #

to_api()
Source code in autogen/beta/events/types.py
def to_api(self) -> list[dict[str, Any]]:
    return [c.to_api() for c in self.calls]