llama-index-tools-python-file 0.1.1__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-index-tools-python-file
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: llama-index tools python_file integration
5
5
  License: MIT
6
6
  Author: Your Name
7
7
  Author-email: you@example.com
8
- Requires-Python: >=3.8.1,<3.12
8
+ Maintainer: ajhofmann
9
+ Requires-Python: >=3.8.1,<4.0
9
10
  Classifier: License :: OSI Approved :: MIT License
10
11
  Classifier: Programming Language :: Python :: 3
11
12
  Classifier: Programming Language :: Python :: 3.9
12
13
  Classifier: Programming Language :: Python :: 3.10
13
14
  Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
14
16
  Requires-Dist: llama-index-core (>=0.10.1,<0.11.0)
15
17
  Description-Content-Type: text/markdown
16
18
 
@@ -34,14 +36,14 @@ agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
34
36
 
35
37
  agent.chat(
36
38
  """Load the eig, transpose and solve functions from the python file,
37
- and then write a function defintion using only builtin python types (List, float, Tuple)
39
+ and then write a function definition using only builtin python types (List, float, Tuple)
38
40
  with a short 5-10 line doc string tool prompts for the functions that only has a small description and arguments
39
41
  """
40
42
  )
41
43
  ```
42
44
 
43
45
  `function_definitions`: Get all of the function definitions from the Python file
44
- `get_function`: Get a specfic function definiton from the Python file
46
+ `get_function`: Get a specific function definition from the Python file
45
47
  `get_functions`: Get a list of functions from the python file
46
48
 
47
49
  This loader is designed to be used as a way to load data as a Tool in a Agent. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.
@@ -18,14 +18,14 @@ agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
18
18
 
19
19
  agent.chat(
20
20
  """Load the eig, transpose and solve functions from the python file,
21
- and then write a function defintion using only builtin python types (List, float, Tuple)
21
+ and then write a function definition using only builtin python types (List, float, Tuple)
22
22
  with a short 5-10 line doc string tool prompts for the functions that only has a small description and arguments
23
23
  """
24
24
  )
25
25
  ```
26
26
 
27
27
  `function_definitions`: Get all of the function definitions from the Python file
28
- `get_function`: Get a specfic function definiton from the Python file
28
+ `get_function`: Get a specific function definition from the Python file
29
29
  `get_functions`: Get a list of functions from the python file
30
30
 
31
31
  This loader is designed to be used as a way to load data as a Tool in a Agent. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.
@@ -13,7 +13,7 @@ class PythonFileToolSpec(BaseToolSpec):
13
13
 
14
14
  def function_definitions(self, external: Optional[bool] = True) -> str:
15
15
  """
16
- Use this function to get the name and arguments of all function defintions in the python file.
16
+ Use this function to get the name and arguments of all function definitions in the python file.
17
17
 
18
18
  Args:
19
19
  external (Optional[bool]): Defaults to true. If false, this function will also return functions that start with _
@@ -7,6 +7,13 @@ check-filenames = true
7
7
  check-hidden = true
8
8
  skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
9
9
 
10
+ [tool.llamahub]
11
+ contains_example = false
12
+ import_path = "llama_index.tools.python_file"
13
+
14
+ [tool.llamahub.class_authors]
15
+ PythonFileToolSpec = "ajhofmann"
16
+
10
17
  [tool.mypy]
11
18
  disallow_untyped_defs = true
12
19
  exclude = ["_static", "build", "examples", "notebooks", "venv"]
@@ -16,13 +23,15 @@ python_version = "3.8"
16
23
  [tool.poetry]
17
24
  authors = ["Your Name <you@example.com>"]
18
25
  description = "llama-index tools python_file integration"
26
+ exclude = ["**/BUILD"]
19
27
  license = "MIT"
28
+ maintainers = ["ajhofmann"]
20
29
  name = "llama-index-tools-python-file"
21
30
  readme = "README.md"
22
- version = "0.1.1"
31
+ version = "0.1.3"
23
32
 
24
33
  [tool.poetry.dependencies]
25
- python = ">=3.8.1,<3.12"
34
+ python = ">=3.8.1,<4.0"
26
35
  llama-index-core = "^0.10.1"
27
36
 
28
37
  [tool.poetry.group.dev.dependencies]