agno 2.3.14__py3-none-any.whl → 2.3.15__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
agno/agent/agent.py CHANGED
@@ -131,6 +131,7 @@ from agno.utils.events import (
131
131
  create_session_summary_completed_event,
132
132
  create_session_summary_started_event,
133
133
  create_tool_call_completed_event,
134
+ create_tool_call_error_event,
134
135
  create_tool_call_started_event,
135
136
  handle_event,
136
137
  )
@@ -2304,7 +2305,7 @@ class Agent:
2304
2305
  cultural_knowledge_task = None
2305
2306
 
2306
2307
  # 1. Read or create session. Reads from the database if provided.
2307
- agent_session = self._read_or_create_session(session_id=session_id, user_id=user_id)
2308
+ agent_session = await self._aread_or_create_session(session_id=session_id, user_id=user_id)
2308
2309
 
2309
2310
  # Set up retry logic
2310
2311
  num_attempts = self.retries + 1
@@ -4946,6 +4947,15 @@ class Agent:
4946
4947
  events_to_skip=self.events_to_skip, # type: ignore
4947
4948
  store_events=self.store_events,
4948
4949
  )
4950
+ if tool.tool_call_error:
4951
+ yield handle_event( # type: ignore
4952
+ create_tool_call_error_event(
4953
+ from_run_response=run_response, tool=tool, error=str(tool.result)
4954
+ ),
4955
+ run_response,
4956
+ events_to_skip=self.events_to_skip, # type: ignore
4957
+ store_events=self.store_events,
4958
+ )
4949
4959
 
4950
4960
  if len(function_call_results) > 0:
4951
4961
  run_messages.messages.extend(function_call_results)
@@ -5003,6 +5013,15 @@ class Agent:
5003
5013
  events_to_skip=self.events_to_skip, # type: ignore
5004
5014
  store_events=self.store_events,
5005
5015
  )
5016
+ if tool.tool_call_error:
5017
+ yield handle_event( # type: ignore
5018
+ create_tool_call_error_event(
5019
+ from_run_response=run_response, tool=tool, error=str(tool.result)
5020
+ ),
5021
+ run_response,
5022
+ events_to_skip=self.events_to_skip, # type: ignore
5023
+ store_events=self.store_events,
5024
+ )
5006
5025
  if len(function_call_results) > 0:
5007
5026
  run_messages.messages.extend(function_call_results)
5008
5027
 
@@ -5756,6 +5775,15 @@ class Agent:
5756
5775
  events_to_skip=self.events_to_skip, # type: ignore
5757
5776
  store_events=self.store_events,
5758
5777
  )
5778
+ if tool_call.tool_call_error:
5779
+ yield handle_event( # type: ignore
5780
+ create_tool_call_error_event(
5781
+ from_run_response=run_response, tool=tool_call, error=str(tool_call.result)
5782
+ ),
5783
+ run_response,
5784
+ events_to_skip=self.events_to_skip, # type: ignore
5785
+ store_events=self.store_events,
5786
+ )
5759
5787
 
5760
5788
  if stream_events:
5761
5789
  if reasoning_step is not None:
@@ -66,13 +66,13 @@ class MigrationManager:
66
66
  current_version = packaging_version.parse(self.db.get_latest_schema_version(table_name))
67
67
 
68
68
  if current_version is None:
69
- log_warning(f"Skipping up migration: No version found for table {table_name}.")
69
+ log_info(f"Skipping migration: No version found for table {table_name}.")
70
70
  continue
71
71
 
72
72
  # If the target version is less or equal to the current version, no migrations needed
73
73
  if _target_version <= current_version and not force:
74
- log_warning(
75
- f"Skipping up migration: the version of table '{table_name}' ({current_version}) is less or equal to the target version ({_target_version})."
74
+ log_info(
75
+ f"Skipping migration: the version of table '{table_name}' ({current_version}) is less or equal to the target version ({_target_version})."
76
76
  )
77
77
  continue
78
78
 
@@ -102,8 +102,8 @@ class Claude(Model):
102
102
  # Claude Sonnet 4.x family (versions before 4.5)
103
103
  "claude-sonnet-4-20250514",
104
104
  "claude-sonnet-4",
105
- # Claude Opus 4.x family (versions before 4.1)
106
- # (Add any Opus 4.x models released before 4.1 if they exist)
105
+ # Claude Opus 4.x family (versions before 4.1 and 4.5)
106
+ # (Add any Opus 4.x models released before 4.1/4.5 if they exist)
107
107
  }
108
108
 
109
109
  id: str = "claude-sonnet-4-5-20250929"
@@ -191,7 +191,9 @@ class Claude(Model):
191
191
  return False
192
192
  if self.id.startswith("claude-sonnet-4-") and not self.id.startswith("claude-sonnet-4-5"):
193
193
  return False
194
- if self.id.startswith("claude-opus-4-") and not self.id.startswith("claude-opus-4-1"):
194
+ if self.id.startswith("claude-opus-4-") and not (
195
+ self.id.startswith("claude-opus-4-1") or self.id.startswith("claude-opus-4-5")
196
+ ):
195
197
  return False
196
198
 
197
199
  return True
agno/models/metrics.py CHANGED
@@ -13,6 +13,10 @@ class Metrics:
13
13
  output_tokens: int = 0
14
14
  total_tokens: int = 0
15
15
 
16
+ # Cost of the run
17
+ # Currently only supported by some providers
18
+ cost: Optional[float] = None
19
+
16
20
  # Audio token usage
17
21
  audio_input_tokens: int = 0
18
22
  audio_output_tokens: int = 0
@@ -43,6 +47,7 @@ class Metrics:
43
47
  metrics_dict = asdict(self)
44
48
  # Remove the timer util if present
45
49
  metrics_dict.pop("timer", None)
50
+ # Remove any None, 0, or empty dict values
46
51
  metrics_dict = {
47
52
  k: v
48
53
  for k, v in metrics_dict.items()
@@ -65,6 +70,13 @@ class Metrics:
65
70
  reasoning_tokens=self.reasoning_tokens + other.reasoning_tokens,
66
71
  )
67
72
 
73
+ if self.cost is not None and other.cost is not None:
74
+ result.cost = self.cost + other.cost
75
+ elif self.cost is not None:
76
+ result.cost = self.cost
77
+ elif other.cost is not None:
78
+ result.cost = other.cost
79
+
68
80
  # Handle provider_metrics
69
81
  if self.provider_metrics or other.provider_metrics:
70
82
  result.provider_metrics = {}
@@ -945,4 +945,6 @@ class OpenAIChat(Model):
945
945
  metrics.audio_output_tokens = completion_tokens_details.audio_tokens or 0
946
946
  metrics.reasoning_tokens = completion_tokens_details.reasoning_tokens or 0
947
947
 
948
+ metrics.cost = getattr(response_usage, "cost", None)
949
+
948
950
  return metrics
agno/os/app.py CHANGED
@@ -34,6 +34,7 @@ from agno.os.config import (
34
34
  from agno.os.interfaces.base import BaseInterface
35
35
  from agno.os.router import get_base_router
36
36
  from agno.os.routers.agents import get_agent_router
37
+ from agno.os.routers.database import get_database_router
37
38
  from agno.os.routers.evals import get_eval_router
38
39
  from agno.os.routers.health import get_health_router
39
40
  from agno.os.routers.home import get_home_router
@@ -574,6 +575,7 @@ class AgentOS:
574
575
  get_metrics_router(dbs=self.dbs),
575
576
  get_knowledge_router(knowledge_instances=self.knowledge_instances),
576
577
  get_traces_router(dbs=self.dbs),
578
+ get_database_router(self, settings=self.settings),
577
579
  ]
578
580
 
579
581
  for router in routers:
@@ -614,6 +616,18 @@ class AgentOS:
614
616
 
