From afddb543f804d1c7124ba33e55d7b2a0c147d3d0 Mon Sep 17 00:00:00 2001 From: rawkintrevo Date: Thu, 6 Feb 2025 09:45:31 -0600 Subject: [PATCH 1/3] Remove bulk imports Signed-off-by: rawkintrevo --- gofannon/arxiv/__init__.py | 2 -- gofannon/basic_math/__init__.py | 6 +----- gofannon/github/__init__.py | 7 ------- gofannon/reasoning/__init__.py | 3 --- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/gofannon/arxiv/__init__.py b/gofannon/arxiv/__init__.py index 62c7e50..e69de29 100644 --- a/gofannon/arxiv/__init__.py +++ b/gofannon/arxiv/__init__.py @@ -1,2 +0,0 @@ -from.search import Search -from.get_article import GetArticle \ No newline at end of file diff --git a/gofannon/basic_math/__init__.py b/gofannon/basic_math/__init__.py index b20c8e4..8b13789 100644 --- a/gofannon/basic_math/__init__.py +++ b/gofannon/basic_math/__init__.py @@ -1,5 +1 @@ -from.exponents import Exponents -from.multiplication import Multiplication -from.division import Division -from.addition import Addition -from.subtraction import Subtraction + diff --git a/gofannon/github/__init__.py b/gofannon/github/__init__.py index 16fdc51..fd40910 100644 --- a/gofannon/github/__init__.py +++ b/gofannon/github/__init__.py @@ -1,11 +1,4 @@ -from.create_issue import CreateIssue -from.get_repo_contents import GetRepoContents -from.commit_file import CommitFile -from.commit_files import CommitFiles -from.search import SearchRepos -from .read_issue import ReadIssue - diff --git a/gofannon/reasoning/__init__.py b/gofannon/reasoning/__init__.py index 5afe91e..e69de29 100644 --- a/gofannon/reasoning/__init__.py +++ b/gofannon/reasoning/__init__.py @@ -1,3 +0,0 @@ -from .sequential_cot import SequentialCoT -from .hierarchical_cot import HierarchicalCoT -from .tree_of_thought import TreeOfThought \ No newline at end of file From cb3fa1719e6328f1df4da5b180fb0d30e6e15643 Mon Sep 17 00:00:00 2001 From: rawkintrevo Date: Thu, 6 Feb 2025 09:50:46 -0600 Subject: [PATCH 2/3] pyproject.toml version issue Signed-off-by: rawkintrevo --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a8220f3..5ee15c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gofannon" -version = "0.1.0-prerelease" +version = "0.1.0" description = "A collection of tools for LLMs" authors = ["Trevor Grant "] license = "ASFv2" From d359fe4b05d5d23f8a54a342569107375662d61e Mon Sep 17 00:00:00 2001 From: rawkintrevo Date: Thu, 6 Feb 2025 10:01:13 -0600 Subject: [PATCH 3/3] add tests Signed-off-by: rawkintrevo --- tests/test_arxiv.py | 3 ++- tests/test_basic_math.py | 6 +++++- tests/test_github.py | 2 +- tests/test_integrations.py | 2 +- tests/test_reasoning.py | 4 +++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/test_arxiv.py b/tests/test_arxiv.py index f51a115..70ced42 100644 --- a/tests/test_arxiv.py +++ b/tests/test_arxiv.py @@ -1,5 +1,6 @@ import pytest -from gofannon.arxiv import GetArticle, Search +from gofannon.arxiv.get_article import GetArticle +from gofannon.arxiv.search import Search def test_get_article(): get_article = GetArticle() diff --git a/tests/test_basic_math.py b/tests/test_basic_math.py index 4577a0c..4664bac 100644 --- a/tests/test_basic_math.py +++ b/tests/test_basic_math.py @@ -1,5 +1,9 @@ import pytest -from gofannon.basic_math import Addition, Subtraction, Multiplication, Division, Exponents +from gofannon.basic_math.addition import Addition +from gofannon.basic_math.subtraction import Subtraction +from gofannon.basic_math.multiplication import Multiplication +from gofannon.basic_math.division import Division +from gofannon.basic_math.exponents import Exponents def test_addition(): addition = Addition() diff --git a/tests/test_github.py b/tests/test_github.py index ca8aaac..792127f 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -1,6 +1,6 @@ import pytest from os import getenv -from gofannon.github import CommitFile, CreateIssue, GetRepoContents, ReadIssue, SearchRepos +# from gofannon.github import CommitFile, CreateIssue, GetRepoContents, ReadIssue, SearchRepos # def test_commit_file(): # commit_file = CommitFile(api_key=getenv('TEST_GITHUB_TOKEN')) diff --git a/tests/test_integrations.py b/tests/test_integrations.py index 6a0b9f2..3bde363 100644 --- a/tests/test_integrations.py +++ b/tests/test_integrations.py @@ -2,7 +2,7 @@ import pytest from gofannon.base import BaseTool -from gofannon.basic_math import Addition +from gofannon.basic_math.addition import Addition # Add DummyTool subclass implementing abstract methods class DummyTool(BaseTool): diff --git a/tests/test_reasoning.py b/tests/test_reasoning.py index f8dd3f6..3c485d7 100644 --- a/tests/test_reasoning.py +++ b/tests/test_reasoning.py @@ -1,6 +1,8 @@ import pytest from os import getenv -from gofannon.reasoning import HierarchicalCoT, SequentialCoT, TreeOfThought +from gofannon.reasoning.hierarchical_cot import HierarchicalCoT +from gofannon.reasoning.sequential_cot import SequentialCoT +from gofannon.reasoning.tree_of_thought import TreeOfThought depth_chart = [ {'model_name' : "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo", 'base_url' : "https://api.deepinfra.com/v1/openai",