add_message()
, generate()
) in the order they are ordered in the reporters
list.
Arguments:
reporters
list[Reporter] | None, optional - List of reporters to combineaskui.VisionAgent
.
role
str - The role of the message sender (e.g., "User"
, "Assistant"
, "System"
)content
str | dict | list - The message content, which can be a string, dictionary, or list, e.g. 'click 2x times on text "Edit"'
image
PIL.Image.Image | list[PIL.Image.Image], optional - PIL Image or list of PIL Images to include with the messageadd_message()
, but must be generated at the end of the execution.
This method is called when the askui.VisionAgent
context is exited or askui.VisionAgent.close()
is called.
report_dir
str, optional - Directory where reports will be saved. Defaults to reports
.report_dir
containing: