💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update tests
davidmezzetti058ca9bae4f8
diff --git a/test/python/testagent.py b/test/python/testagent.pyindex 6a193a8b..8085e14f 100644--- a/test/python/testagent.py+++ b/test/python/testagent.py@@ -49,20 +49,25 @@ class TestAgent(unittest.TestCase):Test adding basic function tools"""- def today(iso):+ class DateTime:+ """+ Date time instance"""- Gets the current date and time- Args:- iso: date will be converted to iso format if True+ def __call__(self, iso):+ """+ Gets the current date and time- Returns:- current date and time- """+ Args:+ iso: date will be converted to iso format if True++ Returns:+ current date and time+ """- return datetime.today().isoformat() if iso else datetime.today()+ return datetime.today().isoformat() if iso else datetime.today()- today = {"name": "today", "description": "Gets the current date and time", "target": today}+ today = {"name": "today", "description": "Gets the current date and time", "target": DateTime()}def current() -> str:"""diff --git a/test/python/testpipeline/testllm/testllm.py b/test/python/testpipeline/testllm/testllm.pyindex 05753c47..24599fd2 100644--- a/test/python/testpipeline/testllm/testllm.py+++ b/test/python/testpipeline/testllm/testllm.py@@ -74,7 +74,7 @@ class TestLLM(unittest.TestCase):"""model = LLM("sshleifer/tiny-gpt2")- self.assertIsNotNone(model("Hello, how are", maxlength=10))+ self.assertIsInstance(model("Hello, how are", maxlength=10), str)def testNotImplemented(self):"""