Skip to content

Commit

Permalink
Merge pull request #22 from rawkintrevo/21
Browse files Browse the repository at this point in the history
Closes #21 - Only include specified tools
  • Loading branch information
rawkintrevo authored Feb 6, 2025
2 parents 9548e91 + d359fe4 commit be145c7
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 23 deletions.
2 changes: 0 additions & 2 deletions gofannon/arxiv/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
from.search import Search
from.get_article import GetArticle
6 changes: 1 addition & 5 deletions gofannon/basic_math/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from.exponents import Exponents
from.multiplication import Multiplication
from.division import Division
from.addition import Addition
from.subtraction import Subtraction

7 changes: 0 additions & 7 deletions gofannon/github/__init__.py
Original file line number Diff line number Diff line change
@@ -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




3 changes: 0 additions & 3 deletions gofannon/reasoning/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from .sequential_cot import SequentialCoT
from .hierarchical_cot import HierarchicalCoT
from .tree_of_thought import TreeOfThought
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "ASFv2"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_arxiv.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
6 changes: 5 additions & 1 deletion tests/test_basic_math.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_github.py
Original file line number Diff line number Diff line change
@@ -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'))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion tests/test_reasoning.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit be145c7

Please sign in to comment.