Skip to content

Commit

Permalink
trying to make tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkulaga committed Jan 19, 2025
1 parent 2f62d97 commit fe03e58
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Documentation package for just-agents."""
7 changes: 7 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
API Reference
============

.. automodule:: just_agents
:members:
:undoc-members:
:show-inheritance:
28 changes: 27 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'myst_parser'
'myst_parser',
'sphinx.ext.intersphinx'
]

# Add after the existing extensions
autodoc_mock_imports = [
'litellm',
'pydantic',
'requests',
'numpydoc',
'rich',
'just_agents'
]

# Theme settings
Expand All @@ -19,4 +30,19 @@
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}

# Add any paths that contain templates here, relative to this directory
templates_path = ['_templates']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# The master toctree document
master_doc = 'index'

# Intersphinx mapping
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
}
7 changes: 7 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Examples
========

Here you'll find various examples of how to use just-agents.

.. toctree::
:maxdepth: 2
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Welcome to just-agents documentation!
:caption: Contents:

readme
api
examples

Indices and tables
==================
Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx>=7.0.0
sphinx-rtd-theme>=1.3.0
myst-parser>=2.0.0
myst-parser>=2.0.0
sphinx-autodoc-typehints>=1.25.2
2 changes: 1 addition & 1 deletion tests/test_chain_of_thought.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def count_letters(character: str, word: str) -> str:
def test_function_query():
load_dotenv(override = True)

llm_options = just_agents.llm_options.LLAMA3_3
llm_options = just_agents.llm_options.OPENAI_O1_MINI
agent: ChainOfThoughtAgent = ChainOfThoughtAgent(llm_options=llm_options, tools=[count_letters])
result, thoughts = agent.think("Count the number of occurrences of the letter 'L' in the word - 'LOLLAPALOOZA'.")
print("Thoughts: ", thoughts)
Expand Down

0 comments on commit fe03e58

Please sign in to comment.