Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Jun 4, 2024
1 parent 64b0064 commit 83c56f4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Empty file added tests/__init__.py
Empty file.
Binary file added tests/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions tests/test_agent_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from llama_index.core.llms import MockLLM
from llama_index.core.agent import ReActAgent

from agentfile.agent import AgentServer


def test_init() -> None:
agent = ReActAgent.from_tools([], llm=MockLLM())
server = AgentServer(
agent, running=False, description="Test Agent Server", step_interval=0.5
)

assert server.agent == agent
assert server.running is False
assert server.description == "Test Agent Server"
assert server.step_interval == 0.5

0 comments on commit 83c56f4

Please sign in to comment.