ppt
Module Contents
Classes
Plugin to create ppt slides with text, paragraph, images in good looking styles |
Attributes
- lagent.actions.ppt.THEME_MAPPING
- class lagent.actions.ppt.PPT(theme_mapping=None, description=None, parser=JsonParser, enable=True)
Bases:
lagent.actions.base_action.BaseActionPlugin to create ppt slides with text, paragraph, images in good looking styles
- Parameters:
theme_mapping (Optional[Dict[str, dict]]) –
description (Optional[dict]) –
parser (Type[lagent.actions.parser.BaseParser]) –
enable (bool) –
- create_file(theme, abs_location)
Create a pptx file with specific themes
- Parameters:
theme (
str) – the theme usedabs_location (
str) – the ppt file’s absolute location
- Returns:
- operation status
status: the result of the execution
- Return type:
dict
- add_first_page(title, subtitle)
Add the first page of ppt.
- Parameters:
title (
str) – the title of pptsubtitle (
str) – the subtitle of ppt
- Returns:
- operation status
status: the result of the execution
- Return type:
dict
- add_text_page(title, bullet_items)
Add text page of ppt
- Parameters:
title (
str) – the title of the pagebullet_items (
str) – bullet_items should be string, for multiple bullet items, please use [SPAN] to separate them.
- Returns:
- operation status
status: the result of the execution
- Return type:
dict
- add_text_image_page(title, bullet_items, image)
Add a text page with one image. Image should be a path
- Parameters:
title (
str) – the title of the pagebullet_items (
str) – bullet_items should be string, for multiple bullet items, please use [SPAN] to separate them.image (
str) – the path of the image
- Returns:
- operation status
status: the result of the execution
- Return type:
dict
- submit_file()
When all steps done, YOU MUST use submit_file() to submit your work.
- Returns:
- operation status
status: the result of the execution
- Return type:
dict