MCPcopy Create free account

hub / github.com/Paper2Poster/Paper2Poster / functions

Functions4,860 in github.com/Paper2Poster/Paper2Poster

↓ 8 callersFunctionget_image_embedding
Generate image embeddings for images in a directory. Args: image_dir (str): The directory containing images. extractor: The
utils/src/model_utils.py:169
↓ 8 callersMethodget_page_image
( self, scale: float = 1, cropbox: Optional[BoundingBox] = None )
docling/backend/pdf_backend.py:28
↓ 8 callersMethodget_page_image
( self, scale: float = 1, cropbox: Optional[BoundingBox] = None )
demo/Paper2Poster/docling/backend/pdf_backend.py:28
↓ 8 callersMethodhandle_exception
r"""Handle exceptions by logging and returning an error message. Args: func_name (str): The name of the function where the except
camel/toolkits/stripe_toolkit.py:239
↓ 8 callersMethodhandle_exception
r"""Handle exceptions by logging and returning an error message. Args: func_name (str): The name of the function where the except
demo/Paper2Poster/camel/toolkits/stripe_toolkit.py:239
↓ 8 callersFunctionparse_inch_string
Convert a string like '12.0 Inches' into a float (12.0).
utils/critic_utils.py:70
↓ 8 callersFunctionparse_inch_string
Convert a string like '12.0 Inches' into a float (12.0).
demo/Paper2Poster/utils/critic_utils.py:70
↓ 8 callersMethodreset
r"""Reset Task to initial state.
camel/tasks/task.py:118
↓ 8 callersMethodstep
r"""Record a message. Args: role (Literal["user", "assistant", "system", "tool"]): The role of the message.
camel/data_collector/base.py:99
↓ 8 callersMethodstep
r"""Record a message. Args: role (Literal["user", "assistant", "system", "tool"]): The role of the message.
demo/Paper2Poster/camel/data_collector/base.py:99
↓ 8 callersMethodupdate_memory
r"""Updates the agent memory with a new message. Args: message (BaseMessage): The new message to add to the stored
camel/agents/chat_agent.py:436
↓ 8 callersMethodupdate_memory
r"""Updates the agent memory with a new message. Args: message (BaseMessage): The new message to add to the stored
demo/Paper2Poster/camel/agents/chat_agent.py:436
↓ 8 callersMethodvalidate_openai_tool_schema
r"""Validates the OpenAI tool schema against :obj:`ToolAssistantToolsFunction`. This function checks if the provided :obj:`openai_tool
camel/toolkits/function_tool.py:402
↓ 8 callersMethodvalidate_openai_tool_schema
r"""Validates the OpenAI tool schema against :obj:`ToolAssistantToolsFunction`. This function checks if the provided :obj:`openai_tool
demo/Paper2Poster/camel/toolkits/function_tool.py:402
↓ 7 callersMethod_apply_style
Apply an HTML style to text. Args: text: A string containing plain text. style_tag: An HTML tag name for
docling/backend/xml/uspto_backend.py:476
↓ 7 callersMethod_apply_style
Apply an HTML style to text. Args: text: A string containing plain text. style_tag: An HTML tag name for
demo/Paper2Poster/docling/backend/xml/uspto_backend.py:476
↓ 7 callersMethod_login_slack
r"""Authenticate using the Slack API. Args: slack_token (str, optional): The Slack API token. If not provided, it
camel/toolkits/slack_toolkit.py:41
↓ 7 callersMethod_login_slack
r"""Authenticate using the Slack API. Args: slack_token (str, optional): The Slack API token. If not provided, it
demo/Paper2Poster/camel/toolkits/slack_toolkit.py:41
↓ 7 callersFunctionclamp255
(x)
demo/app.py:265
↓ 7 callersMethodclose
r"""Closes the Redis client asynchronously.
camel/storages/key_value_storages/redis.py:76
↓ 7 callersMethodcreate_new_instance
r"""Create a new instance of the :obj:`BaseMessage` with updated content. Args: content (str): The new content value.
camel/messages/base.py:167
↓ 7 callersMethodcreate_new_instance
r"""Create a new instance of the :obj:`BaseMessage` with updated content. Args: content (str): The new content value.
demo/Paper2Poster/camel/messages/base.py:167
↓ 7 callersFunctiondecide_device
r""" Resolve the device based on the acceleration options and the available devices in the system Rules: 1. AUTO: Check for the best avail
docling/utils/accelerator_utils.py:10
↓ 7 callersFunctiondecide_device
r""" Resolve the device based on the acceleration options and the available devices in the system Rules: 1. AUTO: Check for the best avail
demo/Paper2Poster/docling/utils/accelerator_utils.py:10
↓ 7 callersMethoddownload_models
( local_dir: Optional[Path] = None, force: bool = False, progress: bool = False, )
docling/models/layout_model.py:79
↓ 7 callersMethoddownload_models
( local_dir: Optional[Path] = None, force: bool = False, progress: bool = False, )
demo/Paper2Poster/docling/models/layout_model.py:79
↓ 7 callersFunctionescape_text
(s: str)
demo/posterbuilder/build_poster.py:55
↓ 7 callersFunctionescape_text
(s: str)
demo/posterbuilder/convert.py:242
↓ 7 callersMethodexecute
r"""Executes the code string using the provided interpreter. This method runs a code string through either a specified interpreter or
camel/prompts/base.py:168
↓ 7 callersMethodexecute
r"""Executes the code string using the provided interpreter. This method runs a code string through either a specified interpreter or
demo/Paper2Poster/camel/prompts/base.py:168
↓ 7 callersFunctionmake_text_box
(panel_id, x, y, width, height, textbox_id, textbox_name)
PosterAgent/tree_split_layout.py:356
↓ 7 callersFunctionmake_text_box
(panel_id, x, y, width, height, textbox_id, textbox_name)
demo/Paper2Poster/PosterAgent/tree_split_layout.py:356
↓ 7 callersFunctionnorm_title
(s: str)
demo/posterbuilder/convert_baposter.py:112
↓ 7 callersFunctionopen_folder_images
Opens all PNG images in folder_path named '{paper_name}-{index}.png', starting from index=1 up to the first missing, and returns them eit
utils/poster_eval_utils.py:723
↓ 7 callersFunctionopen_folder_images
Opens all PNG images in folder_path named '{paper_name}-{index}.png', starting from index=1 up to the first missing, and returns them eit
demo/Paper2Poster/utils/poster_eval_utils.py:723
↓ 7 callersMethodread_csv
r"""Reads a CSV file and returns a DataFrame. Args: file_path (str): The path to the CSV file. *args (Any): Additiona
demo/Paper2Poster/camel/loaders/panda_reader.py:123
↓ 7 callersMethodreset
r"""Reset the collector. Args: reset_agents (bool, optional): Whether to reset the agents. Defaults to True.
camel/data_collector/base.py:173
↓ 7 callersMethodreset
r"""Reset the collector. Args: reset_agents (bool, optional): Whether to reset the agents. Defaults to True.
demo/Paper2Poster/camel/data_collector/base.py:173
↓ 7 callersFunctionrun_code_with_utils
(code, utils_functions)
utils/wei_utils.py:217
↓ 7 callersFunctionsafe_copy
(src: Path, dst: Path)
demo/pipeline.py:39
↓ 7 callersFunctionsave_presentation
Save the current Presentation object to disk. :param prs: The Presentation object. :param file_name: The file path/name for the save
utils/pptx_utils.py:1794
↓ 7 callersMethodshape_filter
Filter shapes in the slide by type. Args: shape_type (type): The type of shapes to filter. shapes (list[Shap
utils/src/presentation.py:1069
↓ 7 callersMethodshape_filter
Filter shapes in the slide by type. Args: shape_type (type): The type of shapes to filter. shapes (list[Shap
demo/Paper2Poster/utils/src/presentation.py:1069
↓ 7 callersMethodstart
r"""Start the node.
camel/societies/workforce/base.py:53
↓ 7 callersMethodto_text
Represent the slide page in text.
utils/src/presentation.py:1125
↓ 6 callersMethod_clean_data
Reset the variables from stream data.
docling/backend/xml/uspto_backend.py:497
↓ 6 callersMethod_clean_data
Reset the variables from stream data.
demo/Paper2Poster/docling/backend/xml/uspto_backend.py:497
↓ 6 callersFunction_has
(bin_name)
demo/app.py:571
↓ 6 callersFunction_process_response
r"""Process the response based on the specified return type. This helper method processes the API response and returns the content in the spe
camel/toolkits/ask_news_toolkit.py:22
↓ 6 callersFunction_process_response
r"""Process the response based on the specified return type. This helper method processes the API response and returns the content in the spe
demo/Paper2Poster/camel/toolkits/ask_news_toolkit.py:22
↓ 6 callersMethod_retry_request
r"""Retries a function in case of network-related errors. Args: func (callable): The function to be retried. *args: A
camel/toolkits/reddit_toolkit.py:64
↓ 6 callersMethod_retry_request
r"""Retries a function in case of network-related errors. Args: func (callable): The function to be retried. *args: A
demo/Paper2Poster/camel/toolkits/reddit_toolkit.py:64
↓ 6 callersMethodfrom_shape
Extract table data (rows, columns, text in each cell, etc.) from the table shape.
utils/src/presentation.py:865
↓ 6 callersMethodfrom_shape
Extract table data (rows, columns, text in each cell, etc.) from the table shape.
demo/Paper2Poster/utils/src/presentation.py:865
↓ 6 callersFunctionget_image_model
Initialize and return an image model and its feature extractor. Args: device (str): The device to run the model on. Returns:
utils/src/model_utils.py:72
↓ 6 callersMethodget_inline_style
Get the inline style for the shape element. Args: style_args (StyleArg): The style arguments for HTML conversion.
utils/src/presentation.py:414
↓ 6 callersMethodget_inline_style
Get the inline style for the shape element. Args: style_args (StyleArg): The style arguments for HTML conversion.
demo/Paper2Poster/utils/src/presentation.py:414
↓ 6 callersMethodget_level
Return the first None index.
docling/backend/msword_backend.py:151
↓ 6 callersMethodget_level
Return the first None index.
demo/Paper2Poster/docling/backend/msword_backend.py:151
↓ 6 callersMethodget_tools
r"""Returns a list of all tools in the runtime.
camel/runtime/base.py:43
↓ 6 callersMethodget_tools
r"""Returns a list of all tools in the runtime.
demo/Paper2Poster/camel/runtime/base.py:43
↓ 6 callersFunctionnorm_title
(s: str)
demo/posterbuilder/build_poster.py:298
↓ 6 callersFunctionnorm_title
(s: str)
demo/posterbuilder/convert.py:513
↓ 6 callersMethodreset
r"""Resets the agent to its initial state.
camel/agents/base.py:22
↓ 6 callersMethodreset
r"""Reset the retriever. Some benchmarks may require resetting the retriever after each query. Args: **kwargs: Ad
camel/benchmarks/gaia.py:55
↓ 6 callersMethodreset
r"""Resets the agent to its initial state.
demo/Paper2Poster/camel/agents/base.py:22
↓ 6 callersMethodreset
r"""Reset the retriever. Some benchmarks may require resetting the retriever after each query. Args: **kwargs: Ad
demo/Paper2Poster/camel/benchmarks/gaia.py:55
↓ 6 callersMethodsave
r"""Saves a batch of records to the key-value storage system. Args: records (List[Dict[str, Any]]): A list of dictionaries, where
camel/storages/key_value_storages/json.py:69
↓ 6 callersMethodsave
r"""Saves a batch of records to the key-value storage system. Args: records (List[Dict[str, Any]]): A list of dictionaries, where
demo/Paper2Poster/camel/storages/key_value_storages/json.py:69
↓ 6 callersFunctionsave_presentation
Save the current Presentation object to disk. :param prs: The Presentation object. :param file_name: The file path/name for the save
demo/Paper2Poster/utils/pptx_utils.py:1794
↓ 6 callersFunctionstyle_bullet_content
(bullet_content_item, color, fill_color)
utils/wei_utils.py:984
↓ 6 callersFunctionto_int
(p)
demo/app.py:292
↓ 6 callersMethodto_text
Represent the slide page in text.
demo/Paper2Poster/utils/src/presentation.py:1125
↓ 6 callersMethodunion
(self, x, y)
docling/utils/layout_postprocessor.py:27
↓ 6 callersMethodunion
(self, x, y)
demo/Paper2Poster/docling/utils/layout_postprocessor.py:27
↓ 5 callersMethod_get_current_parent
(self, parents)
docling/backend/asciidoc_backend.py:281
↓ 5 callersMethod_get_current_parent
(self, parents)
demo/Paper2Poster/docling/backend/asciidoc_backend.py:281
↓ 5 callersFunction_parse_alignment
Internal helper to convert a string alignment (e.g., "left", "center") to the corresponding PP_ALIGN constant. Default to PP_ALIGN.LEFT
utils/pptx_utils.py:1246
↓ 5 callersFunction_parse_alignment
Internal helper to convert a string alignment (e.g., "left", "center") to the corresponding PP_ALIGN constant. Default to PP_ALIGN.LEFT
demo/Paper2Poster/utils/pptx_utils.py:1246
↓ 5 callersFunctionadd_border_hierarchy
Iterates over all slides and shapes in the Presentation 'prs'. - For shapes whose name maps to the given 'hierarchy' in 'name_to_hierarchy' (
utils/pptx_utils.py:1975
↓ 5 callersFunctionapply_fill
(shape: BaseShape, fill_xml: str)
utils/src/utils.py:216
↓ 5 callersFunctionapply_fill
(shape: BaseShape, fill_xml: str)
demo/Paper2Poster/utils/src/utils.py:216
↓ 5 callersFunctionbottom
(rect)
utils/wei_utils.py:752
↓ 5 callersMethodcanonicalize_path
(file_path: PurePath)
camel/storages/object_storages/base.py:37
↓ 5 callersMethodcanonicalize_path
(file_path: PurePath)
demo/Paper2Poster/camel/storages/object_storages/base.py:37
↓ 5 callersMethodcreate
r"""A class method to construct a `VectorDBQueryResult` instance.
camel/storages/vectordb_storages/base.py:81
↓ 5 callersMethodcreate
r"""A class method to construct a `VectorDBQueryResult` instance.
demo/Paper2Poster/camel/storages/vectordb_storages/base.py:81
↓ 5 callersMethoddelete
r"""Deletes points from the collection based on either IDs or payload filters. Args: ids (Optional[List[str]], optional):
demo/Paper2Poster/camel/storages/vectordb_storages/qdrant.py:325
↓ 5 callersFunctiondict_to_object
(dict: dict, obj: object, exclude=None)
utils/src/utils.py:306
↓ 5 callersFunctiondict_to_object
(dict: dict, obj: object, exclude=None)
demo/Paper2Poster/utils/src/utils.py:306
↓ 5 callersMethoddraw_ocr_rects_and_cells
(self, conv_res, page, ocr_rects, show: bool = False)
docling/models/base_ocr_model.py:139
↓ 5 callersMethoddraw_ocr_rects_and_cells
(self, conv_res, page, ocr_rects, show: bool = False)
demo/Paper2Poster/docling/models/base_ocr_model.py:139
↓ 5 callersFunctionelement_index
Find the an element in a slide. Args: slide (SlidePage): The slide element_id (int): The ID of the element. Returns:
utils/src/apis.py:159
↓ 5 callersFunctionelement_index
Find the an element in a slide. Args: slide (SlidePage): The slide element_id (int): The ID of the element. Returns:
demo/Paper2Poster/utils/src/apis.py:159
↓ 5 callersFunctionfill_content
(agent, prompt, num_retries, existing_code='')
utils/wei_utils.py:465
↓ 5 callersMethodget_context
r"""Gets chat context with a proper size for the agent from the memory. Returns: (List[OpenAIMessage], int): A tuple containing t
camel/memories/base.py:133
↓ 5 callersMethodget_context
r"""Gets chat context with a proper size for the agent from the memory. Returns: (List[OpenAIMessage], int): A tuple containing t
demo/Paper2Poster/camel/memories/base.py:133
↓ 5 callersMethodget_ocr_rects
(self, page: Page)
docling/models/base_ocr_model.py:28
↓ 5 callersMethodget_ocr_rects
(self, page: Page)
demo/Paper2Poster/docling/models/base_ocr_model.py:28
↓ 5 callersMethodis_tools_added
r"""Whether tool calling is enabled for this agent. Returns: bool: Whether tool calling is enabled for this agent, determined
camel/agents/chat_agent.py:427
← previousnext →101–200 of 4,860, ranked by callers