615
617
  # Add JWT middleware if authorization is enabled
616
618
  if self.authorization:
619
+ # Set authorization_enabled flag on settings so security key validation is skipped
620
+ self.settings.authorization_enabled = True
621
+
622
+ jwt_configured = bool(getenv("JWT_VERIFICATION_KEY") or getenv("JWT_JWKS_FILE"))
623
+ security_key_set = bool(self.settings.os_security_key)
624
+ if jwt_configured and security_key_set:
625
+ log_warning(
626
+ "Both JWT configuration (JWT_VERIFICATION_KEY or JWT_JWKS_FILE) and OS_SECURITY_KEY are set. "
627
+ "With authorization=True, only JWT authorization will be used. "
628
+ "Consider removing OS_SECURITY_KEY from your environment."
629
+ )
630
+
617
631
  self._add_jwt_middleware(fastapi_app)
618
632
 
619
633
  return fastapi_app
@@ -1033,8 +1047,12 @@ class AgentOS:
1033
1047
  Align.center(f"[bold cyan]{public_endpoint}[/bold cyan]"),
1034
1048
  Align.center(f"\n\n[bold dark_orange]OS running on:[/bold dark_orange] http://{host}:{port}"),
1035
1049
  ]
1036
- if bool(self.settings.os_security_key):
1037
- panel_group.append(Align.center("\n\n[bold chartreuse3]:lock: Security Enabled[/bold chartreuse3]"))
1050
+ if self.authorization:
1051
+ panel_group.append(
1052
+ Align.center("\n\n[bold chartreuse3]:lock: JWT Authorization Enabled[/bold chartreuse3]")
1053
+ )
1054
+ elif bool(self.settings.os_security_key):
1055
+ panel_group.append(Align.center("\n\n[bold chartreuse3]:lock: Security Key Enabled[/bold chartreuse3]"))
1038
1056
 
1039
1057
  console = Console()
1040
1058
  console.print(
agno/os/auth.py CHANGED
@@ -1,3 +1,4 @@
1
+ from os import getenv
1
2
  from typing import List, Set
2
3
 
3
4
  from fastapi import Depends, HTTPException, Request
@@ -10,18 +11,43 @@ from agno.os.settings import AgnoAPISettings
10
11
  security = HTTPBearer(auto_error=False)
11
12
 
12
13
 
14
+ def _is_jwt_configured() -> bool:
15
+ """Check if JWT authentication is configured via environment variables.
16
+
17
+ This covers cases where JWT middleware is set up manually (not via authorization=True).
18
+ """
19
+ return bool(getenv("JWT_VERIFICATION_KEY") or getenv("JWT_JWKS_FILE"))
20
+
21
+
13
22
  def get_authentication_dependency(settings: AgnoAPISettings):
14
23
  """
15
24
  Create an authentication dependency function for FastAPI routes.
16
25
 
26
+ This handles security key authentication (OS_SECURITY_KEY).
27
+ When JWT authorization is enabled (via authorization=True, JWT environment variables,
28
+ or manually added JWT middleware), this dependency is skipped as JWT middleware
29
+ handles authentication.
30
+
17
31
  Args:
18
- settings: The API settings containing the security key
32
+ settings: The API settings containing the security key and authorization flag
19
33
 
20
34
  Returns:
21
35
  A dependency function that can be used with FastAPI's Depends()
22
36
  """
23
37
 
24
- async def auth_dependency(credentials: HTTPAuthorizationCredentials = Depends(security)) -> bool:
38
+ async def auth_dependency(request: Request, credentials: HTTPAuthorizationCredentials = Depends(security)) -> bool:
39
+ # If JWT authorization is enabled via settings (authorization=True on AgentOS)
40
+ if settings and settings.authorization_enabled:
41
+ return True
42
+
43
+ # Check if JWT middleware has already handled authentication
44
+ if getattr(request.state, "authenticated", False):
45
+ return True
46
+
47
+ # Also skip if JWT is configured via environment variables
48
+ if _is_jwt_configured():
49
+ return True
50
+
25
51
  # If no security key is set, skip authentication entirely
26
52
  if not settings or not settings.os_security_key:
27
53
  return True
@@ -45,13 +71,24 @@ def validate_websocket_token(token: str, settings: AgnoAPISettings) -> bool:
45
71
  """
46
72
  Validate a bearer token for WebSocket authentication (legacy os_security_key method).
47
73
 
74
+ When JWT authorization is enabled (via authorization=True or JWT environment variables),
75
+ this validation is skipped as JWT middleware handles authentication.
76
+
48
77
  Args:
49
78
  token: The bearer token to validate
50
- settings: The API settings containing the security key
79
+ settings: The API settings containing the security key and authorization flag
51
80
 
52
81
  Returns:
53
82
  True if the token is valid or authentication is disabled, False otherwise
54
83
  """
84
+ # If JWT authorization is enabled, skip security key validation
85
+ if settings and settings.authorization_enabled:
86
+ return True
87
+
88
+ # Also skip if JWT is configured via environment variables (manual JWT middleware setup)
89
+ if _is_jwt_configured():
90
+ return True
91
+
55
92
  # If no security key is set, skip authentication entirely
56
93
  if not settings or not settings.os_security_key:
57
94
  return True
agno/os/router.py CHANGED
@@ -1,16 +1,11 @@
1
- from typing import TYPE_CHECKING, List, Optional, Union, cast
1
+ from typing import TYPE_CHECKING, List, Union, cast
2
2
 
3
3
  from fastapi import (
4
4
  APIRouter,
5
5
  Depends,
6
- HTTPException,
7
6
  )
8
- from fastapi.responses import JSONResponse
9
- from packaging import version
10
7
 
11
8
  from agno.agent.agent import Agent
12
- from agno.db.base import AsyncBaseDb
13
- from agno.db.migrations.manager import MigrationManager
14
9
  from agno.os.auth import get_authentication_dependency
15
10
  from agno.os.schema import (
16
11
  AgentSummaryResponse,
@@ -26,9 +21,6 @@ from agno.os.schema import (
26
21
  WorkflowSummaryResponse,
27
22
  )
28
23
  from agno.os.settings import AgnoAPISettings
29
- from agno.os.utils import (
30
- get_db,
31
- )
32
24
  from agno.team.team import Team
33
25
 
34
26
  if TYPE_CHECKING:
@@ -207,52 +199,4 @@ def get_base_router(
207
199
 
208
200
  return list(unique_models.values())
209
201
 
210
- # -- Database Migration routes ---
211
- @router.post(
212
- "/databases/{db_id}/migrate",
213
- tags=["Database"],
214
- operation_id="migrate_database",
215
- summary="Migrate Database",
216
- description=(
217
- "Migrate the given database schema to the given target version. "
218
- "If a target version is not provided, the database will be migrated to the latest version. "
219
- ),
220
- responses={
221
- 200: {
222
- "description": "Database migrated successfully",
223
- "content": {
224
- "application/json": {
225
- "example": {"message": "Database migrated successfully to version 3.0.0"},
226
- }
227
- },
228
- },
229
- 404: {"description": "Database not found", "model": NotFoundResponse},
230
- 500: {"description": "Failed to migrate database", "model": InternalServerErrorResponse},
231
- },
232
- )
233
- async def migrate_database(db_id: str, target_version: Optional[str] = None):
234
- db = await get_db(os.dbs, db_id)
235
- if not db:
236
- raise HTTPException(status_code=404, detail="Database not found")
237
-
238
- if target_version:
239
- # Use the session table as proxy for the database schema version
240
- if isinstance(db, AsyncBaseDb):
241
- current_version = await db.get_latest_schema_version(db.session_table_name)
242
- else:
243
- current_version = db.get_latest_schema_version(db.session_table_name)
244
-
245
- if version.parse(target_version) > version.parse(current_version): # type: ignore
246
- MigrationManager(db).up(target_version) # type: ignore
247
- else:
248
- MigrationManager(db).down(target_version) # type: ignore
249
-
250
- # If the target version is not provided, migrate to the latest version
251
- else:
252
- MigrationManager(db).up() # type: ignore
253
-
254
- return JSONResponse(
255
- content={"message": f"Database migrated successfully to version {target_version}"}, status_code=200
256
- )
257
-
258
202
  return router
@@ -0,0 +1,150 @@
1
+ from typing import TYPE_CHECKING, Optional
2
+
3
+ from fastapi import (
4
+ APIRouter,
5
+ Depends,
6
+ HTTPException,
7
+ )
8
+ from fastapi.responses import JSONResponse
9
+ from packaging import version
10
+
11
+ from agno.db.base import AsyncBaseDb
12
+ from agno.db.migrations.manager import MigrationManager
13
+ from agno.os.auth import get_authentication_dependency
14
+ from agno.os.schema import (
15
+ BadRequestResponse,
16
+ InternalServerErrorResponse,
17
+ NotFoundResponse,
18
+ UnauthenticatedResponse,
19
+ ValidationErrorResponse,
20
+ )
21
+ from agno.os.settings import AgnoAPISettings
22
+ from agno.os.utils import (
23
+ get_db,
24
+ )
25
+
26
+ if TYPE_CHECKING:
27
+ from agno.os.app import AgentOS
28
+
29
+
30
+ def get_database_router(
31
+ os: "AgentOS",
32
+ settings: AgnoAPISettings = AgnoAPISettings(),
33
+ ) -> APIRouter:
34
+ """Create the database router with comprehensive OpenAPI documentation."""
35
+ router = APIRouter(
36
+ dependencies=[Depends(get_authentication_dependency(settings))],
37
+ responses={
38
+ 400: {"description": "Bad Request", "model": BadRequestResponse},
39
+ 401: {"description": "Unauthorized", "model": UnauthenticatedResponse},
40
+ 404: {"description": "Not Found", "model": NotFoundResponse},
41
+ 422: {"description": "Validation Error", "model": ValidationErrorResponse},
42
+ 500: {"description": "Internal Server Error", "model": InternalServerErrorResponse},
43
+ },
44
+ )
45
+
46
+ async def _migrate_single_db(db, target_version: Optional[str] = None) -> None:
47
+ """Migrate a single database."""
48
+ if target_version:
49
+ # Use the session table as proxy for the database schema version
50
+ if isinstance(db, AsyncBaseDb):
51
+ current_version = await db.get_latest_schema_version(db.session_table_name)
52
+ else:
53
+ current_version = db.get_latest_schema_version(db.session_table_name)
54
+
55
+ if version.parse(target_version) > version.parse(current_version): # type: ignore
56
+ await MigrationManager(db).up(target_version) # type: ignore
57
+ else:
58
+ await MigrationManager(db).down(target_version) # type: ignore
59
+ else:
60
+ # If the target version is not provided, migrate to the latest version
61
+ await MigrationManager(db).up() # type: ignore
62
+
63
+ @router.post(
64
+ "/databases/all/migrate",
65
+ tags=["Database"],
66
+ operation_id="migrate_all_databases",
67
+ summary="Migrate All Databases",
68
+ description=(
69
+ "Migrate all database schemas to the given target version. "
70
+ "If a target version is not provided, all databases will be migrated to the latest version."
71
+ ),
72
+ responses={
73
+ 200: {
74
+ "description": "All databases migrated successfully",
75
+ "content": {
76
+ "application/json": {
77
+ "example": {"message": "All databases migrated successfully to version 3.0.0"},
78
+ }
79
+ },
80
+ },
81
+ 500: {"description": "Failed to migrate databases", "model": InternalServerErrorResponse},
82
+ },
83
+ )
84
+ async def migrate_all_databases(target_version: Optional[str] = None):
85
+ """Migrate all databases."""
86
+ all_dbs = {db.id: db for db_id, dbs in os.dbs.items() for db in dbs}
87
+ failed_dbs: dict[str, str] = {}
88
+
89
+ for db_id, db in all_dbs.items():
90
+ try:
91
+ await _migrate_single_db(db, target_version)
92
+ except Exception as e:
93
+ failed_dbs[db_id] = str(e)
94
+
95
+ version_msg = f"version {target_version}" if target_version else "latest version"
96
+ migrated_count = len(all_dbs) - len(failed_dbs)
97
+
98
+ if failed_dbs:
99
+ return JSONResponse(
100
+ content={
101
+ "message": f"Migrated {migrated_count}/{len(all_dbs)} databases to {version_msg}",
102
+ "failed": failed_dbs,
103
+ },
104
+ status_code=207, # Multi-Status
105
+ )
106
+
107
+ return JSONResponse(
108
+ content={"message": f"All databases migrated successfully to {version_msg}"}, status_code=200
109
+ )
110
+
111
+ @router.post(
112
+ "/databases/{db_id}/migrate",
113
+ tags=["Database"],
114
+ operation_id="migrate_database",
115
+ summary="Migrate Database",
116
+ description=(
117
+ "Migrate the given database schema to the given target version. "
118
+ "If a target version is not provided, the database will be migrated to the latest version."
119
+ ),
120
+ responses={
121
+ 200: {
122
+ "description": "Database migrated successfully",
123
+ "content": {
124
+ "application/json": {
125
+ "example": {"message": "Database migrated successfully to version 3.0.0"},
126
+ }
127
+ },
128
+ },
129
+ 404: {"description": "Database not found", "model": NotFoundResponse},
130
+ 500: {"description": "Failed to migrate database", "model": InternalServerErrorResponse},
131
+ },
132
+ )
133
+ async def migrate_database(db_id: str, target_version: Optional[str] = None):
134
+ db = await get_db(os.dbs, db_id)
135
+ if not db:
136
+ raise HTTPException(status_code=404, detail="Database not found")
137
+
138
+ try:
139
+ await _migrate_single_db(db, target_version)
140
+
141
+ version_msg = f"version {target_version}" if target_version else "latest version"
142
+ return JSONResponse(
143
+ content={"message": f"Database migrated successfully to {version_msg}"}, status_code=200
144
+ )
145
+ except HTTPException:
146
+ raise
147
+ except Exception as e:
148
+ raise HTTPException(status_code=500, detail=f"Failed to migrate database: {str(e)}")
149
+
150
+ return router
agno/os/settings.py CHANGED
@@ -20,6 +20,9 @@ class AgnoAPISettings(BaseSettings):
20
20
  # Authentication settings
21
21
  os_security_key: Optional[str] = Field(default=None, description="Bearer token for API authentication")
22
22
 
23
+ # Authorization flag - when True, JWT middleware handles auth and security key validation is skipped
24
+ authorization_enabled: bool = Field(default=False, description="Whether JWT authorization is enabled")
25
+
23
26
  # Cors origin list to allow requests from.
24
27
  # This list is set using the set_cors_origin_list validator
25
28
  cors_origin_list: Optional[List[str]] = Field(default=None, validate_default=True)
agno/run/agent.py CHANGED
@@ -153,6 +153,7 @@ class RunEvent(str, Enum):
153
153
 
154
154
  tool_call_started = "ToolCallStarted"
155
155
  tool_call_completed = "ToolCallCompleted"
156
+ tool_call_error = "ToolCallError"
156
157
 
157
158
  reasoning_started = "ReasoningStarted"
158
159
  reasoning_step = "ReasoningStep"
@@ -405,6 +406,13 @@ class ToolCallCompletedEvent(BaseAgentRunEvent):
405
406
  audio: Optional[List[Audio]] = None # Audio produced by the tool call
406
407
 
407
408
 
409
+ @dataclass
410
+ class ToolCallErrorEvent(BaseAgentRunEvent):
411
+ event: str = RunEvent.tool_call_error.value
412
+ tool: Optional[ToolExecution] = None
413
+ error: Optional[str] = None
414
+
415
+
408
416
  @dataclass
409
417
  class ParserModelResponseStartedEvent(BaseAgentRunEvent):
410
418
  event: str = RunEvent.parser_model_response_started.value
@@ -459,6 +467,7 @@ RunOutputEvent = Union[
459
467
  SessionSummaryCompletedEvent,
460
468
  ToolCallStartedEvent,
461
469
  ToolCallCompletedEvent,
470
+ ToolCallErrorEvent,
462
471
  ParserModelResponseStartedEvent,
463
472
  ParserModelResponseCompletedEvent,
464
473
  OutputModelResponseStartedEvent,
@@ -492,6 +501,7 @@ RUN_EVENT_TYPE_REGISTRY = {
492
501
  RunEvent.session_summary_completed.value: SessionSummaryCompletedEvent,
493
502
  RunEvent.tool_call_started.value: ToolCallStartedEvent,
494
503
  RunEvent.tool_call_completed.value: ToolCallCompletedEvent,
504
+ RunEvent.tool_call_error.value: ToolCallErrorEvent,
495
505
  RunEvent.parser_model_response_started.value: ParserModelResponseStartedEvent,
496
506
  RunEvent.parser_model_response_completed.value: ParserModelResponseCompletedEvent,
497
507
  RunEvent.output_model_response_started.value: OutputModelResponseStartedEvent,
agno/run/base.py CHANGED
@@ -51,6 +51,7 @@ class BaseRunOutputEvent:
51
51
  "session_summary",
52
52
  "metrics",
53
53
  "run_input",
54
+ "requirements",
54
55
  ]
55
56
  }
56
57
 
@@ -138,6 +139,9 @@ class BaseRunOutputEvent:
138
139
  if hasattr(self, "run_input") and self.run_input is not None:
139
140
  _dict["run_input"] = self.run_input.to_dict()
140
141
 
142
+ if hasattr(self, "requirements") and self.requirements is not None:
143
+ _dict["requirements"] = [req.to_dict() if hasattr(req, "to_dict") else req for req in self.requirements]
144
+
141
145
  return _dict
142
146
 
143
147
  def to_json(self, separators=(", ", ": "), indent: Optional[int] = 2) -> str:
@@ -219,6 +223,21 @@ class BaseRunOutputEvent:
219
223
 
220
224
  data["run_input"] = RunInput.from_dict(run_input)
221
225
 
226
+ # Handle requirements
227
+
228
+ # Handle requirements
229
+ requirements_data = data.pop("requirements", None)
230
+ if requirements_data is not None:
231
+ from agno.run.requirement import RunRequirement
232
+
233
+ requirements_list: List[RunRequirement] = []
234
+ for item in requirements_data:
235
+ if isinstance(item, RunRequirement):
236
+ requirements_list.append(item)
237
+ elif isinstance(item, dict):
238
+ requirements_list.append(RunRequirement.from_dict(item))
239
+ data["requirements"] = requirements_list if requirements_list else None
240
+
222
241
  # Filter data to only include fields that are actually defined in the target class
223
242
  from dataclasses import fields
224
243
 
agno/run/team.py CHANGED
@@ -146,6 +146,7 @@ class TeamRunEvent(str, Enum):
146
146
 
147
147
  tool_call_started = "TeamToolCallStarted"
148
148
  tool_call_completed = "TeamToolCallCompleted"
149
+ tool_call_error = "TeamToolCallError"
149
150
 
150
151
  reasoning_started = "TeamReasoningStarted"
151
152
  reasoning_step = "TeamReasoningStep"
@@ -378,6 +379,13 @@ class ToolCallCompletedEvent(BaseTeamRunEvent):
378
379
  audio: Optional[List[Audio]] = None # Audio produced by the tool call
379
380
 
380
381
 
382
+ @dataclass
383
+ class ToolCallErrorEvent(BaseTeamRunEvent):
384
+ event: str = TeamRunEvent.tool_call_error.value
385
+ tool: Optional[ToolExecution] = None
386
+ error: Optional[str] = None
387
+
388
+
381
389
  @dataclass
382
390
  class ParserModelResponseStartedEvent(BaseTeamRunEvent):
383
391
  event: str = TeamRunEvent.parser_model_response_started.value
@@ -428,6 +436,7 @@ TeamRunOutputEvent = Union[
428
436
  SessionSummaryCompletedEvent,
429
437
  ToolCallStartedEvent,
430
438
  ToolCallCompletedEvent,
439
+ ToolCallErrorEvent,
431
440
  ParserModelResponseStartedEvent,
432
441
  ParserModelResponseCompletedEvent,
433
442
  OutputModelResponseStartedEvent,
@@ -458,6 +467,7 @@ TEAM_RUN_EVENT_TYPE_REGISTRY = {
458
467
  TeamRunEvent.session_summary_completed.value: SessionSummaryCompletedEvent,
459
468
  TeamRunEvent.tool_call_started.value: ToolCallStartedEvent,
460
469
  TeamRunEvent.tool_call_completed.value: ToolCallCompletedEvent,
470
+ TeamRunEvent.tool_call_error.value: ToolCallErrorEvent,
461
471
  TeamRunEvent.parser_model_response_started.value: ParserModelResponseStartedEvent,
462
472
  TeamRunEvent.parser_model_response_completed.value: ParserModelResponseCompletedEvent,
463
473
  TeamRunEvent.output_model_response_started.value: OutputModelResponseStartedEvent,
agno/team/team.py CHANGED
@@ -129,6 +129,7 @@ from agno.utils.events import (
129
129
  create_team_session_summary_completed_event,
130
130
  create_team_session_summary_started_event,
131
131
  create_team_tool_call_completed_event,
132
+ create_team_tool_call_error_event,
132
133
  create_team_tool_call_started_event,
133
134
  handle_event,
134
135
  )
@@ -3831,6 +3832,15 @@ class Team:
3831
3832
  events_to_skip=self.events_to_skip,
3832
3833
  store_events=self.store_events,
3833
3834
  )
3835
+ if tool_call.tool_call_error:
3836
+ yield handle_event( # type: ignore
3837
+ create_team_tool_call_error_event(
3838
+ from_run_response=run_response, tool=tool_call, error=str(tool_call.result)
3839
+ ),
3840
+ run_response,
3841
+ events_to_skip=self.events_to_skip,
3842
+ store_events=self.store_events,
3843
+ )
3834
3844
 
3835
3845
  if stream_events:
3836
3846
  if reasoning_step is not None:
agno/tools/toolkit.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from collections import OrderedDict
2
- from typing import Any, Callable, Dict, List, Optional
2
+ from typing import Any, Callable, Dict, List, Optional, Sequence, Union
3
3
 
4
4
  from agno.tools.function import Function
5
5
  from agno.utils.log import log_debug, log_warning, logger
@@ -13,7 +13,7 @@ class Toolkit:
13
13
  def __init__(
14
14
  self,
15
15
  name: str = "toolkit",
16
- tools: List[Callable] = [],
16
+ tools: Sequence[Union[Callable[..., Any], Function]] = [],
17
17
  instructions: Optional[str] = None,
18
18
  add_instructions: bool = False,
19
19
  include_tools: Optional[list[str]] = None,
@@ -31,7 +31,7 @@ class Toolkit:
31
31
 
32
32
  Args:
33
33
  name: A descriptive name for the toolkit
34
- tools: List of tools to include in the toolkit
34
+ tools: List of tools to include in the toolkit (can be callables or Function objects from @tool decorator)
35
35
  instructions: Instructions for the toolkit
36
36
  add_instructions: Whether to add instructions to the toolkit
37
37
  include_tools: List of tool names to include in the toolkit
@@ -46,7 +46,7 @@ class Toolkit:
46
46
  show_result_tools (Optional[List[str]]): List of function names whose results should be shown.
47
47
  """
48
48
  self.name: str = name
49
- self.tools: List[Callable] = tools
49
+ self.tools: Sequence[Union[Callable[..., Any], Function]] = tools
50
50
  self.functions: Dict[str, Function] = OrderedDict()
51
51
  self.instructions: Optional[str] = instructions
52
52
  self.add_instructions: bool = add_instructions
@@ -58,7 +58,9 @@ class Toolkit:
58
58
  self.show_result_tools: list[str] = show_result_tools or []
59
59
 
60
60
  self._check_tools_filters(
61
- available_tools=[tool.__name__ for tool in tools], include_tools=include_tools, exclude_tools=exclude_tools
61
+ available_tools=[self._get_tool_name(tool) for tool in tools],
62
+ include_tools=include_tools,
63
+ exclude_tools=exclude_tools,
62
64
  )
63
65
 
64
66
  self.include_tools = include_tools
@@ -72,6 +74,12 @@ class Toolkit:
72
74
  if auto_register and self.tools:
73
75
  self._register_tools()
74
76
 
77
+ def _get_tool_name(self, tool: Union[Callable[..., Any], Function]) -> str:
78
+ """Get the name of a tool, whether it's a Function or callable."""
79
+ if isinstance(tool, Function):
80
+ return tool.name
81
+ return tool.__name__
82
+
75
83
  def _check_tools_filters(
76
84
  self,
77
85
  available_tools: List[str],
@@ -104,22 +112,45 @@ class Toolkit:
104
112
  f"External execution required tool(s) not present in the toolkit: {', '.join(missing_external_execution_required)}"
105
113
  )
106
114
 
115
+ if self.stop_after_tool_call_tools:
116
+ missing_stop_after_tool_call = set(self.stop_after_tool_call_tools) - set(available_tools)
117
+ if missing_stop_after_tool_call:
118
+ log_warning(
119
+ f"Stop after tool call tool(s) not present in the toolkit: {', '.join(missing_stop_after_tool_call)}"
120
+ )
121
+
122
+ if self.show_result_tools:
123
+ missing_show_result = set(self.show_result_tools) - set(available_tools)
124
+ if missing_show_result:
125
+ log_warning(f"Show result tool(s) not present in the toolkit: {', '.join(missing_show_result)}")
126
+
107
127
  def _register_tools(self) -> None:
108
128
  """Register all tools."""
109
129
  for tool in self.tools:
110
130
  self.register(tool)
111
131
 
112
- def register(self, function: Callable[..., Any], name: Optional[str] = None):
132
+ def register(self, function: Union[Callable[..., Any], Function], name: Optional[str] = None) -> None:
113
133
  """Register a function with the toolkit.
114
134
 
135
+ This method supports both regular callables and Function objects (from @tool decorator).
136
+ When a Function object is passed (e.g., from a @tool decorated method), it will:
137
+ 1. Extract the configuration from the Function object
138
+ 2. Look for a bound method with the same name on `self`
139
+ 3. Create a new Function with the bound method as entrypoint, preserving decorator settings
140
+
115
141
  Args:
116
- function: The callable to register
142
+ function: The callable or Function object to register
117
143
  name: Optional custom name for the function
118
144
 
119
145
  Returns:
120
146
  The registered function
121
147
  """
122
148
  try:
149
+ # Handle Function objects (from @tool decorator)
150
+ if isinstance(function, Function):
151
+ return self._register_decorated_tool(function, name)
152
+
153
+ # Handle regular callables
123
154
  tool_name = name or function.__name__
124
155
  if self.include_tools is not None and tool_name not in self.include_tools:
125
156
  return
@@ -140,9 +171,89 @@ class Toolkit:
140
171
  self.functions[f.name] = f
141
172
  log_debug(f"Function: {f.name} registered with {self.name}")
142
173
  except Exception as e:
143
- logger.warning(f"Failed to create Function for: {function.__name__}")
174
+ func_name = self._get_tool_name(function)
175
+ logger.warning(f"Failed to create Function for: {func_name}")
144
176
  raise e
145
177
 
178
+ def _register_decorated_tool(self, function: Function, name: Optional[str] = None) -> None:
179
+ """Register a Function object from @tool decorator, binding it to self.
180
+
181
+ When @tool decorator is used on a class method, it creates a Function with an unbound
182
+ method as entrypoint. This method creates a bound version of the entrypoint that
183
+ includes `self`, preserving all decorator settings.
184
+
185
+ Args:
186
+ function: The Function object from @tool decorator
187
+ name: Optional custom name override
188
+ """
189
+ import inspect
190
+
191
+ tool_name = name or function.name
192
+ if self.include_tools is not None and len(self.include_tools) > 0 and tool_name not in self.include_tools:
193
+ return
194
+ if self.exclude_tools is not None and len(self.exclude_tools) > 0 and tool_name in self.exclude_tools:
195
+ return
196
+
197
+ # Get the original entrypoint from the Function
198
+ if function.entrypoint is None:
199
+ log_warning(f"Function '{tool_name}' has no entrypoint, skipping registration")
200
+ return
201
+
202
+ original_func = function.entrypoint
203
+
204
+ # Check if the function expects 'self' as first argument (i.e., it's an unbound method)
205
+ sig = inspect.signature(original_func)
206
+ params = list(sig.parameters.keys())
207
+
208
+ if params and params[0] == "self":
209
+ # Create a bound method by wrapping the function to include self
210
+ def make_bound_method(func, instance):
211
+ def bound(*args, **kwargs):
212
+ return func(instance, *args, **kwargs)
213
+
214
+ # Preserve function metadata for debugging
215
+ bound.__name__ = getattr(func, "__name__", tool_name)
216
+ bound.__doc__ = getattr(func, "__doc__", None)
217
+ return bound
218
+
219
+ bound_method = make_bound_method(original_func, self)
220
+ else:
221
+ # Function doesn't expect self (e.g., static method or already bound)
222
+ bound_method = original_func
223
+
224
+ # decorator settings take precedence, then toolkit settings
225
+ stop_after = function.stop_after_tool_call or tool_name in self.stop_after_tool_call_tools
226
+ show_result = function.show_result or tool_name in self.show_result_tools or stop_after
227
+ requires_confirmation = function.requires_confirmation or tool_name in self.requires_confirmation_tools
228
+ external_execution = function.external_execution or tool_name in self.external_execution_required_tools
229
+
230
+ # Create new Function with bound method, preserving decorator settings
231
+ f = Function(
232
+ name=tool_name,
233
+ description=function.description,
234
+ parameters=function.parameters,
235
+ strict=function.strict,
236
+ instructions=function.instructions,
237
+ add_instructions=function.add_instructions,
238
+ entrypoint=bound_method,
239
+ skip_entrypoint_processing=True, # Parameters already processed by decorator
240
+ show_result=show_result,
241
+ stop_after_tool_call=stop_after,
242
+ pre_hook=function.pre_hook,
243
+ post_hook=function.post_hook,
244
+ tool_hooks=function.tool_hooks,
245
+ requires_confirmation=requires_confirmation,
246
+ requires_user_input=function.requires_user_input,
247
+ user_input_fields=function.user_input_fields,
248
+ user_input_schema=function.user_input_schema,
249
+ external_execution=external_execution,
250
+ cache_results=function.cache_results if function.cache_results else self.cache_results,
251
+ cache_dir=function.cache_dir if function.cache_dir else self.cache_dir,
252
+ cache_ttl=function.cache_ttl if function.cache_ttl != 3600 else self.cache_ttl,
253
+ )
254
+ self.functions[f.name] = f
255
+ log_debug(f"Function: {f.name} registered with {self.name} (from @tool decorator)")
256
+
146
257
  @property
147
258
  def requires_connect(self) -> bool:
148
259
  """Whether the toolkit requires connection management."""
agno/utils/events.py CHANGED
@@ -34,6 +34,7 @@ from agno.run.agent import (
34
34
  SessionSummaryCompletedEvent,
35
35
  SessionSummaryStartedEvent,
36
36
  ToolCallCompletedEvent,
37
+ ToolCallErrorEvent,
37
38
  ToolCallStartedEvent,
38
39
  )
39
40
  from agno.run.requirement import RunRequirement
@@ -61,6 +62,7 @@ from agno.run.team import SessionSummaryCompletedEvent as TeamSessionSummaryComp
61
62
  from agno.run.team import SessionSummaryStartedEvent as TeamSessionSummaryStartedEvent
62
63
  from agno.run.team import TeamRunEvent, TeamRunInput, TeamRunOutput, TeamRunOutputEvent
63
64
  from agno.run.team import ToolCallCompletedEvent as TeamToolCallCompletedEvent
65
+ from agno.run.team import ToolCallErrorEvent as TeamToolCallErrorEvent
64
66
  from agno.run.team import ToolCallStartedEvent as TeamToolCallStartedEvent
65
67
  from agno.session.summary import SessionSummary
66
68
 
@@ -561,6 +563,32 @@ def create_team_tool_call_completed_event(
561
563
  )
562
564
 
563
565
 
566
+ def create_tool_call_error_event(
567
+ from_run_response: RunOutput, tool: ToolExecution, error: Optional[str] = None
568
+ ) -> ToolCallErrorEvent:
569
+ return ToolCallErrorEvent(
570
+ session_id=from_run_response.session_id,
571
+ agent_id=from_run_response.agent_id, # type: ignore
572
+ agent_name=from_run_response.agent_name, # type: ignore
573
+ run_id=from_run_response.run_id,
574
+ tool=tool,
575
+ error=error,
576
+ )
577
+
578
+
579
+ def create_team_tool_call_error_event(
580
+ from_run_response: TeamRunOutput, tool: ToolExecution, error: Optional[str] = None
581
+ ) -> TeamToolCallErrorEvent:
582
+ return TeamToolCallErrorEvent(
583
+ session_id=from_run_response.session_id,
584
+ team_id=from_run_response.team_id, # type: ignore
585
+ team_name=from_run_response.team_name, # type: ignore
586
+ run_id=from_run_response.run_id,
587
+ tool=tool,
588
+ error=error,
589
+ )
590
+
591
+
564
592
  def create_run_output_content_event(
565
593
  from_run_response: RunOutput,
566
594
  content: Optional[Any] = None,
@@ -738,8 +766,8 @@ def handle_event(
738
766
  store_events: bool = False,
739
767
  ) -> Union[RunOutputEvent, TeamRunOutputEvent]:
740
768
  # We only store events that are not run_response_content events
741
- events_to_skip = [event.value for event in events_to_skip] if events_to_skip else []
742
- if store_events and event.event not in events_to_skip:
769
+ _events_to_skip: List[str] = [event.value for event in events_to_skip] if events_to_skip else []
770
+ if store_events and event.event not in _events_to_skip:
743
771
  if run_response.events is None:
744
772
  run_response.events = []
745
773
  run_response.events.append(event) # type: ignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agno
3
- Version: 2.3.14
3
+ Version: 2.3.15
4
4
  Summary: Agno: a lightweight library for building Multi-Agent Systems
5
5
  Author-email: Ashpreet Bedi <ashpreet@agno.com>
6
6
  Project-URL: homepage, https://agno.com
@@ -6,7 +6,7 @@ agno/media.py,sha256=PisfrNwkx2yVOW8p6LXlV237jI06Y6kGjd7wUMk5170,17121
6
6
  agno/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  agno/table.py,sha256=9hHFnInNsrj0ZKtWjGDP5c6kbmNdtQvDDYT2j2CZJ6o,198
8
8
  agno/agent/__init__.py,sha256=s7S3FgsjZxuaabzi8L5n4aSH8IZAiZ7XaNNcySGR-EQ,1051
9
- agno/agent/agent.py,sha256=RSI3N4A5_wLndzfwR2k_b94urIKsTcYVNejGk4QgWBA,487486
9
+ agno/agent/agent.py,sha256=-uPBEnmf2vV81H9OBJ8ozIsvTUVqgPFQIZCuFgBlRPM,489186
10
10
  agno/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  agno/api/agent.py,sha256=fKlQ62E_C9Rjd7Zus3Gs3R1RG-IhzFV-ICpkb6SLqYc,932
12
12
  agno/api/api.py,sha256=gFhVjxJYkQsw8mBl2fhoStMPGlyJ37DJaqgUOwZVvQI,1021
@@ -55,7 +55,7 @@ agno/db/json/__init__.py,sha256=zyPTmVF9S-OwXCL7FSkrDmunZ_Q14YZO3NYUv1Pa14Y,62
55
55
  agno/db/json/json_db.py,sha256=YJYPJfLVldDZXx5pmflg_O8OfaXBbBNLOJHGE5qEuOY,69793
56
56
  agno/db/json/utils.py,sha256=ywD72LhxKl6yfmENKlOgCkw5W_XJ-oeOPSVvjsNnOy8,8062
57
57
  agno/db/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
- agno/db/migrations/manager.py,sha256=D7-qgN0KxP_tLAhJw_1uPNCtxpiK-6r-S1Gg5r8AD0k,9647
58
+ agno/db/migrations/manager.py,sha256=x7jH5UBFFqoUbFETBM94pgNSt9L-rRVlNvUyqHVQ8GM,9635
59
59
  agno/db/migrations/v1_to_v2.py,sha256=gj8deaEWUxOr0qJyMfjOpV3LxEh-otOSOxDckeUq0qU,24938
60
60
  agno/db/migrations/versions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  agno/db/migrations/versions/v2_3_0.py,sha256=WikuOtgQs_Tq8o3JndCMG6HAMzKvz4GVth9V5V5RuvE,35161
@@ -187,13 +187,13 @@ agno/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
187
187
  agno/models/base.py,sha256=7zGj7QUitUUdWD_xxJQIpgdLNbghnrIFDqem4d6DJ2Q,122737
188
188
  agno/models/defaults.py,sha256=1_fe4-ZbNriE8BgqxVRVi4KGzEYxYKYsz4hn6CZNEEM,40
189
189
  agno/models/message.py,sha256=5bZOFdZuhsQw06nNppvFJq-JGI4lqQt4sVhdjfEFBZM,19976
190
- agno/models/metrics.py,sha256=81IILXZwGmOTiWK003bi5mg4bM1f4LCWbwyamjFzp18,4500
190
+ agno/models/metrics.py,sha256=bQJ5DMoFcrb2EyA2VUm4u9HVGbgTKO5F1o2A_t_7hqI,4913
191
191
  agno/models/response.py,sha256=uwSw2wKm5U1ZJ1R-8dMWV1I7TgFlKTJGOFq73WExO6s,7110
192
192
  agno/models/utils.py,sha256=jxAIIG2y7KBypwFlc87GzFnvogRpGLfd-wwr6KXZIj8,7269
193
193
  agno/models/aimlapi/__init__.py,sha256=XQcFRvt4qJ8ol9nCC0XKEkVEDivdNf3nZNoJZMZ5m8M,78
194
194
  agno/models/aimlapi/aimlapi.py,sha256=ELPv8RuEc6qUq4JxWEJVRITsK71rzUxw6_cP3Zd8Vz0,2179
195
195
  agno/models/anthropic/__init__.py,sha256=nbReX3p17JCwfrMDR9hR7-OaEFZm80I7dng93dl-Fhw,77
196
- agno/models/anthropic/claude.py,sha256=R2Jfh7onRcvU_ZQx7p--QDaIrOEKsv_1eKGFu0J11VY,49224
196
+ agno/models/anthropic/claude.py,sha256=eUv6bml5n_tWCwE4Sr6Yg4eWyo5VDbRq0jO5Eqeeu9k,49301
197
197
  agno/models/aws/__init__.py,sha256=TbcwQwv9A7KjqBM5RQBR8x46GvyyCxbBCjwkpjfVGKE,352
198
198
  agno/models/aws/bedrock.py,sha256=6qMlxwpnGTBz5T5aIpMrKg5hmRJJJ50D7IrdkW8xLYw,32156
199
199
  agno/models/aws/claude.py,sha256=d_vwWtZZw3KHOOTLrPV_C7IWozIMxNafAHmxesyg1mk,9097
@@ -249,7 +249,7 @@ agno/models/nvidia/nvidia.py,sha256=Q81Ey-IJFefOmlrjbBgwNXZ2ARey-j6pXPJHItaE8uY,
249
249
  agno/models/ollama/__init__.py,sha256=TIhwxG7ek3eyfoKTLoZQXwdgzcIngYKjbjSlkf2gkWE,72
250
250
  agno/models/ollama/chat.py,sha256=Szc8rEWRvQ2CW50V5xAuccX4Ozc1BAV9wUPbFJhY_J8,16862
251
251
  agno/models/openai/__init__.py,sha256=OssVgQRpsriU6aJZ3lIp_jFuqvX6y78L4Fd3uTlmI3E,225
252
- agno/models/openai/chat.py,sha256=zAAN9LJL29G_wWVxw-xOlngFqI7byHZzS910Wn04YT0,41529
252
+ agno/models/openai/chat.py,sha256=gMh6meevEdQF8HEyHLp6O3Wpxwz84boISPUnLK-p_kE,41591
253
253
  agno/models/openai/like.py,sha256=wmw9PfAVqluBs4MMY73dgjelKn1yl5JDKyCRvaNFjFw,745
254
254
  agno/models/openai/responses.py,sha256=-jy7ch2qH69C_8zcW1CPJA8ZXhr80sG_1kZfqv_dHzs,48769
255
255
  agno/models/openrouter/__init__.py,sha256=ZpZhNyy_EGSXp58uC9e2iyjnxBctql7GaY8rUG-599I,90
@@ -275,14 +275,14 @@ agno/models/vllm/vllm.py,sha256=qaWgYcmegJZL52ZjmuIoryBpZ9LpOvYHFY-AYxVirA4,2806
275
275
  agno/models/xai/__init__.py,sha256=ukcCxnCHxTtkJNA2bAMTX4MhCv1wJcbiq8ZIfYczIxs,55
276
276
  agno/models/xai/xai.py,sha256=i7QoRiVdmoQ1E8Zw_e60qQgF85geZXWRPtEKioIInSU,4796
277
277
  agno/os/__init__.py,sha256=h8oQu7vhD5RZf09jkyM_Kt1Kdq_d5kFB9gJju8QPwcY,55
278
- agno/os/app.py,sha256=38L2yZHM-cV-NWtinqqPNvPiTGqugljffhKH4avX7TY,41587
279
- agno/os/auth.py,sha256=2OxOJYTtYk31YFv5z95LppTuvrp902_HEb9lj2qjEyI,8958
278
+ agno/os/app.py,sha256=nng6zNVrj3LhuewYBsnLiBs9KAXeqF11i_rN5kKn6Gc,42586
279
+ agno/os/auth.py,sha256=UawDRapLfZQux-xSOQX00oID0Hags75xNh7Jy6c06eU,10496
280
280
  agno/os/config.py,sha256=z0wNd576_qsQGsQWsMRIZzjknDVEPlKWF_pHE6VBUyY,3538
281
281
  agno/os/mcp.py,sha256=LrCZ6xQ6RAJfnxHYGgHQStanWN4u2bjzcxHjD_cZxBk,10362
282
- agno/os/router.py,sha256=KI4nchX-ZDWjRg4Dvv5-uWv7d86I9WBQyXQSCMI52u0,10441
282
+ agno/os/router.py,sha256=uv9BrWmwzRCE_sJL5n-jFgag9eDksAfDoIv4VI9Z3iQ,8131
283
283
  agno/os/schema.py,sha256=qLkiCbr6IWP6xUGa905CU1dzb5YV5dpZ4qbL1mkVP3g,29376
284
284
  agno/os/scopes.py,sha256=gH3Obo618gHKt5h-N1OkWqB4UPl2LZygd7GW7pKzdAc,15696
285
- agno/os/settings.py,sha256=Cn5_8lZI8Vx1UaUYqs9h6Qp4IMDFn4f3c35uppiaMy4,1343
285
+ agno/os/settings.py,sha256=gS9pN1w21wsa5XqDkK-RfQmroAaqoX4KZBfRuhUevkM,1556
286
286
  agno/os/utils.py,sha256=F2dwWPDBr_1NGlR686ElCsFFQWZAXViqvQdmTMGzDYI,37309
287
287
  agno/os/interfaces/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
288
288
  agno/os/interfaces/base.py,sha256=vXkr1tRjWHTcmBlQFzvQjqURLhObmFtUAx82uij_j48,542
@@ -305,6 +305,7 @@ agno/os/interfaces/whatsapp/whatsapp.py,sha256=tNJncEu_hm0lFOHbjaSoz5-VIKORR_pyW
305
305
  agno/os/middleware/__init__.py,sha256=Ai4U-Bj2W17PcwNK4j98V0p9mf1XW-NyL7r3VG-a8Ow,130
306
306
  agno/os/middleware/jwt.py,sha256=hq3u4xYN9EowA2cTye7CSUGqB5cxqToLPlzUs4JnJV0,33137
307
307
  agno/os/routers/__init__.py,sha256=du4LO9aZwiY1t59VcV9M6wiAfftFFlUZc-YXsTGy9LI,97
308
+ agno/os/routers/database.py,sha256=0oyPQlmzJtqEIHT7RGY1IkhPX9PHFKKfjneHaqcqx-I,5803
308
309
  agno/os/routers/health.py,sha256=AO3ec6Xi1wXOwUUFJhEcM45488qu6aZRJTwF2GLz6Ak,992
309
310
  agno/os/routers/home.py,sha256=xe8DYJkRgad55qiza0lHt8pUIV5PLSyu2MkybjuPDDE,1708
310
311
  agno/os/routers/agents/__init__.py,sha256=nr1H0Mp7NlWPnvu0ccaHVSPHz-lXg43TRMApkUIEXNc,91
@@ -348,12 +349,12 @@ agno/reasoning/openai.py,sha256=omgtpg6y9ki3IiIs8gHfxPzndvg-XQ_whSg6t8WKFJE,8074
348
349
  agno/reasoning/step.py,sha256=6DaOb_0DJRz9Yh1w_mxcRaOSVzIQDrj3lQ6rzHLdIwA,1220
349
350
  agno/reasoning/vertexai.py,sha256=CCdY-ygLEdQLQuo2D-dYC0aDr4FJ9BqtkCkk2U2Ftfs,6174
350
351
  agno/run/__init__.py,sha256=DFjpUomTzHvIDQQE_PUfp4oJM-7Ti8h8a_Fe5Kr8rjM,98
351
- agno/run/agent.py,sha256=mtJhqKKkHC8O2Huv3P7aUZ_dioCfc9tjrWdl92T1yqM,29474
352
- agno/run/base.py,sha256=WR3V3HIaIImO7u_o3YQuxAz8yMo_NZy6g3gh0K5TP7k,8946
352
+ agno/run/agent.py,sha256=U678dBfis4W-9r1_YdgqEjo1LhmWJv2YH17CqlB0JvE,29771
353
+ agno/run/base.py,sha256=SqiprPcwBbjVRxSi9zlMqPsN6QDh0UHMvodnRBZnH5c,9814
353
354
  agno/run/cancel.py,sha256=yoSj3fnx8D7Gf-fSngVIgd3GOp3tRaDhHH_4QeHDoAk,2667
354
355
  agno/run/messages.py,sha256=rAC4CLW-xBA6qFS1BOvcjJ9j_qYf0a7sX1mcdY04zMU,1126
355
356
  agno/run/requirement.py,sha256=5M_L-3nKLPDS0tUxTbFNvgXgWfWUyEohQz_3bxNc39M,6817
356
- agno/run/team.py,sha256=bk5t3hjHIhfj4QWeP1T2VqsHsES284l0Db46XnftI3E,28518
357
+ agno/run/team.py,sha256=mbSt4lCjTVGD6d9C3BmDGC8Lam9Wmvm3Lql6GZEY3hs,28826
357
358
  agno/run/workflow.py,sha256=cHH_ArV_Wws__8ug9Dwy3OVu7G2ND_K9E1PNdzk7CZo,25100
358
359
  agno/session/__init__.py,sha256=p6eqzWcLSHiMex2yZvkwv2yrFUNdGs21TGMS49xrEC4,376
359
360
  agno/session/agent.py,sha256=8vVtwwUC5moGWdRcG99Ik6Ay7gbFRrPPnT1ncOUFQIg,10365
@@ -361,7 +362,7 @@ agno/session/summary.py,sha256=9JnDyQyggckd3zx6L8Q5f-lglZvrFQxvPjGU8gLCgR4,10292
361
362
  agno/session/team.py,sha256=J7QIy8oCi2_eWs0ToDs7VHHfeFQI34cF4i1Yx7Tbv_M,13388
362
363
  agno/session/workflow.py,sha256=nPHnh1N0SJby5JRjysCUI-kTDCelQMFfqosEnnLzPIg,19690
363
364
  agno/team/__init__.py,sha256=toHidBOo5M3n_TIVtIKHgcDbLL9HR-_U-YQYuIt_XtE,847
364
- agno/team/team.py,sha256=uPQGlx1mDRzR2t3zAo5R-5-6t9IpA0XBnKY7TorxZdc,425401
365
+ agno/team/team.py,sha256=XmCaN96RZnQquJ5ON_2W9uOMLhVYrTZ2wZ4r4vgHHwg,426016
365
366
  agno/tools/__init__.py,sha256=jNll2sELhPPbqm5nPeT4_uyzRO2_KRTW-8Or60kioS0,210
366
367
  agno/tools/agentql.py,sha256=S82Z9aTNr-E5wnA4fbFs76COljJtiQIjf2grjz3CkHU,4104
367
368
  agno/tools/airflow.py,sha256=uf2rOzZpSU64l_qRJ5Raku-R3Gky-uewmYkh6W0-oxg,2610
@@ -459,7 +460,7 @@ agno/tools/tavily.py,sha256=1habkgXXHU8oStWmoZ29DVRBtl-tO-Pss1o9N1MovIU,10464
459
460
  agno/tools/telegram.py,sha256=e78EJlh44EmJNnv3FHyxW-sl72GjFYHpF6aGrCjNijc,1523
460
461
  agno/tools/todoist.py,sha256=p3TCQ0zAfmrhGIHDExVb8bmY0746UbzAbKHNFJlGggw,8177
461
462
  agno/tools/tool_registry.py,sha256=LMKqamTqjbFBD6SAV39PJULPmpfiHwSq6_NQoBxvGl8,85
462
- agno/tools/toolkit.py,sha256=c_lE_VkB36eeX1b89qr7cCsgx_p3f5fvoSV7WiNbu0E,7586
463
+ agno/tools/toolkit.py,sha256=LkJ-KjpW11hDH6IFTlrE_IQfn7ND3ZVcKrl3AkzJNcg,13281
463
464
  agno/tools/trafilatura.py,sha256=AK2Q_0jqwOqL8-0neMI6ZjuUt-w0dGvW-w8zE6FrZVs,14792
464
465
  agno/tools/trello.py,sha256=y2fc60ITCIXBOk4TX3w70YjkMvM9SMKsEYpfXOKWtOI,8546
465
466
  agno/tools/twilio.py,sha256=XUbUhFJdLxP3nlNx2UdS9aHva-HSIGHD01cHHuE9Rfg,6752
@@ -505,7 +506,7 @@ agno/utils/cryptography.py,sha256=iDR0Oij2A1CS1NNvKBnbGJkBe4IWiBZPnV7Q0skBHPQ,85
505
506
  agno/utils/dttm.py,sha256=MwVpm03DY_sR6NArsSBYg7_sBBsYfWMBQcLCfi7Q4rY,1290
506
507
  agno/utils/enum.py,sha256=wDHnruIf8cQU-_QdryY9LBugPCrlj-nOabQuEFnmeYM,753
507
508
  agno/utils/env.py,sha256=o8OwKhx78vi8MaXPes10mXejmJ13CqAh7ODKMS1pmcM,438
508
- agno/utils/events.py,sha256=tCrfy6rQs46ZbTvJoMRWJtofbxdq8mVg6ENPG__EqPU,30350
509
+ agno/utils/events.py,sha256=z99rRtxRVax2lcgKxbtDkG03DjlL81_eVKIpT7czmZo,31345
509
510
  agno/utils/format_str.py,sha256=Zp9dDGMABUJzulp2bs41JiNv0MqmMX0qPToL7l_Ab1c,376
510
511
  agno/utils/functions.py,sha256=eHvGqO2uO63TR-QmmhZy2DEnC0xkAfhBG26z77T7jCo,6306
511
512
  agno/utils/gemini.py,sha256=-RrZRk4fKRsNCsFVKqXc1JzZaLU3_vIlzGS-YWbz4Bs,16055
@@ -607,8 +608,8 @@ agno/workflow/step.py,sha256=voTmWWihLKDAMeLgYoie96KLCiVpxPFrZoFHEMhA6QM,75046
607
608
  agno/workflow/steps.py,sha256=rbfue2M4qYEkgHueojCY1-cB4i1MFjO-jX6uTxyoKwk,27118
608
609
  agno/workflow/types.py,sha256=OJXn4sYQ1VQ1H7UO_BwOO3_6q-OgcDX2XLDw3H4LIx0,20508
609
610
  agno/workflow/workflow.py,sha256=ylRulasAlJXDC90BpPaFxXNnlO_xcf5LxAbmcTU-Ltg,193481
610
- agno-2.3.14.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
611
- agno-2.3.14.dist-info/METADATA,sha256=FP7CrMLcCMcVBGwTxaUnBAKoGWjfCba0AsjtsSQVkPA,31588
612
- agno-2.3.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
613
- agno-2.3.14.dist-info/top_level.txt,sha256=MKyeuVesTyOKIXUhc-d_tPa2Hrh0oTA4LM0izowpx70,5
614
- agno-2.3.14.dist-info/RECORD,,
611
+ agno-2.3.15.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
612
+ agno-2.3.15.dist-info/METADATA,sha256=b8wMpod_FDa0Q7AxuquuiY36XHIQojsIzFu6zhfj82A,31588
613
+ agno-2.3.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
614
+ agno-2.3.15.dist-info/top_level.txt,sha256=MKyeuVesTyOKIXUhc-d_tPa2Hrh0oTA4LM0izowpx70,5
615
+ agno-2.3.15.dist-info/RECORD,,
File without changes