Skip to content

Commit 2eefefa

Browse files
authored
chore: Release 2.0.10 (#4798)
# Changelog ## Improvements: - Session State: Adds a new flag `overwrite_db_session_state` to overwrite the session state persisted in the database ## Bug Fixes: - **AWS Claude Model Class**: Fixes a bug with Tool call parsing
1 parent ce91b00 commit 2eefefa

File tree

4 files changed

+69
-8
lines changed

4 files changed

+69
-8
lines changed

libs/agno/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agno"
3-
version = "2.0.9"
3+
version = "2.0.10"
44
description = "Agno: a lightweight library for building Multi-Agent Systems"
55
requires-python = ">=3.7,<4"
66
readme = "README.md"
Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
[{"name": "Massaman Curry", "ingredients": ["beef", "potatoes", "coconut milk", "massaman curry paste", "peanuts"], "cuisine": "Thai"}, {"name": "Panang Curry", "ingredients": ["chicken", "coconut milk", "panang curry paste", "kaffir lime leaves"], "cuisine": "Thai"}]
1+
[
2+
{
3+
"name": "Massaman Curry",
4+
"ingredients": [
5+
"beef",
6+
"potatoes",
7+
"coconut milk",
8+
"massaman curry paste",
9+
"peanuts"
10+
],
11+
"cuisine": "Thai"
12+
},
13+
{
14+
"name": "Panang Curry",
15+
"ingredients": [
16+
"chicken",
17+
"coconut milk",
18+
"panang curry paste",
19+
"kaffir lime leaves"
20+
],
21+
"cuisine": "Thai"
22+
}
23+
]
Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
[{"name": "Tom Kha Gai", "ingredients": ["chicken", "coconut milk", "galangal", "lemongrass", "lime", "fish sauce"], "cuisine": "Thai"}, {"name": "Green Curry", "ingredients": ["chicken", "coconut milk", "green curry paste", "thai basil", "fish sauce"], "cuisine": "Thai"}, {"name": "Pad Thai", "ingredients": ["rice noodles", "tofu", "bean sprouts", "peanuts", "egg", "tamarind paste"], "cuisine": "Thai"}]
1+
[
2+
{
3+
"name": "Tom Kha Gai",
4+
"ingredients": [
5+
"chicken",
6+
"coconut milk",
7+
"galangal",
8+
"lemongrass",
9+
"lime",
10+
"fish sauce"
11+
],
12+
"cuisine": "Thai"
13+
},
14+
{
15+
"name": "Green Curry",
16+
"ingredients": [
17+
"chicken",
18+
"coconut milk",
19+
"green curry paste",
20+
"thai basil",
21+
"fish sauce"
22+
],
23+
"cuisine": "Thai"
24+
},
25+
{
26+
"name": "Pad Thai",
27+
"ingredients": [
28+
"rice noodles",
29+
"tofu",
30+
"bean sprouts",
31+
"peanuts",
32+
"egg",
33+
"tamarind paste"
34+
],
35+
"cuisine": "Thai"
36+
}
37+
]

libs/agno/tests/integration/knowledge/test_json_knowledge.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from agno.agent import Agent
66
from agno.knowledge.knowledge import Knowledge
7+
from agno.db.json.json_db import JsonDb
78
from agno.vectordb.chroma import ChromaDb
89

910

@@ -41,10 +42,12 @@ def prepare_knowledge_base(setup_vector_db):
4142

4243

4344
def test_json_knowledge_base():
44-
vector_db = ChromaDb(collection="vectors", path="tmp/chromadb", persistent_client=True)
45+
contents_db = JsonDb(db_path="tmp/json_db")
46+
vector_db = ChromaDb(collection="vectors_1", path="tmp/chromadb", persistent_client=True)
4547

4648
knowledge_base = Knowledge(
4749
vector_db=vector_db,
50+
contents_db=contents_db,
4851
)
4952

5053
knowledge_base.add_content(
@@ -54,7 +57,7 @@ def test_json_knowledge_base():
5457
assert vector_db.exists()
5558

5659
# We have 2 JSON files with 3 and 2 documents respectively
57-
expected_docs = 10
60+
expected_docs = 5
5861
assert vector_db.get_count() == expected_docs
5962

6063
# Create and use the agent
@@ -86,8 +89,8 @@ def test_json_knowledge_base_single_file():
8689

8790
assert vector_db.exists()
8891

89-
# The recipes.json file contains 10 documents
90-
expected_docs = 10
92+
# The recipes.json file contains 3 documents
93+
expected_docs = 3
9194
assert vector_db.get_count() == expected_docs
9295

9396
# Clean up
@@ -110,7 +113,7 @@ async def test_json_knowledge_base_async():
110113
assert await vector_db.async_exists()
111114

112115
# We have 2 JSON files with 3 and 2 documents respectively
113-
expected_docs = 10
116+
expected_docs = 5
114117
assert vector_db.get_count() == expected_docs
115118

116119
# Create and use the agent

0 commit comments

Comments
 (0)