MCPcopy Create free account

hub / github.com/Paper2Poster/Paper2Poster / functions

Functions4,860 in github.com/Paper2Poster/Paper2Poster

↓ 182 callersFunction_write_logs
(log_path: Path, logs)
demo/app.py:67
↓ 98 callersMethodsub
r"""Do subtraction between two numbers. Args: a (float): The minuend in subtraction. b (float): The subtrahend in sub
demo/Paper2Poster/camel/toolkits/math_toolkit.py:40
↓ 88 callersMethodcreate
r"""Creates an instance of `BaseModelBackend` of the specified type. Args: model_platform (ModelPlatformType): Platform from whic
camel/models/model_factory.py:52
↓ 85 callersMethodcreate
r"""Creates an instance of `BaseModelBackend` of the specified type. Args: model_platform (ModelPlatformType): Platform from whic
demo/Paper2Poster/camel/models/model_factory.py:52
↓ 67 callersMethodload
r"""Load the benchmark data. Args: force_download (bool): Whether to force download the data. Returns: BaseB
camel/benchmarks/base.py:75
↓ 65 callersMethodload
r"""Load the benchmark data. Args: force_download (bool): Whether to force download the data. Returns: BaseB
demo/Paper2Poster/camel/benchmarks/base.py:75
↓ 60 callersMethodformat
r"""Overrides the built-in :obj:`str.format` method to allow for default values in the format string. This is used to allow formatting
demo/Paper2Poster/camel/prompts/base.py:109
↓ 56 callersMethodarea
Get the area of the shape element. Returns: float: The area in square points.
demo/Paper2Poster/utils/src/presentation.py:349
↓ 55 callersMethodformat
r"""Overrides the built-in :obj:`str.format` method to allow for default values in the format string. This is used to allow formatting
camel/prompts/base.py:109
↓ 54 callersMethodas_dict
r"""Convert the current configuration to a dictionary. This method converts the current configuration object to a dictionary represen
demo/Paper2Poster/camel/configs/base_config.py:64
↓ 53 callersMethodas_dict
r"""Convert the current configuration to a dictionary. This method converts the current configuration object to a dictionary represen
camel/configs/base_config.py:64
↓ 52 callersMethodsave
Save the presentation to a file. Args: file_path (str): The file path to save the presentation. layout_only
demo/Paper2Poster/utils/src/presentation.py:1235
↓ 48 callersFunction_prepare_workspace
Create isolated per-run workspace and copy needed code/assets into it.
demo/app.py:218
↓ 44 callersMethodcopy
r"""Create a deep copy of this File
demo/Paper2Poster/camel/loaders/base_io.py:135
↓ 43 callersMethodfind
(self, x)
demo/Paper2Poster/docling/utils/layout_postprocessor.py:22
↓ 39 callersFunction_now_str
()
demo/app.py:64
↓ 36 callersMethodmake_user_message
r"""Create a new user message. Args: role_name (str): The name of the user role. content (str): The content of the me
camel/messages/base.py:78
↓ 35 callersMethodmake_user_message
r"""Create a new user message. Args: role_name (str): The name of the user role. content (str): The content of the me
demo/Paper2Poster/camel/messages/base.py:78
↓ 33 callersMethodrun
r"""Runs inference of Yi chat completion. Args: messages (List[OpenAIMessage]): Message list with the chat history
demo/Paper2Poster/camel/models/yi_model.py:84
↓ 32 callersMethodfrom_string
r"""Creates an AlpacaItem from a formatted string. Args: text: String in either of these formats: With input:
camel/messages/conversion/alpaca.py:54
↓ 32 callersMethodjson
(self, *args, **kwargs)
camel/personas/persona.py:92
↓ 32 callersMethodjson
(self, *args, **kwargs)
demo/Paper2Poster/camel/personas/persona.py:92
↓ 32 callersFunctionppt_to_images
(file: str, output_dir: str, warning: bool = False, dpi=72, output_type='png')
utils/src/utils.py:140
↓ 31 callersMethodstep
r"""Performs a single step of the agent.
camel/agents/base.py:27
↓ 30 callersFunctionaccount_token
(response)
utils/wei_utils.py:978
↓ 30 callersMethodsave
Save the presentation to a file. Args: file_path (str): The file path to save the presentation. layout_only
utils/src/presentation.py:1235
↓ 28 callersFunction_compile_tex_to_pdf
Generic TeX compile helper for a .tex file. Returns Path to PDF or None.
demo/app.py:702
↓ 28 callersMethodadd
r"""Adds a new tool to the runtime.
demo/Paper2Poster/camel/runtime/base.py:29
↓ 28 callersMethodclose
r"""Closes the Redis client asynchronously.
demo/Paper2Poster/camel/storages/key_value_storages/redis.py:76
↓ 28 callersMethodfrom_string
r"""Creates an AlpacaItem from a formatted string. Args: text: String in either of these formats: With input:
demo/Paper2Poster/camel/messages/conversion/alpaca.py:54
↓ 27 callersMethodcopy
r"""Create a deep copy of this File
camel/loaders/base_io.py:135
↓ 27 callersMethodrun
r"""Runs inference of Yi chat completion. Args: messages (List[OpenAIMessage]): Message list with the chat history
camel/models/yi_model.py:84
↓ 27 callersMethodstep
r"""Executes a single step in the chat session, generating a response to the input message. Args: input_message (Union[Ba
camel/agents/chat_agent.py:550
↓ 26 callersMethodfind
(self, x)
docling/utils/layout_postprocessor.py:22
↓ 26 callersMethodstep
r"""Performs a single step of the agent.
demo/Paper2Poster/camel/agents/base.py:27
↓ 25 callersFunction_pdf_to_iframe_html
(pdf_path: Path, width="100%", height="900px")
demo/app.py:630
↓ 25 callersFunctionget_json_from_response
(raw_response: str)
utils/src/utils.py:121
↓ 25 callersMethodstep
r"""Executes a single step in the chat session, generating a response to the input message. Args: input_message (Union[Ba
demo/Paper2Poster/camel/agents/chat_agent.py:550
↓ 25 callersMethodsub
r"""Do subtraction between two numbers. Args: a (float): The minuend in subtraction. b (float): The subtrahend in sub
camel/toolkits/math_toolkit.py:40
↓ 23 callersMethodget_function_name
r"""Gets the name of the function from the OpenAI tool schema. Returns: str: The name of the function.
camel/toolkits/function_tool.py:500
↓ 23 callersMethodget_function_name
r"""Gets the name of the function from the OpenAI tool schema. Returns: str: The name of the function.
demo/Paper2Poster/camel/toolkits/function_tool.py:500
↓ 22 callersFunctionget_agent_config
(model_type)
utils/wei_utils.py:26
↓ 22 callersFunctionget_agent_config
(model_type)
demo/Paper2Poster/utils/wei_utils.py:26
↓ 22 callersFunctionppt_to_images
(file: str, output_dir: str, warning: bool = False, dpi=72, output_type='png')
demo/Paper2Poster/utils/src/utils.py:140
↓ 21 callersFunctionget_json_from_response
(raw_response: str)
demo/Paper2Poster/utils/src/utils.py:121
↓ 20 callersMethod_handle_api_error
r"""Handle API operation errors consistently. Args: error (Exception): The caught exception. operation (str): Descrip
camel/toolkits/openbb_toolkit.py:55
↓ 20 callersMethod_handle_api_error
r"""Handle API operation errors consistently. Args: error (Exception): The caught exception. operation (str): Descrip
demo/Paper2Poster/camel/toolkits/openbb_toolkit.py:55
↓ 19 callersMethodmodel_dump
(self, **kwargs)
demo/Paper2Poster/camel/messages/conversion/conversation_models.py:90
↓ 19 callersMethodparse
Parse the first table from an xml content. Returns: A docling table data.
docling/backend/xml/uspto_backend.py:1664
↓ 19 callersMethodparse
Parse the first table from an xml content. Returns: A docling table data.
demo/Paper2Poster/docling/backend/xml/uspto_backend.py:1664
↓ 18 callersMethodreset
r"""Resets the :obj:`ChatAgent` to its initial state.
camel/agents/chat_agent.py:400
↓ 18 callersMethodwalk
(self, element: Tag, doc: DoclingDocument)
demo/Paper2Poster/docling/backend/html_backend.py:92
↓ 17 callersMethod_execute_ast
(self, expression: ast.AST)
camel/interpreters/internal_python_interpreter.py:238
↓ 17 callersMethod_execute_ast
(self, expression: ast.AST)
demo/Paper2Poster/camel/interpreters/internal_python_interpreter.py:238
↓ 16 callersMethodconvert
r"""Structures the input text into the expected response format. Args: text (str): The input text to be structured. o
demo/Paper2Poster/camel/schemas/base.py:29
↓ 16 callersMethodmean
(self)
docling/utils/profiling.py:32
↓ 16 callersMethodmean
(self)
demo/Paper2Poster/docling/utils/profiling.py:32
↓ 16 callersMethodreset
r"""Resets the :obj:`ChatAgent` to its initial state.
demo/Paper2Poster/camel/agents/chat_agent.py:400
↓ 16 callersFunctionto_inches
Convert a single coordinate or dimension from 'units' to inches. For example, if your units are 'points' (72 points = 1 inch), then units
PosterAgent/tree_split_layout.py:471
↓ 15 callersFunctionaccount_token
(response)
demo/Paper2Poster/PosterAgent/parse_raw.py:45
↓ 15 callersFunctionget_logger
r"""Get a logger with the specified name, prefixed with 'camel.'. Args: name (str): The name to be appended to 'camel.' to create the log
camel/logger.py:104
↓ 15 callersFunctionget_logger
r"""Get a logger with the specified name, prefixed with 'camel.'. Args: name (str): The name to be appended to 'camel.' to create the log
demo/Paper2Poster/camel/logger.py:104
↓ 15 callersMethodmodel_dump
(self, **kwargs)
camel/messages/conversion/conversation_models.py:90
↓ 14 callersMethodadd
r"""Adds a new tool to the runtime.
camel/runtime/base.py:29
↓ 14 callersMethodconvert
r"""Structures the input text into the expected response format. Args: text (str): The input text to be structured. o
camel/schemas/base.py:29
↓ 14 callersFunctionto_inches
Convert a single coordinate or dimension from 'units' to inches. For example, if your units are 'points' (72 points = 1 inch), then units
demo/Paper2Poster/PosterAgent/tree_split_layout.py:471
↓ 13 callersMethodfrom_file
Parse a Presentation from a file.
utils/src/presentation.py:1192
↓ 13 callersMethodfrom_file
Parse a Presentation from a file.
demo/Paper2Poster/utils/src/presentation.py:1192
↓ 13 callersMethodis_valid
(self)
docling/datamodel/document.py:214
↓ 13 callersMethodis_valid
(self)
demo/Paper2Poster/docling/datamodel/document.py:214
↓ 13 callersMethodquery
r"""Execute a query on the graph store. Args: query (str): The Cypher-like query to be executed. Returns: Re
camel/storages/graph_storages/nebula_graph.py:138
↓ 13 callersMethodquery
r"""Execute a query on the graph store. Args: query (str): The Cypher-like query to be executed. Returns: Re
demo/Paper2Poster/camel/storages/graph_storages/nebula_graph.py:138
↓ 12 callersFunctionescape_text
(s: str)
demo/posterbuilder/convert_baposter.py:62
↓ 12 callersMethodget_image
( self, scale: float = 1.0, cropbox: Optional[BoundingBox] = None )
docling/datamodel/base_models.py:233
↓ 12 callersMethodget_image
( self, scale: float = 1.0, cropbox: Optional[BoundingBox] = None )
demo/Paper2Poster/docling/datamodel/base_models.py:233
↓ 12 callersFunctionprint_text_animated
r"""Prints the given text with an animated effect. Args: text (str): The text to print. delay (float, optional): The delay betwee
camel/utils/commons.py:51
↓ 12 callersFunctionprint_text_animated
r"""Prints the given text with an animated effect. Args: text (str): The text to print. delay (float, optional): The delay betwee
demo/Paper2Poster/camel/utils/commons.py:51
↓ 12 callersMethodquery
r"""Executes a Neo4j Cypher declarative query in a database. Args: query (str): The Cypher query to be executed. para
camel/storages/graph_storages/neo4j_graph.py:212
↓ 12 callersMethodquery
r"""Executes a Neo4j Cypher declarative query in a database. Args: query (str): The Cypher query to be executed. para
demo/Paper2Poster/camel/storages/graph_storages/neo4j_graph.py:212
↓ 11 callersMethodmake_assistant_message
r"""Create a new assistant message. Args: role_name (str): The name of the assistant role. content (str): The content
camel/messages/base.py:123
↓ 11 callersMethodmake_assistant_message
r"""Create a new assistant message. Args: role_name (str): The name of the assistant role. content (str): The content
demo/Paper2Poster/camel/messages/base.py:123
↓ 11 callersFunctionrun_code
Execute Python code and capture stdout as well as the full stack trace on error. Forces __name__ = "__main__" so that if __name__ == "__main_
utils/wei_utils.py:220
↓ 10 callersMethod_close_table
(self, doc: DoclingDocument)
docling/backend/md_backend.py:102
↓ 10 callersMethod_close_table
(self, doc: DoclingDocument)
demo/Paper2Poster/docling/backend/md_backend.py:102
↓ 10 callersFunction_find_last_pipeline_zip
()
demo/app.py:933
↓ 10 callersMethodclear
r"""Clears all messages from the memory.
camel/memories/base.py:49
↓ 10 callersFunctionemu_to_inches
(emu: int)
utils/pptx_utils.py:1224
↓ 10 callersMethodget_openai_tool_schema
r"""Gets the OpenAI tool schema for this function. This method returns the OpenAI tool schema associated with this function, after va
camel/toolkits/function_tool.py:452
↓ 10 callersMethodget_openai_tool_schema
r"""Gets the OpenAI tool schema for this function. This method returns the OpenAI tool schema associated with this function, after va
demo/Paper2Poster/camel/toolkits/function_tool.py:452
↓ 10 callersMethodinsert
(self, min_val: float, max_val: float, id: int)
docling/utils/layout_postprocessor.py:131
↓ 10 callersMethodinsert
(self, min_val: float, max_val: float, id: int)
demo/Paper2Poster/docling/utils/layout_postprocessor.py:131
↓ 10 callersMethodstart
r"""Start the node.
demo/Paper2Poster/camel/societies/workforce/base.py:53
↓ 10 callersMethodto_html
Convert the table data to HTML, ensuring each row and cell is represented.
utils/src/presentation.py:929
↓ 10 callersMethodto_html
Convert the table data to HTML, ensuring each row and cell is represented.
demo/Paper2Poster/utils/src/presentation.py:929
↓ 9 callersMethod_process_inline_text
( self, parent_item: Optional[NodeItem], doc: DoclingDocument )
docling/backend/md_backend.py:159
↓ 9 callersMethod_process_inline_text
( self, parent_item: Optional[NodeItem], doc: DoclingDocument )
demo/Paper2Poster/docling/backend/md_backend.py:159
↓ 9 callersMethodclear
r"""Clears all messages from the memory.
demo/Paper2Poster/camel/memories/base.py:49
↓ 9 callersFunctiondebug_compile_last_pipeline_zip
Find the most recent runs/*/output.zip from pipeline, compile, and return preview HTML + PDF path.
demo/app.py:951
↓ 9 callersFunctionget_text_embedding
Generate text embeddings for a list of text strings. Args: text (list[str]): A list of text strings. model: The model used f
utils/src/model_utils.py:143
↓ 8 callersFunctionemu_to_inches
(emu: int)
demo/Paper2Poster/utils/pptx_utils.py:1224
next →1–100 of 4,860, ranked by callers