MCPcopy Create free account

hub / github.com/UCSB-AI/EvoPresent / functions

Functions2,738 in github.com/UCSB-AI/EvoPresent

↓ 66 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
Evopresent/camel/prompts/base.py:109
↓ 60 callersMethodcreate
r"""Creates an instance of `BaseModelBackend` of the specified type. Args: model_platform (ModelPlatformType): Platform from whic
Evopresent/camel/models/model_factory.py:52
↓ 56 callersMethodsub
r"""Do subtraction between two numbers. Args: a (float): The minuend in subtraction. b (float): The subtrahend in sub
Evopresent/camel/toolkits/math_toolkit.py:40
↓ 52 callersMethoddecode
Transform a sequence of int ids into a human-readable string. EOS is not expected in ids. Args: ids: list of integers to be
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:78
↓ 51 callersMethodas_dict
r"""Convert the current configuration to a dictionary. This method converts the current configuration object to a dictionary represen
Evopresent/camel/configs/base_config.py:64
↓ 36 callersMethodfind
(self, x)
Evopresent/docling/utils/layout_postprocessor.py:22
↓ 35 callersMethodrun
r"""Runs inference of Yi chat completion. Args: messages (List[OpenAIMessage]): Message list with the chat history
Evopresent/camel/models/yi_model.py:84
↓ 30 callersMethodpad
(self)
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:245
↓ 29 callersMethodjson
(self, *args, **kwargs)
Evopresent/camel/personas/persona.py:92
↓ 28 callersMethodarea
Get the area of the shape element. Returns: float: The area in square points.
Evopresent/utils/src/presentation.py:349
↓ 28 callersMethodload
r"""Load the benchmark data. Args: force_download (bool): Whether to force download the data. Returns: BaseB
Evopresent/camel/benchmarks/base.py:75
↓ 28 callersMethodstep
r"""Performs a single step of the agent.
Evopresent/camel/agents/base.py:27
↓ 26 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
Evopresent/camel/messages/base.py:78
↓ 26 callersMethodsave
Save the presentation to a file. Args: file_path (str): The file path to save the presentation. layout_only
Evopresent/utils/src/presentation.py:1231
↓ 24 callersMethodmean
(self)
Evopresent/docling/utils/profiling.py:32
↓ 23 callersMethodget_function_name
r"""Gets the name of the function from the OpenAI tool schema. Returns: str: The name of the function.
Evopresent/camel/toolkits/function_tool.py:500
↓ 22 callersMethodclose
r"""Closes the Redis client asynchronously.
Evopresent/camel/storages/key_value_storages/redis.py:76
↓ 20 callersMethod_handle_api_error
r"""Handle API operation errors consistently. Args: error (Exception): The caught exception. operation (str): Descrip
Evopresent/camel/toolkits/openbb_toolkit.py:55
↓ 18 callersMethodadd
r"""Adds a new tool to the runtime.
Evopresent/camel/runtime/base.py:29
↓ 18 callersMethodparse
Parse the first table from an xml content. Returns: A docling table data.
Evopresent/docling/backend/xml/uspto_backend.py:1664
↓ 17 callersMethod__init__
(self, kernel, pad, upsample_factor=1)
video_generation/models/float/styledecoder.py:109
↓ 17 callersMethod_execute_ast
(self, expression: ast.AST)
Evopresent/camel/interpreters/internal_python_interpreter.py:238
↓ 17 callersMethodmodel_dump
(self, **kwargs)
Evopresent/camel/messages/conversion/conversation_models.py:90
↓ 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
Evopresent/camel/logger.py:104
↓ 15 callersFunctionget_project_root
()
Evopresent/evopresent/ppt/gen_pptx_code.py:27
↓ 14 callersMethodcopy
r"""Create a deep copy of this File
Evopresent/camel/loaders/base_io.py:135
↓ 14 callersMethodget_image
( self, scale: float = 1.0, cropbox: Optional[BoundingBox] = None )
Evopresent/docling/datamodel/base_models.py:233
↓ 13 callersMethodencode
Encodes the input features into the output space. Args: extract_features (torch.Tensor): The extracted features from the
video_generation/models/wav2vec2.py:118
↓ 13 callersMethodis_valid
(self)
Evopresent/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
Evopresent/camel/storages/graph_storages/nebula_graph.py:138
↓ 12 callersMethodclear
r"""Clears all messages from the memory.
Evopresent/camel/memories/base.py:49
↓ 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
Evopresent/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
Evopresent/camel/storages/graph_storages/neo4j_graph.py:212
↓ 11 callersMethodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
train/src/trainer/grpo_trainer.py:1011
↓ 11 callersMethodmake_assistant_message
r"""Create a new assistant message. Args: role_name (str): The name of the assistant role. content (str): The content
Evopresent/camel/messages/base.py:123
↓ 10 callersMethod_close_table
(self, doc: DoclingDocument)
Evopresent/docling/backend/md_backend.py:102
↓ 10 callersMethodconvert
r"""Structures the input text into the expected response format. Args: text (str): The input text to be structured. o
Evopresent/camel/schemas/base.py:29
↓ 10 callersFunctionemu_to_inches
(emu: int)
Evopresent/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
Evopresent/camel/toolkits/function_tool.py:452
↓ 10 callersMethodinsert
(self, min_val: float, max_val: float, id: int)
Evopresent/docling/utils/layout_postprocessor.py:131
↓ 9 callersMethod_process_inline_text
( self, parent_item: Optional[NodeItem], doc: DoclingDocument )
Evopresent/docling/backend/md_backend.py:159
↓ 8 callersMethod__init__
(self, hidden_size, num_layers, ffn_kernel_size=9, dropout=0.0, num_heads=2, use_pos_embed=Tr
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:677
↓ 8 callersMethod__init__
(self, kernel, pad, upsample_factor=1)
video_generation/models/float/encoder.py:57
↓ 8 callersMethodget_page_image
( self, scale: float = 1, cropbox: Optional[BoundingBox] = None )
Evopresent/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
Evopresent/camel/toolkits/stripe_toolkit.py:239
↓ 8 callersMethodstep
r"""Record a message. Args: role (Literal["user", "assistant", "system", "tool"]): The role of the message.
Evopresent/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
Evopresent/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
Evopresent/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
Evopresent/docling/backend/xml/uspto_backend.py:476
↓ 7 callersMethod_get_per_token_logps
(self, model, input_ids, attention_mask, pixel_values, image_grid_thw)
train/src/trainer/grpo_trainer.py:467
↓ 7 callersMethod_login_slack
r"""Authenticate using the Slack API. Args: slack_token (str, optional): The Slack API token. If not provided, it
Evopresent/camel/toolkits/slack_toolkit.py:41
↓ 7 callersMethodapply
Apply the closure to a shape. Args: shape (BaseShape): The shape to apply the closure to.
Evopresent/utils/src/presentation.py:63
↓ 7 callersMethodcreate_new_instance
r"""Create a new instance of the :obj:`BaseMessage` with updated content. Args: content (str): The new content value.
Evopresent/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
Evopresent/docling/utils/accelerator_utils.py:10
↓ 7 callersMethoddownload_models
( local_dir: Optional[Path] = None, force: bool = False, progress: bool = False, )
Evopresent/docling/models/layout_model.py:79
↓ 7 callersMethodevaluate
(self, sample_id, model_output)
Evopresent/camel/benchmarks/apibank.py:497
↓ 7 callersMethodexecute
r"""Executes the code string using the provided interpreter. This method runs a code string through either a specified interpreter or
Evopresent/camel/prompts/base.py:168
↓ 7 callersMethodfrom_file
Parse a Presentation from a file.
Evopresent/utils/src/presentation.py:1188
↓ 7 callersMethodin_proj_v
(self, value)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:454
↓ 7 callersMethodparameters
r"""Getter method for the property :obj:`parameters`. Returns: Dict[str, Any]: the dictionary containing information of
Evopresent/camel/toolkits/function_tool.py:747
↓ 7 callersMethodreset
r"""Reset the collector. Args: reset_agents (bool, optional): Whether to reset the agents. Defaults to True.
Evopresent/camel/data_collector/base.py:173
↓ 6 callersMethod__init__
(self, c, num_heads, dropout, attention_dropout=0.1, relu_dropout=0.1, kernel_size=9, ffn_hid
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:544
↓ 6 callersMethod__init__
(self, mult, r)
video_generation/MegaTTS3/tts/modules/wavvae/decoder/hifigan_modules.py:36
↓ 6 callersMethod_clean_data
Reset the variables from stream data.
Evopresent/docling/backend/xml/uspto_backend.py:497
↓ 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
Evopresent/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
Evopresent/camel/toolkits/reddit_toolkit.py:64
↓ 6 callersFunctionconvert_pad_shape
(pad_shape)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:23
↓ 6 callersMethodfrom_shape
Extract table data (rows, columns, text in each cell, etc.) from the table shape.
Evopresent/utils/src/presentation.py:865
↓ 6 callersMethodgenerate
r"""Execute the entire pipeline to generate machine instructions and instances.
Evopresent/camel/datagen/self_instruct/self_instruct.py:366
↓ 6 callersMethodget_inline_style
Get the inline style for the shape element. Args: style_args (StyleArg): The style arguments for HTML conversion.
Evopresent/utils/src/presentation.py:414
↓ 6 callersMethodget_level
Return the first None index.
Evopresent/docling/backend/msword_backend.py:151
↓ 6 callersFunctionget_padding
(kernel_size, dilation=1)
video_generation/MegaTTS3/tts/modules/wavvae/decoder/hifigan_modules.py:31
↓ 6 callersMethodget_tools
r"""Returns a list of all tools in the runtime.
Evopresent/camel/runtime/base.py:43
↓ 6 callersMethodin_proj_k
(self, key)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:444
↓ 6 callersMethodin_proj_q
(self, query)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:435
↓ 6 callersFunctionprocess_image_to_base64
Process image to base64 with constraints matching trainer. Handles both upscaling and downscaling as needed.
train/eval.py:113
↓ 6 callersMethodreset
r"""Reset Task to initial state.
Evopresent/camel/tasks/task.py:118
↓ 6 callersMethodreset
r"""Resets the agent to its initial state.
Evopresent/camel/agents/base.py:22
↓ 6 callersMethodreset
r"""Reset the retriever. Some benchmarks may require resetting the retriever after each query. Args: **kwargs: Ad
Evopresent/camel/benchmarks/gaia.py:55
↓ 6 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_
Evopresent/utils/wei_utils.py:219
↓ 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
Evopresent/camel/storages/key_value_storages/json.py:69
↓ 6 callersMethodto_html
Convert the table data to HTML, ensuring each row and cell is represented.
Evopresent/utils/src/presentation.py:929
↓ 5 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx=None)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/layers.py:59
↓ 5 callersFunctionWNConv1d
(*args, **kwargs)
video_generation/MegaTTS3/tts/modules/wavvae/decoder/hifigan_modules.py:91
↓ 5 callersMethod__init__
(self, dim)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:53
↓ 5 callersMethod__init__
(self, in_channels, out_channels, filter_channels, kernel_size, p_dropout=0., activation=None)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:255
↓ 5 callersMethod__init__
(self, hidden_size, dim_w)
video_generation/models/float/FMT.py:176
↓ 5 callersMethod_get_current_parent
(self, parents)
Evopresent/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
Evopresent/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' (
Evopresent/utils/pptx_utils.py:1975
↓ 5 callersFunctionapply_fill
(shape: BaseShape, fill_xml: str)
Evopresent/utils/src/utils.py:216
↓ 5 callersFunctionbottom
(rect)
Evopresent/utils/wei_utils.py:751
↓ 5 callersMethodcanonicalize_path
(file_path: PurePath)
Evopresent/camel/storages/object_storages/base.py:37
↓ 5 callersMethodcreate
r"""A class method to construct a `VectorDBQueryResult` instance.
Evopresent/camel/storages/vectordb_storages/base.py:81
↓ 5 callersMethoddecompose
r"""Decompose a task to a list of sub-tasks. It can be used for data generation and planner of agent. Args: agent (ChatAg
Evopresent/camel/tasks/task.py:212
↓ 5 callersFunctiondict_to_object
(dict: dict, obj: object, exclude=None)
Evopresent/utils/src/utils.py:306
↓ 5 callersMethoddraw_ocr_rects_and_cells
(self, conv_res, page, ocr_rects, show: bool = False)
Evopresent/docling/models/base_ocr_model.py:139
↓ 5 callersMethodencode
Transform a human-readable string into a sequence of int ids. The ids should be in the range [num_reserved_ids, vocab_size). Ids [0,
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:62
↓ 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
Evopresent/camel/memories/base.py:133
↓ 5 callersMethodget_ocr_rects
(self, page: Page)
Evopresent/docling/models/base_ocr_model.py:28
next →1–100 of 2,738, ranked by callers