Skip to content

ModelRequest

autogen.beta.events.types.ModelRequest #

Bases: BaseEvent

Event representing an input request sent to the model.

content instance-attribute #

content

to_api #

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