Skip to content

Commit 6600855

Browse files
committed
Update
1 parent 6f5e5bc commit 6600855

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

libs/agno/agno/memory/v2/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def add_run(self, session_id: str, run: Union[RunResponse, TeamRunResponse]) ->
673673
"""Adds a RunResponse to the runs list."""
674674
if not self.runs:
675675
self.runs = {}
676-
676+
677677
self.runs.setdefault(session_id, []).append(run)
678678
log_debug("Added RunResponse to Memory")
679679

libs/agno/agno/tools/function.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def process_entrypoint(self, strict: bool = False):
167167
from inspect import getdoc, isasyncgenfunction, signature
168168

169169
from agno.utils.json_schema import get_json_schema
170+
170171
if self.skip_entrypoint_processing:
171172
if strict:
172173
self.process_schema_for_strict()
@@ -263,9 +264,7 @@ def process_entrypoint(self, strict: bool = False):
263264

264265
def process_schema_for_strict(self):
265266
self.parameters["additionalProperties"] = False
266-
self.parameters["required"] = [
267-
name for name in self.parameters["properties"] if name not in ["agent", "team"]
268-
]
267+
self.parameters["required"] = [name for name in self.parameters["properties"] if name not in ["agent", "team"]]
269268

270269
def get_type_name(self, t: Type[T]):
271270
name = str(t)

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

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

55
import pytest
66

7-
from agno.agent import Agent
87
from agno.memory.v2.db.sqlite import SqliteMemoryDb
98
from agno.memory.v2.memory import Memory
109
from agno.models.anthropic.claude import Claude
@@ -75,6 +74,7 @@ def route_team(team_storage, memory):
7574
enable_user_memories=True,
7675
)
7776

77+
7878
@pytest.mark.asyncio
7979
async def test_run_history_persistence(route_team, team_storage, memory):
8080
"""Test that all runs within a session are persisted in storage."""
@@ -104,13 +104,14 @@ async def test_run_history_persistence(route_team, team_storage, memory):
104104

105105
stored_memory_data = team_session.memory
106106
assert stored_memory_data is not None, "Memory data not found in stored session."
107-
107+
108108
stored_runs = stored_memory_data["runs"]
109109
assert isinstance(stored_runs, list), "Stored runs data is not a list."
110110

111111
first_user_message_content = stored_runs[0]["messages"][1]["content"]
112112
assert first_user_message_content == conversation_messages[0]
113-
113+
114+
114115
@pytest.mark.asyncio
115116
async def test_multi_user_multi_session_route_team(route_team, team_storage, memory):
116117
"""Test multi-user multi-session route team with storage and memory."""

0 commit comments

Comments
 (0)