MCPcopy Create free account

hub / github.com/AutoPackAI/autopack / functions

Functions130 in github.com/AutoPackAI/autopack

↓ 14 callersMethodglobal_config
(cls)
autopack/pack_config.py:65
↓ 8 callersFunctionget_pack_details
(pack_id: str, remote=False)
autopack/api.py:15
↓ 7 callersFunctionfind_or_create_autopack_dir
Try to find a suitable .autopack directory. Tries in this order: 1. Directory specified in environment variable AUTOPACK_DIR 2. Existing .auto
autopack/utils.py:23
↓ 6 callersFunctionget_pack
Get a pack based on its ID. Args: pack_id (str): The ID of the pack to fetch. remote (bool, Optional): If True, will make ne
autopack/get_pack.py:75
↓ 4 callersFunctioninstall_pack
(pack_id: str, quiet=True, config: PackConfig = PackConfig.global_config())
autopack/installation.py:86
↓ 4 callersMethodrun
Execute the _run function of the subclass, verifying the arguments. (Will eventually do callbacks or some such) Args: **kwargs (dict)
autopack/pack.py:60
↓ 4 callersFunctiontry_get_pack
Get a pack based on its ID. Same as `get_pack` but does not raise an Exception. If there is a problem finding or loading a pack it will retur
autopack/get_pack.py:13
↓ 3 callersMethodarun
Asynchronously execute the _arun function of the subclass, verifying the arguments. (Will eventually do callbacks or some such) Args:
autopack/pack.py:79
↓ 3 callersFunctioncall_llm
Call the given LLM with the specified prompt. The function supports both callable LLMs and LLMs that are instances of the BaseChatModel cla
autopack/utils.py:190
↓ 3 callersMethodcreate
(cls, **kwargs)
autopack/pack_config.py:79
↓ 3 callersFunctionget_all_installed_packs
Returns all of the packs that are currently installed
autopack/get_pack.py:47
↓ 3 callersMethodinit_filesystem_manager
(self, file_manager: type["FileManager"] = None)
autopack/pack_config.py:68
↓ 2 callersMethodcall_llm
(self, prompt: str)
autopack/pack.py:115
↓ 2 callersFunctionextract_unique_directory_name
(repo_url: str)
autopack/utils.py:184
↓ 2 callersFunctionfunctions_bulleted_list
(packs: list[PackResponse])
autopack/selection.py:14
↓ 2 callersFunctionget_all_pack_info
()
autopack/get_pack.py:33
↓ 2 callersFunctioninstall_dependency
(dependency: str, quiet=True)
autopack/installation.py:29
↓ 2 callersFunctionload_metadata_file
Return the parsed contents of the metadata file, returning an empty dict if not found or otherwise failed
autopack/utils.py:45
↓ 2 callersFunctionmain
()
autopack/cli.py:27
↓ 2 callersFunctionpack_search
(query: str)
autopack/api.py:65
↓ 2 callersFunctionrun_args_from_args_schema
(args_schema: type[BaseModel])
autopack/utils.py:126
↓ 2 callersMethodset_global_config
Set the default global config to either a PackConfig object of your choice, or `None` to use the default.
autopack/pack_config.py:57
↓ 2 callersFunctiontry_get_packs
Get a list of packs based on their IDs Args: pack_ids (list[str]): The IDs of the packs to fetch. quiet (bool, Optional): If
autopack/get_pack.py:54
↓ 2 callersMethodvalidate_tool_args
Validate the arguments against the args_schema model. Args: kwargs (dict[str, Any]): The arguments to validate. Returns:
autopack/pack.py:129
↓ 1 callersMethod_arun
(self, *args, **kwargs)
autopack/pack.py:105
↓ 1 callersMethod_run
(self, *args, **kwargs)
autopack/pack.py:101
↓ 1 callersFunctionacall_llm
Asynchronously call the given LLM with the specified prompt. The function supports both callable LLMs and LLMs that are instances of the Ba
autopack/utils.py:216
↓ 1 callersMethodacall_llm
(self, prompt: str)
autopack/pack.py:120
↓ 1 callersFunctionask_to_install_dependencies
(dependencies: list[str], force=False, quiet=True)
autopack/installation.py:44
↓ 1 callersMethoddelete_file
Deletes a file from the virtual file system in RAM. Args: file_path (str): The path to the file to be deleted. Returns:
autopack/filesystem_emulation/ram_file_manager.py:48
↓ 1 callersFunctionfetch_pack_object
(pack_data: PackResponse)
autopack/utils.py:83
↓ 1 callersFunctionfind_module
(pack_data: PackResponse)
autopack/utils.py:68
↓ 1 callersFunctionformat_pack_to_openai_function
(pack: "Pack")
autopack/utils.py:108
↓ 1 callersFunctionget_pack_details_locally
(pack_id: str)
autopack/api.py:22
↓ 1 callersFunctionget_pack_details_remotely
(pack_id: str)
autopack/api.py:43
↓ 1 callersMethodinit_langchain_tool
(self)
autopack/pack.py:143
↓ 1 callersFunctioninstall_from_git
(pack_data: PackResponse, quiet=True)
autopack/installation.py:61
↓ 1 callersFunctionis_dependency_installed
(dependency: str)
autopack/installation.py:21
↓ 1 callersMethodlist_files
Lists all files in the specified directory in the virtual file system in RAM. Args: dir_path (str): The path to the directory to
autopack/filesystem_emulation/ram_file_manager.py:66
↓ 1 callersFunctionparse_args
()
autopack/cli.py:7
↓ 1 callersFunctionparse_selection_response
Parse the response from the LLM and extract pack IDs. The response is split by commas and newlines, and any arguments provided in the respon
autopack/selection.py:106
↓ 1 callersFunctionprint_search
(query: str)
autopack/search.py:6
↓ 1 callersMethodread_file
Reads a file from the virtual file system in RAM. Args: file_path (str): The path to the file to be read. Returns:
autopack/filesystem_emulation/ram_file_manager.py:15
↓ 1 callersFunctionselect_packs
Given a user input describing the task they wish to accomplish, return a list of Pack IDs that the given LLM thinks will be suitable for this task
autopack/selection.py:68
↓ 1 callersFunctionselect_packs_prompt
Generate a prompt for the pack selection process based on the task description and an optional function request. Args: packs: (list[
autopack/selection.py:43
↓ 1 callersFunctionupdate_metadata_file
(pack_id: str, pack_response: PackResponse)
autopack/installation.py:79
↓ 1 callersMethodwrite_file
Writes to a file in the virtual file system in RAM. Args: file_path (str): The path to the file to be written to. con
autopack/filesystem_emulation/ram_file_manager.py:32
↓ 1 callersFunctionwrite_metadata_file
(data: dict[str, Any])
autopack/utils.py:60
Method__init__
(self, **data)
autopack/pack.py:44
Method__init__
(self, **kwargs)
autopack/langchain_wrapper.py:12
Method__init__
(self, config: PackConfig = PackConfig.global_config())
autopack/filesystem_emulation/workspace_file_manager.py:15
Method__init__
(self, config: PackConfig = PackConfig.global_config())
autopack/filesystem_emulation/filesystem_file_manager.py:15
Method__init__
(self, config: PackConfig = PackConfig.global_config())
autopack/filesystem_emulation/ram_file_manager.py:11
Method__init__
(self, config: "PackConfig" = None)
autopack/filesystem_emulation/file_manager.py:12
Method_arun
(self, text: str)
tests/data/packs/summarization_pack.py:19
Method_arun
(self, query: str)
tests/data/packs/noop.py:19
Method_arun
(self, *args, **kwargs)
autopack/langchain_wrapper.py:22
Method_run
(self, text: str)
tests/data/packs/summarization_pack.py:16
Method_run
(self, query: str)
tests/data/packs/noop.py:16
Method_run
(self, *args, **kwargs)
autopack/langchain_wrapper.py:19
Methodadelete_file
Deletes a file from the workspace directory on the local file system asynchronously. Args: file_path (str): The path to the file
autopack/filesystem_emulation/workspace_file_manager.py:106
Methodadelete_file
Deletes a file from the local file system asynchronously. Args: file_path (str): The absolute path to the file to be deleted.
autopack/filesystem_emulation/filesystem_file_manager.py:102
Methodadelete_file
(self, file_path: str)
autopack/filesystem_emulation/ram_file_manager.py:63
Methodadelete_file
(self, file_path: str)
autopack/filesystem_emulation/file_manager.py:38
Methodalist_files
Lists all files in the specified directory in the workspace directory on the local file system asynchronously. Args: dir_path (st
autopack/filesystem_emulation/workspace_file_manager.py:138
Methodalist_files
Lists all files in the specified directory on the local file system asynchronously. Args: dir_path (str): The absolute path to th
autopack/filesystem_emulation/filesystem_file_manager.py:134
Methodalist_files
(self, dir_path: str)
autopack/filesystem_emulation/ram_file_manager.py:87
Methodalist_files
(self, dir_path: str)
autopack/filesystem_emulation/file_manager.py:46
Methodaread_file
Reads a file from the workspace directory on the local file system asynchronously. Args: file_path (str): The path to the file to
autopack/filesystem_emulation/workspace_file_manager.py:38
Methodaread_file
Reads a file from the local file system asynchronously. Args: file_path (str): The absolute path to the file to be read.
autopack/filesystem_emulation/filesystem_file_manager.py:34
Methodaread_file
(self, file_path: str)
autopack/filesystem_emulation/ram_file_manager.py:29
Methodaread_file
(self, file_path: str)
autopack/filesystem_emulation/file_manager.py:22
Methodargs
Turn the args schema into a dict that's easier to work with
autopack/pack.py:109
Methodautomatically_install_dependencies
(self)
autopack/pack_config.py:85
Methodawrite_file
Writes to a file in the workspace directory on the local file system. Args: file_path (str): The path to the file to be written t
autopack/filesystem_emulation/workspace_file_manager.py:72
Methodawrite_file
Writes to a file on the local file system. Args: file_path (str): The absolute path to the file to be written to. con
autopack/filesystem_emulation/filesystem_file_manager.py:68
Methodawrite_file
(self, file_path: str, content: str)
autopack/filesystem_emulation/ram_file_manager.py:45
Methodawrite_file
(self, file_path: str, content: str)
autopack/filesystem_emulation/file_manager.py:30
Methoddelete_file
Deletes a file from the workspace directory on the local file system. Args: file_path (str): The path to the file to be deleted,
autopack/filesystem_emulation/workspace_file_manager.py:90
Methoddelete_file
Deletes a file from the local file system. Args: file_path (str): The absolute path to the file to be deleted. Returns:
autopack/filesystem_emulation/filesystem_file_manager.py:86
Methoddelete_file
(self, file_path: str)
autopack/filesystem_emulation/file_manager.py:34
Methodfilesystem_manager
(self)
autopack/pack.py:126
Functionformat_packs_to_openai_functions
(packs: list["Pack"])
autopack/utils.py:104
Functionfunctions_bulleted_list
(packs: list[Union[PackResponse, type["Pack"]]])
autopack/utils.py:145
Functionfunctions_summary
(packs: list["Pack"])
autopack/utils.py:180
Functiongo_to_tmpdir
(request)
tests/conftest.py:11
Functioninstalled_valid_pack
(mock_requests_get, pack_response_valid)
tests/test_get_pack.py:28
Methodis_single_input
(self)
autopack/langchain_wrapper.py:25
Methodlist_files
Lists all files in the specified directory in the workspace directory on the local file system. Args: dir_path (str): The path to
autopack/filesystem_emulation/workspace_file_manager.py:122
Methodlist_files
Lists all files in the specified directory on the local file system. Args: dir_path (str): The absolute path to the directory to
autopack/filesystem_emulation/filesystem_file_manager.py:118
Methodlist_files
(self, dir_path: str)
autopack/filesystem_emulation/file_manager.py:42
Functionload_env
()
tests/conftest.py:22
Functionmock_allm
(text_in: str)
tests/test_pack_use.py:18
Functionmock_llm
(text_in: str)
tests/test_pack_use.py:8
Functionmock_requests_get
(mocker)
tests/conftest.py:37
Functionpack_response_invalid_class
(pack_response_valid)
tests/test_get_pack.py:45
Functionpack_response_invalid_path
(pack_response_valid)
tests/test_get_pack.py:38
Functionpack_response_valid
()
tests/test_get_pack.py:13
Methodread_file
Reads a file from the workspace directory on the local file system. Args: file_path (str): The path to the file to be read, relat
autopack/filesystem_emulation/workspace_file_manager.py:22
Methodread_file
Reads a file from the local file system. Args: file_path (str): The absolute path to the file to be read. Returns:
autopack/filesystem_emulation/filesystem_file_manager.py:18
next →1–100 of 130, ranked by callers