Skip to content

Commit e4ba103

Browse files
kausmeowsdirkbrnd
andauthored
feat: Release 1.8.1 (#4354)
# Changelog ## New Features: - **Reasoning summaries for OpenAI**: reasoning summaries are now available with the OpenAIResponses class - **Neo4j Tools**: Added `Neo4jTools` to explore and manipulate graphs in Neo4j. ## Improvements: - **Update E2B tool to use Sandbox.create:** Update the E2BTools class to use Sandbox.create() from the latest e2b_code_interpreter SDK, replacing the deprecated Sandbox() initialization. No other functionality changed. - **Teams Timezone Identifier:** Added `timezone_identifier` to `Team` to match `Agent` functionality. ## Bug Fixes: - **Media artifacts validation error:** `from_artifact()` of `Image` was missing content in its return along with url, so if the generated image is not a url but a encoded content this would fail, or vice-versa. - **Wrong metadata and filters:** Fixed issues where `filters` was not correctly applied on all documents when inserting into the knowledge base. --------- Co-authored-by: Dirk Brand <51947788+dirkbrnd@users.noreply.github.com> Co-authored-by: Dirk Brand <dirkbrnd@gmail.com>
1 parent 30daf81 commit e4ba103

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

libs/agno/agno/agent/agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,7 @@ def _initialize_session(
749749
self.session_id = session_id = str(uuid4())
750750

751751
# Use the default user_id when necessary
752-
if user_id is not None and user_id != "":
753-
user_id = user_id
754-
else:
752+
if user_id is None or user_id == "":
755753
user_id = self.user_id
756754

757755
# Determine the session_state

libs/agno/agno/tools/neo4j.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from typing import Optional
2+
from typing import Any, List, Optional
33

44
try:
55
from neo4j import GraphDatabase
@@ -51,7 +51,7 @@ def __init__(
5151

5252
# Create the Neo4j driver
5353
try:
54-
self.driver = GraphDatabase.driver(uri, auth=(user, password))
54+
self.driver = GraphDatabase.driver(uri, auth=(user, password)) # type: ignore
5555
self.driver.verify_connectivity()
5656
log_debug("Connected to Neo4j database")
5757
except Exception as e:
@@ -61,7 +61,7 @@ def __init__(
6161
self.database = database or "neo4j"
6262

6363
# Register toolkit methods as tools
64-
tools = []
64+
tools: List[Any] = []
6565
if list_labels:
6666
tools.append(self.list_labels)
6767
if list_relationships:

libs/agno/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agno"
3-
version = "1.8.0"
3+
version = "1.8.1"
44
description = "Agno: a lightweight library for building Multi-Agent Systems"
55
requires-python = ">=3.7,<4"
66
readme = "README.md"
@@ -119,6 +119,7 @@ zep = ["zep-cloud"]
119119
daytona=["daytona"]
120120
oxylabs = ["oxylabs"]
121121
trafilatura = ["trafilatura"]
122+
neo4j = ["neo4j"]
122123

123124
# Dependencies for Storage
124125
sql = ["sqlalchemy"]
@@ -226,6 +227,7 @@ tools = [
226227
"agno[google_bigquery]",
227228
"agno[psycopg]",
228229
"agno[trafilatura]",
230+
"agno[neo4j]",
229231
]
230232

231233
# All storage
@@ -396,6 +398,7 @@ module = [
396398
"memory_profiler.*",
397399
"mistralai.*",
398400
"mlx_whisper.*",
401+
"neo4j.*",
399402
"nest_asyncio.*",
400403
"newspaper.*",
401404
"numpy.*",

libs/agno/tests/integration/teams/test_event_streaming.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ def test_intermediate_steps_with_member_agents_route():
690690
assert len(events[RunEvent.run_response_content]) > 1
691691

692692

693+
@pytest.mark.skip(reason="This test is flaky")
693694
def test_intermediate_steps_with_member_agents_collaborate():
694695
def get_news_from_hackernews(query: str):
695696
return "The best way to learn to code is to use the Hackernews API."

0 commit comments

Comments
 (0)