Skip to content

Commit

Permalink
trying to make tests and readthedocs finaly work
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkulaga committed Jan 19, 2025
1 parent fe03e58 commit 3b9105a
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 5 deletions.
37 changes: 36 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,42 @@
API Reference
============

.. automodule:: just_agents
Core
----

.. automodule:: just_agents.core
:members:
:undoc-members:
:show-inheritance:

Tools
-----

.. automodule:: just_agents.tools
:members:
:undoc-members:
:show-inheritance:

Coding
------

.. automodule:: just_agents.coding
:members:
:undoc-members:
:show-inheritance:

Web
---

.. automodule:: just_agents.web
:members:
:undoc-members:
:show-inheritance:

Router
------

.. automodule:: just_agents.router
:members:
:undoc-members:
:show-inheritance:
11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'myst_parser',
'sphinx.ext.intersphinx'
'sphinx.ext.intersphinx',
'sphinx_autodoc_typehints'
]

# Add after the existing extensions
Expand Down Expand Up @@ -45,4 +46,10 @@
# Intersphinx mapping
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
}
}

# Enable markdown parsing with MyST
myst_enable_extensions = [
"colon_fence",
"deflist"
]
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Welcome to just-agents documentation!
:caption: Contents:

readme
subprojects
api
examples

Expand Down
4 changes: 3 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
sphinx>=7.0.0
sphinx-rtd-theme>=1.3.0
myst-parser>=2.0.0
sphinx-autodoc-typehints>=1.25.2
sphinx-markdown-tables>=0.0.17
sphinx-autodoc-typehints>=1.25.2
sphinx-autoapi>=3.0.0
32 changes: 32 additions & 0 deletions docs/subprojects.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Subprojects
===========

Core
----
.. include:: ../core/README.md
:parser: myst_parser.sphinx_

Tools
-----
.. include:: ../tools/README.md
:parser: myst_parser.sphinx_

Coding
------
.. include:: ../coding/README.md
:parser: myst_parser.sphinx_

Web
---
.. include:: ../web/README.md
:parser: myst_parser.sphinx_

Router
------
.. include:: ../router/README.md
:parser: myst_parser.sphinx_

Examples
--------
.. include:: ../examples/README.md
:parser: myst_parser.sphinx_
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.OPENAI_O1_MINI
llm_options = just_agents.llm_options.OPENAI_GPT4oMINI
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 3b9105a

Please sign in to comment.