Public report — agno, published 29 Jul 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 29-07-2026 @ 17:33 UTC Public
Code Health Audit

Agno-Agi/agno

43% At Risk

Large · 458,174 LoC · rebuild ~4.8 person-years · weakest lens: Security (30%)

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

31/32dimensions tool-verifieddeterministic · confidence 1.0 · 1 LLM-assisted, advisory
3151findings with an exact file:lineof 3168 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
32/101dimensions across the health lenses458174 LoC — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

agno-agi/agno carries serious gaps (43%). Several issues below can materially affect correctness, security, or the cost of changing it — and propagate to everything that depends on it.

It is strongest in Domain Modelling (100%) — the domain model is expressive and well-guarded. Architecture (100%) is solid too.

Most urgent: a critical security exposure was detected (see the Security & Compliance lens). Treat it as a priority regardless of the overall grade.

The area that most needs attention is Security (30%) — exposure to security and compliance incidents is elevated. Readiness (43%) is the next concern — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade.

Leadership focus, highest impact first: 3 Secret finding(s) (Secrets (history)); 18 High CVE finding(s) (OSV Dependency Vulnerabilities); SAST step to CI running what this repository's stack ships (Security & performance tooling).

For scale: Large (~458,174 production lines); rebuilding it from scratch would take roughly ~4.8 person-years (~2–10 engineers). Approximate, ±~30%.

It builds on a genuinely strong Domain Modelling foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Security 30% · 46% weightReadiness 43% · 25% weightAccessibility 54% · 14% weightMaturity 58% · 8% weightCode Health 65% · 4% weightArchitecture 100% · 2% weightDomain Modelling 100% · 1% weight

Raise Security 30 → 70 (the Healthy floor) ⇒ headline 43 → ~53.

Code composition — where the lines go
Tests 100%
New since the last scan (100+)

672 finding(s) are new versus the previous scan (2026-07-20) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D1 · runner._isolate_attempt (cyclomatic 33) libs/agno/agno/environments/runner.py
  • D1 · EntityMemoryStore._apply_remember (cyclomatic 29) libs/agno/agno/learn/stores/entity_memory.py
  • D1 · agentos._normalize_eval_run (cyclomatic 27) libs/agno/agno/tools/agentos.py
  • D1 · runner.arun_rollouts (cyclomatic 26) libs/agno/agno/environments/runner.py
  • D1 · EntityMemory.get_context_text (cyclomatic 25) libs/agno/agno/learn/schemas.py
  • D1 · EntityMemoryStore._format_entity_hit (cyclomatic 25) libs/agno/agno/learn/stores/entity_memory.py
  • D1 · EntityMemoryStore._forget_edge (cyclomatic 23) libs/agno/agno/learn/stores/entity_memory.py
  • D1 · ToolCallScorer.score (cyclomatic 23) libs/agno/agno/scorer/tools.py
  • D1 · AsyncPostgresDb.get_span_stats (cyclomatic 22) libs/agno/agno/db/postgres/async_postgres.py
  • D1 · PostgresDb.get_span_stats (cyclomatic 22) libs/agno/agno/db/postgres/postgres.py
  • D1 · EntityMemoryStore.build_context (cyclomatic 22) libs/agno/agno/learn/stores/entity_memory.py
  • D1 · AsyncSqliteDb.get_span_stats (cyclomatic 21) libs/agno/agno/db/sqlite/async_sqlite.py
  • D1 · SqliteDb.get_span_stats (cyclomatic 21) libs/agno/agno/db/sqlite/sqlite.py
  • D1 · MoonShot._format_message (cyclomatic 21) libs/agno/agno/models/moonshot/moonshot.py
  • D1 · _validate.validate_sft_jsonl (cyclomatic 20) libs/agno/agno/environments/exporters/_validate.py
  • D1 · _storage._hydrate_from_graph (cyclomatic 19) libs/agno/agno/team/_storage.py
  • D1 · EntityMemoryStore._apply_forget (cyclomatic 18) libs/agno/agno/learn/stores/entity_memory.py
  • D1 · studio_hitl_agent_os.resolve_paused_tools (cyclomatic 17) cookbook/05_agent_os/22_studio/studio_hitl_agent_os.py
  • D1 · AsyncMongoDb.get_trace_stats (cyclomatic 16) libs/agno/agno/db/mongo/async_mongo.py
  • D1 · MongoDb.get_trace_stats (cyclomatic 16) libs/agno/agno/db/mongo/mongo.py
  • D1 · SingleStoreDb.get_trace_stats (cyclomatic 16) libs/agno/agno/db/singlestore/singlestore.py
  • D1 · FileSystemTools.list_files (cyclomatic 16) libs/agno/agno/fs/toolkit.py
  • D1 · LearningMachine._serialize_store_input (cyclomatic 16) libs/agno/agno/learn/machine.py
  • D1 · LearningMachine._deserialize_store_config (cyclomatic 16) libs/agno/agno/learn/machine.py
  • D1 · DecisionLogStore._filter_decisions (cyclomatic 16) libs/agno/agno/learn/stores/decision_log.py
  • D2 · EntityMemory.get_context_text (cognitive 48) libs/agno/agno/learn/schemas.py
  • D2 · runner._isolate_attempt (cognitive 43) libs/agno/agno/environments/runner.py
  • D2 · EntityMemoryStore._format_entity_hit (cognitive 43) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · runner.arun_rollouts (cognitive 42) libs/agno/agno/environments/runner.py
  • D2 · EntityMemoryStore._apply_remember (cognitive 39) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · agentos._normalize_eval_run (cognitive 36) libs/agno/agno/tools/agentos.py
  • D2 · EntityMemoryStore.build_context (cognitive 35) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · ToolCallScorer.score (cognitive 35) libs/agno/agno/scorer/tools.py
  • D2 · _storage._hydrate_from_graph (cognitive 34) libs/agno/agno/team/_storage.py
  • D2 · LearningMachine._deserialize_store_config (cognitive 33) libs/agno/agno/learn/machine.py
  • D2 · studio_hitl_agent_os.resolve_paused_tools (cognitive 32) cookbook/05_agent_os/22_studio/studio_hitl_agent_os.py
  • D2 · _validate.validate_sft_jsonl (cognitive 32) libs/agno/agno/environments/exporters/_validate.py
  • D2 · EntityMemoryStore._forget_edge (cognitive 32) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · MoonShot._format_message (cognitive 32) libs/agno/agno/models/moonshot/moonshot.py
  • D2 · DecisionLogStore._filter_decisions (cognitive 30) libs/agno/agno/learn/stores/decision_log.py
  • D2 · AsyncPostgresDb.get_span_stats (cognitive 28) libs/agno/agno/db/postgres/async_postgres.py
  • D2 · PostgresDb.get_span_stats (cognitive 28) libs/agno/agno/db/postgres/postgres.py
  • D2 · AsyncSqliteDb.get_span_stats (cognitive 26) libs/agno/agno/db/sqlite/async_sqlite.py
  • D2 · SqliteDb.get_span_stats (cognitive 26) libs/agno/agno/db/sqlite/sqlite.py
  • D2 · runner._mcp_tool_names (cognitive 24) libs/agno/agno/environments/runner.py
  • D2 · runner._mcp_tool_instances (cognitive 22) libs/agno/agno/environments/runner.py
  • D2 · test_scorer.test_no_lowercase_status_literals (cognitive 22) libs/agno/tests/unit/scorer/test_scorer.py
  • D2 · FileSystemTools.list_files (cognitive 21) libs/agno/agno/fs/toolkit.py
  • D2 · _engine._attempt_body (cognitive 20) libs/agno/agno/environments/_engine.py
  • D2 · cookbook_runner.main (cognitive 19) cookbook/scripts/cookbook_runner.py
  • D2 · DbFileSystem.__init__ (cognitive 19) libs/agno/agno/fs/db.py
  • D2 · DbFileSystem.append (cognitive 19) libs/agno/agno/fs/db.py
  • D2 · EntityMemoryStore._apply_forget (cognitive 19) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · EntityMemoryStore._aname_candidates (cognitive 19) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · EntityMemoryStore.alist_entities (cognitive 19) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · user_input.provide_values (cognitive 18) cookbook/05_agent_os/05_human_in_the_loop/user_input.py
  • D2 · studio_hitl_agent.resolve_feedback (cognitive 18) cookbook/05_agent_os/22_studio/studio_hitl_agent.py
  • D2 · LiveGrid._refresh (cognitive 18) libs/agno/agno/environments/_render.py
  • D2 · LearningMachine._serialize_store_input (cognitive 18) libs/agno/agno/learn/machine.py
  • D2 · EntityMemoryStore._related_names (cognitive 18) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · EntityMemoryStore._arelated_names (cognitive 18) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · components._resolve_member_links (cognitive 18) libs/agno/agno/os/routers/components/components.py
  • D2 · SmallestTools.get_voices (cognitive 18) libs/agno/agno/tools/smallest.py
  • D2 · studio_hitl_agent.run_console_demo (cognitive 17) cookbook/05_agent_os/22_studio/studio_hitl_agent.py
  • D2 · _messages._learning_message_text (cognitive 17) libs/agno/agno/agent/_messages.py
  • D2 · Task.from_jsonl (cognitive 17) libs/agno/agno/environments/environment.py
  • D2 · EnvironmentRunResult.diff (cognitive 17) libs/agno/agno/environments/runner.py
  • D2 · EntityMemoryStore.aremember_about (cognitive 17) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · EntityMemoryStore._apply_supersessions (cognitive 17) libs/agno/agno/learn/stores/entity_memory.py
  • D2 · StepRequirement.to_dict (cognitive 17) libs/agno/agno/workflow/types.py
  • D2 · sse_reconnect.iter_sse (cognitive 16) cookbook/05_agent_os/04_run_lifecycle/sse_reconnect.py
  • D2 · ClickhouseDb.get_trace_stats (cognitive 16) libs/agno/agno/db/clickhouse/clickhouse.py
  • D2 · _render._attempt_lines (cognitive 16) libs/agno/agno/environments/_render.py
  • D2 · sft.to_sft_jsonl (cognitive 16) libs/agno/agno/environments/exporters/sft.py
  • D2 · runner._read_only_learning_machine (cognitive 16) libs/agno/agno/environments/runner.py
  • D2 · _paths.normalize_path (cognitive 16) libs/agno/agno/fs/_paths.py
  • D2 · FileSystemTools.__init__ (cognitive 16) libs/agno/agno/fs/toolkit.py
  • D3 · FileTooLong: workflow/workflow.py libs/agno/agno/workflow/workflow.py
  • D3 · FileTooLong: team/_run.py libs/agno/agno/team/_run.py
  • D3 · FileTooLong: agent/_run.py libs/agno/agno/agent/_run.py
  • D3 · FileTooLong: postgres/postgres.py libs/agno/agno/db/postgres/postgres.py
  • D3 · FileTooLong: sqlite/sqlite.py libs/agno/agno/db/sqlite/sqlite.py
  • D3 · FileTooLong: sqlite/async_sqlite.py libs/agno/agno/db/sqlite/async_sqlite.py
  • D3 · FileTooLong: postgres/async_postgres.py libs/agno/agno/db/postgres/async_postgres.py
  • D3 · FileTooLong: stores/entity_memory.py libs/agno/agno/learn/stores/entity_memory.py
  • D3 · FileTooLong: knowledge/knowledge.py libs/agno/agno/knowledge/knowledge.py
  • D3 · FileTooLong: mongo/async_mongo.py libs/agno/agno/db/mongo/async_mongo.py
  • D3 · FileTooLong: workflow/step.py libs/agno/agno/workflow/step.py
  • D3 · FileTooLong: models/base.py libs/agno/agno/models/base.py
  • D3 · FileTooLong: mongo/mongo.py libs/agno/agno/db/mongo/mongo.py
  • D3 · FileTooLong: dynamo/dynamo.py libs/agno/agno/db/dynamo/dynamo.py
  • D3 · FileTooLong: mysql/mysql.py libs/agno/agno/db/mysql/mysql.py
  • D3 · FileTooLong: singlestore/singlestore.py libs/agno/agno/db/singlestore/singlestore.py
  • D3 · FileTooLong: valkey/valkey.py libs/agno/agno/db/valkey/valkey.py
  • D3 · FileTooLong: mysql/async_mysql.py libs/agno/agno/db/mysql/async_mysql.py
  • D3 · FileTooLong: firestore/firestore.py libs/agno/agno/db/firestore/firestore.py
  • D3 · FileTooLong: client/os.py libs/agno/agno/client/os.py
  • D3 · FileTooLong: team/team.py libs/agno/agno/team/team.py
  • D3 · FileTooLong: agent/_response.py libs/agno/agno/agent/_response.py
  • D3 · FileTooLong: print_response/team.py libs/agno/agno/utils/print_response/team.py

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €230,000–€1,200,000
Cost to rebuild€230,000–€1,200,000 (2.3–7.3 person-years (3,877–12,299 h), ~2–10 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor0.7× (at 43% quality) — the last 20% of quality is most of the work
Size & shapeLarge · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)

This codebase represents roughly ~4.8 person-years of build effort (about ~€700,000 to rebuild). Its weakest lens is Security at 30% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.2) — domain model × a 0.7× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Resolve the 3 Secret finding(s) in Secrets (history) — start with github.py, weather_agent.py, workflow.py.
+6.4 pts · Low effort · Secrets (history)
2
Resolve the 18 High CVE finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt (18).
+5.8 pts · Medium effort · OSV Dependency Vulnerabilities
3
Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
+5.4 pts · Medium effort · Security & performance tooling

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Large asset (~4.8 person-years to rebuild), and its weakest lens is Security at 30%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~4.8 person-years rebuild (458,174 LoC) · weakest lens: Security 30%
→ Direct remediation budget at Security first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Resolve the 3 Secret finding(s) in Secrets (history) — start with github.py, weather_agent.py, workflow.py. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Resolve the 3 Secret finding(s) in Secrets (history) — start with github.py, weather_agent.py, workflow.py.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 5.7/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 6–13% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2 complexity, D4 duplication, D6 cohesion: averaging 5.7/10 across the code-quality signals
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

At a glance — Code Health · 65% · Adequate · gated by D2

At a glance — Architecture · 100% · Exemplary

At a glance — Maturity · 58% · Adequate · gated by M2

At a glance — Readiness · 43% · Weak · gated by P3, P5

At a glance — Security · 30% · Weak · gated by D28, D29, D38

At a glance — Domain Modelling · 100% · Exemplary

At a glance — Accessibility · 54% · Adequate

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2021 — Injection50High / Critical
A06:2021 — Vulnerable & Outdated Components28High / Critical
A02:2021 — Cryptographic Failures4High / Critical

Roadmap

Begin by resolving the three secret findings in the repository history, specifically within github.py, weather_agent.py, and workflow.py. Next, address the eighteen high-severity OSV dependency vulnerabilities, focusing first on requirements.txt. To prevent future security regressions, integrate a SAST step into the CI pipeline using tools like bandit or semgrep. Then, resolve the twenty-seven static analysis warnings, prioritizing chromadb.py, pickle.py, and clickhousedb.py. Finally, codify disaster recovery and backup procedures in infrastructure as code, ensuring RTO/RPO and restore steps are documented and automated.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Resolve the 3 Secret finding(s) in Secrets (history) — start with github.py, weather_agent.py, workflow.py.+6.4 ptsLowSecrets (history)
Resolve the 18 High CVE finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt (18).+5.8 ptsMediumOSV Dependency Vulnerabilities
Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.+5.4 ptsMediumSecurity & performance tooling
Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.+5.4 ptsMediumDR & Backup
Resolve the 27 Medium finding(s) in Static Analysis (SAST) — start with chromadb.py (12), pickle.py (2), clickhousedb.py (2).+4.9 ptsMediumStatic Analysis (SAST)
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history).+2.3 ptsLowSecrets (history)
Resolve the 23 High finding(s) in Static Analysis (SAST) — start with performance.yml (9), release.yml (9), claude.yml (3).+4.2 ptsMediumStatic Analysis (SAST)
Resolve the 1 Build action pinned to a mutable branch finding(s) in Supply-chain Provenance & Signing.+1.8 ptsLowSupply-chain Provenance & Signing

File quality

Per-file score 0–10 — a quality signature. Of 526 files carrying findings, judged against the Production bar: 0% slop · 71% mixed · 29% near-clean.

FileScoreBandWorst signal
cookbook/08_learning/requirements.txt0.3SlopOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
cookbook/01_demo/requirements.txt2.5SlopOSV Dependency Vulnerabilities: High vulnerability: [GHSA redacted]
libs/agno/agno/vectordb/chroma/chromadb.py4.0MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
libs/agno/agno/vectordb/clickhouse/clickhousedb.py4.2MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
.github/workflows/performance.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
.github/workflows/release.yml4.4MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
libs/agno/agno/models/base.py4.9MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
libs/agno/agno/tools/function.py4.9MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
libs/agno/agno/vectordb/couchbase/couchbase.py4.9MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
.github/workflows/claude.yml5.1MixedStatic Analysis (SAST): High: github-actions-mutable-action-tag
cookbook/91_tools/mcp/mcp_toolbox_demo/requirements.txt5.1MixedOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
libs/agno/agno/os/routers/agents/router.py5.5MixedCyclomatic Complexity: router._resume_stream_generator (cyclomatic 35)
libs/agno/agno/agent/_storage.py5.5MixedCyclomatic Complexity: _storage.to_dict (cyclomatic 115)
libs/agno/agno/tools/pubmed.py5.7MixedStatic Analysis (SAST): Medium: use-defused-xml
libs/agno/agno/utils/functions.py5.7MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-md5
libs/agno/agno/context/wiki/backend.py5.7MixedStatic Analysis (SAST): Medium: insecure-hash-algorithm-sha1
libs/agno/agno/tools/google/drive.py5.7MixedCyclomatic Complexity: GoogleDriveTools.__init__ (cyclomatic 21)
libs/agno/agno/reasoning/groq.py6.3MixedCognitive Complexity: groq.get_groq_reasoning_stream (cognitive 17)
libs/agno/agno/reasoning/deepseek.py6.3MixedCognitive Complexity: deepseek.get_deepseek_reasoning_stream (cognitive 16)
libs/agno/agno/knowledge/reader/markdown_reader.py6.3MixedCode Duplication: Duplicated block (13 lines × 2)

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 31 of 32 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 1 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 32 dimensions across the health lenses
D1D2D3D4D13D15D16D21D28D29D31D34D35D36D38AC1AC2AC3AC5AC6AC7DM1DM5DM8M1M2M3M4P1P3P4P5

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 3151 of 3168 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019faef0-78c4-7a54-bf97-83ebc2c8fa1d.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A clean result is "no unlabelled native control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.

The LLM boundary

LLM-set scores this run (2): D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity5.5 / 10Adequate✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 5.5 / 10 · rule-coverage 100% · ceiling Prevented

675 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was Workflow._acontinue_execute_stream at 162. A further 3 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being SqliteDb._get_table at 23 — they are counted neither in the figure above nor in this dimension's score.

Workflow.acontinue_run (cyclomatic 94) · ×3libs/agno/agno/workflow/workflow.py:7533
Workflow.continue_run (cyclomatic 87) · ×3libs/agno/agno/workflow/workflow.py:5546
router._resume_stream_generator (cyclomatic 35) · ×2libs/agno/agno/os/routers/agents/router.py:348
_run_options.resolve_run_options (cyclomatic 21) · ×2libs/agno/agno/agent/_run_options.py:71
_response.update_reasoning_content_from_tool_call (cyclomatic 16) · ×2libs/agno/agno/agent/_response.py:771

+ 663 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 3 Workflow.acontinue_run (cyclomatic 94) finding(s) in Cyclomatic Complexity — start with workflow.py (3). — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 3 Workflow.continue_run (cyclomatic 87) finding(s) in Cyclomatic Complexity — start with workflow.py (3). — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 2 router._resume_stream_generator (cyclomatic 35) finding(s) in Cyclomatic Complexity — start with router.py (2). — One of this dimension's main actionable groups (2 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.9 / 10Weak✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 2.9 / 10 · rule-coverage 100% · ceiling Prevented

1102 method(s) exceeded the cognitive complexity threshold of 15; the worst was team.aprint_response_stream at 371.

utils.calculate_date_metrics (cognitive 23) · ×7libs/agno/agno/db/dynamo/utils.py:299
Workflow.acontinue_run (cognitive 134) · ×3libs/agno/agno/workflow/workflow.py:7533
Workflow.continue_run (cognitive 125) · ×3libs/agno/agno/workflow/workflow.py:5546
router._resume_stream_generator (cognitive 77) · ×2libs/agno/agno/os/routers/agents/router.py:348
_response.aparse_response_with_parser_model_stream (cognitive 34) · ×2libs/agno/agno/agent/_response.py:532

+ 1073 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 7 utils.calculate_date_metrics (cognitive 23) finding(s) in Cognitive Complexity — start with utils.py (7). — One of this dimension's main actionable groups (7 warning-level).
  2. Resolve the 3 Workflow.acontinue_run (cognitive 134) finding(s) in Cognitive Complexity — start with workflow.py (3). — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 3 Workflow.continue_run (cognitive 125) finding(s) in Cognitive Complexity — start with workflow.py (3). — One of this dimension's main actionable groups (3 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes8.7 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 8.7 / 10 · rule-coverage 100% · ceiling Prevented

158 god class(es) detected.

FileTooLong: workflow/workflow.py · ×115libs/agno/agno/workflow/workflow.py:0
TooManyMethods: PostgresDb · ×43libs/agno/agno/db/postgres/postgres.py:74

What to do

  1. Resolve the 115 FileTooLong finding(s) in God Classes — start with router.py (5), base.py (4), agent.py (4). — One of this dimension's main actionable groups (115 warning-level).
  2. Resolve the 43 TooManyMethods finding(s) in God Classes — start with base.py (2), singlestore.py (2), postgres.py. — One of this dimension's main actionable groups (43 warning-level).
  3. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication8.8 / 10Strong✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Verified

1105 duplicated block group(s) detected.

Duplicated block (14 lines × 2) · ×83cookbook/02_agents/11_approvals/approval_async.py:94
Duplicated block (12 lines × 2) · ×82cookbook/02_agents/15_dependencies/dependencies_in_tools.py:25
Duplicated block (13 lines × 2) · ×76cookbook/02_agents/09_hooks/post_hook_output.py:72
Duplicated block (11 lines × 2) · ×76cookbook/03_teams/24_regenerate/01_regenerate.py:56
Duplicated block (15 lines × 2) · ×60cookbook/02_agents/11_approvals/approval_async.py:75

+ 106 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 83 Duplicated block (14 lines × 2) finding(s) in Code Duplication — start with async_mysql.py (7), router.py (7), _run.py (6). — One of this dimension's main actionable groups (83 warning-level).
  2. Resolve the 82 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with async_postgres.py (7), postgres.py (7), mysql.py (6). — One of this dimension's main actionable groups (82 warning-level).
  3. Resolve the 76 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with async_postgres.py (6), async_mongo.py (4), async_mysql.py (4). — One of this dimension's main actionable groups (76 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots9.7 / 10Exemplary✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: DocumentedVerifiedPrevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: libs/agno/agno/workflow/workflow.py (8×162=1296); libs/agno/agno/team/_run.py (10×122=1220); libs/agno/agno/agent/_run.py (7×101=707)

Hotspot: libs/agno/agno/workflow/workflow.py · ×10libs/agno/agno/workflow/workflow.py

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D16 · Bus Factor9.5 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: DocumentedVerifiedPrevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Documented

82 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is libs/agno/agno/utils/print_response/workflow.py.

Off-boarding risk: anonymized user #1 · ×5
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D28 · Secrets (history)0.0 / 10Critical✓ Tool-verified

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

51 finding(s): 0 critical, 51 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

Secret: private-key · ×3libs/agno/agno/knowledge/remote_content/github.py:54detected by gitleaks finding
Rotate the exposed credentials — git history can't be un-committed

What to do

  1. Resolve the 3 Secret finding(s) in Secrets (history) — start with github.py, weather_agent.py, workflow.py. — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.

D29 · Static Analysis (SAST)0.0 / 10Critical✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

195 finding(s): 0 critical, 23 high, 61 medium, 111 low.

High: github-actions-mutable-action-tag · ×23.github/workflows/claude.yml:33detected by semgrep finding
Medium: jwt-python-hardcoded-secret · ×27cookbook/05_agent_os/07_security/test_scopes.py:39detected by semgrep finding

What to do

  1. Resolve the 27 Medium finding(s) in Static Analysis (SAST) — start with chromadb.py (12), pickle.py (2), clickhousedb.py (2). — One of this dimension's main actionable groups (27 warning-level).
  2. Resolve the 23 High finding(s) in Static Analysis (SAST) — start with performance.yml (9), release.yml (9), claude.yml (3). — One of this dimension's main actionable groups (23 issue-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D31 · IaC & Container Security10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (Dockerfile/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

trivy found no infrastructure-as-code or container misconfigurations.

✓ On the Gold path — maintain.

Detailed fixes: d31_recommendation.md.

D34 · Knowledge Freshness8.9 / 10Strong✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: DocumentedVerifiedPrevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Documented

162 of 1514 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is libs/agno/agno/tools/shopify.py.

Orphaned knowledge · ×13libs/agno/agno/tools/shopify.py
Further orphaned files (smaller)

What to do

  1. Resolve the 13 Orphaned knowledge finding(s) in Knowledge Freshness — start with resources.py (2), shopify.py, db_cluster.py. — One of this dimension's main actionable groups (13 issue-level).
  2. Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: router.py↔router.py 72%; _storage.py↔_storage.py 58%; markdown_reader.py↔text_reader.py 55%

Change coupling: router.py ↔ router.py · ×7libs/agno/agno/os/routers/agents/router.py

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D36 · Supply-chain Provenance & Signing5.0 / 10Adequate✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: DocumentedVerifiedPrevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Documented

2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

Build action pinned to a mutable branch
Unpinned build actions
PR-triggered workflow without a permissions block
No SBOM

What to do

  1. Resolve the 1 Build action pinned to a mutable branch finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 PR-triggered workflow without a permissions block finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D38 · OSV Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

Maturity: DocumentedVerifiedPrevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

28 finding(s): 2 critical, 20 high, 6 medium, 0 low.

High CVE: [GHSA redacted] · ×18cookbook/08_learning/requirements.txtdetected by osv-scanner finding
Critical CVE: [GHSA redacted] · ×2cookbook/91_tools/mcp/mcp_toolbox_demo/uv.lockdetected by osv-scanner finding
High vulnerability: [GHSA redacted] · ×2cookbook/01_demo/requirements.txtdetected by osv-scanner finding
Medium CVE: PYSEC-2026-2132 · ×6cookbook/08_learning/requirements.txtdetected by osv-scanner finding

What to do

  1. Resolve the 18 High CVE finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt (18). — One of this dimension's main actionable groups (18 issue-level).
  2. Resolve the 2 Critical CVE finding(s) in OSV Dependency Vulnerabilities — start with uv.lock, requirements.txt. — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 2 High vulnerability finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt (2). — One of this dimension's main actionable groups (2 issue-level).

Detailed fixes: d38_recommendation.md · top locations in Appendix A, every location in findings.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

AC2 · Forms & labels4.9 / 10Weak✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. — index.html:67
  • A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can't say where it goes. Add visible text or an aria-label. — index.html:250

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure5.5 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — company_info.html:2, index.html:2

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

AC6 · Visual & motion safety4.3 / 10Weak✓ Tool-verified

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

  • `th` sets color: white on background-color: #3498db — 3.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them. — company_info.html:7
  • This stylesheet animates but never checks prefers-reduced-motion, so motion-sensitive users can't opt out. Wrap motion in @media (prefers-reduced-motion: no-preference). — index.html:12

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse wired into tests or CI — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an a11y linter (eslint-plugin-jsx-a11y / vuejs-accessibility) configured, and axe/pa11y/Lighthouse in tests or CI, graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

  • No accessibility enforcement found — no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge.

What to do

  • Enforce accessibility in the test suite you already have: assert the accessibility invariants over the HTML your app renders — parse the rendered output in an existing test, or drive a real browser from one — and gate that test in CI so a regression blocks the merge.
DM1 · Aggregate boundaries10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether aggregates reference each other by identity (id) rather than by direct object reference — the core DDD consistency-boundary rule.

Method: Roslyn (DDD-gated): aggregate roots identified by convention; each aggregate field checked for direct references to other aggregates versus id-only. Deterministic, DDD-native.

Coverage: Population: aggregate roots identified by AggregateRoot/IAggregateRoot base/interface NAME convention; reference-by-identity then checked exhaustively within that set — a root not using those names is invisible.

DM5 · Encapsulated state10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether entities protect their state (private/init-only setters) instead of exposing public setters that bypass invariants. Softened when a rehydration framework (Marten/EF) is present.

Method: Roslyn (DDD-gated): public setters on entities detected; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.

Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.

DM8 · Value-object opportunities10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether clusters of primitives that travel together (a missing value object) are extracted — a low-weight suggestion, LLM-confirmed when configured.

Method: Roslyn (DDD-gated): primitive parameter clusters recurring three or more times across signatures extracted, then confirmed by language model when configured. Advisory, low-weight.

M1 · Documentation (README)7.5 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 1 of 4 project(s) that lack one — worth up to 0.5 pts.
M2 · Architecture documentation2.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — decisions aren't captured for future maintainers.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
M3 · Folder & project structure8.0 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

  • Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.

What to do

  • Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
M4 · Documentation accuracy7.0 / 10Strong◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

  • README claims a 'docs.agno.com/mcp' MCP server but no such project exists
  • claims an 'agentos-docker', 'agentos-aws', ..., 'agentos-helm' deploy templates but the repository contains only agno/ and a single README file

What to do

  • Reconcile the README with reality: README claims a 'docs.agno.com/mcp' MCP server but no such project exists; claims an 'agentos-docker', 'agentos-aws', ..., 'agentos-helm' deploy templates but the repository contains only agno/ and a single README file.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add bandit, `semgrep --config=p/python`, or CodeQL's python pack as a CI step.

What to do

  • Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

P5 · DR & Backup0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether disaster recovery is planned and codified — backups, geo-recovery, RTO/RPO, persistence guarantees — from IaC + container manifests + docs, never the live cloud.

Method: Filesystem scan: disaster recovery, backup, geo-recovery, RTO/RPO, persistence guarantees from IaC, manifests, and docs. Exhaustive, deterministic, never a live environment.

  • A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.

What to do

  • Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.

WCAG coverage — what static analysis assessed

Statically assessed 13 of 55 WCAG 2.2 Level A/AA success criteria (24%; ≈26% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 42 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

Not statically assessed — these 42 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.1, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health65%Adequate — gated by D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture100%ExemplarySolid.
Maturity58%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness43%Weak — gated by P3, P5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security30%Weak — gated by D28, D29, D38Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling100%ExemplaryStrongest area.
Accessibility54%AdequateAcceptable, with room to improve.
Not included — 69 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — not assessed — code composition is computed by ROLE over the .NET document set and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over the .NET project-reference graph and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX4 Dependency direction — not assessed — project cycles and dependency direction are computed over the .NET project-reference graph and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from the .NET project graph (projects, types, namespaces) and no such graph was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — not assessed — interface segregation is computed over the .NET type surface and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — not assessed — test isolation is computed from the .NET project graph (which projects are test projects, and what they reference) and no such graph was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — no data
  • C1 Data Protection — Not assessed: these personal data controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C3 Audit Trail — Not assessed: these audit controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality — ~247203 lines of test source are present (.py) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included
  • D12 Dependency Hygiene — Dependency hygiene not measured — no supported dependency manifest was read
  • D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems)), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
  • D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D19 Documentation Quality — LLM evaluation failed
  • D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — Production source is present (.py) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["Acme.Billing"]`, `Catalog: ["Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
  • D32 Data Compliance (PII/GDPR) — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.
  • D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .py, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • D9 Test Distribution — Test source is present (.py) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
  • DM6 Domain ↔ infrastructure boundary — no domain-layer types detected — domain↔infrastructure boundary check not applicable
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • ED1 Event-Driven — not run — 0/3 markers found
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not run — 0/3 markers found
  • GD1 Unfinished & placeholder code — no source files
  • IC1 Incompleteness & stubs — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — no data
  • P2 Observability — Observability was not assessed: this check reads .NET source (ILogger/Serilog, OpenTelemetry, health checks) and no such source carries this repository's product — because it is written in another language, or because the solution failed to load. Absence of a .NET logging idiom is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • P8 Schema migrations — not assessed — schema-migration practice is read from EF Core usage in .NET source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • X1 Async correctness — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X2 Cancellation propagation — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X3 Exception handling — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X4 Structured logging — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Issue — 62 finding(s)
D29 · Static Analysis (SAST) · High · ×23
  • High: github-actions-mutable-action-tag .github/workflows/claude.yml:33 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/claude.yml:58 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: anthropics/claude-code-action@<40-character SHA>`. This step references `anthropics/claude-code-action@v1`; resolve the SHA it points at today with `gh api repos/anthropics/claude-code-action/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/claude.yml:72 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: anthropics/claude-code-action@<40-character SHA>`. This step references `anthropics/claude-code-action@v1`; resolve the SHA it points at today with `gh api repos/anthropics/claude-code-action/commits/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:10 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:13 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-python@<40-character SHA>`. This step references `actions/setup-python@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-python/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:38 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/upload-artifact@<40-character SHA>`. This step references `actions/upload-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/upload-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:46 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:49 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-python@<40-character SHA>`. This step references `actions/setup-python@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-python/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:74 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/upload-artifact@<40-character SHA>`. This step references `actions/upload-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/upload-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:84 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/download-artifact@<40-character SHA>`. This step references `actions/download-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/download-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:89 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/download-artifact@<40-character SHA>`. This step references `actions/download-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/download-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/performance.yml:103 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/upload-artifact@<40-character SHA>`. This step references `actions/upload-artifact@v4`; resolve the SHA it points at today with `gh api repos/actions/upload-artifact/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/pr-triage.yml:18 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/github-script@<40-character SHA>`. This step references `actions/github-script@v7`; resolve the SHA it points at today with `gh api repos/actions/github-script/commits/v7 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:27 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:30 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-python@<40-character SHA>`. This step references `actions/setup-python@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-python/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:56 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: pypa/gh-action-pypi-publish@<40-character SHA>`. This step references `pypa/gh-action-pypi-publish@release/v1`; resolve the SHA it points at today with `gh api repos/pypa/gh-action-pypi-publish/commits/release/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:68 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:71 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-python@<40-character SHA>`. This step references `actions/setup-python@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-python/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:98 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: pypa/gh-action-pypi-publish@<40-character SHA>`. This step references `pypa/gh-action-pypi-publish@release/v1`; resolve the SHA it points at today with `gh api repos/pypa/gh-action-pypi-publish/commits/release/v1 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:110 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:113 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/setup-python@<40-character SHA>`. This step references `actions/setup-python@v5`; resolve the SHA it points at today with `gh api repos/actions/setup-python/commits/v5 --jq .sha`.
  • High: github-actions-mutable-action-tag .github/workflows/release.yml:139 — GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: pypa/gh-action-pypi-publish@<40-character SHA>`. This step references `pypa/gh-action-pypi-publish@release/v1`; resolve the SHA it points at today with `gh api repos/pypa/gh-action-pypi-publish/commits/release/v1 --jq .sha`.
  • High: exec-detected libs/agno/agno/tools/python.py:159 — Detected the use of exec(). exec() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
D38 · OSV Dependency Vulnerabilities · High CVE · ×18
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — agno 2.3.24: [GHSA redacted] — no fixed version has been published yet. Track the advisory, and remove or replace agno if the exposure is not acceptable until one lands.
  • High CVE: [GHSA redacted] cookbook/91_tools/mcp/mcp_toolbox_demo/requirements.txt — aiohttp 3.12.15: [GHSA redacted] — upgrade to 3.13.3. This is 1 of 29 advisories this scan raises against aiohttp 3.12.15, and their fixed versions do not agree — anything below 3.14.1 still leaves at least one of them open, so 3.14.1 is the floor for this package, not this row's target alone. (in 2 lockfiles) One upgrade of aiohttp 3.12.15 clears all 29 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], PYSEC-2026-1097, PYSEC-2026-1099, PYSEC-2026-1105, PYSEC-2026-1109, PYSEC-2026-2095, PYSEC-2026-2096, PYSEC-2026-2099, PYSEC-2026-2100, PYSEC-2026-2101, PYSEC-2026-2102, PYSEC-2026-2106, PYSEC-2026-2112, PYSEC-2026-2113, PYSEC-2026-237.
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — cryptography 46.0.3: [GHSA redacted] — upgrade to 46.0.5. This is 1 of 4 advisories this scan raises against cryptography 46.0.3, and their fixed versions do not agree — anything below 46.0.7 still leaves at least one of them open, so 46.0.7 is the floor for this package, not this row's target alone. One upgrade of cryptography 46.0.3 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], PYSEC-2026-35.
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — gitpython 3.1.46: [GHSA redacted] — upgrade to 3.1.48. This is 1 of 13 advisories this scan raises against gitpython 3.1.46, and their fixed versions do not agree — anything below 3.1.55 still leaves at least one of them open, so 3.1.55 is the floor for this package, not this row's target alone. One upgrade of gitpython 3.1.46 clears all 5 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] cookbook/91_tools/mcp/mcp_toolbox_demo/requirements.txt — mcp 1.12.2: [GHSA redacted] — upgrade to 1.23.0. This is 1 of 3 advisories this scan raises against mcp 1.12.2, and their fixed versions do not agree — anything below 1.28.1 still leaves at least one of them open, so 1.28.1 is the floor for this package, not this row's target alone. (in 2 lockfiles)
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — mcp 1.25.0: [GHSA redacted] — upgrade to 1.27.2. This is 1 of 3 advisories this scan raises against mcp 1.25.0, and their fixed versions do not agree — anything below 1.28.1 still leaves at least one of them open, so 1.28.1 is the floor for this package, not this row's target alone. One upgrade of mcp 1.25.0 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] cookbook/01_demo/requirements.txt — mcp 1.27.2: [GHSA redacted] — upgrade to 1.28.1
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — orjson 3.11.5: [GHSA redacted] — upgrade to 3.11.6
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — pillow 12.1.0: [GHSA redacted] — upgrade to 12.3.0. This is 1 of 19 advisories this scan raises against pillow 12.1.0, and their fixed versions do not agree — anything below 12.3.0 still leaves at least one of them open, so 12.3.0 is the floor for this package, not this row's target alone. One upgrade of pillow 12.1.0 clears all 19 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — protobuf 6.33.3: [GHSA redacted] — upgrade to 6.33.5
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — pyasn1 0.6.1: [GHSA redacted] — upgrade to 0.6.2. This is 1 of 5 advisories this scan raises against pyasn1 0.6.1, and their fixed versions do not agree — anything below 0.6.4 still leaves at least one of them open, so 0.6.4 is the floor for this package, not this row's target alone. (in 3 lockfiles) One upgrade of pyasn1 0.6.1 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] cookbook/01_demo/requirements.txt — pyasn1 0.6.3: [GHSA redacted] — upgrade to 0.6.4 (in 2 lockfiles) One upgrade of pyasn1 0.6.3 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], PYSEC-2026-3455.
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — pyjwt 2.10.1: [GHSA redacted] — upgrade to 2.12.0. This is 1 of 6 advisories this scan raises against pyjwt 2.10.1, and their fixed versions do not agree — anything below 2.13.0 still leaves at least one of them open, so 2.13.0 is the floor for this package, not this row's target alone. One upgrade of pyjwt 2.10.1 clears all 7 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], PYSEC-2025-183, PYSEC-2026-177.
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — python-multipart 0.0.21: [GHSA redacted] — upgrade to 0.0.30. This is 1 of 7 advisories this scan raises against python-multipart 0.0.21, and their fixed versions do not agree — anything below 0.0.31 still leaves at least one of them open, so 0.0.31 is the floor for this package, not this row's target alone. One upgrade of python-multipart 0.0.21 clears all 7 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], PYSEC-2026-3037, PYSEC-2026-3040, PYSEC-2026-3041.
  • High CVE: [GHSA redacted] cookbook/91_tools/mcp/mcp_toolbox_demo/requirements.txt — starlette 0.47.2: [GHSA redacted] — upgrade to 0.49.1 (in 2 lockfiles)
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — starlette 0.50.0: [GHSA redacted] — upgrade to 1.1.0. This is 1 of 5 advisories this scan raises against starlette 0.50.0, and their fixed versions do not agree — anything below 1.3.1 still leaves at least one of them open, so 1.3.1 is the floor for this package, not this row's target alone. One upgrade of starlette 0.50.0 clears all 3 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] cookbook/01_demo/requirements.txt — starlette 1.2.1: [GHSA redacted] — upgrade to 1.3.1. This is 1 of 2 advisories this scan raises against starlette 1.2.1, and their fixed versions do not agree — anything below 1.3.1 still leaves at least one of them open, so 1.3.1 is the floor for this package, not this row's target alone. One upgrade of starlette 1.2.1 clears all 2 advisories it raises: [GHSA redacted], PYSEC-2026-248.
  • High CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — urllib3 2.3.0: [GHSA redacted] — upgrade to 2.6.0. This is 1 of 6 advisories this scan raises against urllib3 2.3.0, and their fixed versions do not agree — anything below 2.7.0 still leaves at least one of them open, so 2.7.0 is the floor for this package, not this row's target alone. One upgrade of urllib3 2.3.0 clears all 6 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
D34 · Knowledge Freshness · Orphaned knowledge · ×13
  • Orphaned knowledge libs/agno/agno/tools/shopify.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resource/rds/db_cluster.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno/agno/db/migrations/versions/v2_3_0.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resource/rds/db_instance.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno/agno/tools/docling.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/docker/resources.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno/agno/tools/docker.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resources.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resource/ec2/security_group.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resource/ecs/task_definition.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resource/elasticache/cluster.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno/agno/client/a2a/client.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
  • Orphaned knowledge libs/agno_infra/agno/aws/resource/ecs/service.py — No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
D28 · Secrets (history) · Secret · ×3
  • Secret: private-key libs/agno/agno/knowledge/remote_content/github.py:54 — matched rule 'private-key'
  • Secret: generic-api-key cookbook/agent_os/interfaces/a2a/multi_agent_a2a/weather_agent.py:15 — matched rule 'generic-api-key'
  • Secret: aws-access-token cookbook/examples/recruitment_workflow/workflow.py:162 — matched rule 'aws-access-token'
D38 · OSV Dependency Vulnerabilities · Critical CVE · ×2
  • Critical CVE: [GHSA redacted] cookbook/91_tools/mcp/mcp_toolbox_demo/uv.lock — agno 2.0.4: [GHSA redacted] — upgrade to 2.3.24. This is 1 of 2 advisories this scan raises against agno 2.0.4, and their fixed versions do not agree — anything below 2.3.24 still leaves at least one of them open, so 2.3.24 is the floor for this package, not this row's target alone. One upgrade of agno 2.0.4 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • Critical CVE: [GHSA redacted] cookbook/00_quickstart/requirements.txt — chromadb 1.5.9: [GHSA redacted] — no fixed version has been published yet. Track the advisory, and remove or replace chromadb if the exposure is not acceptable until one lands.
D38 · OSV Dependency Vulnerabilities · High vulnerability · ×2
  • High vulnerability: [GHSA redacted] cookbook/01_demo/requirements.txt — cryptography 48.0.0: [GHSA redacted] — upgrade to 48.0.1 (in 2 lockfiles)
  • High vulnerability: [GHSA redacted] cookbook/01_demo/requirements.txt — gitpython 3.1.50: [GHSA redacted] — upgrade to 3.1.51. This is 1 of 9 advisories this scan raises against gitpython 3.1.50, and their fixed versions do not agree — anything below 3.1.55 still leaves at least one of them open, so 3.1.55 is the floor for this package, not this row's target alone. (in 2 lockfiles) One upgrade of gitpython 3.1.50 clears all 9 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
D36 · Supply-chain Provenance & Signing · Build action pinned to a mutable branch · ×1
  • Build action pinned to a mutable branch — 3 CI action reference(s) point at a mutable BRANCH rather than a version tag or a commit SHA, 3 of them on a THIRD-PARTY action: `pypa/gh-action-pypi-publish@release/v1` (.github/workflows/release.yml:56), `pypa/gh-action-pypi-publish@release/v1` (.github/workflows/release.yml:98), `pypa/gh-action-pypi-publish@release/v1` (.github/workflows/release.yml:139). A branch re-points on every upstream push, so whatever its tip holds when the job runs executes inside your pipeline with that job's secrets — a version tag at least moves only when the publisher cuts a release. Pin these to a full commit SHA first; the remaining tag refs are the same control at a lower blast radius.
Warning — 3093 finding(s)
D3 · God Classes · FileTooLong · ×115
  • FileTooLong: workflow/workflow.py libs/agno/agno/workflow/workflow.py:0 — FileTooLong — 7674 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: team/_run.py libs/agno/agno/team/_run.py:0 — FileTooLong — 6313 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: agent/_run.py libs/agno/agno/agent/_run.py:0 — FileTooLong — 4169 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: postgres/postgres.py libs/agno/agno/db/postgres/postgres.py:0 — FileTooLong — 3788 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: sqlite/sqlite.py libs/agno/agno/db/sqlite/sqlite.py:0 — FileTooLong — 3657 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: sqlite/async_sqlite.py libs/agno/agno/db/sqlite/async_sqlite.py:0 — FileTooLong — 2933 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: postgres/async_postgres.py libs/agno/agno/db/postgres/async_postgres.py:0 — FileTooLong — 2859 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: stores/entity_memory.py libs/agno/agno/learn/stores/entity_memory.py:0 — FileTooLong — 2549 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: knowledge/knowledge.py libs/agno/agno/knowledge/knowledge.py:0 — FileTooLong — 2512 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: mongo/async_mongo.py libs/agno/agno/db/mongo/async_mongo.py:0 — FileTooLong — 2165 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: workflow/step.py libs/agno/agno/workflow/step.py:0 — FileTooLong — 2138 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: models/base.py libs/agno/agno/models/base.py:0 — FileTooLong — 2100 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: mongo/mongo.py libs/agno/agno/db/mongo/mongo.py:0 — FileTooLong — 2055 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: dynamo/dynamo.py libs/agno/agno/db/dynamo/dynamo.py:0 — FileTooLong — 1842 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: mysql/mysql.py libs/agno/agno/db/mysql/mysql.py:0 — FileTooLong — 1832 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: singlestore/singlestore.py libs/agno/agno/db/singlestore/singlestore.py:0 — FileTooLong — 1808 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: valkey/valkey.py libs/agno/agno/db/valkey/valkey.py:0 — FileTooLong — 1795 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: mysql/async_mysql.py libs/agno/agno/db/mysql/async_mysql.py:0 — FileTooLong — 1793 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: firestore/firestore.py libs/agno/agno/db/firestore/firestore.py:0 — FileTooLong — 1489 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: client/os.py libs/agno/agno/client/os.py:0 — FileTooLong — 1481 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: team/team.py libs/agno/agno/team/team.py:0 — FileTooLong — 1438 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: agent/_response.py libs/agno/agno/agent/_response.py:0 — FileTooLong — 1435 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: print_response/team.py libs/agno/agno/utils/print_response/team.py:0 — FileTooLong — 1416 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: team/_response.py libs/agno/agno/team/_response.py:0 — FileTooLong — 1409 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: agent/agent.py libs/agno/agno/agent/agent.py:0 — FileTooLong — 1368 significant lines (blank, comment-only and punctuation-only lines excluded).
  • + 90 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×83
  • Duplicated block (14 lines × 2) cookbook/02_agents/11_approvals/approval_async.py:94 — cookbook/02_agents/11_approvals/approval_async.py:94-107 | cookbook/02_agents/11_approvals/audit_approval_async.py:80-93
  • Duplicated block (14 lines × 2) cookbook/04_workflows/08_human_in_the_loop/error/01_error_retry_skip.py:92 — cookbook/04_workflows/08_human_in_the_loop/error/01_error_retry_skip.py:92-105 | cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:95-108
  • Duplicated block (14 lines × 2) cookbook/10_reasoning/models/groq/fast_reasoning.py:24 — cookbook/10_reasoning/models/groq/fast_reasoning.py:24-39 | cookbook/10_reasoning/models/groq/fast_reasoning.py:46-59
  • Duplicated block (14 lines × 2) cookbook/10_reasoning/models/ollama/local_reasoning.py:22 — cookbook/10_reasoning/models/ollama/local_reasoning.py:22-35 | cookbook/10_reasoning/models/ollama/local_reasoning.py:39-52
  • Duplicated block (14 lines × 2) cookbook/10_reasoning/tools/capture_reasoning_content_knowledge_tools.py:114 — cookbook/10_reasoning/tools/capture_reasoning_content_knowledge_tools.py:114-127 | cookbook/10_reasoning/tools/capture_reasoning_content_reasoning_tools.py:71-84
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_cli.py:269 — libs/agno/agno/agent/_cli.py:269-282 | libs/agno/agno/agent/_cli.py:315-328
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_managers.py:57 — libs/agno/agno/agent/_managers.py:57-70 | libs/agno/agno/agent/_managers.py:112-125
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_response.py:1835 — libs/agno/agno/agent/_response.py:1835-1848 | libs/agno/agno/agent/_response.py:1866-1879
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_response.py:1875 — libs/agno/agno/agent/_response.py:1875-1888 | libs/agno/agno/agent/_response.py:1963-1976
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_run.py:246 — libs/agno/agno/agent/_run.py:246-259 | libs/agno/agno/agent/_run.py:311-324
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_run.py:659 — libs/agno/agno/agent/_run.py:659-672 | libs/agno/agno/agent/_run.py:1810-1823
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_run.py:1239 — libs/agno/agno/agent/_run.py:1239-1252 | libs/agno/agno/agent/_run.py:2668-2682
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_run.py:2053 — libs/agno/agno/agent/_run.py:2053-2066 | libs/agno/agno/agent/_run.py:4373-4386
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_run.py:2131 — libs/agno/agno/agent/_run.py:2131-2144 | libs/agno/agno/agent/_run.py:4458-4471
  • Duplicated block (14 lines × 2) libs/agno/agno/agent/_run.py:2898 — libs/agno/agno/agent/_run.py:2898-2911 | libs/agno/agno/agent/_run.py:2931-2944
  • Duplicated block (14 lines × 2) libs/agno/agno/agents/base.py:149 — libs/agno/agno/agents/base.py:149-162 | libs/agno/agno/agents/base.py:270-283
  • Duplicated block (14 lines × 2) libs/agno/agno/agents/base.py:178 — libs/agno/agno/agents/base.py:178-192 | libs/agno/agno/agents/base.py:299-312
  • Duplicated block (14 lines × 2) libs/agno/agno/agents/base.py:223 — libs/agno/agno/agents/base.py:223-236 | libs/agno/agno/agents/base.py:341-354
  • Duplicated block (14 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:2137 — libs/agno/agno/db/dynamo/dynamo.py:2137-2150 | libs/agno/agno/db/json/json_db.py:1314-1328
  • Duplicated block (14 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:2525 — libs/agno/agno/db/dynamo/dynamo.py:2525-2539 | libs/agno/agno/db/firestore/firestore.py:2112-2125
  • Duplicated block (14 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:2846 — libs/agno/agno/db/dynamo/dynamo.py:2846-2859 | libs/agno/agno/db/dynamo/dynamo.py:2865-2878
  • Duplicated block (14 lines × 2) libs/agno/agno/db/filter_converter.py:115 — libs/agno/agno/db/filter_converter.py:115-129 | libs/agno/agno/db/valkey/utils.py:263-276
  • Duplicated block (14 lines × 2) libs/agno/agno/db/firestore/firestore.py:444 — libs/agno/agno/db/firestore/firestore.py:444-459 | libs/agno/agno/db/firestore/firestore.py:926-939
  • Duplicated block (14 lines × 2) libs/agno/agno/db/firestore/firestore.py:773 — libs/agno/agno/db/firestore/firestore.py:773-786 | libs/agno/agno/db/firestore/firestore.py:1684-1697
  • Duplicated block (14 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1461 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1461-1474 | libs/agno/agno/db/json/json_db.py:1446-1459
  • + 58 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×82
  • Duplicated block (12 lines × 2) cookbook/02_agents/15_dependencies/dependencies_in_tools.py:25 — cookbook/02_agents/15_dependencies/dependencies_in_tools.py:25-49 | cookbook/03_teams/17_dependencies/dependencies_in_tools.py:47-58
  • Duplicated block (12 lines × 2) cookbook/02_agents/15_dependencies/dependencies_in_tools.py:54 — cookbook/02_agents/15_dependencies/dependencies_in_tools.py:54-67 | cookbook/03_teams/17_dependencies/dependencies_in_tools.py:72-83
  • Duplicated block (12 lines × 2) cookbook/02_agents/18_checkpointing/02_tool_error_persistence.py:144 — cookbook/02_agents/18_checkpointing/02_tool_error_persistence.py:144-155 | cookbook/03_teams/23_checkpointing/02_tool_error_persistence.py:127-138
  • Duplicated block (12 lines × 2) cookbook/03_teams/05_knowledge/04_team_with_custom_retriever.py:60 — cookbook/03_teams/05_knowledge/04_team_with_custom_retriever.py:60-71 | cookbook/07_knowledge/09_archive/custom_retriever/retriever_with_dependencies.py:77-89
  • Duplicated block (12 lines × 2) cookbook/04_workflows/06_advanced_concepts/structured_io/structured_io_function.py:95 — cookbook/04_workflows/06_advanced_concepts/structured_io/structured_io_function.py:95-107 | cookbook/04_workflows/06_advanced_concepts/structured_io/structured_io_function.py:160-171
  • Duplicated block (12 lines × 2) cookbook/05_agent_os/05_human_in_the_loop/basic.py:88 — cookbook/05_agent_os/05_human_in_the_loop/basic.py:88-101 | cookbook/05_agent_os/05_human_in_the_loop/with_approval_record.py:115-126
  • Duplicated block (12 lines × 2) cookbook/05_agent_os/05_human_in_the_loop/external_execution.py:119 — cookbook/05_agent_os/05_human_in_the_loop/external_execution.py:119-131 | cookbook/05_agent_os/05_human_in_the_loop/with_approval_record.py:116-127
  • Duplicated block (12 lines × 2) cookbook/05_agent_os/08_os_config/config_basics.py:102 — cookbook/05_agent_os/08_os_config/config_basics.py:102-113 | cookbook/05_agent_os/08_os_config/yaml_config.py:62-73
  • Duplicated block (12 lines × 2) cookbook/91_tools/mcp/sse_transport/client.py:22 — cookbook/91_tools/mcp/sse_transport/client.py:22-33 | cookbook/91_tools/mcp/streamable_http_transport/client.py:23-34
  • Duplicated block (12 lines × 2) cookbook/data_labeling/_26_scale_out/basic.py:97 — cookbook/data_labeling/_26_scale_out/basic.py:97-108 | cookbook/data_labeling/_26_scale_out/with_cost_tracking.py:107-118
  • Duplicated block (12 lines × 2) libs/agno/agno/agent/_default_tools.py:581 — libs/agno/agno/agent/_default_tools.py:581-592 | libs/agno/agno/agent/_default_tools.py:640-651
  • Duplicated block (12 lines × 2) libs/agno/agno/agent/_response.py:1078 — libs/agno/agno/agent/_response.py:1078-1089 | libs/agno/agno/agent/_response.py:1238-1249
  • Duplicated block (12 lines × 2) libs/agno/agno/agent/_run.py:3745 — libs/agno/agno/agent/_run.py:3745-3756 | libs/agno/agno/agent/_run.py:4867-4878
  • Duplicated block (12 lines × 2) libs/agno/agno/agent/_session.py:92 — libs/agno/agno/agent/_session.py:92-103 | libs/agno/agno/agent/_session.py:164-176
  • Duplicated block (12 lines × 2) libs/agno/agno/agent/_tools.py:971 — libs/agno/agno/agent/_tools.py:971-982 | libs/agno/agno/agent/_tools.py:1024-1035
  • Duplicated block (12 lines × 2) libs/agno/agno/client/a2a/client.py:380 — libs/agno/agno/client/a2a/client.py:380-391 | libs/agno/agno/client/a2a/client.py:489-500
  • Duplicated block (12 lines × 2) libs/agno/agno/compression/manager.py:92 — libs/agno/agno/compression/manager.py:92-103 | libs/agno/agno/compression/manager.py:196-207
  • Duplicated block (12 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:947 — libs/agno/agno/db/dynamo/dynamo.py:947-959 | libs/agno/agno/db/dynamo/dynamo.py:1018-1029
  • Duplicated block (12 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:1928 — libs/agno/agno/db/dynamo/dynamo.py:1928-1941 | libs/agno/agno/db/dynamo/dynamo.py:2101-2112
  • Duplicated block (12 lines × 2) libs/agno/agno/db/filter_converter.py:99 — libs/agno/agno/db/filter_converter.py:99-113 | libs/agno/agno/db/valkey/utils.py:247-258
  • Duplicated block (12 lines × 2) libs/agno/agno/db/firestore/firestore.py:931 — libs/agno/agno/db/firestore/firestore.py:931-942 | libs/agno/agno/db/firestore/firestore.py:1824-1836
  • Duplicated block (12 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:871 — libs/agno/agno/db/gcs_json/gcs_json_db.py:871-882 | libs/agno/agno/db/json/json_db.py:872-883
  • Duplicated block (12 lines × 2) libs/agno/agno/db/migrations/versions/v2_3_0.py:351 — libs/agno/agno/db/migrations/versions/v2_3_0.py:351-363 | libs/agno/agno/db/migrations/versions/v2_3_0.py:667-678
  • Duplicated block (12 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1885 — libs/agno/agno/db/mongo/async_mongo.py:1885-1896 | libs/agno/agno/db/mongo/mongo.py:1666-1677
  • Duplicated block (12 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:3114 — libs/agno/agno/db/mongo/async_mongo.py:3114-3126 | libs/agno/agno/db/mongo/mongo.py:2938-2949
  • + 57 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×76
  • Duplicated block (13 lines × 2) cookbook/02_agents/09_hooks/post_hook_output.py:72 — cookbook/02_agents/09_hooks/post_hook_output.py:72-84 | cookbook/03_teams/13_hooks/post_hook_output.py:106-118
  • Duplicated block (13 lines × 2) cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:134 — cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:134-146 | cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:166-178
  • Duplicated block (13 lines × 2) cookbook/05_agent_os/05_human_in_the_loop/audit_record.py:90 — cookbook/05_agent_os/05_human_in_the_loop/audit_record.py:90-103 | cookbook/05_agent_os/05_human_in_the_loop/with_approval_record.py:113-125
  • Duplicated block (13 lines × 2) cookbook/08_learning/08_custom_stores/02_custom_store_with_db.py:101 — cookbook/08_learning/08_custom_stores/02_custom_store_with_db.py:101-113 | cookbook/08_learning/08_custom_stores/02_custom_store_with_db.py:130-142
  • Duplicated block (13 lines × 2) cookbook/10_reasoning/models/anthropic/basic_reasoning.py:34 — cookbook/10_reasoning/models/anthropic/basic_reasoning.py:34-46 | cookbook/10_reasoning/models/gemini/basic_reasoning.py:31-43
  • Duplicated block (13 lines × 2) cookbook/12_context/14_wiki_filesystem.py:70 — cookbook/12_context/14_wiki_filesystem.py:70-82 | cookbook/12_context/15_wiki_git.py:90-102
  • Duplicated block (13 lines × 2) libs/agno/agno/agent/_default_tools.py:484 — libs/agno/agno/agent/_default_tools.py:484-496 | libs/agno/agno/agent/_default_tools.py:539-551
  • Duplicated block (13 lines × 2) libs/agno/agno/agent/_response.py:795 — libs/agno/agno/agent/_response.py:795-807 | libs/agno/agno/agent/_response.py:834-846
  • Duplicated block (13 lines × 2) libs/agno/agno/agent/_run.py:1039 — libs/agno/agno/agent/_run.py:1039-1051 | libs/agno/agno/agent/_run.py:1090-1102
  • Duplicated block (13 lines × 2) libs/agno/agno/agent/_run.py:4036 — libs/agno/agno/agent/_run.py:4036-4048 | libs/agno/agno/agent/_run.py:5455-5467
  • Duplicated block (13 lines × 2) libs/agno/agno/culture/manager.py:332 — libs/agno/agno/culture/manager.py:332-344 | libs/agno/agno/memory/manager.py:950-962
  • Duplicated block (13 lines × 2) libs/agno/agno/culture/manager.py:502 — libs/agno/agno/culture/manager.py:502-514 | libs/agno/agno/culture/manager.py:558-570
  • Duplicated block (13 lines × 2) libs/agno/agno/db/in_memory/in_memory_db.py:530 — libs/agno/agno/db/in_memory/in_memory_db.py:530-542 | libs/agno/agno/db/json/json_db.py:645-657
  • Duplicated block (13 lines × 2) libs/agno/agno/db/in_memory/in_memory_db.py:897 — libs/agno/agno/db/in_memory/in_memory_db.py:897-909 | libs/agno/agno/db/json/json_db.py:1030-1042
  • Duplicated block (13 lines × 2) libs/agno/agno/db/in_memory/in_memory_db.py:1047 — libs/agno/agno/db/in_memory/in_memory_db.py:1047-1059 | libs/agno/agno/db/json/json_db.py:1208-1220
  • Duplicated block (13 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_6.py:602 — libs/agno/agno/db/migrations/versions/v2_5_6.py:602-614 | libs/agno/agno/db/migrations/versions/v2_5_6.py:690-702
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2276 — libs/agno/agno/db/mongo/async_mongo.py:2276-2288 | libs/agno/agno/db/mongo/mongo.py:2056-2068
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2528 — libs/agno/agno/db/mongo/async_mongo.py:2528-2540 | libs/agno/agno/db/mongo/mongo.py:2366-2378
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2844 — libs/agno/agno/db/mongo/async_mongo.py:2844-2856 | libs/agno/agno/db/mongo/mongo.py:2682-2694
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:3308 — libs/agno/agno/db/mongo/async_mongo.py:3308-3320 | libs/agno/agno/db/mongo/mongo.py:3079-3091
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:458 — libs/agno/agno/db/mysql/async_mysql.py:458-470 | libs/agno/agno/db/postgres/async_postgres.py:572-584
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1300 — libs/agno/agno/db/mysql/async_mysql.py:1300-1312 | libs/agno/agno/db/postgres/async_postgres.py:1217-1229
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1669 — libs/agno/agno/db/mysql/async_mysql.py:1669-1681 | libs/agno/agno/db/mysql/mysql.py:1445-1457
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2329 — libs/agno/agno/db/mysql/async_mysql.py:2329-2341 | libs/agno/agno/db/postgres/async_postgres.py:2255-2267
  • Duplicated block (13 lines × 2) libs/agno/agno/db/mysql/mysql.py:2397 — libs/agno/agno/db/mysql/mysql.py:2397-2409 | libs/agno/agno/db/singlestore/singlestore.py:2406-2418
  • + 51 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×76
  • Duplicated block (11 lines × 2) cookbook/03_teams/24_regenerate/01_regenerate.py:56 — cookbook/03_teams/24_regenerate/01_regenerate.py:56-67 | cookbook/03_teams/25_time_travel/01_continue_from.py:33-43
  • Duplicated block (11 lines × 2) cookbook/03_teams/25_time_travel/02_fork_run.py:30 — cookbook/03_teams/25_time_travel/02_fork_run.py:30-40 | cookbook/03_teams/26_fork_session/01_fork_session.py:39-49
  • Duplicated block (11 lines × 2) cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:129 — cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:129-139 | cookbook/04_workflows/06_advanced_concepts/long_running/events_replay.py:126-136
  • Duplicated block (11 lines × 2) cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:188 — cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:188-198 | cookbook/04_workflows/06_advanced_concepts/long_running/events_replay.py:173-183
  • Duplicated block (11 lines × 2) cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/05_output_review_and_tool_confirmation.py:133 — cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/05_output_review_and_tool_confirmation.py:133-143 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/09_multi_step_mixed_hitl.py:192-202
  • Duplicated block (11 lines × 2) cookbook/04_workflows/08_human_in_the_loop/user_input/03_step_user_input_streaming.py:189 — cookbook/04_workflows/08_human_in_the_loop/user_input/03_step_user_input_streaming.py:189-201 | cookbook/04_workflows/08_human_in_the_loop/user_input/03_step_user_input_streaming.py:245-255
  • Duplicated block (11 lines × 2) cookbook/05_agent_os/04_run_lifecycle/background_run.py:59 — cookbook/05_agent_os/04_run_lifecycle/background_run.py:59-69 | cookbook/05_agent_os/04_run_lifecycle/cancel_run.py:59-69
  • Duplicated block (11 lines × 2) cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:222 — cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:222-232 | cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:248-258
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_default_tools.py:171 — libs/agno/agno/agent/_default_tools.py:171-181 | libs/agno/agno/agent/_default_tools.py:203-213
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_default_tools.py:238 — libs/agno/agno/agent/_default_tools.py:238-248 | libs/agno/agno/agent/_default_tools.py:266-276
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_managers.py:35 — libs/agno/agno/agent/_managers.py:35-45 | libs/agno/agno/agent/_managers.py:90-100
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_managers.py:413 — libs/agno/agno/agent/_managers.py:413-423 | libs/agno/agno/agent/_managers.py:448-458
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_run.py:702 — libs/agno/agno/agent/_run.py:702-712 | libs/agno/agno/agent/_run.py:1864-1874
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_run.py:4921 — libs/agno/agno/agent/_run.py:4921-4931 | libs/agno/agno/agent/_run.py:5534-5544
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_run.py:5769 — libs/agno/agno/agent/_run.py:5769-5792 | libs/agno/agno/agent/_run.py:5808-5818
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_storage.py:297 — libs/agno/agno/agent/_storage.py:297-307 | libs/agno/agno/agent/_storage.py:360-370
  • Duplicated block (11 lines × 2) libs/agno/agno/agent/_tools.py:868 — libs/agno/agno/agent/_tools.py:868-878 | libs/agno/agno/agent/_tools.py:921-931
  • Duplicated block (11 lines × 2) libs/agno/agno/client/a2a/utils.py:67 — libs/agno/agno/client/a2a/utils.py:67-77 | libs/agno/agno/client/a2a/utils.py:210-220
  • Duplicated block (11 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:790 — libs/agno/agno/db/dynamo/dynamo.py:790-800 | libs/agno/agno/db/dynamo/dynamo.py:2119-2129
  • Duplicated block (11 lines × 2) libs/agno/agno/db/filter_converter.py:135 — libs/agno/agno/db/filter_converter.py:135-145 | libs/agno/agno/db/valkey/utils.py:283-293
  • Duplicated block (11 lines × 2) libs/agno/agno/db/firestore/firestore.py:418 — libs/agno/agno/db/firestore/firestore.py:418-428 | libs/agno/agno/db/firestore/firestore.py:916-926
  • Duplicated block (11 lines × 2) libs/agno/agno/db/firestore/utils.py:230 — libs/agno/agno/db/firestore/utils.py:230-240 | libs/agno/agno/db/mongo/utils.py:125-135
  • Duplicated block (11 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:372 — libs/agno/agno/db/gcs_json/gcs_json_db.py:372-382 | libs/agno/agno/db/json/json_db.py:354-364
  • Duplicated block (11 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1047 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1047-1057 | libs/agno/agno/db/json/json_db.py:1083-1093
  • Duplicated block (11 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1231 — libs/agno/agno/db/mongo/async_mongo.py:1231-1241 | libs/agno/agno/db/mongo/mongo.py:1016-1026
  • + 51 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×60
  • Duplicated block (15 lines × 2) cookbook/02_agents/11_approvals/approval_async.py:75 — cookbook/02_agents/11_approvals/approval_async.py:75-89 | cookbook/02_agents/11_approvals/audit_approval_async.py:63-77
  • Duplicated block (15 lines × 2) cookbook/02_agents/20_time_travel/01_continue_from.py:51 — cookbook/02_agents/20_time_travel/01_continue_from.py:51-65 | cookbook/02_agents/20_time_travel/02_fork_run.py:56-70
  • Duplicated block (15 lines × 2) cookbook/02_agents/20_time_travel/01_continue_from.py:91 — cookbook/02_agents/20_time_travel/01_continue_from.py:91-105 | cookbook/02_agents/20_time_travel/02_fork_run.py:82-97
  • Duplicated block (15 lines × 2) cookbook/03_teams/14_run_control/cancel_run.py:24 — cookbook/03_teams/14_run_control/cancel_run.py:24-38 | cookbook/04_workflows/06_advanced_concepts/run_control/cancel_run.py:25-39
  • Duplicated block (15 lines × 2) cookbook/03_teams/25_time_travel/01_continue_from.py:38 — cookbook/03_teams/25_time_travel/01_continue_from.py:38-52 | cookbook/03_teams/25_time_travel/02_fork_run.py:35-49
  • Duplicated block (15 lines × 2) cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:151 — cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:151-165 | cookbook/04_workflows/08_human_in_the_loop/user_input/03_step_user_input_streaming.py:231-245
  • Duplicated block (15 lines × 2) cookbook/05_agent_os/01_getting_started/run_over_http.py:63 — cookbook/05_agent_os/01_getting_started/run_over_http.py:63-78 | cookbook/05_agent_os/09_serving_workflows/run_over_api.py:52-66
  • Duplicated block (15 lines × 2) cookbook/05_agent_os/05_human_in_the_loop/basic.py:69 — cookbook/05_agent_os/05_human_in_the_loop/basic.py:69-83 | cookbook/05_agent_os/05_human_in_the_loop/external_execution.py:98-115
  • Duplicated block (15 lines × 2) cookbook/05_agent_os/05_human_in_the_loop/user_input.py:138 — cookbook/05_agent_os/05_human_in_the_loop/user_input.py:138-152 | cookbook/05_agent_os/05_human_in_the_loop/workflow_hitl.py:170-184
  • Duplicated block (15 lines × 2) cookbook/10_reasoning/tools/capture_reasoning_content_knowledge_tools.py:70 — cookbook/10_reasoning/tools/capture_reasoning_content_knowledge_tools.py:70-84 | cookbook/10_reasoning/tools/capture_reasoning_content_reasoning_tools.py:41-56
  • Duplicated block (15 lines × 2) cookbook/12_context/02_web_exa_mcp.py:36 — cookbook/12_context/02_web_exa_mcp.py:36-50 | cookbook/12_context/11_web_parallel_mcp.py:38-52
  • Duplicated block (15 lines × 2) libs/agno/agno/agent/_run.py:1522 — libs/agno/agno/agent/_run.py:1522-1537 | libs/agno/agno/agent/_run.py:2196-2210
  • Duplicated block (15 lines × 2) libs/agno/agno/agent/_tools.py:62 — libs/agno/agno/agent/_tools.py:62-76 | libs/agno/agno/agent/_tools.py:88-102
  • Duplicated block (15 lines × 2) libs/agno/agno/client/os.py:135 — libs/agno/agno/client/os.py:135-149 | libs/agno/agno/client/os.py:195-209
  • Duplicated block (15 lines × 2) libs/agno/agno/compression/manager.py:110 — libs/agno/agno/compression/manager.py:110-124 | libs/agno/agno/compression/manager.py:215-229
  • Duplicated block (15 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:418 — libs/agno/agno/db/gcs_json/gcs_json_db.py:418-432 | libs/agno/agno/db/json/json_db.py:403-417
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1611 — libs/agno/agno/db/mongo/async_mongo.py:1611-1625 | libs/agno/agno/db/mongo/mongo.py:1394-1408
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1740 — libs/agno/agno/db/mongo/async_mongo.py:1740-1754 | libs/agno/agno/db/mongo/mongo.py:1523-1537
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2220 — libs/agno/agno/db/mongo/async_mongo.py:2220-2234 | libs/agno/agno/db/mongo/mongo.py:2000-2014
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:526 — libs/agno/agno/db/mysql/async_mysql.py:526-540 | libs/agno/agno/db/postgres/async_postgres.py:644-659
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:694 — libs/agno/agno/db/mysql/async_mysql.py:694-708 | libs/agno/agno/db/postgres/async_postgres.py:817-831
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:882 — libs/agno/agno/db/mysql/async_mysql.py:882-896 | libs/agno/agno/db/postgres/async_postgres.py:986-1000
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1189 — libs/agno/agno/db/mysql/async_mysql.py:1189-1203 | libs/agno/agno/db/mysql/mysql.py:1182-1196
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1228 — libs/agno/agno/db/mysql/async_mysql.py:1228-1242 | libs/agno/agno/db/postgres/async_postgres.py:1146-1160
  • Duplicated block (15 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2686 — libs/agno/agno/db/mysql/async_mysql.py:2686-2700 | libs/agno/agno/db/sqlite/async_sqlite.py:2807-2821
  • + 35 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×60
  • Duplicated block (10 lines × 2) cookbook/04_workflows/05_conditional_branching/selector_types.py:97 — cookbook/04_workflows/05_conditional_branching/selector_types.py:97-106 | cookbook/04_workflows/05_conditional_branching/step_choices_parameter.py:47-56
  • Duplicated block (10 lines × 2) cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:175 — cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:175-184 | cookbook/data_labeling/_19_inter_annotator_agreement/jury_votes.py:211-220
  • Duplicated block (10 lines × 2) libs/agno/agno/agent/_tools.py:574 — libs/agno/agno/agent/_tools.py:574-583 | libs/agno/agno/agent/_tools.py:595-604
  • Duplicated block (10 lines × 2) libs/agno/agno/agent/remote.py:392 — libs/agno/agno/agent/remote.py:392-401 | libs/agno/agno/agent/remote.py:435-444
  • Duplicated block (10 lines × 2) libs/agno/agno/agents/claude/agent.py:149 — libs/agno/agno/agents/claude/agent.py:149-158 | libs/agno/agno/agents/claude/agent.py:217-227
  • Duplicated block (10 lines × 2) libs/agno/agno/client/a2a/client.py:515 — libs/agno/agno/client/a2a/client.py:515-524 | libs/agno/agno/client/a2a/client.py:542-551
  • Duplicated block (10 lines × 2) libs/agno/agno/context/calendar/provider.py:182 — libs/agno/agno/context/calendar/provider.py:182-191 | libs/agno/agno/context/gmail/provider.py:197-206
  • Duplicated block (10 lines × 2) libs/agno/agno/context/calendar/provider.py:194 — libs/agno/agno/context/calendar/provider.py:194-203 | libs/agno/agno/context/gmail/provider.py:209-218
  • Duplicated block (10 lines × 2) libs/agno/agno/db/clickhouse/utils.py:229 — libs/agno/agno/db/clickhouse/utils.py:229-238 | libs/agno/agno/db/clickhouse/utils.py:240-249
  • Duplicated block (10 lines × 2) libs/agno/agno/db/clickhouse/utils.py:266 — libs/agno/agno/db/clickhouse/utils.py:266-275 | libs/agno/agno/db/clickhouse/utils.py:276-285
  • Duplicated block (10 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:443 — libs/agno/agno/db/dynamo/dynamo.py:443-454 | libs/agno/agno/db/dynamo/dynamo.py:2490-2499
  • Duplicated block (10 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:2899 — libs/agno/agno/db/dynamo/dynamo.py:2899-2908 | libs/agno/agno/db/firestore/firestore.py:2427-2436
  • Duplicated block (10 lines × 2) libs/agno/agno/db/firestore/firestore.py:1246 — libs/agno/agno/db/firestore/firestore.py:1246-1257 | libs/agno/agno/db/firestore/firestore.py:1341-1350
  • Duplicated block (10 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1184 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1184-1193 | libs/agno/agno/db/json/json_db.py:1226-1235
  • Duplicated block (10 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1296 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1296-1305 | libs/agno/agno/db/redis/redis.py:1648-1657
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:530 — libs/agno/agno/db/mongo/async_mongo.py:530-539 | libs/agno/agno/db/mongo/mongo.py:327-336
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1683 — libs/agno/agno/db/mongo/async_mongo.py:1683-1692 | libs/agno/agno/db/mongo/mongo.py:1466-1475
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2079 — libs/agno/agno/db/mongo/async_mongo.py:2079-2088 | libs/agno/agno/db/mongo/mongo.py:1860-1869
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2097 — libs/agno/agno/db/mongo/async_mongo.py:2097-2106 | libs/agno/agno/db/mongo/mongo.py:1878-1887
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2217 — libs/agno/agno/db/mysql/async_mysql.py:2217-2226 | libs/agno/agno/db/postgres/async_postgres.py:2139-2148
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mysql/mysql.py:162 — libs/agno/agno/db/mysql/mysql.py:162-171 | libs/agno/agno/db/singlestore/singlestore.py:216-225
  • Duplicated block (10 lines × 2) libs/agno/agno/db/mysql/mysql.py:827 — libs/agno/agno/db/mysql/mysql.py:827-836 | libs/agno/agno/db/singlestore/singlestore.py:901-910
  • Duplicated block (10 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:854 — libs/agno/agno/db/postgres/async_postgres.py:854-863 | libs/agno/agno/db/postgres/postgres.py:1041-1051
  • Duplicated block (10 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:924 — libs/agno/agno/db/postgres/async_postgres.py:924-933 | libs/agno/agno/db/postgres/postgres.py:1110-1119
  • Duplicated block (10 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:965 — libs/agno/agno/db/postgres/async_postgres.py:965-974 | libs/agno/agno/db/postgres/postgres.py:1149-1158
  • + 35 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×55
  • Duplicated block (9 lines × 2) cookbook/02_agents/05_state_and_session/session_state_advanced.py:34 — cookbook/02_agents/05_state_and_session/session_state_advanced.py:34-43 | cookbook/03_teams/21_state/nested_shared_state.py:35-43
  • Duplicated block (9 lines × 2) cookbook/07_knowledge/04_advanced/07_per_user_isolation/valkey_db.py:67 — cookbook/07_knowledge/04_advanced/07_per_user_isolation/valkey_db.py:67-75 | cookbook/07_knowledge/04_advanced/07_per_user_isolation/valkey_db.py:85-94
  • Duplicated block (9 lines × 2) cookbook/data_labeling/_05_text_pairwise_preference/dpo_jury.py:92 — cookbook/data_labeling/_05_text_pairwise_preference/dpo_jury.py:92-100 | cookbook/data_labeling/_05_text_pairwise_preference/jury_calibrated.py:153-161
  • Duplicated block (9 lines × 2) libs/agno/agno/agent/_default_tools.py:210 — libs/agno/agno/agent/_default_tools.py:210-218 | libs/agno/agno/agent/_default_tools.py:272-280
  • Duplicated block (9 lines × 2) libs/agno/agno/agents/base.py:395 — libs/agno/agno/agents/base.py:395-403 | libs/agno/agno/agents/base.py:412-420
  • Duplicated block (9 lines × 2) libs/agno/agno/agents/base.py:573 — libs/agno/agno/agents/base.py:573-581 | libs/agno/agno/agents/base.py:623-631
  • Duplicated block (9 lines × 2) libs/agno/agno/db/firestore/firestore.py:524 — libs/agno/agno/db/firestore/firestore.py:524-532 | libs/agno/agno/db/sqlite/sqlite.py:965-979
  • Duplicated block (9 lines × 2) libs/agno/agno/db/firestore/firestore.py:1377 — libs/agno/agno/db/firestore/firestore.py:1377-1385 | libs/agno/agno/db/mongo/mongo.py:1581-1589
  • Duplicated block (9 lines × 2) libs/agno/agno/db/firestore/firestore.py:2089 — libs/agno/agno/db/firestore/firestore.py:2089-2097 | libs/agno/agno/db/firestore/firestore.py:2178-2188
  • Duplicated block (9 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1065 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1065-1073 | libs/agno/agno/db/json/json_db.py:1104-1112
  • Duplicated block (9 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1081 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1081-1089 | libs/agno/agno/db/json/json_db.py:1121-1129
  • Duplicated block (9 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:676 — libs/agno/agno/db/mysql/async_mysql.py:676-684 | libs/agno/agno/db/mysql/mysql.py:674-682
  • Duplicated block (9 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:812 — libs/agno/agno/db/mysql/async_mysql.py:812-820 | libs/agno/agno/db/mysql/mysql.py:804-812
  • Duplicated block (9 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:865 — libs/agno/agno/db/mysql/async_mysql.py:865-873 | libs/agno/agno/db/mysql/mysql.py:852-860
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:511 — libs/agno/agno/db/postgres/async_postgres.py:511-520 | libs/agno/agno/db/sqlite/async_sqlite.py:496-504
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:724 — libs/agno/agno/db/postgres/async_postgres.py:724-732 | libs/agno/agno/db/postgres/postgres.py:912-920
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:2894 — libs/agno/agno/db/postgres/async_postgres.py:2894-2902 | libs/agno/agno/db/postgres/postgres.py:3367-3375
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3329 — libs/agno/agno/db/postgres/async_postgres.py:3329-3337 | libs/agno/agno/db/sqlite/async_sqlite.py:3502-3510
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3530 — libs/agno/agno/db/postgres/async_postgres.py:3530-3538 | libs/agno/agno/db/sqlite/async_sqlite.py:3640-3648
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3807 — libs/agno/agno/db/postgres/async_postgres.py:3807-3815 | libs/agno/agno/db/sqlite/async_sqlite.py:3917-3925
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3953 — libs/agno/agno/db/postgres/async_postgres.py:3953-3961 | libs/agno/agno/db/sqlite/async_sqlite.py:4070-4078
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3997 — libs/agno/agno/db/postgres/async_postgres.py:3997-4005 | libs/agno/agno/db/sqlite/async_sqlite.py:4114-4122
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:4056 — libs/agno/agno/db/postgres/async_postgres.py:4056-4064 | libs/agno/agno/db/sqlite/async_sqlite.py:4173-4181
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/postgres.py:4851 — libs/agno/agno/db/postgres/postgres.py:4851-4859 | libs/agno/agno/db/sqlite/sqlite.py:4698-4706
  • Duplicated block (9 lines × 2) libs/agno/agno/db/postgres/postgres.py:5346 — libs/agno/agno/db/postgres/postgres.py:5346-5354 | libs/agno/agno/db/sqlite/sqlite.py:5198-5206
  • + 30 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×50
  • Duplicated block (8 lines × 2) cookbook/02_agents/18_checkpointing/02_tool_error_persistence.py:84 — cookbook/02_agents/18_checkpointing/02_tool_error_persistence.py:84-91 | cookbook/03_teams/23_checkpointing/02_tool_error_persistence.py:74-81
  • Duplicated block (8 lines × 2) cookbook/04_workflows/08_human_in_the_loop/condition/02_condition_on_error.py:73 — cookbook/04_workflows/08_human_in_the_loop/condition/02_condition_on_error.py:73-80 | cookbook/04_workflows/08_human_in_the_loop/condition/02_condition_on_error.py:152-159
  • Duplicated block (8 lines × 2) cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:126 — cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:126-133 | cookbook/data_labeling/_19_inter_annotator_agreement/jury_votes.py:159-166
  • Duplicated block (8 lines × 2) cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:145 — cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:145-152 | cookbook/data_labeling/_19_inter_annotator_agreement/jury_votes.py:180-187
  • Duplicated block (8 lines × 2) cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:201 — cookbook/data_labeling/_19_inter_annotator_agreement/basic.py:201-208 | cookbook/data_labeling/_19_inter_annotator_agreement/jury_votes.py:237-244
  • Duplicated block (8 lines × 2) libs/agno/agno/agent/_session.py:225 — libs/agno/agno/agent/_session.py:225-232 | libs/agno/agno/agent/_session.py:247-254
  • Duplicated block (8 lines × 2) libs/agno/agno/compression/manager.py:160 — libs/agno/agno/compression/manager.py:160-167 | libs/agno/agno/compression/manager.py:270-277
  • Duplicated block (8 lines × 2) libs/agno/agno/context/wiki/provider.py:159 — libs/agno/agno/context/wiki/provider.py:159-166 | libs/agno/agno/context/wiki/provider.py:232-239
  • Duplicated block (8 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:760 — libs/agno/agno/db/dynamo/dynamo.py:760-767 | libs/agno/agno/db/dynamo/dynamo.py:1862-1869
  • Duplicated block (8 lines × 2) libs/agno/agno/db/dynamo/utils.py:463 — libs/agno/agno/db/dynamo/utils.py:463-470 | libs/agno/agno/db/dynamo/utils.py:598-605
  • Duplicated block (8 lines × 2) libs/agno/agno/db/migrations/manager.py:99 — libs/agno/agno/db/migrations/manager.py:99-106 | libs/agno/agno/db/migrations/manager.py:179-186
  • Duplicated block (8 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:300 — libs/agno/agno/db/mongo/async_mongo.py:300-308 | libs/agno/agno/db/mongo/async_mongo.py:323-330
  • Duplicated block (8 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2920 — libs/agno/agno/db/mongo/async_mongo.py:2920-2927 | libs/agno/agno/db/mongo/async_mongo.py:3077-3084
  • Duplicated block (8 lines × 2) libs/agno/agno/db/mongo/mongo.py:2756 — libs/agno/agno/db/mongo/mongo.py:2756-2763 | libs/agno/agno/db/mongo/mongo.py:2913-2920
  • Duplicated block (8 lines × 2) libs/agno/agno/db/mysql/mysql.py:688 — libs/agno/agno/db/mysql/mysql.py:688-695 | libs/agno/agno/db/postgres/postgres.py:1000-1007
  • Duplicated block (8 lines × 2) libs/agno/agno/db/mysql/mysql.py:2606 — libs/agno/agno/db/mysql/mysql.py:2606-2613 | libs/agno/agno/db/singlestore/singlestore.py:2556-2563
  • Duplicated block (8 lines × 2) libs/agno/agno/db/mysql/mysql.py:2828 — libs/agno/agno/db/mysql/mysql.py:2828-2835 | libs/agno/agno/db/singlestore/singlestore.py:2784-2791
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:867 — libs/agno/agno/db/postgres/async_postgres.py:867-874 | libs/agno/agno/db/postgres/postgres.py:1055-1062
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3456 — libs/agno/agno/db/postgres/async_postgres.py:3456-3463 | libs/agno/agno/db/postgres/postgres.py:4981-4988
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3479 — libs/agno/agno/db/postgres/async_postgres.py:3479-3486 | libs/agno/agno/db/sqlite/async_sqlite.py:3589-3596
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3735 — libs/agno/agno/db/postgres/async_postgres.py:3735-3742 | libs/agno/agno/db/sqlite/async_sqlite.py:3845-3852
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3793 — libs/agno/agno/db/postgres/async_postgres.py:3793-3800 | libs/agno/agno/db/sqlite/async_sqlite.py:3903-3910
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3864 — libs/agno/agno/db/postgres/async_postgres.py:3864-3871 | libs/agno/agno/db/sqlite/async_sqlite.py:3981-3988
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:4246 — libs/agno/agno/db/postgres/async_postgres.py:4246-4253 | libs/agno/agno/db/sqlite/async_sqlite.py:4365-4372
  • Duplicated block (8 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:4301 — libs/agno/agno/db/postgres/async_postgres.py:4301-4308 | libs/agno/agno/db/sqlite/async_sqlite.py:4422-4429
  • + 25 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×47
  • Duplicated block (17 lines × 2) cookbook/02_agents/11_approvals/approval_async.py:26 — cookbook/02_agents/11_approvals/approval_async.py:26-42 | cookbook/02_agents/11_approvals/approval_basic.py:25-41
  • Duplicated block (17 lines × 2) cookbook/02_agents/14_advanced/background_execution_metrics.py:63 — cookbook/02_agents/14_advanced/background_execution_metrics.py:63-79 | cookbook/03_teams/14_run_control/background_execution_metrics.py:72-88
  • Duplicated block (17 lines × 2) cookbook/04_workflows/06_advanced_concepts/history/history_in_function.py:211 — cookbook/04_workflows/06_advanced_concepts/history/history_in_function.py:211-228 | cookbook/04_workflows/06_advanced_concepts/history/intent_routing_with_history.py:157-173
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_cli.py:93 — libs/agno/agno/agent/_cli.py:93-110 | libs/agno/agno/agent/_cli.py:194-210
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_hooks.py:318 — libs/agno/agno/agent/_hooks.py:318-334 | libs/agno/agno/agent/_hooks.py:422-438
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_messages.py:1825 — libs/agno/agno/agent/_messages.py:1825-1842 | libs/agno/agno/agent/_messages.py:1912-1928
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_response.py:471 — libs/agno/agno/agent/_response.py:471-487 | libs/agno/agno/agent/_response.py:539-555
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_response.py:511 — libs/agno/agno/agent/_response.py:511-528 | libs/agno/agno/agent/_response.py:581-597
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_response.py:1897 — libs/agno/agno/agent/_response.py:1897-1913 | libs/agno/agno/agent/_response.py:1945-1961
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_run.py:1101 — libs/agno/agno/agent/_run.py:1101-1117 | libs/agno/agno/agent/_run.py:2506-2522
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_run.py:2369 — libs/agno/agno/agent/_run.py:2369-2385 | libs/agno/agno/agent/_run.py:5253-5269
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/_run.py:2508 — libs/agno/agno/agent/_run.py:2508-2524 | libs/agno/agno/agent/_run.py:5362-5378
  • Duplicated block (17 lines × 2) libs/agno/agno/agent/remote.py:313 — libs/agno/agno/agent/remote.py:313-329 | libs/agno/agno/agent/remote.py:335-351
  • Duplicated block (17 lines × 2) libs/agno/agno/context/calendar/provider.py:96 — libs/agno/agno/context/calendar/provider.py:96-112 | libs/agno/agno/context/gmail/provider.py:103-120
  • Duplicated block (17 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:548 — libs/agno/agno/db/gcs_json/gcs_json_db.py:548-564 | libs/agno/agno/db/json/json_db.py:543-560
  • Duplicated block (17 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:833 — libs/agno/agno/db/gcs_json/gcs_json_db.py:833-849 | libs/agno/agno/db/json/json_db.py:832-848
  • Duplicated block (17 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1025 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1025-1041 | libs/agno/agno/db/json/json_db.py:1059-1076
  • Duplicated block (17 lines × 2) libs/agno/agno/db/in_memory/in_memory_db.py:1136 — libs/agno/agno/db/in_memory/in_memory_db.py:1136-1152 | libs/agno/agno/db/json/json_db.py:1304-1320
  • Duplicated block (17 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:810 — libs/agno/agno/db/mongo/async_mongo.py:810-826 | libs/agno/agno/db/mongo/mongo.py:599-615
  • Duplicated block (17 lines × 2) libs/agno/agno/db/mysql/mysql.py:94 — libs/agno/agno/db/mysql/mysql.py:94-110 | libs/agno/agno/db/singlestore/singlestore.py:92-108
  • Duplicated block (17 lines × 2) libs/agno/agno/db/mysql/mysql.py:1160 — libs/agno/agno/db/mysql/mysql.py:1160-1177 | libs/agno/agno/db/singlestore/singlestore.py:1220-1236
  • Duplicated block (17 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1035 — libs/agno/agno/db/postgres/async_postgres.py:1035-1051 | libs/agno/agno/db/sqlite/async_sqlite.py:1203-1219
  • Duplicated block (17 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3261 — libs/agno/agno/db/postgres/async_postgres.py:3261-3277 | libs/agno/agno/db/sqlite/async_sqlite.py:3434-3450
  • Duplicated block (17 lines × 2) libs/agno/agno/db/postgres/postgres.py:3568 — libs/agno/agno/db/postgres/postgres.py:3568-3585 | libs/agno/agno/db/sqlite/sqlite.py:3174-3190
  • Duplicated block (17 lines × 2) libs/agno/agno/db/postgres/postgres.py:4149 — libs/agno/agno/db/postgres/postgres.py:4149-4165 | libs/agno/agno/db/sqlite/sqlite.py:4035-4051
  • + 22 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×44
  • Duplicated block (16 lines × 2) cookbook/02_agents/14_advanced/background_execution.py:61 — cookbook/02_agents/14_advanced/background_execution.py:61-76 | cookbook/03_teams/14_run_control/background_execution.py:75-90
  • Duplicated block (16 lines × 2) cookbook/04_workflows/06_advanced_concepts/session_state/state_in_function.py:157 — cookbook/04_workflows/06_advanced_concepts/session_state/state_in_function.py:157-172 | cookbook/04_workflows/06_advanced_concepts/session_state/state_in_function.py:271-287
  • Duplicated block (16 lines × 2) cookbook/91_tools/tool_decorator/async_tool_decorator.py:23 — cookbook/91_tools/tool_decorator/async_tool_decorator.py:23-38 | cookbook/91_tools/tool_hooks/pre_and_post_hooks.py:76-91
  • Duplicated block (16 lines × 2) libs/agno/agno/agent/_hooks.py:342 — libs/agno/agno/agent/_hooks.py:342-357 | libs/agno/agno/agent/_hooks.py:442-458
  • Duplicated block (16 lines × 2) libs/agno/agno/agent/_run.py:1825 — libs/agno/agno/agent/_run.py:1825-1840 | libs/agno/agno/agent/_run.py:4875-4890
  • Duplicated block (16 lines × 2) libs/agno/agno/agent/_run.py:3315 — libs/agno/agno/agent/_run.py:3315-3330 | libs/agno/agno/agent/_run.py:4186-4202
  • Duplicated block (16 lines × 2) libs/agno/agno/agent/_run.py:4639 — libs/agno/agno/agent/_run.py:4639-4654 | libs/agno/agno/agent/_run.py:5130-5145
  • Duplicated block (16 lines × 2) libs/agno/agno/agent/_session.py:621 — libs/agno/agno/agent/_session.py:621-636 | libs/agno/agno/agent/_session.py:675-690
  • Duplicated block (16 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:724 — libs/agno/agno/db/gcs_json/gcs_json_db.py:724-739 | libs/agno/agno/db/json/json_db.py:723-738
  • Duplicated block (16 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:926 — libs/agno/agno/db/gcs_json/gcs_json_db.py:926-941 | libs/agno/agno/db/json/json_db.py:927-942
  • Duplicated block (16 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1152 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1152-1167 | libs/agno/agno/db/json/json_db.py:1194-1209
  • Duplicated block (16 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1752 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1752-1767 | libs/agno/agno/db/json/json_db.py:1728-1743
  • Duplicated block (16 lines × 2) libs/agno/agno/db/in_memory/in_memory_db.py:220 — libs/agno/agno/db/in_memory/in_memory_db.py:220-235 | libs/agno/agno/db/in_memory/in_memory_db.py:519-534
  • Duplicated block (16 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_6.py:256 — libs/agno/agno/db/migrations/versions/v2_5_6.py:256-272 | libs/agno/agno/db/migrations/versions/v2_5_6.py:589-604
  • Duplicated block (16 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1293 — libs/agno/agno/db/mongo/async_mongo.py:1293-1308 | libs/agno/agno/db/mongo/async_mongo.py:1672-1687
  • Duplicated block (16 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1516 — libs/agno/agno/db/mongo/async_mongo.py:1516-1531 | libs/agno/agno/db/mongo/mongo.py:1299-1314
  • Duplicated block (16 lines × 2) libs/agno/agno/db/mongo/mongo.py:1077 — libs/agno/agno/db/mongo/mongo.py:1077-1092 | libs/agno/agno/db/mongo/mongo.py:1455-1470
  • Duplicated block (16 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1400 — libs/agno/agno/db/mysql/async_mysql.py:1400-1415 | libs/agno/agno/db/mysql/async_mysql.py:1546-1562
  • Duplicated block (16 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1687 — libs/agno/agno/db/mysql/async_mysql.py:1687-1702 | libs/agno/agno/db/postgres/async_postgres.py:1640-1655
  • Duplicated block (16 lines × 2) libs/agno/agno/db/mysql/mysql.py:2893 — libs/agno/agno/db/mysql/mysql.py:2893-2908 | libs/agno/agno/db/singlestore/singlestore.py:2855-2870
  • Duplicated block (16 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1006 — libs/agno/agno/db/postgres/async_postgres.py:1006-1021 | libs/agno/agno/db/sqlite/async_sqlite.py:1169-1188
  • Duplicated block (16 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1433 — libs/agno/agno/db/postgres/async_postgres.py:1433-1449 | libs/agno/agno/db/postgres/postgres.py:2734-2749
  • Duplicated block (16 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3285 — libs/agno/agno/db/postgres/async_postgres.py:3285-3300 | libs/agno/agno/db/sqlite/async_sqlite.py:3458-3473
  • Duplicated block (16 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3585 — libs/agno/agno/db/postgres/async_postgres.py:3585-3600 | libs/agno/agno/db/sqlite/async_sqlite.py:3695-3710
  • Duplicated block (16 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:4223 — libs/agno/agno/db/postgres/async_postgres.py:4223-4238 | libs/agno/agno/db/sqlite/async_sqlite.py:4340-4357
  • + 19 more in this group — see findings.md.
D3 · God Classes · TooManyMethods · ×43
  • TooManyMethods: PostgresDb libs/agno/agno/db/postgres/postgres.py:74 — TooManyMethods — 128 methods.
  • TooManyMethods: SqliteDb libs/agno/agno/db/sqlite/sqlite.py:64 — TooManyMethods — 128 methods.
  • TooManyMethods: BaseDb libs/agno/agno/db/base.py:30 — TooManyMethods — 116 methods.
  • TooManyMethods: AsyncSqliteDb libs/agno/agno/db/sqlite/async_sqlite.py:55 — TooManyMethods — 107 methods.
  • TooManyMethods: AsyncPostgresDb libs/agno/agno/db/postgres/async_postgres.py:50 — TooManyMethods — 106 methods.
  • TooManyMethods: StudioTools libs/agno/agno/tools/studio.py:69 — TooManyMethods — 85 methods.
  • TooManyMethods: AsyncBaseDb libs/agno/agno/db/base.py:1486 — TooManyMethods — 84 methods.
  • TooManyMethods: AgentOSClient libs/agno/agno/client/os.py:72 — TooManyMethods — 77 methods.
  • TooManyMethods: AsyncMongoDb libs/agno/agno/db/mongo/async_mongo.py:138 — TooManyMethods — 77 methods.
  • TooManyMethods: MongoDb libs/agno/agno/db/mongo/mongo.py:48 — TooManyMethods — 75 methods.
  • TooManyMethods: ValkeyDb libs/agno/agno/db/valkey/valkey.py:53 — TooManyMethods — 67 methods.
  • TooManyMethods: ClickhouseDb libs/agno/agno/db/clickhouse/clickhouse.py:65 — TooManyMethods — 61 methods.
  • TooManyMethods: DynamoDb libs/agno/agno/db/dynamo/dynamo.py:53 — TooManyMethods — 60 methods.
  • TooManyMethods: AsyncMySQLDb libs/agno/agno/db/mysql/async_mysql.py:43 — TooManyMethods — 59 methods.
  • TooManyMethods: MySQLDb libs/agno/agno/db/mysql/mysql.py:44 — TooManyMethods — 59 methods.
  • TooManyMethods: SurrealDb libs/agno/agno/db/surrealdb/surrealdb.py:55 — TooManyMethods — 59 methods.
  • TooManyMethods: SingleStoreDb libs/agno/agno/db/singlestore/singlestore.py:45 — TooManyMethods — 58 methods.
  • TooManyMethods: RedisDb libs/agno/agno/db/redis/redis.py:41 — TooManyMethods — 56 methods.
  • TooManyMethods: GcsJsonDb libs/agno/agno/db/gcs_json/gcs_json_db.py:34 — TooManyMethods — 55 methods.
  • TooManyMethods: JsonDb libs/agno/agno/db/json/json_db.py:31 — TooManyMethods — 54 methods.
  • TooManyMethods: FirestoreDb libs/agno/agno/db/firestore/firestore.py:45 — TooManyMethods — 53 methods.
  • TooManyMethods: InMemoryDb libs/agno/agno/db/in_memory/in_memory_db.py:28 — TooManyMethods — 51 methods.
  • TooManyMethods: PgVector libs/agno/agno/vectordb/pgvector/pgvector.py:40 — TooManyMethods — 50 methods.
  • TooManyMethods: AgentOSBuiltinAuth libs/agno/agno/os/mcp_auth_builtin.py:196 — TooManyMethods — 46 methods.
  • TooManyMethods: CouchbaseSearch libs/agno/agno/vectordb/couchbase/couchbase.py:51 — TooManyMethods — 46 methods.
  • + 18 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×38
  • Duplicated block (18 lines × 2) cookbook/02_agents/14_advanced/background_execution.py:99 — cookbook/02_agents/14_advanced/background_execution.py:99-118 | cookbook/03_teams/14_run_control/background_execution.py:128-145
  • Duplicated block (18 lines × 2) cookbook/03_teams/15_distributed_rag/01_distributed_rag_pgvector.py:145 — cookbook/03_teams/15_distributed_rag/01_distributed_rag_pgvector.py:145-162 | cookbook/03_teams/15_distributed_rag/01_distributed_rag_pgvector.py:166-189
  • Duplicated block (18 lines × 2) libs/agno/agno/agent/_response.py:1059 — libs/agno/agno/agent/_response.py:1059-1076 | libs/agno/agno/agent/_response.py:1219-1236
  • Duplicated block (18 lines × 2) libs/agno/agno/agent/_run.py:1329 — libs/agno/agno/agent/_run.py:1329-1346 | libs/agno/agno/agent/_run.py:2775-2792
  • Duplicated block (18 lines × 2) libs/agno/agno/agent/_run.py:1357 — libs/agno/agno/agent/_run.py:1357-1374 | libs/agno/agno/agent/_run.py:2803-2822
  • Duplicated block (18 lines × 2) libs/agno/agno/agent/_run.py:2094 — libs/agno/agno/agent/_run.py:2094-2111 | libs/agno/agno/agent/_run.py:4419-4436
  • Duplicated block (18 lines × 2) libs/agno/agno/agent/_tools.py:178 — libs/agno/agno/agent/_tools.py:178-195 | libs/agno/agno/agent/_tools.py:311-328
  • Duplicated block (18 lines × 2) libs/agno/agno/agent/_tools.py:691 — libs/agno/agno/agent/_tools.py:691-708 | libs/agno/agno/agent/_tools.py:805-822
  • Duplicated block (18 lines × 2) libs/agno/agno/db/firestore/firestore.py:243 — libs/agno/agno/db/firestore/firestore.py:243-260 | libs/agno/agno/db/firestore/firestore.py:318-341
  • Duplicated block (18 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:201 — libs/agno/agno/db/gcs_json/gcs_json_db.py:201-218 | libs/agno/agno/db/json/json_db.py:183-200
  • Duplicated block (18 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1088 — libs/agno/agno/db/mongo/async_mongo.py:1088-1105 | libs/agno/agno/db/mongo/mongo.py:876-893
  • Duplicated block (18 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1351 — libs/agno/agno/db/mongo/async_mongo.py:1351-1371 | libs/agno/agno/db/mongo/async_mongo.py:3442-3459
  • Duplicated block (18 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:334 — libs/agno/agno/db/mysql/async_mysql.py:334-351 | libs/agno/agno/db/postgres/async_postgres.py:388-405
  • Duplicated block (18 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1090 — libs/agno/agno/db/mysql/async_mysql.py:1090-1107 | libs/agno/agno/db/mysql/mysql.py:1077-1094
  • Duplicated block (18 lines × 2) libs/agno/agno/db/mysql/utils.py:99 — libs/agno/agno/db/mysql/utils.py:99-118 | libs/agno/agno/db/postgres/utils.py:130-147
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:588 — libs/agno/agno/db/postgres/async_postgres.py:588-605 | libs/agno/agno/db/sqlite/async_sqlite.py:570-587
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/postgres.py:371 — libs/agno/agno/db/postgres/postgres.py:371-389 | libs/agno/agno/db/sqlite/sqlite.py:367-384
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/postgres.py:4037 — libs/agno/agno/db/postgres/postgres.py:4037-4054 | libs/agno/agno/db/sqlite/sqlite.py:3923-3940
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/postgres.py:4316 — libs/agno/agno/db/postgres/postgres.py:4316-4333 | libs/agno/agno/db/sqlite/sqlite.py:4198-4215
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/postgres.py:4515 — libs/agno/agno/db/postgres/postgres.py:4515-4532 | libs/agno/agno/db/sqlite/sqlite.py:4394-4411
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/postgres.py:4786 — libs/agno/agno/db/postgres/postgres.py:4786-4803 | libs/agno/agno/db/sqlite/sqlite.py:4633-4650
  • Duplicated block (18 lines × 2) libs/agno/agno/db/postgres/postgres.py:5484 — libs/agno/agno/db/postgres/postgres.py:5484-5501 | libs/agno/agno/db/sqlite/sqlite.py:5336-5353
  • Duplicated block (18 lines × 2) libs/agno/agno/db/redis/redis.py:89 — libs/agno/agno/db/redis/redis.py:89-106 | libs/agno/agno/db/valkey/valkey.py:118-135
  • Duplicated block (18 lines × 2) libs/agno/agno/db/redis/redis.py:284 — libs/agno/agno/db/redis/redis.py:284-301 | libs/agno/agno/db/valkey/valkey.py:367-384
  • Duplicated block (18 lines × 2) libs/agno/agno/db/redis/redis.py:750 — libs/agno/agno/db/redis/redis.py:750-767 | libs/agno/agno/db/valkey/valkey.py:1021-1038
  • + 13 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×28
  • Duplicated block (19 lines × 2) cookbook/02_agents/14_advanced/cancel_run.py:149 — cookbook/02_agents/14_advanced/cancel_run.py:149-171 | cookbook/04_workflows/06_advanced_concepts/run_control/cancel_run.py:161-179
  • Duplicated block (19 lines × 2) cookbook/02_agents/18_checkpointing/03_checkpoint_endpoints.py:91 — cookbook/02_agents/18_checkpointing/03_checkpoint_endpoints.py:91-111 | cookbook/03_teams/23_checkpointing/03_checkpoint_endpoints.py:96-114
  • Duplicated block (19 lines × 2) cookbook/04_workflows/06_advanced_concepts/previous_step_outputs/access_previous_outputs.py:66 — cookbook/04_workflows/06_advanced_concepts/previous_step_outputs/access_previous_outputs.py:66-84 | cookbook/04_workflows/06_advanced_concepts/previous_step_outputs/access_previous_outputs.py:106-124
  • Duplicated block (19 lines × 2) cookbook/04_workflows/08_human_in_the_loop/confirmation/03_step_confirmation_streaming.py:143 — cookbook/04_workflows/08_human_in_the_loop/confirmation/03_step_confirmation_streaming.py:143-161 | cookbook/04_workflows/08_human_in_the_loop/loop/02_loop_confirmation_streaming.py:132-150
  • Duplicated block (19 lines × 2) cookbook/05_agent_os/04_run_lifecycle/background_run.py:88 — cookbook/05_agent_os/04_run_lifecycle/background_run.py:88-106 | cookbook/05_agent_os/04_run_lifecycle/cancel_run.py:85-106
  • Duplicated block (19 lines × 2) cookbook/12_context/15a_wiki_notion.py:103 — cookbook/12_context/15a_wiki_notion.py:103-128 | cookbook/12_context/16_wiki_with_web.py:71-89
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_messages.py:452 — libs/agno/agno/agent/_messages.py:452-470 | libs/agno/agno/agent/_messages.py:819-837
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_messages.py:881 — libs/agno/agno/agent/_messages.py:881-899 | libs/agno/agno/agent/_messages.py:1046-1064
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:1020 — libs/agno/agno/agent/_run.py:1020-1038 | libs/agno/agno/agent/_run.py:3898-3916
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:1129 — libs/agno/agno/agent/_run.py:1129-1147 | libs/agno/agno/agent/_run.py:2534-2552
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:1376 — libs/agno/agno/agent/_run.py:1376-1394 | libs/agno/agno/agent/_run.py:2829-2847
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:1746 — libs/agno/agno/agent/_run.py:1746-1764 | libs/agno/agno/agent/_run.py:4802-4820
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:1782 — libs/agno/agno/agent/_run.py:1782-1800 | libs/agno/agno/agent/_run.py:4828-4847
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:2472 — libs/agno/agno/agent/_run.py:2472-2490 | libs/agno/agno/agent/_run.py:5340-5358
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:2617 — libs/agno/agno/agent/_run.py:2617-2636 | libs/agno/agno/agent/_run.py:5470-5488
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_run.py:3979 — libs/agno/agno/agent/_run.py:3979-3997 | libs/agno/agno/agent/_run.py:5388-5406
  • Duplicated block (19 lines × 2) libs/agno/agno/agent/_storage.py:328 — libs/agno/agno/agent/_storage.py:328-346 | libs/agno/agno/agent/_storage.py:393-411
  • Duplicated block (19 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:3430 — libs/agno/agno/db/mongo/async_mongo.py:3430-3453 | libs/agno/agno/db/mongo/mongo.py:3195-3213
  • Duplicated block (19 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1612 — libs/agno/agno/db/mysql/async_mysql.py:1612-1630 | libs/agno/agno/db/postgres/async_postgres.py:1553-1571
  • Duplicated block (19 lines × 2) libs/agno/agno/db/mysql/mysql.py:1791 — libs/agno/agno/db/mysql/mysql.py:1791-1809 | libs/agno/agno/db/sqlite/sqlite.py:2086-2104
  • Duplicated block (19 lines × 2) libs/agno/agno/db/mysql/mysql.py:1957 — libs/agno/agno/db/mysql/mysql.py:1957-1975 | libs/agno/agno/db/singlestore/singlestore.py:1959-1977
  • Duplicated block (19 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:4095 — libs/agno/agno/db/postgres/async_postgres.py:4095-4113 | libs/agno/agno/db/sqlite/async_sqlite.py:4212-4230
  • Duplicated block (19 lines × 2) libs/agno/agno/db/postgres/postgres.py:4950 — libs/agno/agno/db/postgres/postgres.py:4950-4970 | libs/agno/agno/db/sqlite/sqlite.py:4797-4815
  • Duplicated block (19 lines × 2) libs/agno/agno/db/redis/redis.py:1736 — libs/agno/agno/db/redis/redis.py:1736-1754 | libs/agno/agno/db/valkey/valkey.py:2026-2044
  • Duplicated block (19 lines × 2) libs/agno/agno/db/valkey/valkey.py:398 — libs/agno/agno/db/valkey/valkey.py:398-417 | libs/agno/agno/db/valkey/valkey.py:1778-1796
  • + 3 more in this group — see findings.md.
D29 · Static Analysis (SAST) · Medium · ×27
  • Medium: jwt-python-hardcoded-secret cookbook/05_agent_os/07_security/test_scopes.py:39 — Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)
  • Medium: jwt-python-hardcoded-secret cookbook/05_agent_os/21_factories/03_with_jwt_rbac.py:97 — Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)
  • Medium: jwt-python-hardcoded-secret cookbook/05_agent_os/21_factories/04_tiered_model.py:84 — Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)
  • Medium: directly-returned-format-string cookbook/91_tools/mcp/dynamic_headers/server.py:35 — Detected Flask route directly returning a formatted string. This is subject to cross-site scripting if user input can reach the string. Consider using the template engine instead and rendering pages with 'render_template()'. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: insecure-hash-algorithm-sha1 libs/agno/agno/context/wiki/backend.py:927 — Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/knowledge/chunking/strategy.py:30 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/models/base.py:479 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/tools/function.py:718 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: use-defused-xml libs/agno/agno/tools/pubmed.py:3 — The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and "XML bombs" can cause denial of service. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/utils/functions.py:127 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: avoid-pickle libs/agno/agno/utils/pickle.py:14 — Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: avoid-pickle libs/agno/agno/utils/pickle.py:26 — Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format. This is a semgrep security-AUDIT rule: it reports that a sensitive construct is present, not that it is exploitable here. Confirm whether this site handles untrusted input or is reachable across a trust boundary — and apply the change where it is; where the construct is required by the platform or protocol it calls into, and carries no untrusted data (a syscall/FFI shim, a build- or debug-gated tool, a fixed local surface), record the review and leave the code as it is.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:328 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:329 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:335 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:432 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:433 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:439 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:521 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:522 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:528 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:627 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:628 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/chroma/chromadb.py:634 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • Medium: insecure-hash-algorithm-md5 libs/agno/agno/vectordb/clickhouse/clickhousedb.py:279 — Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×26
  • Duplicated block (21 lines × 2) libs/agno/agno/agent/_messages.py:1308 — libs/agno/agno/agent/_messages.py:1308-1328 | libs/agno/agno/agent/_messages.py:1514-1534
  • Duplicated block (21 lines × 2) libs/agno/agno/client/os.py:674 — libs/agno/agno/client/os.py:674-695 | libs/agno/agno/client/os.py:717-737
  • Duplicated block (21 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1770 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1770-1790 | libs/agno/agno/db/json/json_db.py:1746-1766
  • Duplicated block (21 lines × 2) libs/agno/agno/db/in_memory/in_memory_db.py:770 — libs/agno/agno/db/in_memory/in_memory_db.py:770-790 | libs/agno/agno/db/json/json_db.py:897-917
  • Duplicated block (21 lines × 2) libs/agno/agno/db/migrations/manager.py:43 — libs/agno/agno/db/migrations/manager.py:43-63 | libs/agno/agno/db/migrations/manager.py:136-156
  • Duplicated block (21 lines × 2) libs/agno/agno/db/migrations/versions/v2_3_0.py:317 — libs/agno/agno/db/migrations/versions/v2_3_0.py:317-337 | libs/agno/agno/db/migrations/versions/v2_3_0.py:830-850
  • Duplicated block (21 lines × 2) libs/agno/agno/db/migrations/versions/v2_3_0.py:528 — libs/agno/agno/db/migrations/versions/v2_3_0.py:528-548 | libs/agno/agno/db/migrations/versions/v2_3_0.py:745-765
  • Duplicated block (21 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_6.py:358 — libs/agno/agno/db/migrations/versions/v2_5_6.py:358-378 | libs/agno/agno/db/migrations/versions/v2_5_6.py:679-699
  • Duplicated block (21 lines × 2) libs/agno/agno/db/mysql/mysql.py:1730 — libs/agno/agno/db/mysql/mysql.py:1730-1750 | libs/agno/agno/db/singlestore/singlestore.py:1769-1789
  • Duplicated block (21 lines × 2) libs/agno/agno/db/mysql/utils.py:463 — libs/agno/agno/db/mysql/utils.py:463-484 | libs/agno/agno/db/postgres/utils.py:162-182
  • Duplicated block (21 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:551 — libs/agno/agno/db/postgres/async_postgres.py:551-571 | libs/agno/agno/db/sqlite/async_sqlite.py:535-555
  • Duplicated block (21 lines × 2) libs/agno/agno/db/postgres/postgres.py:4342 — libs/agno/agno/db/postgres/postgres.py:4342-4362 | libs/agno/agno/db/sqlite/sqlite.py:4224-4244
  • Duplicated block (21 lines × 2) libs/agno/agno/db/redis/redis.py:686 — libs/agno/agno/db/redis/redis.py:686-709 | libs/agno/agno/db/valkey/valkey.py:930-950
  • Duplicated block (21 lines × 2) libs/agno/agno/db/redis/redis.py:1181 — libs/agno/agno/db/redis/redis.py:1181-1201 | libs/agno/agno/db/valkey/valkey.py:1536-1559
  • Duplicated block (21 lines × 2) libs/agno/agno/db/redis/redis.py:1331 — libs/agno/agno/db/redis/redis.py:1331-1351 | libs/agno/agno/db/valkey/valkey.py:1726-1746
  • Duplicated block (21 lines × 2) libs/agno/agno/eval/accuracy.py:396 — libs/agno/agno/eval/accuracy.py:396-416 | libs/agno/agno/eval/accuracy.py:542-562
  • Duplicated block (21 lines × 2) libs/agno/agno/knowledge/loaders/gcs.py:92 — libs/agno/agno/knowledge/loaders/gcs.py:92-115 | libs/agno/agno/knowledge/loaders/gcs.py:186-206
  • Duplicated block (21 lines × 2) libs/agno/agno/knowledge/remote_content/s3.py:68 — libs/agno/agno/knowledge/remote_content/s3.py:68-88 | libs/agno/agno/knowledge/remote_content/s3.py:243-263
  • Duplicated block (21 lines × 2) libs/agno/agno/learn/stores/entity_memory.py:1327 — libs/agno/agno/learn/stores/entity_memory.py:1327-1347 | libs/agno/agno/learn/stores/entity_memory.py:1372-1392
  • Duplicated block (21 lines × 2) libs/agno/agno/learn/stores/user_memory.py:769 — libs/agno/agno/learn/stores/user_memory.py:769-789 | libs/agno/agno/learn/stores/user_profile.py:857-877
  • Duplicated block (21 lines × 2) libs/agno/agno/models/base.py:804 — libs/agno/agno/models/base.py:804-824 | libs/agno/agno/models/base.py:1025-1045
  • Duplicated block (21 lines × 2) libs/agno/agno/models/base.py:1050 — libs/agno/agno/models/base.py:1050-1070 | libs/agno/agno/models/base.py:1835-1855
  • Duplicated block (21 lines × 2) libs/agno/agno/models/base.py:1375 — libs/agno/agno/models/base.py:1375-1395 | libs/agno/agno/models/base.py:1654-1674
  • Duplicated block (21 lines × 2) libs/agno/agno/models/base.py:1580 — libs/agno/agno/models/base.py:1580-1600 | libs/agno/agno/models/base.py:1859-1879
  • Duplicated block (21 lines × 2) libs/agno/agno/os/app.py:572 — libs/agno/agno/os/app.py:572-592 | libs/agno/agno/os/app.py:1108-1128
  • + 1 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×25
  • Duplicated block (20 lines × 2) cookbook/02_agents/08_guardrails/pii_detection.py:28 — cookbook/02_agents/08_guardrails/pii_detection.py:28-47 | cookbook/02_agents/08_guardrails/prompt_injection.py:26-45
  • Duplicated block (20 lines × 2) cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:47 — cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:47-66 | cookbook/04_workflows/06_advanced_concepts/long_running/events_replay.py:50-69
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_response.py:258 — libs/agno/agno/agent/_response.py:258-277 | libs/agno/agno/agent/_response.py:305-324
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_response.py:389 — libs/agno/agno/agent/_response.py:389-408 | libs/agno/agno/agent/_response.py:437-456
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_response.py:635 — libs/agno/agno/agent/_response.py:635-654 | libs/agno/agno/agent/_response.py:716-735
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_response.py:1127 — libs/agno/agno/agent/_response.py:1127-1146 | libs/agno/agno/agent/_response.py:1289-1308
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_response.py:1185 — libs/agno/agno/agent/_response.py:1185-1204 | libs/agno/agno/agent/_response.py:1347-1366
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_run.py:1171 — libs/agno/agno/agent/_run.py:1171-1190 | libs/agno/agno/agent/_run.py:1225-1244
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_run.py:2583 — libs/agno/agno/agent/_run.py:2583-2602 | libs/agno/agno/agent/_run.py:5433-5452
  • Duplicated block (20 lines × 2) libs/agno/agno/agent/_run.py:4549 — libs/agno/agno/agent/_run.py:4549-4568 | libs/agno/agno/agent/_run.py:5035-5054
  • Duplicated block (20 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:1220 — libs/agno/agno/db/dynamo/dynamo.py:1220-1243 | libs/agno/agno/db/sqlite/sqlite.py:1966-1985
  • Duplicated block (20 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1390 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1390-1409 | libs/agno/agno/db/json/json_db.py:1375-1394
  • Duplicated block (20 lines × 2) libs/agno/agno/db/migrations/versions/v2_3_0.py:797 — libs/agno/agno/db/migrations/versions/v2_3_0.py:797-817 | libs/agno/agno/db/migrations/versions/v2_3_0.py:952-971
  • Duplicated block (20 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_0.py:19 — libs/agno/agno/db/migrations/versions/v2_5_0.py:19-39 | libs/agno/agno/db/migrations/versions/v2_5_6.py:19-38
  • Duplicated block (20 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_0.py:77 — libs/agno/agno/db/migrations/versions/v2_5_0.py:77-96 | libs/agno/agno/db/migrations/versions/v2_5_6.py:75-94
  • Duplicated block (20 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1766 — libs/agno/agno/db/mongo/async_mongo.py:1766-1785 | libs/agno/agno/db/mongo/mongo.py:1549-1568
  • Duplicated block (20 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2982 — libs/agno/agno/db/mongo/async_mongo.py:2982-3001 | libs/agno/agno/db/mongo/mongo.py:2821-2840
  • Duplicated block (20 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1840 — libs/agno/agno/db/mysql/async_mysql.py:1840-1859 | libs/agno/agno/db/postgres/async_postgres.py:1704-1723
  • Duplicated block (20 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2515 — libs/agno/agno/db/mysql/async_mysql.py:2515-2534 | libs/agno/agno/db/sqlite/async_sqlite.py:2635-2654
  • Duplicated block (20 lines × 2) libs/agno/agno/knowledge/knowledge.py:128 — libs/agno/agno/knowledge/knowledge.py:128-147 | libs/agno/agno/knowledge/knowledge.py:196-215
  • Duplicated block (20 lines × 2) libs/agno/agno/learn/stores/user_memory.py:833 — libs/agno/agno/learn/stores/user_memory.py:833-852 | libs/agno/agno/learn/stores/user_profile.py:918-937
  • Duplicated block (20 lines × 2) libs/agno/agno/memory/manager.py:1470 — libs/agno/agno/memory/manager.py:1470-1489 | libs/agno/agno/memory/manager.py:1515-1534
  • Duplicated block (20 lines × 2) libs/agno/agno/models/base.py:662 — libs/agno/agno/models/base.py:662-689 | libs/agno/agno/models/base.py:893-912
  • Duplicated block (20 lines × 2) libs/agno/agno/models/google/gemini.py:1216 — libs/agno/agno/models/google/gemini.py:1216-1235 | libs/agno/agno/models/google/gemini.py:1366-1386
  • Duplicated block (20 lines × 2) libs/agno/agno/os/routers/agents/router.py:1393 — libs/agno/agno/os/routers/agents/router.py:1393-1412 | libs/agno/agno/os/routers/agents/router.py:1670-1689
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×23
  • Duplicated block (7 lines × 2) cookbook/02_agents/08_guardrails/openai_moderation.py:99 — cookbook/02_agents/08_guardrails/openai_moderation.py:99-105 | cookbook/03_teams/18_guardrails/openai_moderation.py:96-102
  • Duplicated block (7 lines × 2) cookbook/05_agent_os/03_python_client/02_run_and_stream.py:60 — cookbook/05_agent_os/03_python_client/02_run_and_stream.py:60-66 | cookbook/05_agent_os/20_remote/01_remote_agent.py:56-62
  • Duplicated block (7 lines × 2) cookbook/05_agent_os/12_scheduler/02_rest_api.py:146 — cookbook/05_agent_os/12_scheduler/02_rest_api.py:146-152 | cookbook/05_agent_os/12_scheduler/04_scheduler_tools_agent.py:172-178
  • Duplicated block (7 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:4081 — libs/agno/agno/db/postgres/async_postgres.py:4081-4087 | libs/agno/agno/db/sqlite/async_sqlite.py:4198-4204
  • Duplicated block (7 lines × 2) libs/agno/agno/db/postgres/postgres.py:5194 — libs/agno/agno/db/postgres/postgres.py:5194-5200 | libs/agno/agno/db/sqlite/sqlite.py:5038-5044
  • Duplicated block (7 lines × 2) libs/agno/agno/db/postgres/postgres.py:5289 — libs/agno/agno/db/postgres/postgres.py:5289-5295 | libs/agno/agno/db/sqlite/sqlite.py:5141-5147
  • Duplicated block (7 lines × 2) libs/agno/agno/db/valkey/valkey.py:891 — libs/agno/agno/db/valkey/valkey.py:891-897 | libs/agno/agno/db/valkey/valkey.py:1337-1344
  • Duplicated block (7 lines × 2) libs/agno/agno/eval/accuracy.py:709 — libs/agno/agno/eval/accuracy.py:709-715 | libs/agno/agno/eval/accuracy.py:828-834
  • Duplicated block (7 lines × 2) libs/agno/agno/knowledge/embedder/aws_bedrock.py:346 — libs/agno/agno/knowledge/embedder/aws_bedrock.py:346-352 | libs/agno/agno/knowledge/embedder/aws_bedrock.py:499-505
  • Duplicated block (7 lines × 2) libs/agno/agno/knowledge/embedder/mistral.py:72 — libs/agno/agno/knowledge/embedder/mistral.py:72-78 | libs/agno/agno/knowledge/embedder/mistral.py:128-134
  • Duplicated block (7 lines × 2) libs/agno/agno/knowledge/loaders/sharepoint.py:121 — libs/agno/agno/knowledge/loaders/sharepoint.py:121-127 | libs/agno/agno/knowledge/loaders/sharepoint.py:141-147
  • Duplicated block (7 lines × 2) libs/agno/agno/knowledge/reader/csv_reader.py:158 — libs/agno/agno/knowledge/reader/csv_reader.py:158-166 | libs/agno/agno/knowledge/reader/field_labeled_csv_reader.py:181-187
  • Duplicated block (7 lines × 2) libs/agno/agno/knowledge/reader/firecrawl_reader.py:102 — libs/agno/agno/knowledge/reader/firecrawl_reader.py:102-108 | libs/agno/agno/knowledge/reader/tavily_reader.py:139-146
  • Duplicated block (7 lines × 2) libs/agno/agno/learn/machine.py:632 — libs/agno/agno/learn/machine.py:632-638 | libs/agno/agno/learn/machine.py:667-673
  • Duplicated block (7 lines × 2) libs/agno/agno/learn/stores/entity_memory.py:2228 — libs/agno/agno/learn/stores/entity_memory.py:2228-2234 | libs/agno/agno/learn/stores/entity_memory.py:2247-2253
  • Duplicated block (7 lines × 2) libs/agno/agno/models/anthropic/claude.py:1078 — libs/agno/agno/models/anthropic/claude.py:1078-1084 | libs/agno/agno/models/anthropic/claude.py:1249-1255
  • Duplicated block (7 lines × 2) libs/agno/agno/models/google/gemini_interactions.py:933 — libs/agno/agno/models/google/gemini_interactions.py:933-939 | libs/agno/agno/models/google/gemini_interactions.py:1186-1192
  • Duplicated block (7 lines × 2) libs/agno/agno/os/interfaces/a2a/utils.py:547 — libs/agno/agno/os/interfaces/a2a/utils.py:547-553 | libs/agno/agno/os/interfaces/a2a/utils.py:566-572
  • Duplicated block (7 lines × 2) libs/agno/agno/os/interfaces/slack/state.py:109 — libs/agno/agno/os/interfaces/slack/state.py:109-115 | libs/agno/agno/os/interfaces/telegram/state.py:200-206
  • Duplicated block (7 lines × 2) libs/agno/agno/os/router.py:244 — libs/agno/agno/os/router.py:244-250 | libs/agno/agno/os/router.py:255-261
  • Duplicated block (7 lines × 2) libs/agno/agno/os/routers/agents/router.py:1509 — libs/agno/agno/os/routers/agents/router.py:1509-1515 | libs/agno/agno/os/routers/agents/router.py:1570-1576
  • Duplicated block (7 lines × 2) libs/agno/agno/os/routers/knowledge/knowledge.py:673 — libs/agno/agno/os/routers/knowledge/knowledge.py:673-687 | libs/agno/agno/os/routers/knowledge/knowledge.py:1194-1200
  • Duplicated block (7 lines × 2) libs/agno/agno/os/routers/learnings/router.py:402 — libs/agno/agno/os/routers/learnings/router.py:402-408 | libs/agno/agno/os/routers/learnings/router.py:427-433
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×20
  • Duplicated block (23 lines × 2) cookbook/02_agents/18_checkpointing/01_crash_recovery.py:110 — cookbook/02_agents/18_checkpointing/01_crash_recovery.py:110-132 | cookbook/03_teams/23_checkpointing/01_crash_recovery.py:108-130
  • Duplicated block (23 lines × 2) libs/agno/agno/agent/_messages.py:170 — libs/agno/agno/agent/_messages.py:170-192 | libs/agno/agno/agent/_messages.py:528-551
  • Duplicated block (23 lines × 2) libs/agno/agno/agent/_run.py:1843 — libs/agno/agno/agent/_run.py:1843-1865 | libs/agno/agno/agent/_run.py:4895-4917
  • Duplicated block (23 lines × 2) libs/agno/agno/db/firestore/firestore.py:1094 — libs/agno/agno/db/firestore/firestore.py:1094-1116 | libs/agno/agno/db/firestore/firestore.py:1129-1151
  • Duplicated block (23 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:893 — libs/agno/agno/db/gcs_json/gcs_json_db.py:893-915 | libs/agno/agno/db/json/json_db.py:894-916
  • Duplicated block (23 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1482 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1482-1508 | libs/agno/agno/db/json/json_db.py:1467-1489
  • Duplicated block (23 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1799 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1799-1821 | libs/agno/agno/db/json/json_db.py:1775-1797
  • Duplicated block (23 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1124 — libs/agno/agno/db/postgres/async_postgres.py:1124-1146 | libs/agno/agno/db/sqlite/async_sqlite.py:1273-1295
  • Duplicated block (23 lines × 2) libs/agno/agno/db/postgres/postgres.py:1977 — libs/agno/agno/db/postgres/postgres.py:1977-2000 | libs/agno/agno/db/sqlite/sqlite.py:1935-1957
  • Duplicated block (23 lines × 2) libs/agno/agno/db/postgres/postgres.py:3661 — libs/agno/agno/db/postgres/postgres.py:3661-3685 | libs/agno/agno/db/sqlite/sqlite.py:3563-3585
  • Duplicated block (23 lines × 2) libs/agno/agno/db/postgres/postgres.py:3825 — libs/agno/agno/db/postgres/postgres.py:3825-3847 | libs/agno/agno/db/sqlite/sqlite.py:3711-3733
  • Duplicated block (23 lines × 2) libs/agno/agno/db/postgres/postgres.py:4476 — libs/agno/agno/db/postgres/postgres.py:4476-4498 | libs/agno/agno/db/sqlite/sqlite.py:4355-4377
  • Duplicated block (23 lines × 2) libs/agno/agno/db/postgres/utils.py:204 — libs/agno/agno/db/postgres/utils.py:204-226 | libs/agno/agno/db/postgres/utils.py:237-259
  • Duplicated block (23 lines × 2) libs/agno/agno/db/redis/redis.py:1042 — libs/agno/agno/db/redis/redis.py:1042-1064 | libs/agno/agno/db/valkey/valkey.py:1389-1411
  • Duplicated block (23 lines × 2) libs/agno/agno/db/redis/redis.py:2147 — libs/agno/agno/db/redis/redis.py:2147-2169 | libs/agno/agno/db/valkey/valkey.py:2509-2531
  • Duplicated block (23 lines × 2) libs/agno/agno/db/sqlite/utils.py:178 — libs/agno/agno/db/sqlite/utils.py:178-200 | libs/agno/agno/db/sqlite/utils.py:211-233
  • Duplicated block (23 lines × 2) libs/agno/agno/eval/accuracy.py:654 — libs/agno/agno/eval/accuracy.py:654-676 | libs/agno/agno/eval/accuracy.py:777-799
  • Duplicated block (23 lines × 2) libs/agno/agno/guardrails/openai.py:73 — libs/agno/agno/guardrails/openai.py:73-95 | libs/agno/agno/guardrails/openai.py:119-141
  • Duplicated block (23 lines × 2) libs/agno/agno/models/base.py:2278 — libs/agno/agno/models/base.py:2278-2300 | libs/agno/agno/models/base.py:2959-2981
  • Duplicated block (23 lines × 2) libs/agno/agno/os/routers/agents/router.py:434 — libs/agno/agno/os/routers/agents/router.py:434-456 | libs/agno/agno/os/routers/teams/router.py:304-326
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×15
  • Duplicated block (26 lines × 2) cookbook/07_knowledge/09_archive/custom_retriever/retriever.py:34 — cookbook/07_knowledge/09_archive/custom_retriever/retriever.py:34-59 | cookbook/07_knowledge/09_archive/custom_retriever/team_retriever.py:34-59
  • Duplicated block (26 lines × 2) libs/agno/agno/agent/_run.py:549 — libs/agno/agno/agent/_run.py:549-574 | libs/agno/agno/agent/_run.py:3658-3683
  • Duplicated block (26 lines × 2) libs/agno/agno/agent/_run.py:4662 — libs/agno/agno/agent/_run.py:4662-4687 | libs/agno/agno/agent/_run.py:5153-5178
  • Duplicated block (26 lines × 2) libs/agno/agno/client/os.py:964 — libs/agno/agno/client/os.py:964-989 | libs/agno/agno/client/os.py:1018-1043
  • Duplicated block (26 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2482 — libs/agno/agno/db/mysql/async_mysql.py:2482-2507 | libs/agno/agno/db/mysql/mysql.py:2504-2529
  • Duplicated block (26 lines × 2) libs/agno/agno/db/mysql/mysql.py:884 — libs/agno/agno/db/mysql/mysql.py:884-909 | libs/agno/agno/db/sqlite/sqlite.py:1135-1160
  • Duplicated block (26 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1921 — libs/agno/agno/db/postgres/async_postgres.py:1921-1946 | libs/agno/agno/db/sqlite/async_sqlite.py:1932-1957
  • Duplicated block (26 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:2412 — libs/agno/agno/db/postgres/async_postgres.py:2412-2437 | libs/agno/agno/db/postgres/postgres.py:2888-2913
  • Duplicated block (26 lines × 2) libs/agno/agno/db/postgres/postgres.py:4271 — libs/agno/agno/db/postgres/postgres.py:4271-4296 | libs/agno/agno/db/sqlite/sqlite.py:4153-4178
  • Duplicated block (26 lines × 2) libs/agno/agno/db/postgres/postgres.py:4689 — libs/agno/agno/db/postgres/postgres.py:4689-4714 | libs/agno/agno/db/sqlite/sqlite.py:4536-4561
  • Duplicated block (26 lines × 2) libs/agno/agno/db/redis/redis.py:778 — libs/agno/agno/db/redis/redis.py:778-803 | libs/agno/agno/db/valkey/valkey.py:1049-1074
  • Duplicated block (26 lines × 2) libs/agno/agno/db/sqlite/async_sqlite.py:1994 — libs/agno/agno/db/sqlite/async_sqlite.py:1994-2019 | libs/agno/agno/db/sqlite/sqlite.py:2184-2209
  • Duplicated block (26 lines × 2) libs/agno/agno/db/sqlite/async_sqlite.py:2602 — libs/agno/agno/db/sqlite/async_sqlite.py:2602-2627 | libs/agno/agno/db/sqlite/sqlite.py:2509-2534
  • Duplicated block (26 lines × 2) libs/agno/agno/knowledge/reader/website_reader.py:154 — libs/agno/agno/knowledge/reader/website_reader.py:154-185 | libs/agno/agno/knowledge/reader/website_reader.py:289-314
  • Duplicated block (26 lines × 2) libs/agno/agno/learn/stores/session_context.py:539 — libs/agno/agno/learn/stores/session_context.py:539-564 | libs/agno/agno/learn/stores/session_context.py:609-634
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×15
  • Duplicated block (6 lines × 2) cookbook/07_knowledge/09_archive/embedders/vllm_embedder_local.py:54 — cookbook/07_knowledge/09_archive/embedders/vllm_embedder_local.py:54-59 | cookbook/07_knowledge/09_archive/embedders/vllm_embedder_remote.py:51-56
  • Duplicated block (6 lines × 2) libs/agno/agno/context/calendar/provider.py:152 — libs/agno/agno/context/calendar/provider.py:152-157 | libs/agno/agno/context/gmail/provider.py:167-172
  • Duplicated block (6 lines × 2) libs/agno/agno/context/google/utils.py:56 — libs/agno/agno/context/google/utils.py:56-61 | libs/agno/agno/context/google/utils.py:85-91
  • Duplicated block (6 lines × 2) libs/agno/agno/integrations/discord/client.py:188 — libs/agno/agno/integrations/discord/client.py:188-194 | libs/agno/agno/os/interfaces/whatsapp/helpers.py:350-355
  • Duplicated block (6 lines × 2) libs/agno/agno/knowledge/embedder/ollama.py:92 — libs/agno/agno/knowledge/embedder/ollama.py:92-97 | libs/agno/agno/knowledge/embedder/ollama.py:128-133
  • Duplicated block (6 lines × 2) libs/agno/agno/knowledge/knowledge.py:1607 — libs/agno/agno/knowledge/knowledge.py:1607-1612 | libs/agno/agno/knowledge/knowledge.py:1762-1767
  • Duplicated block (6 lines × 2) libs/agno/agno/knowledge/loaders/github.py:546 — libs/agno/agno/knowledge/loaders/github.py:546-551 | libs/agno/agno/knowledge/loaders/github.py:568-573
  • Duplicated block (6 lines × 2) libs/agno/agno/knowledge/loaders/sharepoint.py:85 — libs/agno/agno/knowledge/loaders/sharepoint.py:85-90 | libs/agno/agno/knowledge/loaders/sharepoint.py:105-110
  • Duplicated block (6 lines × 2) libs/agno/agno/learn/schemas.py:880 — libs/agno/agno/learn/schemas.py:880-885 | libs/agno/agno/learn/stores/entity_memory.py:2023-2028
  • Duplicated block (6 lines × 2) libs/agno/agno/learn/stores/entity_memory.py:618 — libs/agno/agno/learn/stores/entity_memory.py:618-626 | libs/agno/agno/learn/stores/entity_memory.py:650-655
  • Duplicated block (6 lines × 2) libs/agno/agno/models/openai/responses.py:529 — libs/agno/agno/models/openai/responses.py:529-534 | libs/agno/agno/models/openai/responses.py:536-541
  • Duplicated block (6 lines × 2) libs/agno/agno/os/routers/knowledge/knowledge.py:113 — libs/agno/agno/os/routers/knowledge/knowledge.py:113-118 | libs/agno/agno/os/routers/knowledge/knowledge.py:265-270
  • Duplicated block (6 lines × 2) libs/agno/agno/os/routers/knowledge/knowledge.py:521 — libs/agno/agno/os/routers/knowledge/knowledge.py:521-526 | libs/agno/agno/os/routers/memory/memory.py:545-576
  • Duplicated block (6 lines × 2) libs/agno/agno/os/routers/learnings/router.py:76 — libs/agno/agno/os/routers/learnings/router.py:76-81 | libs/agno/agno/os/routers/learnings/router.py:293-298
  • Duplicated block (6 lines × 2) libs/agno/agno/os/routers/registry/utils.py:35 — libs/agno/agno/os/routers/registry/utils.py:35-40 | libs/agno/agno/os/routers/registry/utils.py:60-65
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×13
  • Duplicated block (27 lines × 2) libs/agno/agno/agent/_hooks.py:57 — libs/agno/agno/agent/_hooks.py:57-86 | libs/agno/agno/agent/_hooks.py:275-301
  • Duplicated block (27 lines × 2) libs/agno/agno/client/os.py:103 — libs/agno/agno/client/os.py:103-129 | libs/agno/agno/client/os.py:163-189
  • Duplicated block (27 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:664 — libs/agno/agno/db/gcs_json/gcs_json_db.py:664-690 | libs/agno/agno/db/json/json_db.py:663-689
  • Duplicated block (27 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:984 — libs/agno/agno/db/gcs_json/gcs_json_db.py:984-1010 | libs/agno/agno/db/json/json_db.py:1005-1034
  • Duplicated block (27 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1477 — libs/agno/agno/db/mongo/async_mongo.py:1477-1503 | libs/agno/agno/db/mongo/mongo.py:1260-1286
  • Duplicated block (27 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2694 — libs/agno/agno/db/mongo/async_mongo.py:2694-2720 | libs/agno/agno/db/mongo/mongo.py:2532-2558
  • Duplicated block (27 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:2729 — libs/agno/agno/db/mongo/async_mongo.py:2729-2755 | libs/agno/agno/db/mongo/mongo.py:2567-2593
  • Duplicated block (27 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2824 — libs/agno/agno/db/mysql/async_mysql.py:2824-2850 | libs/agno/agno/db/mysql/mysql.py:2841-2867
  • Duplicated block (27 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3357 — libs/agno/agno/db/postgres/async_postgres.py:3357-3383 | libs/agno/agno/db/sqlite/async_sqlite.py:3531-3558
  • Duplicated block (27 lines × 2) libs/agno/agno/db/postgres/postgres.py:2056 — libs/agno/agno/db/postgres/postgres.py:2056-2082 | libs/agno/agno/db/sqlite/sqlite.py:2013-2039
  • Duplicated block (27 lines × 2) libs/agno/agno/db/postgres/postgres.py:4399 — libs/agno/agno/db/postgres/postgres.py:4399-4425 | libs/agno/agno/db/sqlite/sqlite.py:4281-4307
  • Duplicated block (27 lines × 2) libs/agno/agno/db/redis/redis.py:397 — libs/agno/agno/db/redis/redis.py:397-423 | libs/agno/agno/db/valkey/valkey.py:514-545
  • Duplicated block (27 lines × 2) libs/agno/agno/db/redis/redis.py:471 — libs/agno/agno/db/redis/redis.py:471-497 | libs/agno/agno/db/valkey/valkey.py:592-618
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×12
  • Duplicated block (25 lines × 2) cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:96 — cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:96-120 | cookbook/04_workflows/06_advanced_concepts/long_running/events_replay.py:96-120
  • Duplicated block (25 lines × 2) cookbook/91_tools/mcp/mcp_toolbox_demo/agent.py:61 — cookbook/91_tools/mcp/mcp_toolbox_demo/agent.py:61-85 | cookbook/91_tools/mcp/mcp_toolbox_for_db.py:59-83
  • Duplicated block (25 lines × 2) libs/agno/agno/agent/_hooks.py:168 — libs/agno/agno/agent/_hooks.py:168-192 | libs/agno/agno/agent/_hooks.py:376-401
  • Duplicated block (25 lines × 2) libs/agno/agno/agent/_run.py:1689 — libs/agno/agno/agent/_run.py:1689-1714 | libs/agno/agno/agent/_run.py:4753-4777
  • Duplicated block (25 lines × 2) libs/agno/agno/client/os.py:1259 — libs/agno/agno/client/os.py:1259-1283 | libs/agno/agno/client/os.py:1309-1333
  • Duplicated block (25 lines × 2) libs/agno/agno/db/dynamo/dynamo.py:2630 — libs/agno/agno/db/dynamo/dynamo.py:2630-2654 | libs/agno/agno/db/firestore/firestore.py:2191-2215
  • Duplicated block (25 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_0.py:427 — libs/agno/agno/db/migrations/versions/v2_5_0.py:427-451 | libs/agno/agno/db/migrations/versions/v2_5_0.py:750-774
  • Duplicated block (25 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:1730 — libs/agno/agno/db/mysql/async_mysql.py:1730-1754 | libs/agno/agno/db/sqlite/async_sqlite.py:1575-1601
  • Duplicated block (25 lines × 2) libs/agno/agno/db/mysql/mysql.py:711 — libs/agno/agno/db/mysql/mysql.py:711-735 | libs/agno/agno/db/singlestore/singlestore.py:779-803
  • Duplicated block (25 lines × 2) libs/agno/agno/db/mysql/utils.py:134 — libs/agno/agno/db/mysql/utils.py:134-158 | libs/agno/agno/db/mysql/utils.py:184-208
  • Duplicated block (25 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3167 — libs/agno/agno/db/postgres/async_postgres.py:3167-3191 | libs/agno/agno/db/sqlite/async_sqlite.py:3337-3362
  • Duplicated block (25 lines × 2) libs/agno/agno/db/redis/redis.py:1515 — libs/agno/agno/db/redis/redis.py:1515-1539 | libs/agno/agno/db/valkey/valkey.py:1945-1969
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×12
  • Duplicated block (24 lines × 2) cookbook/02_agents/12_multimodal/media_input_for_tool.py:29 — cookbook/02_agents/12_multimodal/media_input_for_tool.py:29-65 | cookbook/03_teams/19_multimodal/media_input_for_tool.py:25-48
  • Duplicated block (24 lines × 2) libs/agno/agno/agent/_run.py:493 — libs/agno/agno/agent/_run.py:493-516 | libs/agno/agno/agent/_run.py:906-929
  • Duplicated block (24 lines × 2) libs/agno/agno/agent/_run.py:1633 — libs/agno/agno/agent/_run.py:1633-1656 | libs/agno/agno/agent/_run.py:2316-2339
  • Duplicated block (24 lines × 2) libs/agno/agno/context/web/exa.py:70 — libs/agno/agno/context/web/exa.py:70-93 | libs/agno/agno/context/web/parallel.py:79-102
  • Duplicated block (24 lines × 2) libs/agno/agno/db/migrations/versions/v2_5_0.py:295 — libs/agno/agno/db/migrations/versions/v2_5_0.py:295-318 | libs/agno/agno/db/migrations/versions/v2_5_0.py:619-642
  • Duplicated block (24 lines × 2) libs/agno/agno/db/mysql/mysql.py:1411 — libs/agno/agno/db/mysql/mysql.py:1411-1434 | libs/agno/agno/db/singlestore/singlestore.py:1449-1472
  • Duplicated block (24 lines × 2) libs/agno/agno/db/mysql/mysql.py:1659 — libs/agno/agno/db/mysql/mysql.py:1659-1682 | libs/agno/agno/db/singlestore/singlestore.py:1702-1725
  • Duplicated block (24 lines × 2) libs/agno/agno/knowledge/knowledge.py:2211 — libs/agno/agno/knowledge/knowledge.py:2211-2237 | libs/agno/agno/knowledge/knowledge.py:2284-2307
  • Duplicated block (24 lines × 2) libs/agno/agno/knowledge/reranker/infinity.py:64 — libs/agno/agno/knowledge/reranker/infinity.py:64-87 | libs/agno/agno/knowledge/reranker/infinity.py:136-159
  • Duplicated block (24 lines × 2) libs/agno/agno/learn/stores/learned_knowledge.py:581 — libs/agno/agno/learn/stores/learned_knowledge.py:581-606 | libs/agno/agno/learn/stores/learned_knowledge.py:1298-1321
  • Duplicated block (24 lines × 2) libs/agno/agno/learn/stores/learned_knowledge.py:626 — libs/agno/agno/learn/stores/learned_knowledge.py:626-651 | libs/agno/agno/learn/stores/learned_knowledge.py:1339-1362
  • Duplicated block (24 lines × 2) libs/agno/agno/models/deepseek/deepseek.py:142 — libs/agno/agno/models/deepseek/deepseek.py:142-166 | libs/agno/agno/models/openai/chat.py:314-337
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×11
  • Duplicated block (11 lines × 3) cookbook/04_workflows/08_human_in_the_loop/confirmation/03_step_confirmation_streaming.py:115 — cookbook/04_workflows/08_human_in_the_loop/confirmation/03_step_confirmation_streaming.py:115-125 | cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:133-143 | cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:165-175
  • Duplicated block (11 lines × 3) cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/03_condition_and_tool_confirmation.py:103 — cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/03_condition_and_tool_confirmation.py:103-113 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/06_loop_confirmation_and_tool_confirmation.py:87-97 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/07_router_confirmation_and_tool_confirmation.py:107-117
  • Duplicated block (11 lines × 3) cookbook/91_tools/mcp/pipedream_google_calendar.py:29 — cookbook/91_tools/mcp/pipedream_google_calendar.py:29-39 | cookbook/91_tools/mcp/pipedream_linkedin.py:29-39 | cookbook/91_tools/mcp/pipedream_slack.py:30-40
  • Duplicated block (11 lines × 3) libs/agno/agno/agent/_run.py:3773 — libs/agno/agno/agent/_run.py:3773-3783 | libs/agno/agno/agent/_run.py:4081-4091 | libs/agno/agno/agent/_run.py:4920-4930
  • Duplicated block (11 lines × 3) libs/agno/agno/db/json/json_db.py:554 — libs/agno/agno/db/json/json_db.py:554-564 | libs/agno/agno/db/redis/redis.py:761-772 | libs/agno/agno/db/valkey/valkey.py:1032-1043
  • Duplicated block (11 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:1520 — libs/agno/agno/db/mysql/async_mysql.py:1520-1532 | libs/agno/agno/db/mysql/mysql.py:2386-2396 | libs/agno/agno/db/singlestore/singlestore.py:2395-2405
  • Duplicated block (11 lines × 3) libs/agno/agno/db/postgres/postgres.py:1089 — libs/agno/agno/db/postgres/postgres.py:1089-1099 | libs/agno/agno/db/postgres/postgres.py:1128-1138 | libs/agno/agno/db/postgres/postgres.py:1167-1177
  • Duplicated block (11 lines × 3) libs/agno/agno/db/postgres/postgres.py:2092 — libs/agno/agno/db/postgres/postgres.py:2092-2102 | libs/agno/agno/db/singlestore/singlestore.py:1794-1804 | libs/agno/agno/db/sqlite/sqlite.py:2049-2059
  • Duplicated block (11 lines × 3) libs/agno/agno/db/singlestore/singlestore.py:829 — libs/agno/agno/db/singlestore/singlestore.py:829-839 | libs/agno/agno/db/singlestore/singlestore.py:880-890 | libs/agno/agno/db/singlestore/singlestore.py:931-941
  • Duplicated block (11 lines × 3) libs/agno/agno/knowledge/embedder/cohere.py:317 — libs/agno/agno/knowledge/embedder/cohere.py:317-327 | libs/agno/agno/knowledge/embedder/mistral.py:191-201 | libs/agno/agno/knowledge/embedder/openai.py:189-199
  • Duplicated block (11 lines × 3) libs/agno/agno/media.py:69 — libs/agno/agno/media.py:69-79 | libs/agno/agno/media.py:185-195 | libs/agno/agno/media.py:317-327
D15 · Churn × Complexity Hotspots · Hotspot · ×10
  • Hotspot: libs/agno/agno/workflow/workflow.py libs/agno/agno/workflow/workflow.py — libs/agno/agno/workflow/workflow.py changed 8 times in last 90 days, max complexity 162. 4 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/team/_run.py libs/agno/agno/team/_run.py — libs/agno/agno/team/_run.py changed 10 times in last 90 days, max complexity 122. 4 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/agent/_run.py libs/agno/agno/agent/_run.py — libs/agno/agno/agent/_run.py changed 7 times in last 90 days, max complexity 101. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/models/base.py libs/agno/agno/models/base.py — libs/agno/agno/models/base.py changed 8 times in last 90 days, max complexity 85. 5 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/team/_storage.py libs/agno/agno/team/_storage.py — libs/agno/agno/team/_storage.py changed 5 times in last 90 days, max complexity 125. 3 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/os/app.py libs/agno/agno/os/app.py — libs/agno/agno/os/app.py changed 14 times in last 90 days, max complexity 43. 5 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/tools/function.py libs/agno/agno/tools/function.py — libs/agno/agno/tools/function.py changed 10 times in last 90 days, max complexity 53. 8 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/models/google/gemini_interactions.py libs/agno/agno/models/google/gemini_interactions.py — libs/agno/agno/models/google/gemini_interactions.py changed 6 times in last 90 days, max complexity 78. 3 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/team/_tools.py libs/agno/agno/team/_tools.py — libs/agno/agno/team/_tools.py changed 6 times in last 90 days, max complexity 77. 5 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: libs/agno/agno/agent/_storage.py libs/agno/agno/agent/_storage.py — libs/agno/agno/agent/_storage.py changed 4 times in last 90 days, max complexity 115. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×10
  • Duplicated block (22 lines × 2) cookbook/03_teams/14_run_control/background_execution.py:45 — cookbook/03_teams/14_run_control/background_execution.py:45-66 | cookbook/03_teams/14_run_control/background_execution.py:112-133
  • Duplicated block (22 lines × 2) cookbook/10_reasoning/teams/finance_team_chain_of_thought.py:25 — cookbook/10_reasoning/teams/finance_team_chain_of_thought.py:25-46 | cookbook/10_reasoning/teams/reasoning_finance_team.py:26-47
  • Duplicated block (22 lines × 2) libs/agno/agno/agent/_run.py:2398 — libs/agno/agno/agent/_run.py:2398-2419 | libs/agno/agno/agent/_run.py:5281-5302
  • Duplicated block (22 lines × 2) libs/agno/agno/agent/_run.py:2652 — libs/agno/agno/agent/_run.py:2652-2673 | libs/agno/agno/agent/_run.py:5506-5528
  • Duplicated block (22 lines × 2) libs/agno/agno/agent/_run.py:2694 — libs/agno/agno/agent/_run.py:2694-2715 | libs/agno/agno/agent/_run.py:5555-5576
  • Duplicated block (22 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:166 — libs/agno/agno/db/gcs_json/gcs_json_db.py:166-187 | libs/agno/agno/db/json/json_db.py:148-169
  • Duplicated block (22 lines × 2) libs/agno/agno/db/json/json_db.py:1660 — libs/agno/agno/db/json/json_db.py:1660-1681 | libs/agno/agno/db/redis/redis.py:2033-2054
  • Duplicated block (22 lines × 2) libs/agno/agno/knowledge/loaders/github.py:343 — libs/agno/agno/knowledge/loaders/github.py:343-364 | libs/agno/agno/knowledge/loaders/github.py:499-520
  • Duplicated block (22 lines × 2) libs/agno/agno/models/base.py:2379 — libs/agno/agno/models/base.py:2379-2400 | libs/agno/agno/models/base.py:2585-2606
  • Duplicated block (22 lines × 2) libs/agno/agno/models/cerebras/cerebras.py:76 — libs/agno/agno/models/cerebras/cerebras.py:76-97 | libs/agno/agno/models/meta/llama.py:73-94
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×10
  • Duplicated block (15 lines × 3) cookbook/05_agent_os/05_human_in_the_loop/audit_record.py:71 — cookbook/05_agent_os/05_human_in_the_loop/audit_record.py:71-85 | cookbook/05_agent_os/05_human_in_the_loop/basic.py:67-81 | cookbook/05_agent_os/05_human_in_the_loop/with_approval_record.py:86-100
  • Duplicated block (15 lines × 3) cookbook/10_reasoning/agents/capture_reasoning_content_default_COT.py:64 — cookbook/10_reasoning/agents/capture_reasoning_content_default_COT.py:64-78 | cookbook/10_reasoning/agents/capture_reasoning_content_default_COT.py:87-101 | cookbook/10_reasoning/tools/capture_reasoning_content_knowledge_tools.py:97-114
  • Duplicated block (15 lines × 3) cookbook/91_tools/other/human_in_the_loop.py:54 — cookbook/91_tools/other/human_in_the_loop.py:54-74 | cookbook/91_tools/tool_decorator/tool_decorator.py:22-36 | cookbook/91_tools/tool_hooks/pre_and_post_hooks.py:35-49
  • Duplicated block (15 lines × 3) libs/agno/agno/db/firestore/firestore.py:994 — libs/agno/agno/db/firestore/firestore.py:994-1008 | libs/agno/agno/db/in_memory/in_memory_db.py:582-596 | libs/agno/agno/db/json/json_db.py:695-709
  • Duplicated block (15 lines × 3) libs/agno/agno/db/mongo/mongo.py:1300 — libs/agno/agno/db/mongo/mongo.py:1300-1315 | libs/agno/agno/db/mysql/mysql.py:1561-1575 | libs/agno/agno/db/sqlite/sqlite.py:1818-1833
  • Duplicated block (15 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:1926 — libs/agno/agno/db/mysql/async_mysql.py:1926-1941 | libs/agno/agno/db/postgres/async_postgres.py:1795-1810 | libs/agno/agno/db/sqlite/async_sqlite.py:1800-1814
  • Duplicated block (15 lines × 3) libs/agno/agno/db/mysql/mysql.py:2202 — libs/agno/agno/db/mysql/mysql.py:2202-2216 | libs/agno/agno/db/postgres/postgres.py:2563-2577 | libs/agno/agno/db/singlestore/singlestore.py:2211-2225
  • Duplicated block (15 lines × 3) libs/agno/agno/knowledge/embedder/openai.py:103 — libs/agno/agno/knowledge/embedder/openai.py:103-117 | libs/agno/agno/knowledge/embedder/openai.py:124-138 | libs/agno/agno/knowledge/embedder/openai.py:165-179
  • Duplicated block (15 lines × 3) libs/agno/agno/learn/schemas.py:119 — libs/agno/agno/learn/schemas.py:119-136 | libs/agno/agno/learn/schemas.py:217-234 | libs/agno/agno/learn/schemas.py:384-398
  • Duplicated block (15 lines × 3) libs/agno/agno/os/middleware/user_scope.py:436 — libs/agno/agno/os/middleware/user_scope.py:436-450 | libs/agno/agno/os/middleware/user_scope.py:479-493 | libs/agno/agno/os/middleware/user_scope.py:522-536
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×9
  • Duplicated block (28 lines × 2) cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_additional_data.py:66 — cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_additional_data.py:66-93 | cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_additional_data.py:131-158
  • Duplicated block (28 lines × 2) cookbook/04_workflows/06_advanced_concepts/session_state/state_in_function.py:82 — cookbook/04_workflows/06_advanced_concepts/session_state/state_in_function.py:82-109 | cookbook/04_workflows/06_advanced_concepts/session_state/state_in_function.py:193-220
  • Duplicated block (28 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1637 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1637-1667 | libs/agno/agno/db/json/json_db.py:1618-1645
  • Duplicated block (28 lines × 2) libs/agno/agno/db/mysql/mysql.py:651 — libs/agno/agno/db/mysql/mysql.py:651-679 | libs/agno/agno/db/singlestore/singlestore.py:718-745
  • Duplicated block (28 lines × 2) libs/agno/agno/db/mysql/mysql.py:1890 — libs/agno/agno/db/mysql/mysql.py:1890-1917 | libs/agno/agno/db/postgres/postgres.py:2215-2242
  • Duplicated block (28 lines × 2) libs/agno/agno/db/postgres/postgres.py:4880 — libs/agno/agno/db/postgres/postgres.py:4880-4907 | libs/agno/agno/db/sqlite/sqlite.py:4727-4754
  • Duplicated block (28 lines × 2) libs/agno/agno/db/singlestore/singlestore.py:1045 — libs/agno/agno/db/singlestore/singlestore.py:1045-1072 | libs/agno/agno/db/singlestore/singlestore.py:1096-1123
  • Duplicated block (28 lines × 2) libs/agno/agno/memory/strategies/summarize.py:49 — libs/agno/agno/memory/strategies/summarize.py:49-76 | libs/agno/agno/memory/strategies/summarize.py:126-153
  • Duplicated block (28 lines × 2) libs/agno/agno/models/google/gemini.py:1741 — libs/agno/agno/models/google/gemini.py:1741-1778 | libs/agno/agno/models/google/gemini.py:1806-1833
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×9
  • Duplicated block (12 lines × 3) libs/agno/agno/client/os.py:735 — libs/agno/agno/client/os.py:735-746 | libs/agno/agno/client/os.py:1048-1059 | libs/agno/agno/client/os.py:1335-1346
  • Duplicated block (12 lines × 3) libs/agno/agno/db/mongo/mongo.py:2710 — libs/agno/agno/db/mongo/mongo.py:2710-2722 | libs/agno/agno/db/mongo/mongo.py:2726-2738 | libs/agno/agno/db/mongo/mongo.py:2887-2898
  • Duplicated block (12 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:1127 — libs/agno/agno/db/mysql/async_mysql.py:1127-1138 | libs/agno/agno/db/postgres/async_postgres.py:1021-1032 | libs/agno/agno/db/sqlite/async_sqlite.py:1188-1199
  • Duplicated block (12 lines × 3) libs/agno/agno/db/mysql/mysql.py:766 — libs/agno/agno/db/mysql/mysql.py:766-777 | libs/agno/agno/db/mysql/mysql.py:814-825 | libs/agno/agno/db/mysql/mysql.py:862-873
  • Duplicated block (12 lines × 3) libs/agno/agno/db/sqlite/sqlite.py:1210 — libs/agno/agno/db/sqlite/sqlite.py:1210-1221 | libs/agno/agno/db/sqlite/sqlite.py:1265-1276 | libs/agno/agno/db/sqlite/sqlite.py:1320-1331
  • Duplicated block (12 lines × 3) libs/agno/agno/db/surrealdb/surrealdb.py:1565 — libs/agno/agno/db/surrealdb/surrealdb.py:1565-1576 | libs/agno/agno/db/surrealdb/surrealdb.py:1867-1878 | libs/agno/agno/db/surrealdb/surrealdb.py:1900-1911
  • Duplicated block (12 lines × 3) libs/agno/agno/knowledge/embedder/google.py:126 — libs/agno/agno/knowledge/embedder/google.py:126-137 | libs/agno/agno/knowledge/embedder/google.py:158-169 | libs/agno/agno/knowledge/embedder/google.py:211-222
  • Duplicated block (12 lines × 3) libs/agno/agno/models/message.py:166 — libs/agno/agno/models/message.py:166-177 | libs/agno/agno/models/message.py:190-201 | libs/agno/agno/models/message.py:211-222
  • Duplicated block (12 lines × 3) libs/agno/agno/os/interfaces/a2a/utils.py:661 — libs/agno/agno/os/interfaces/a2a/utils.py:661-672 | libs/agno/agno/os/interfaces/a2a/utils.py:698-709 | libs/agno/agno/os/interfaces/a2a/utils.py:735-746
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×8
  • Duplicated block (10 lines × 3) cookbook/10_reasoning/agents/capture_reasoning_content_default_COT.py:18 — cookbook/10_reasoning/agents/capture_reasoning_content_default_COT.py:18-27 | cookbook/10_reasoning/tools/capture_reasoning_content_knowledge_tools.py:68-77 | cookbook/10_reasoning/tools/capture_reasoning_content_reasoning_tools.py:39-48
  • Duplicated block (10 lines × 3) libs/agno/agno/client/os.py:651 — libs/agno/agno/client/os.py:651-660 | libs/agno/agno/client/os.py:928-937 | libs/agno/agno/client/os.py:1236-1245
  • Duplicated block (10 lines × 3) libs/agno/agno/db/mysql/mysql.py:1327 — libs/agno/agno/db/mysql/mysql.py:1327-1336 | libs/agno/agno/db/postgres/postgres.py:1650-1664 | libs/agno/agno/db/singlestore/singlestore.py:1604-1618
  • Duplicated block (10 lines × 3) libs/agno/agno/db/sqlite/sqlite.py:1037 — libs/agno/agno/db/sqlite/sqlite.py:1037-1046 | libs/agno/agno/db/sqlite/sqlite.py:1076-1085 | libs/agno/agno/db/sqlite/sqlite.py:1114-1123
  • Duplicated block (10 lines × 3) libs/agno/agno/media.py:39 — libs/agno/agno/media.py:39-50 | libs/agno/agno/media.py:157-166 | libs/agno/agno/media.py:289-298
  • Duplicated block (10 lines × 3) libs/agno/agno/models/base.py:2189 — libs/agno/agno/models/base.py:2189-2198 | libs/agno/agno/models/base.py:2735-2744 | libs/agno/agno/models/base.py:2873-2882
  • Duplicated block (10 lines × 3) libs/agno/agno/os/interfaces/a2a/utils.py:221 — libs/agno/agno/os/interfaces/a2a/utils.py:221-230 | libs/agno/agno/os/interfaces/a2a/utils.py:234-243 | libs/agno/agno/os/interfaces/a2a/utils.py:247-256
  • Duplicated block (10 lines × 3) libs/agno/agno/os/interfaces/a2a/utils.py:825 — libs/agno/agno/os/interfaces/a2a/utils.py:825-834 | libs/agno/agno/os/interfaces/a2a/utils.py:838-847 | libs/agno/agno/os/interfaces/a2a/utils.py:851-860
D2 · Cognitive Complexity · utils.calculate_date_metrics (cognitive 23) · ×7
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/dynamo/utils.py:299 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/gcs_json/utils.py:53 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/in_memory/utils.py:53 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/json/utils.py:53 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/mysql/utils.py:232 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/redis/utils.py:179 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 23) libs/agno/agno/db/singlestore/utils.py:207 — utils.calculate_date_metrics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D35 · Change Coupling · Change coupling · ×7
  • Change coupling: router.py ↔ router.py libs/agno/agno/os/routers/agents/router.py — `libs/agno/agno/os/routers/agents/router.py` and `libs/agno/agno/os/routers/teams/router.py` change together 72% of the time (18 of the 25 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: _storage.py ↔ _storage.py libs/agno/agno/agent/_storage.py — `libs/agno/agno/agent/_storage.py` and `libs/agno/agno/team/_storage.py` change together 58% of the time (7 of the 12 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. If they belong together, co-locate them; if not, break the coupling.
  • Change coupling: markdown_reader.py ↔ text_reader.py libs/agno/agno/knowledge/reader/markdown_reader.py — `libs/agno/agno/knowledge/reader/markdown_reader.py` and `libs/agno/agno/knowledge/reader/text_reader.py` change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: groq.py ↔ ollama.py libs/agno/agno/reasoning/groq.py — `libs/agno/agno/reasoning/groq.py` and `libs/agno/agno/reasoning/ollama.py` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: deepseek.py ↔ ollama.py libs/agno/agno/reasoning/deepseek.py — `libs/agno/agno/reasoning/deepseek.py` and `libs/agno/agno/reasoning/ollama.py` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: ollama.py ↔ openai.py libs/agno/agno/reasoning/ollama.py — `libs/agno/agno/reasoning/ollama.py` and `libs/agno/agno/reasoning/openai.py` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
  • Change coupling: drive.py ↔ gmail.py libs/agno/agno/tools/google/drive.py — `libs/agno/agno/tools/google/drive.py` and `libs/agno/agno/tools/google/gmail.py` change together 50% of the time (5 of the 10 commits that touched the less-changed of the two, renames followed) with no explicit dependency — a hidden/logical coupling. They already sit in the same directory, so if they share structure, extract the common part into one unit; otherwise break the coupling.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×7
  • Duplicated block (18 lines × 3) libs/agno/agno/db/gcs_json/gcs_json_db.py:635 — libs/agno/agno/db/gcs_json/gcs_json_db.py:635-652 | libs/agno/agno/db/gcs_json/gcs_json_db.py:1305-1322 | libs/agno/agno/db/json/json_db.py:634-651
  • Duplicated block (18 lines × 3) libs/agno/agno/db/migrations/versions/v2_5_0.py:580 — libs/agno/agno/db/migrations/versions/v2_5_0.py:580-597 | libs/agno/agno/db/migrations/versions/v2_5_0.py:710-728 | libs/agno/agno/db/migrations/versions/v2_5_0.py:840-858
  • Duplicated block (18 lines × 3) libs/agno/agno/db/mongo/async_mongo.py:1841 — libs/agno/agno/db/mongo/async_mongo.py:1841-1858 | libs/agno/agno/db/mysql/async_mysql.py:1903-1921 | libs/agno/agno/db/postgres/async_postgres.py:1772-1790
  • Duplicated block (18 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:2898 — libs/agno/agno/db/mysql/async_mysql.py:2898-2915 | libs/agno/agno/db/postgres/async_postgres.py:2940-2957 | libs/agno/agno/db/sqlite/async_sqlite.py:3109-3126
  • Duplicated block (18 lines × 3) libs/agno/agno/db/mysql/mysql.py:325 — libs/agno/agno/db/mysql/mysql.py:325-342 | libs/agno/agno/db/postgres/postgres.py:555-572 | libs/agno/agno/db/singlestore/singlestore.py:381-398
  • Duplicated block (18 lines × 3) libs/agno/agno/db/mysql/mysql.py:2915 — libs/agno/agno/db/mysql/mysql.py:2915-2932 | libs/agno/agno/db/postgres/postgres.py:3413-3430 | libs/agno/agno/db/singlestore/singlestore.py:2877-2894
  • Duplicated block (18 lines × 3) libs/agno/agno/learn/stores/session_context.py:622 — libs/agno/agno/learn/stores/session_context.py:622-643 | libs/agno/agno/learn/stores/user_memory.py:838-855 | libs/agno/agno/learn/stores/user_profile.py:923-940
D38 · OSV Dependency Vulnerabilities · Medium CVE · ×6
  • Medium CVE: PYSEC-2026-2132 cookbook/08_learning/requirements.txt — click 8.3.1: PYSEC-2026-2132 — upgrade to 8.3.3
  • Medium CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — idna 3.11: [GHSA redacted] — upgrade to 3.15
  • Medium CVE: [GHSA redacted] cookbook/01_demo/requirements.txt — pydantic-settings 2.14.1: [GHSA redacted] — upgrade to 2.14.2 (in 3 lockfiles)
  • Medium CVE: PYSEC-2026-2987 cookbook/08_learning/requirements.txt — pygments 2.19.2: PYSEC-2026-2987 — upgrade to 2.20.0 (in 3 lockfiles)
  • Medium CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — python-dotenv 1.2.1: [GHSA redacted] — upgrade to 1.2.2
  • Medium CVE: [GHSA redacted] cookbook/08_learning/requirements.txt — requests 2.32.5: [GHSA redacted] — upgrade to 2.33.0
D4 · Code Duplication · Duplicated block (34 lines × 2) · ×6
  • Duplicated block (34 lines × 2) cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_class.py:75 — cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_class.py:75-108 | cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_function.py:74-107
  • Duplicated block (34 lines × 2) cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_class.py:129 — cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_class.py:129-162 | cookbook/04_workflows/01_basic_workflows/02_step_with_function/step_with_function.py:181-214
  • Duplicated block (34 lines × 2) libs/agno/agno/agent/_messages.py:387 — libs/agno/agno/agent/_messages.py:387-420 | libs/agno/agno/agent/_messages.py:749-782
  • Duplicated block (34 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:280 — libs/agno/agno/db/gcs_json/gcs_json_db.py:280-313 | libs/agno/agno/db/json/json_db.py:262-295
  • Duplicated block (34 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:162 — libs/agno/agno/db/mongo/async_mongo.py:162-202 | libs/agno/agno/db/mongo/mongo.py:67-100
  • Duplicated block (34 lines × 2) libs/agno/agno/db/redis/redis.py:885 — libs/agno/agno/db/redis/redis.py:885-918 | libs/agno/agno/db/valkey/valkey.py:1156-1189
D4 · Code Duplication · Duplicated block (13 lines × 4) · ×6
  • Duplicated block (13 lines × 4) libs/agno/agno/db/mysql/mysql.py:618 — libs/agno/agno/db/mysql/mysql.py:618-630 | libs/agno/agno/db/postgres/postgres.py:927-939 | libs/agno/agno/db/singlestore/singlestore.py:685-697 | libs/agno/agno/db/sqlite/sqlite.py:912-924
  • Duplicated block (13 lines × 4) libs/agno/agno/db/mysql/mysql.py:1704 — libs/agno/agno/db/mysql/mysql.py:1704-1716 | libs/agno/agno/db/postgres/postgres.py:2027-2040 | libs/agno/agno/db/singlestore/singlestore.py:1741-1753 | libs/agno/agno/db/sqlite/sqlite.py:1985-1997
  • Duplicated block (13 lines × 4) libs/agno/agno/db/mysql/mysql.py:1987 — libs/agno/agno/db/mysql/mysql.py:1987-1999 | libs/agno/agno/db/postgres/postgres.py:2340-2352 | libs/agno/agno/db/singlestore/singlestore.py:1991-2003 | libs/agno/agno/db/sqlite/sqlite.py:2258-2270
  • Duplicated block (13 lines × 4) libs/agno/agno/db/mysql/mysql.py:2009 — libs/agno/agno/db/mysql/mysql.py:2009-2021 | libs/agno/agno/db/postgres/postgres.py:2364-2376 | libs/agno/agno/db/singlestore/singlestore.py:2014-2026 | libs/agno/agno/db/sqlite/sqlite.py:2281-2293
  • Duplicated block (13 lines × 4) libs/agno/agno/db/mysql/mysql.py:2342 — libs/agno/agno/db/mysql/mysql.py:2342-2354 | libs/agno/agno/db/singlestore/singlestore.py:2351-2363 | libs/agno/agno/db/sqlite/async_sqlite.py:2485-2497 | libs/agno/agno/db/sqlite/sqlite.py:3433-3445
  • Duplicated block (13 lines × 4) libs/agno/agno/learn/stores/learned_knowledge.py:1185 — libs/agno/agno/learn/stores/learned_knowledge.py:1185-1197 | libs/agno/agno/learn/stores/session_context.py:633-645 | libs/agno/agno/learn/stores/user_memory.py:845-857 | libs/agno/agno/learn/stores/user_profile.py:930-942
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×6
  • Duplicated block (13 lines × 3) cookbook/05_agent_os/21_factories/01_basic.py:98 — cookbook/05_agent_os/21_factories/01_basic.py:98-111 | cookbook/05_agent_os/21_factories/05_team_factory.py:106-121 | cookbook/05_agent_os/21_factories/06_workflow_factory.py:112-124
  • Duplicated block (13 lines × 3) libs/agno/agno/db/mongo/async_mongo.py:2872 — libs/agno/agno/db/mongo/async_mongo.py:2872-2884 | libs/agno/agno/db/mongo/async_mongo.py:2888-2900 | libs/agno/agno/db/mongo/async_mongo.py:3048-3060
  • Duplicated block (13 lines × 3) libs/agno/agno/db/postgres/async_postgres.py:901 — libs/agno/agno/db/postgres/async_postgres.py:901-913 | libs/agno/agno/db/postgres/async_postgres.py:942-954 | libs/agno/agno/db/postgres/async_postgres.py:983-995
  • Duplicated block (13 lines × 3) libs/agno/agno/models/anthropic/claude.py:735 — libs/agno/agno/models/anthropic/claude.py:735-747 | libs/agno/agno/models/anthropic/claude.py:846-858 | libs/agno/agno/models/anthropic/claude.py:897-917
  • Duplicated block (13 lines × 3) libs/agno/agno/models/aws/claude.py:233 — libs/agno/agno/models/aws/claude.py:233-258 | libs/agno/agno/models/azure/claude.py:163-175 | libs/agno/agno/models/vertexai/claude.py:156-181
  • Duplicated block (13 lines × 3) libs/agno/agno/os/interfaces/a2a/router.py:148 — libs/agno/agno/os/interfaces/a2a/router.py:148-160 | libs/agno/agno/os/interfaces/a2a/router.py:457-469 | libs/agno/agno/os/interfaces/a2a/router.py:760-772
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×6
  • Duplicated block (9 lines × 3) cookbook/05_agent_os/21_factories/01_basic.py:82 — cookbook/05_agent_os/21_factories/01_basic.py:82-92 | cookbook/05_agent_os/21_factories/05_team_factory.py:92-100 | cookbook/05_agent_os/21_factories/06_workflow_factory.py:96-106
  • Duplicated block (9 lines × 3) cookbook/environments/_22_sql_generation/basic.py:24 — cookbook/environments/_22_sql_generation/basic.py:24-32 | cookbook/environments/_22_sql_generation/joins.py:23-31 | cookbook/environments/_22_sql_generation/window_functions.py:24-32
  • Duplicated block (9 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:488 — libs/agno/agno/db/mysql/async_mysql.py:488-496 | libs/agno/agno/db/postgres/async_postgres.py:604-612 | libs/agno/agno/db/sqlite/async_sqlite.py:586-594
  • Duplicated block (9 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:2195 — libs/agno/agno/db/mysql/async_mysql.py:2195-2204 | libs/agno/agno/db/postgres/async_postgres.py:2115-2124 | libs/agno/agno/db/sqlite/async_sqlite.py:2077-2085
  • Duplicated block (9 lines × 3) libs/agno/agno/db/postgres/postgres.py:701 — libs/agno/agno/db/postgres/postgres.py:701-709 | libs/agno/agno/db/singlestore/singlestore.py:458-466 | libs/agno/agno/db/sqlite/sqlite.py:692-700
  • Duplicated block (9 lines × 3) libs/agno/agno/learn/stores/decision_log.py:1044 — libs/agno/agno/learn/stores/decision_log.py:1044-1052 | libs/agno/agno/learn/stores/user_memory.py:1474-1482 | libs/agno/agno/learn/stores/user_profile.py:1176-1184
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×5
  • Duplicated block (32 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:231 — libs/agno/agno/db/gcs_json/gcs_json_db.py:231-262 | libs/agno/agno/db/json/json_db.py:213-244
  • Duplicated block (32 lines × 2) libs/agno/agno/db/gcs_json/gcs_json_db.py:1546 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1546-1577 | libs/agno/agno/db/json/json_db.py:1527-1558
  • Duplicated block (32 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:2095 — libs/agno/agno/db/mysql/async_mysql.py:2095-2126 | libs/agno/agno/db/mysql/mysql.py:1896-1927
  • Duplicated block (32 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1982 — libs/agno/agno/db/postgres/async_postgres.py:1982-2013 | libs/agno/agno/db/postgres/postgres.py:2219-2250
  • Duplicated block (32 lines × 2) libs/agno/agno/db/singlestore/singlestore.py:1912 — libs/agno/agno/db/singlestore/singlestore.py:1912-1943 | libs/agno/agno/db/sqlite/sqlite.py:2171-2202
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×5
  • Duplicated block (29 lines × 2) libs/agno/agno/db/mysql/mysql.py:2682 — libs/agno/agno/db/mysql/mysql.py:2682-2710 | libs/agno/agno/db/singlestore/singlestore.py:2632-2660
  • Duplicated block (29 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:3122 — libs/agno/agno/db/postgres/async_postgres.py:3122-3152 | libs/agno/agno/db/sqlite/async_sqlite.py:3293-3321
  • Duplicated block (29 lines × 2) libs/agno/agno/db/redis/redis.py:350 — libs/agno/agno/db/redis/redis.py:350-378 | libs/agno/agno/db/valkey/valkey.py:467-495
  • Duplicated block (29 lines × 2) libs/agno/agno/db/redis/redis.py:951 — libs/agno/agno/db/redis/redis.py:951-979 | libs/agno/agno/db/valkey/valkey.py:1228-1256
  • Duplicated block (29 lines × 2) libs/agno/agno/db/redis/redis.py:1985 — libs/agno/agno/db/redis/redis.py:1985-2013 | libs/agno/agno/db/singlestore/singlestore.py:2720-2748
D4 · Code Duplication · Duplicated block (18 lines × 4) · ×5
  • Duplicated block (18 lines × 4) libs/agno/agno/agent/_run.py:416 — libs/agno/agno/agent/_run.py:416-433 | libs/agno/agno/agent/_run.py:828-845 | libs/agno/agno/agent/_run.py:1552-1569 | libs/agno/agno/agent/_run.py:2234-2251
  • Duplicated block (18 lines × 4) libs/agno/agno/db/firestore/firestore.py:1418 — libs/agno/agno/db/firestore/firestore.py:1418-1435 | libs/agno/agno/db/mongo/mongo.py:1622-1640 | libs/agno/agno/db/mysql/mysql.py:1687-1705 | libs/agno/agno/db/postgres/postgres.py:2009-2028
  • Duplicated block (18 lines × 4) libs/agno/agno/db/mysql/mysql.py:465 — libs/agno/agno/db/mysql/mysql.py:465-482 | libs/agno/agno/db/postgres/postgres.py:775-792 | libs/agno/agno/db/singlestore/singlestore.py:530-547 | libs/agno/agno/db/sqlite/sqlite.py:762-779
  • Duplicated block (18 lines × 4) libs/agno/agno/db/postgres/async_postgres.py:117 — libs/agno/agno/db/postgres/async_postgres.py:117-134 | libs/agno/agno/db/postgres/postgres.py:176-193 | libs/agno/agno/db/sqlite/async_sqlite.py:114-131 | libs/agno/agno/db/sqlite/sqlite.py:147-164
  • Duplicated block (18 lines × 4) libs/agno/agno/models/aws/bedrock.py:507 — libs/agno/agno/models/aws/bedrock.py:507-524 | libs/agno/agno/models/aws/bedrock.py:553-570 | libs/agno/agno/models/aws/bedrock.py:603-620 | libs/agno/agno/models/aws/bedrock.py:652-669
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×5
  • Duplicated block (16 lines × 4) cookbook/12_context/18_gmail.py:66 — cookbook/12_context/18_gmail.py:66-81 | cookbook/12_context/18_gmail.py:101-116 | cookbook/12_context/19_calendar.py:66-81 | cookbook/12_context/19_calendar.py:102-117
  • Duplicated block (16 lines × 4) libs/agno/agno/db/gcs_json/gcs_json_db.py:1436 — libs/agno/agno/db/gcs_json/gcs_json_db.py:1436-1451 | libs/agno/agno/db/json/json_db.py:1421-1436 | libs/agno/agno/db/redis/redis.py:1768-1783 | libs/agno/agno/db/valkey/valkey.py:2058-2073
  • Duplicated block (16 lines × 4) libs/agno/agno/db/mysql/mysql.py:2220 — libs/agno/agno/db/mysql/mysql.py:2220-2235 | libs/agno/agno/db/postgres/postgres.py:2581-2596 | libs/agno/agno/db/singlestore/singlestore.py:2229-2244 | libs/agno/agno/db/sqlite/sqlite.py:3311-3326
  • Duplicated block (16 lines × 4) libs/agno/agno/models/groq/groq.py:466 — libs/agno/agno/models/groq/groq.py:466-481 | libs/agno/agno/models/huggingface/huggingface.py:393-408 | libs/agno/agno/models/ibm/watsonx.py:331-346 | libs/agno/agno/models/openai/chat.py:768-783
  • Duplicated block (16 lines × 4) libs/agno/agno/models/ibm/watsonx.py:172 — libs/agno/agno/models/ibm/watsonx.py:172-187 | libs/agno/agno/models/ibm/watsonx.py:209-224 | libs/agno/agno/models/ibm/watsonx.py:246-261 | libs/agno/agno/models/ibm/watsonx.py:282-298
D4 · Code Duplication · Duplicated block (14 lines × 4) · ×5
  • Duplicated block (14 lines × 4) cookbook/07_knowledge/09_archive/vector_dbs/clickhouse.py:110 — cookbook/07_knowledge/09_archive/vector_dbs/clickhouse.py:110-123 | cookbook/07_knowledge/09_archive/vector_dbs/milvus_db.py:85-98 | cookbook/07_knowledge/09_archive/vector_dbs/mongo_db.py:114-127 | cookbook/07_knowledge/09_archive/vector_dbs/qdrant_db.py:95-108
  • Duplicated block (14 lines × 4) libs/agno/agno/knowledge/reader/pdf_reader.py:398 — libs/agno/agno/knowledge/reader/pdf_reader.py:398-411 | libs/agno/agno/knowledge/reader/pdf_reader.py:422-436 | libs/agno/agno/knowledge/reader/pdf_reader.py:448-461 | libs/agno/agno/knowledge/reader/pdf_reader.py:469-483
  • Duplicated block (14 lines × 4) libs/agno/agno/models/azure/openai_chat.py:152 — libs/agno/agno/models/azure/openai_chat.py:152-166 | libs/agno/agno/models/cerebras/cerebras.py:152-165 | libs/agno/agno/models/groq/groq.py:121-134 | libs/agno/agno/models/meta/llama.py:120-133
  • Duplicated block (14 lines × 4) libs/agno/agno/models/base.py:259 — libs/agno/agno/models/base.py:259-272 | libs/agno/agno/models/base.py:307-321 | libs/agno/agno/models/base.py:358-372 | libs/agno/agno/models/base.py:411-425
  • Duplicated block (14 lines × 4) libs/agno/agno/models/openai/chat.py:435 — libs/agno/agno/models/openai/chat.py:435-448 | libs/agno/agno/models/openai/chat.py:525-538 | libs/agno/agno/models/openai/chat.py:612-625 | libs/agno/agno/models/openai/chat.py:701-714
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×5
  • Duplicated block (14 lines × 3) cookbook/02_agents/14_advanced/cancel_run.py:104 — cookbook/02_agents/14_advanced/cancel_run.py:104-117 | cookbook/03_teams/14_run_control/cancel_run.py:104-117 | cookbook/04_workflows/06_advanced_concepts/run_control/cancel_run.py:103-116
  • Duplicated block (14 lines × 3) libs/agno/agno/agent/_response.py:1688 — libs/agno/agno/agent/_response.py:1688-1701 | libs/agno/agno/agent/_tools.py:718-731 | libs/agno/agno/agent/_tools.py:832-845
  • Duplicated block (14 lines × 3) libs/agno/agno/culture/manager.py:184 — libs/agno/agno/culture/manager.py:184-197 | libs/agno/agno/culture/manager.py:224-237 | libs/agno/agno/memory/manager.py:441-454
  • Duplicated block (14 lines × 3) libs/agno/agno/db/dynamo/dynamo.py:466 — libs/agno/agno/db/dynamo/dynamo.py:466-479 | libs/agno/agno/db/dynamo/dynamo.py:1663-1676 | libs/agno/agno/db/dynamo/dynamo.py:1971-1984
  • Duplicated block (14 lines × 3) libs/agno/agno/learn/schemas.py:480 — libs/agno/agno/learn/schemas.py:480-493 | libs/agno/agno/learn/schemas.py:622-635 | libs/agno/agno/learn/schemas.py:1112-1125
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×5
  • Duplicated block (8 lines × 3) cookbook/07_knowledge/09_archive/vector_dbs/milvus_db_range_search.py:61 — cookbook/07_knowledge/09_archive/vector_dbs/milvus_db_range_search.py:61-68 | cookbook/07_knowledge/09_archive/vector_dbs/milvus_db_range_search.py:74-83 | cookbook/07_knowledge/09_archive/vector_dbs/milvus_db_range_search.py:89-96
  • Duplicated block (8 lines × 3) libs/agno/agno/db/base.py:126 — libs/agno/agno/db/base.py:126-133 | libs/agno/agno/db/postgres/postgres.py:219-226 | libs/agno/agno/db/sqlite/sqlite.py:207-214
  • Duplicated block (8 lines × 3) libs/agno/agno/db/gcs_json/gcs_json_db.py:485 — libs/agno/agno/db/gcs_json/gcs_json_db.py:485-492 | libs/agno/agno/db/in_memory/in_memory_db.py:332-339 | libs/agno/agno/db/json/json_db.py:470-477
  • Duplicated block (8 lines × 3) libs/agno/agno/db/mysql/mysql.py:2464 — libs/agno/agno/db/mysql/mysql.py:2464-2471 | libs/agno/agno/db/postgres/postgres.py:2848-2855 | libs/agno/agno/db/sqlite/sqlite.py:3279-3286
  • Duplicated block (8 lines × 3) libs/agno/agno/learn/stores/session_context.py:446 — libs/agno/agno/learn/stores/session_context.py:446-453 | libs/agno/agno/learn/stores/user_memory.py:598-605 | libs/agno/agno/learn/stores/user_profile.py:766-773
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×5
  • Duplicated block (5 lines × 2) cookbook/05_agent_os/12_scheduler/01_run_in_agentos.py:134 — cookbook/05_agent_os/12_scheduler/01_run_in_agentos.py:134-138 | cookbook/05_agent_os/12_scheduler/04_scheduler_tools_agent.py:175-179
  • Duplicated block (5 lines × 2) libs/agno/agno/context/fs/provider.py:48 — libs/agno/agno/context/fs/provider.py:48-52 | libs/agno/agno/context/workspace/provider.py:54-58
  • Duplicated block (5 lines × 2) libs/agno/agno/db/sqlite/async_sqlite.py:2965 — libs/agno/agno/db/sqlite/async_sqlite.py:2965-2969 | libs/agno/agno/db/sqlite/sqlite.py:2875-2879
  • Duplicated block (5 lines × 2) libs/agno/agno/os/routers/knowledge/knowledge.py:259 — libs/agno/agno/os/routers/knowledge/knowledge.py:259-263 | libs/agno/agno/os/routers/knowledge/knowledge.py:417-421
  • Duplicated block (5 lines × 2) libs/agno/agno/os/routers/memory/memory.py:355 — libs/agno/agno/os/routers/memory/memory.py:355-359 | libs/agno/agno/os/routers/memory/memory.py:481-485
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×4
  • Duplicated block (20 lines × 3) libs/agno/agno/db/migrations/versions/v2_5_6.py:215 — libs/agno/agno/db/migrations/versions/v2_5_6.py:215-234 | libs/agno/agno/db/migrations/versions/v2_5_6.py:311-330 | libs/agno/agno/db/migrations/versions/v2_5_6.py:410-429
  • Duplicated block (20 lines × 3) libs/agno/agno/db/mysql/mysql.py:2166 — libs/agno/agno/db/mysql/mysql.py:2166-2185 | libs/agno/agno/db/singlestore/singlestore.py:2172-2191 | libs/agno/agno/db/sqlite/sqlite.py:2438-2460
  • Duplicated block (20 lines × 3) libs/agno/agno/db/mysql/mysql.py:2537 — libs/agno/agno/db/mysql/mysql.py:2537-2556 | libs/agno/agno/db/singlestore/singlestore.py:2488-2507 | libs/agno/agno/db/sqlite/sqlite.py:2542-2561
  • Duplicated block (20 lines × 3) libs/agno/agno/eval/agent_as_judge.py:535 — libs/agno/agno/eval/agent_as_judge.py:535-554 | libs/agno/agno/eval/agent_as_judge.py:638-658 | libs/agno/agno/eval/agent_as_judge.py:712-731
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×4
  • Duplicated block (16 lines × 3) libs/agno/agno/agent/_run.py:3476 — libs/agno/agno/agent/_run.py:3476-3491 | libs/agno/agno/agent/_run.py:4655-4671 | libs/agno/agno/agent/_run.py:5146-5162
  • Duplicated block (16 lines × 3) libs/agno/agno/knowledge/loaders/azure_blob.py:388 — libs/agno/agno/knowledge/loaders/azure_blob.py:388-403 | libs/agno/agno/knowledge/loaders/github.py:593-608 | libs/agno/agno/knowledge/loaders/sharepoint.py:405-420
  • Duplicated block (16 lines × 3) libs/agno/agno/learn/stores/learned_knowledge.py:1368 — libs/agno/agno/learn/stores/learned_knowledge.py:1368-1383 | libs/agno/agno/learn/stores/user_memory.py:944-959 | libs/agno/agno/learn/stores/user_profile.py:1008-1023
  • Duplicated block (16 lines × 3) libs/agno/agno/learn/stores/session_context.py:308 — libs/agno/agno/learn/stores/session_context.py:308-323 | libs/agno/agno/learn/stores/user_memory.py:466-481 | libs/agno/agno/learn/stores/user_profile.py:634-649
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×4
  • Duplicated block (12 lines × 4) libs/agno/agno/db/mysql/mysql.py:1297 — libs/agno/agno/db/mysql/mysql.py:1297-1309 | libs/agno/agno/db/postgres/postgres.py:1620-1632 | libs/agno/agno/db/singlestore/singlestore.py:1348-1360 | libs/agno/agno/db/sqlite/sqlite.py:1558-1569
  • Duplicated block (12 lines × 4) libs/agno/agno/db/mysql/mysql.py:2135 — libs/agno/agno/db/mysql/mysql.py:2135-2147 | libs/agno/agno/db/postgres/postgres.py:2492-2504 | libs/agno/agno/db/singlestore/singlestore.py:2141-2153 | libs/agno/agno/db/sqlite/sqlite.py:2408-2419
  • Duplicated block (12 lines × 4) libs/agno/agno/db/mysql/mysql.py:2328 — libs/agno/agno/db/mysql/mysql.py:2328-2339 | libs/agno/agno/db/postgres/postgres.py:2689-2700 | libs/agno/agno/db/singlestore/singlestore.py:2337-2348 | libs/agno/agno/db/sqlite/sqlite.py:3419-3430
  • Duplicated block (12 lines × 4) libs/agno/agno/knowledge/embedder/openai.py:67 — libs/agno/agno/knowledge/embedder/openai.py:67-78 | libs/agno/agno/knowledge/embedder/openai.py:103-114 | libs/agno/agno/knowledge/embedder/openai.py:124-135 | libs/agno/agno/knowledge/embedder/openai.py:165-176
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×4
  • Duplicated block (10 lines × 4) cookbook/91_tools/mcp/pipedream_auth.py:49 — cookbook/91_tools/mcp/pipedream_auth.py:49-58 | cookbook/91_tools/mcp/pipedream_google_calendar.py:31-40 | cookbook/91_tools/mcp/pipedream_linkedin.py:31-40 | cookbook/91_tools/mcp/pipedream_slack.py:32-41
  • Duplicated block (10 lines × 4) libs/agno/agno/db/in_memory/in_memory_db.py:444 — libs/agno/agno/db/in_memory/in_memory_db.py:444-453 | libs/agno/agno/db/json/json_db.py:555-564 | libs/agno/agno/db/redis/redis.py:762-772 | libs/agno/agno/db/valkey/valkey.py:1033-1043
  • Duplicated block (10 lines × 4) libs/agno/agno/knowledge/embedder/google.py:74 — libs/agno/agno/knowledge/embedder/google.py:74-83 | libs/agno/agno/knowledge/embedder/google.py:125-134 | libs/agno/agno/knowledge/embedder/google.py:157-166 | libs/agno/agno/knowledge/embedder/google.py:210-219
  • Duplicated block (10 lines × 4) libs/agno/agno/os/interfaces/a2a/utils.py:413 — libs/agno/agno/os/interfaces/a2a/utils.py:413-422 | libs/agno/agno/os/interfaces/a2a/utils.py:447-456 | libs/agno/agno/os/interfaces/a2a/utils.py:459-468 | libs/agno/agno/os/interfaces/a2a/utils.py:470-479
D1 · Cyclomatic Complexity · Workflow.acontinue_run (cyclomatic 94) · ×3
  • Workflow.acontinue_run (cyclomatic 94) libs/agno/agno/workflow/workflow.py:7533 — Workflow.acontinue_run has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Workflow.acontinue_run (cyclomatic 94) libs/agno/agno/workflow/workflow.py:7548 — Workflow.acontinue_run has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Workflow.acontinue_run (cyclomatic 94) libs/agno/agno/workflow/workflow.py:7562 — Workflow.acontinue_run has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow.continue_run (cyclomatic 87) · ×3
  • Workflow.continue_run (cyclomatic 87) libs/agno/agno/workflow/workflow.py:5546 — Workflow.continue_run has cyclomatic complexity 87 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Workflow.continue_run (cyclomatic 87) libs/agno/agno/workflow/workflow.py:5558 — Workflow.continue_run has cyclomatic complexity 87 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • Workflow.continue_run (cyclomatic 87) libs/agno/agno/workflow/workflow.py:5569 — Workflow.continue_run has cyclomatic complexity 87 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · Workflow.acontinue_run (cognitive 134) · ×3
  • Workflow.acontinue_run (cognitive 134) libs/agno/agno/workflow/workflow.py:7533 — Workflow.acontinue_run has cognitive complexity 134 (threshold 15). Drivers by points: if/else 98, boolean chains 28, loops 6, ternaries 2 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Workflow.acontinue_run (cognitive 134) libs/agno/agno/workflow/workflow.py:7548 — Workflow.acontinue_run has cognitive complexity 134 (threshold 15). Drivers by points: if/else 98, boolean chains 28, loops 6, ternaries 2 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Workflow.acontinue_run (cognitive 134) libs/agno/agno/workflow/workflow.py:7562 — Workflow.acontinue_run has cognitive complexity 134 (threshold 15). Drivers by points: if/else 98, boolean chains 28, loops 6, ternaries 2 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Workflow.continue_run (cognitive 125) · ×3
  • Workflow.continue_run (cognitive 125) libs/agno/agno/workflow/workflow.py:5546 — Workflow.continue_run has cognitive complexity 125 (threshold 15). Drivers by points: if/else 92, boolean chains 25, loops 6, ternaries 2 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Workflow.continue_run (cognitive 125) libs/agno/agno/workflow/workflow.py:5558 — Workflow.continue_run has cognitive complexity 125 (threshold 15). Drivers by points: if/else 92, boolean chains 25, loops 6, ternaries 2 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • Workflow.continue_run (cognitive 125) libs/agno/agno/workflow/workflow.py:5569 — Workflow.continue_run has cognitive complexity 125 (threshold 15). Drivers by points: if/else 92, boolean chains 25, loops 6, ternaries 2 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Duplicated block (31 lines × 3) · ×3
  • Duplicated block (31 lines × 3) libs/agno/agno/db/firestore/firestore.py:375 — libs/agno/agno/db/firestore/firestore.py:375-407 | libs/agno/agno/db/firestore/firestore.py:882-912 | libs/agno/agno/db/firestore/firestore.py:1755-1788
  • Duplicated block (31 lines × 3) libs/agno/agno/db/mongo/async_mongo.py:676 — libs/agno/agno/db/mongo/async_mongo.py:676-708 | libs/agno/agno/db/mongo/async_mongo.py:1256-1286 | libs/agno/agno/db/mongo/async_mongo.py:2172-2203
  • Duplicated block (31 lines × 3) libs/agno/agno/db/mongo/mongo.py:464 — libs/agno/agno/db/mongo/mongo.py:464-498 | libs/agno/agno/db/mongo/mongo.py:1041-1071 | libs/agno/agno/db/mongo/mongo.py:1951-1984
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×3
  • Duplicated block (31 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:560 — libs/agno/agno/db/mysql/async_mysql.py:560-592 | libs/agno/agno/db/mysql/async_mysql.py:1259-1289
  • Duplicated block (31 lines × 2) libs/agno/agno/db/postgres/async_postgres.py:1507 — libs/agno/agno/db/postgres/async_postgres.py:1507-1537 | libs/agno/agno/db/sqlite/async_sqlite.py:1401-1431
  • Duplicated block (31 lines × 2) libs/agno/agno/db/postgres/postgres.py:3887 — libs/agno/agno/db/postgres/postgres.py:3887-3917 | libs/agno/agno/db/sqlite/sqlite.py:3773-3803
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×3
  • Duplicated block (30 lines × 2) libs/agno/agno/learn/stores/learned_knowledge.py:909 — libs/agno/agno/learn/stores/learned_knowledge.py:909-938 | libs/agno/agno/learn/stores/learned_knowledge.py:979-1008
  • Duplicated block (30 lines × 2) libs/agno/agno/os/interfaces/a2a/router.py:323 — libs/agno/agno/os/interfaces/a2a/router.py:323-352 | libs/agno/agno/os/interfaces/a2a/router.py:626-655
  • Duplicated block (30 lines × 2) libs/agno/agno/os/routers/agents/router.py:1582 — libs/agno/agno/os/routers/agents/router.py:1582-1611 | libs/agno/agno/os/routers/teams/router.py:864-893
D4 · Code Duplication · Duplicated block (26 lines × 3) · ×3
  • Duplicated block (26 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:2599 — libs/agno/agno/db/mysql/async_mysql.py:2599-2624 | libs/agno/agno/db/postgres/async_postgres.py:2538-2563 | libs/agno/agno/db/sqlite/async_sqlite.py:2722-2747
  • Duplicated block (26 lines × 3) libs/agno/agno/db/mysql/mysql.py:1826 — libs/agno/agno/db/mysql/mysql.py:1826-1851 | libs/agno/agno/db/singlestore/singlestore.py:1860-1885 | libs/agno/agno/db/sqlite/sqlite.py:2122-2147
  • Duplicated block (26 lines × 3) libs/agno/agno/db/redis/redis.py:1450 — libs/agno/agno/db/redis/redis.py:1450-1475 | libs/agno/agno/db/redis/redis.py:1627-1657 | libs/agno/agno/db/valkey/valkey.py:1880-1905
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×3
  • Duplicated block (24 lines × 3) libs/agno/agno/db/mysql/mysql.py:2360 — libs/agno/agno/db/mysql/mysql.py:2360-2383 | libs/agno/agno/db/singlestore/singlestore.py:2369-2392 | libs/agno/agno/db/sqlite/sqlite.py:3451-3476
  • Duplicated block (24 lines × 3) libs/agno/agno/db/postgres/postgres.py:1230 — libs/agno/agno/db/postgres/postgres.py:1230-1253 | libs/agno/agno/db/postgres/postgres.py:1289-1312 | libs/agno/agno/db/postgres/postgres.py:1348-1371
  • Duplicated block (24 lines × 3) libs/agno/agno/learn/stores/session_context.py:280 — libs/agno/agno/learn/stores/session_context.py:280-303 | libs/agno/agno/learn/stores/user_memory.py:438-461 | libs/agno/agno/learn/stores/user_profile.py:606-629
D4 · Code Duplication · Duplicated block (17 lines × 4) · ×3
  • Duplicated block (17 lines × 4) libs/agno/agno/db/mysql/async_mysql.py:1774 — libs/agno/agno/db/mysql/async_mysql.py:1774-1790 | libs/agno/agno/db/mysql/mysql.py:1556-1572 | libs/agno/agno/db/sqlite/async_sqlite.py:1623-1640 | libs/agno/agno/db/sqlite/sqlite.py:1813-1830
  • Duplicated block (17 lines × 4) libs/agno/agno/db/mysql/mysql.py:1134 — libs/agno/agno/db/mysql/mysql.py:1134-1150 | libs/agno/agno/db/postgres/postgres.py:1439-1456 | libs/agno/agno/db/singlestore/singlestore.py:1193-1209 | libs/agno/agno/db/sqlite/sqlite.py:1395-1411
  • Duplicated block (17 lines × 4) libs/agno/agno/db/postgres/async_postgres.py:2474 — libs/agno/agno/db/postgres/async_postgres.py:2474-2490 | libs/agno/agno/db/postgres/postgres.py:2950-2966 | libs/agno/agno/db/sqlite/async_sqlite.py:2661-2679 | libs/agno/agno/db/sqlite/sqlite.py:2568-2586
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×3
  • Duplicated block (8 lines × 5) libs/agno/agno/db/mysql/async_mysql.py:801 — libs/agno/agno/db/mysql/async_mysql.py:801-808 | libs/agno/agno/db/mysql/mysql.py:793-800 | libs/agno/agno/db/postgres/async_postgres.py:917-924 | libs/agno/agno/db/postgres/postgres.py:1103-1110 | libs/agno/agno/db/singlestore/singlestore.py:864-871
  • Duplicated block (8 lines × 5) libs/agno/agno/db/mysql/async_mysql.py:854 — libs/agno/agno/db/mysql/async_mysql.py:854-861 | libs/agno/agno/db/mysql/mysql.py:841-848 | libs/agno/agno/db/postgres/async_postgres.py:958-965 | libs/agno/agno/db/postgres/postgres.py:1142-1149 | libs/agno/agno/db/singlestore/singlestore.py:915-922
  • Duplicated block (8 lines × 5) libs/agno/agno/os/routers/agents/router.py:1375 — libs/agno/agno/os/routers/agents/router.py:1375-1383 | libs/agno/agno/os/routers/agents/router.py:1429-1436 | libs/agno/agno/os/routers/agents/router.py:1497-1504 | libs/agno/agno/os/routers/agents/router.py:1558-1565 | libs/agno/agno/os/routers/agents/router.py:1708-1715
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×3
  • Duplicated block (8 lines × 4) libs/agno/agno/agent/_tools.py:859 — libs/agno/agno/agent/_tools.py:859-866 | libs/agno/agno/agent/_tools.py:911-918 | libs/agno/agno/agent/_tools.py:961-968 | libs/agno/agno/agent/_tools.py:1012-1019
  • Duplicated block (8 lines × 4) libs/agno/agno/db/postgres/async_postgres.py:4069 — libs/agno/agno/db/postgres/async_postgres.py:4069-4076 | libs/agno/agno/db/postgres/async_postgres.py:4318-4325 | libs/agno/agno/db/sqlite/async_sqlite.py:4186-4193 | libs/agno/agno/db/sqlite/async_sqlite.py:4439-4446
  • Duplicated block (8 lines × 4) libs/agno/agno/db/postgres/postgres.py:5459 — libs/agno/agno/db/postgres/postgres.py:5459-5466 | libs/agno/agno/db/postgres/postgres.py:5800-5807 | libs/agno/agno/db/sqlite/sqlite.py:5311-5318 | libs/agno/agno/db/sqlite/sqlite.py:5651-5658
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×3
  • Duplicated block (5 lines × 3) libs/agno/agno/metrics.py:197 — libs/agno/agno/metrics.py:197-201 | libs/agno/agno/metrics.py:337-341 | libs/agno/agno/metrics.py:610-614
  • Duplicated block (5 lines × 3) libs/agno/agno/os/routers/evals/evals.py:122 — libs/agno/agno/os/routers/evals/evals.py:122-126 | libs/agno/agno/os/routers/memory/memory.py:268-272 | libs/agno/agno/os/routers/session/session.py:117-121
  • Duplicated block (5 lines × 3) libs/agno/agno/os/routers/session/session.py:771 — libs/agno/agno/os/routers/session/session.py:771-775 | libs/agno/agno/os/routers/session/session.py:948-952 | libs/agno/agno/os/routers/session/session.py:1055-1059
D1 · Cyclomatic Complexity · router._resume_stream_generator (cyclomatic 35) · ×2
  • router._resume_stream_generator (cyclomatic 35) libs/agno/agno/os/routers/agents/router.py:348 — router._resume_stream_generator has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • router._resume_stream_generator (cyclomatic 35) libs/agno/agno/os/routers/teams/router.py:218 — router._resume_stream_generator has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run_options.resolve_run_options (cyclomatic 21) · ×2
  • _run_options.resolve_run_options (cyclomatic 21) libs/agno/agno/agent/_run_options.py:71 — _run_options.resolve_run_options has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • _run_options.resolve_run_options (cyclomatic 21) libs/agno/agno/team/_run_options.py:69 — _run_options.resolve_run_options has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response.update_reasoning_content_from_tool_call (cyclomatic 16) · ×2
  • _response.update_reasoning_content_from_tool_call (cyclomatic 16) libs/agno/agno/agent/_response.py:771 — _response.update_reasoning_content_from_tool_call has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • _response.update_reasoning_content_from_tool_call (cyclomatic 16) libs/agno/agno/team/_response.py:821 — _response.update_reasoning_content_from_tool_call has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D2 · Cognitive Complexity · router._resume_stream_generator (cognitive 77) · ×2
  • router._resume_stream_generator (cognitive 77) libs/agno/agno/os/routers/agents/router.py:348 — router._resume_stream_generator has cognitive complexity 77 (threshold 15). Drivers by points: if/else 40, loops 16, ternaries 11, boolean chains 5, error handling 5 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • router._resume_stream_generator (cognitive 77) libs/agno/agno/os/routers/teams/router.py:218 — router._resume_stream_generator has cognitive complexity 77 (threshold 15). Drivers by points: if/else 40, loops 16, ternaries 11, boolean chains 5, error handling 5 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _response.aparse_response_with_parser_model_stream (cognitive 34) · ×2
  • _response.aparse_response_with_parser_model_stream (cognitive 34) libs/agno/agno/agent/_response.py:532 — _response.aparse_response_with_parser_model_stream has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22, loops 10, ternaries 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • _response.aparse_response_with_parser_model_stream (cognitive 34) libs/agno/agno/team/_response.py:304 — _response.aparse_response_with_parser_model_stream has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22, loops 10, ternaries 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_thinking.test_thinking_with_streaming_storage (cognitive 34) · ×2
  • test_thinking.test_thinking_with_streaming_storage (cognitive 34) libs/agno/tests/integration/models/anthropic/test_thinking.py:199 — test_thinking.test_thinking_with_streaming_storage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 11, boolean chains 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • test_thinking.test_thinking_with_streaming_storage (cognitive 34) libs/agno/tests/integration/models/vertexai/claude/test_thinking.py:199 — test_thinking.test_thinking_with_streaming_storage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 11, boolean chains 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_thinking.test_interleaved_thinking_streaming_with_storage (cognitive 34) · ×2
  • test_thinking.test_interleaved_thinking_streaming_with_storage (cognitive 34) libs/agno/tests/integration/models/anthropic/test_thinking.py:373 — test_thinking.test_interleaved_thinking_streaming_with_storage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 11, boolean chains 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • test_thinking.test_interleaved_thinking_streaming_with_storage (cognitive 34) libs/agno/tests/integration/models/vertexai/claude/test_thinking.py:373 — test_thinking.test_interleaved_thinking_streaming_with_storage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 11, boolean chains 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _response.parse_response_with_parser_model_stream (cognitive 30) · ×2
  • _response.parse_response_with_parser_model_stream (cognitive 30) libs/agno/agno/agent/_response.py:464 — _response.parse_response_with_parser_model_stream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 6, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • _response.parse_response_with_parser_model_stream (cognitive 30) libs/agno/agno/team/_response.py:233 — _response.parse_response_with_parser_model_stream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 6, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_thinking.test_thinking_with_storage (cognitive 29) · ×2
  • test_thinking.test_thinking_with_storage (cognitive 29) libs/agno/tests/integration/models/anthropic/test_thinking.py:157 — test_thinking.test_thinking_with_storage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 10, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • test_thinking.test_thinking_with_storage (cognitive 29) libs/agno/tests/integration/models/vertexai/claude/test_thinking.py:157 — test_thinking.test_thinking_with_storage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 10, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · test_thinking.test_interleaved_thinking_with_storage (cognitive 29) · ×2
  • test_thinking.test_interleaved_thinking_with_storage (cognitive 29) libs/agno/tests/integration/models/anthropic/test_thinking.py:327 — test_thinking.test_interleaved_thinking_with_storage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 10, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • test_thinking.test_interleaved_thinking_with_storage (cognitive 29) libs/agno/tests/integration/models/vertexai/claude/test_thinking.py:327 — test_thinking.test_interleaved_thinking_with_storage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 10, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · utils.calculate_date_metrics (cognitive 26) · ×2
  • utils.calculate_date_metrics (cognitive 26) libs/agno/agno/db/postgres/utils.py:269 — utils.calculate_date_metrics has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, loops 11, boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • utils.calculate_date_metrics (cognitive 26) libs/agno/agno/db/valkey/utils.py:371 — utils.calculate_date_metrics has cognitive complexity 26 (threshold 15). Drivers by points: loops 12, if/else 7, boolean chains 4, ternaries 3 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · cancel_run.long_running_task (cognitive 22) · ×2
  • cancel_run.long_running_task (cognitive 22) cookbook/02_agents/14_advanced/cancel_run.py:17 — cancel_run.long_running_task has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9, ternaries 9, boolean chains 2, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • cancel_run.long_running_task (cognitive 22) cookbook/04_workflows/06_advanced_concepts/run_control/cancel_run.py:24 — cancel_run.long_running_task has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 12, if/else 6, boolean chains 2, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _response.update_reasoning_content_from_tool_call (cognitive 19) · ×2
  • _response.update_reasoning_content_from_tool_call (cognitive 19) libs/agno/agno/agent/_response.py:771 — _response.update_reasoning_content_from_tool_call has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • _response.update_reasoning_content_from_tool_call (cognitive 19) libs/agno/agno/team/_response.py:821 — _response.update_reasoning_content_from_tool_call has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _cli.cli_app (cognitive 16) · ×2
  • _cli.cli_app (cognitive 16) libs/agno/agno/agent/_cli.py:239 — _cli.cli_app has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • _cli.cli_app (cognitive 16) libs/agno/agno/team/_cli.py:264 — _cli.cli_app has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _response.handle_reasoning_event (cognitive 16) · ×2
  • _response.handle_reasoning_event (cognitive 16) libs/agno/agno/agent/_response.py:167 — _response.handle_reasoning_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • _response.handle_reasoning_event (cognitive 16) libs/agno/agno/team/_response.py:581 — _response.handle_reasoning_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · _run_options.resolve_run_options (cognitive 16) · ×2
  • _run_options.resolve_run_options (cognitive 16) libs/agno/agno/agent/_run_options.py:71 — _run_options.resolve_run_options has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
  • _run_options.resolve_run_options (cognitive 16) libs/agno/agno/team/_run_options.py:69 — _run_options.resolve_run_options has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · StreamState.collect_media (cognitive 16) · ×2
  • StreamState.collect_media (cognitive 16) libs/agno/agno/os/interfaces/slack/state.py:106 — StreamState.collect_media has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, loops 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • StreamState.collect_media (cognitive 16) libs/agno/agno/os/interfaces/telegram/state.py:197 — StreamState.collect_media has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, loops 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Duplicated block (51 lines × 2) · ×2
  • Duplicated block (51 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:1011 — libs/agno/agno/db/mongo/async_mongo.py:1011-1061 | libs/agno/agno/db/mongo/mongo.py:799-849
  • Duplicated block (51 lines × 2) libs/agno/agno/learn/stores/session_context.py:908 — libs/agno/agno/learn/stores/session_context.py:908-958 | libs/agno/agno/learn/stores/session_context.py:1049-1099
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×2
  • Duplicated block (36 lines × 2) cookbook/02_agents/14_advanced/cancel_run.py:47 — cookbook/02_agents/14_advanced/cancel_run.py:47-83 | cookbook/03_teams/14_run_control/cancel_run.py:53-88
  • Duplicated block (36 lines × 2) libs/agno/agno/db/mongo/async_mongo.py:913 — libs/agno/agno/db/mongo/async_mongo.py:913-948 | libs/agno/agno/db/mongo/mongo.py:701-736
D4 · Code Duplication · Duplicated block (35 lines × 2) · ×2
  • Duplicated block (35 lines × 2) libs/agno/agno/db/mysql/async_mysql.py:61 — libs/agno/agno/db/mysql/async_mysql.py:61-98 | libs/agno/agno/db/singlestore/singlestore.py:63-97
  • Duplicated block (35 lines × 2) libs/agno/agno/db/redis/redis.py:819 — libs/agno/agno/db/redis/redis.py:819-853 | libs/agno/agno/db/valkey/valkey.py:1090-1124
D4 · Code Duplication · Duplicated block (30 lines × 3) · ×2
  • Duplicated block (30 lines × 3) libs/agno/agno/db/migrations/versions/v2_3_0.py:147 — libs/agno/agno/db/migrations/versions/v2_3_0.py:147-176 | libs/agno/agno/db/migrations/versions/v2_3_0.py:497-526 | libs/agno/agno/db/migrations/versions/v2_3_0.py:714-743
  • Duplicated block (30 lines × 3) libs/agno/agno/db/mysql/mysql.py:1505 — libs/agno/agno/db/mysql/mysql.py:1505-1535 | libs/agno/agno/db/sqlite/async_sqlite.py:1570-1599 | libs/agno/agno/db/sqlite/sqlite.py:1760-1789
D4 · Code Duplication · Duplicated block (27 lines × 4) · ×2
  • Duplicated block (27 lines × 4) libs/agno/agno/db/mysql/mysql.py:1582 — libs/agno/agno/db/mysql/mysql.py:1582-1608 | libs/agno/agno/db/postgres/postgres.py:1901-1927 | libs/agno/agno/db/singlestore/singlestore.py:1625-1651 | libs/agno/agno/db/sqlite/sqlite.py:1861-1887
  • Duplicated block (27 lines × 4) libs/agno/agno/db/mysql/mysql.py:2621 — libs/agno/agno/db/mysql/mysql.py:2621-2648 | libs/agno/agno/db/postgres/postgres.py:3014-3041 | libs/agno/agno/db/singlestore/singlestore.py:2571-2598 | libs/agno/agno/db/sqlite/sqlite.py:2629-2655
D4 · Code Duplication · Duplicated block (25 lines × 3) · ×2
  • Duplicated block (25 lines × 3) libs/agno/agno/agent/_run.py:3422 — libs/agno/agno/agent/_run.py:3422-3452 | libs/agno/agno/agent/_run.py:4612-4636 | libs/agno/agno/agent/_run.py:5103-5127
  • Duplicated block (25 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:1048 — libs/agno/agno/db/mysql/async_mysql.py:1048-1072 | libs/agno/agno/db/mysql/mysql.py:1036-1060 | libs/agno/agno/db/singlestore/singlestore.py:1102-1126
D4 · Code Duplication · Duplicated block (24 lines × 4) · ×2
  • Duplicated block (24 lines × 4) libs/agno/agno/db/migrations/versions/v2_5_0.py:365 — libs/agno/agno/db/migrations/versions/v2_5_0.py:365-388 | libs/agno/agno/db/migrations/versions/v2_5_0.py:497-520 | libs/agno/agno/db/migrations/versions/v2_5_0.py:686-709 | libs/agno/agno/db/migrations/versions/v2_5_0.py:816-839
  • Duplicated block (24 lines × 4) libs/agno/agno/db/mysql/mysql.py:1202 — libs/agno/agno/db/mysql/mysql.py:1202-1225 | libs/agno/agno/db/postgres/postgres.py:1526-1550 | libs/agno/agno/db/singlestore/singlestore.py:1255-1278 | libs/agno/agno/db/sqlite/sqlite.py:1465-1488
D4 · Code Duplication · Duplicated block (23 lines × 3) · ×2
  • Duplicated block (23 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:2931 — libs/agno/agno/db/mysql/async_mysql.py:2931-2953 | libs/agno/agno/db/postgres/async_postgres.py:2973-2995 | libs/agno/agno/db/sqlite/async_sqlite.py:3142-3164
  • Duplicated block (23 lines × 3) libs/agno/agno/db/mysql/mysql.py:2947 — libs/agno/agno/db/mysql/mysql.py:2947-2969 | libs/agno/agno/db/postgres/postgres.py:3445-3467 | libs/agno/agno/db/singlestore/singlestore.py:2909-2931
D4 · Code Duplication · Duplicated block (19 lines × 4) · ×2
  • Duplicated block (19 lines × 4) libs/agno/agno/db/mysql/mysql.py:430 — libs/agno/agno/db/mysql/mysql.py:430-451 | libs/agno/agno/db/postgres/postgres.py:738-759 | libs/agno/agno/db/singlestore/singlestore.py:495-516 | libs/agno/agno/db/sqlite/sqlite.py:730-748
  • Duplicated block (19 lines × 4) libs/agno/agno/db/mysql/mysql.py:1387 — libs/agno/agno/db/mysql/mysql.py:1387-1405 | libs/agno/agno/db/postgres/postgres.py:1715-1733 | libs/agno/agno/db/singlestore/singlestore.py:1425-1443 | libs/agno/agno/db/sqlite/sqlite.py:1638-1656
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×2
  • Duplicated block (17 lines × 3) libs/agno/agno/db/mongo/mongo.py:879 — libs/agno/agno/db/mongo/mongo.py:879-896 | libs/agno/agno/db/mysql/mysql.py:1079-1095 | libs/agno/agno/db/sqlite/sqlite.py:1338-1354
  • Duplicated block (17 lines × 3) libs/agno/agno/db/redis/redis.py:1134 — libs/agno/agno/db/redis/redis.py:1134-1150 | libs/agno/agno/db/singlestore/singlestore.py:1727-1743 | libs/agno/agno/db/valkey/valkey.py:1485-1501
D4 · Code Duplication · Duplicated block (15 lines × 4) · ×2
  • Duplicated block (15 lines × 4) cookbook/02_agents/10_human_in_the_loop/confirmation_advanced.py:25 — cookbook/02_agents/10_human_in_the_loop/confirmation_advanced.py:25-45 | cookbook/02_agents/10_human_in_the_loop/confirmation_required.py:25-45 | cookbook/91_tools/python_function_as_tool.py:19-40 | cookbook/91_tools/tool_calls_accesing_agent.py:19-33
  • Duplicated block (15 lines × 4) libs/agno/agno/db/gcs_json/gcs_json_db.py:72 — libs/agno/agno/db/gcs_json/gcs_json_db.py:72-87 | libs/agno/agno/db/redis/redis.py:88-103 | libs/agno/agno/db/surrealdb/surrealdb.py:94-108 | libs/agno/agno/db/valkey/valkey.py:117-132
D4 · Code Duplication · Duplicated block (12 lines × 7) · ×2
  • Duplicated block (12 lines × 7) libs/agno/agno/db/mysql/async_mysql.py:1816 — libs/agno/agno/db/mysql/async_mysql.py:1816-1827 | libs/agno/agno/db/mysql/mysql.py:1600-1611 | libs/agno/agno/db/postgres/async_postgres.py:1680-1691 | libs/agno/agno/db/postgres/postgres.py:1919-1930 | libs/agno/agno/db/singlestore/singlestore.py:1643-1654 | libs/agno/agno/db/sqlite/async_sqlite.py:1689-1700 | libs/agno/agno/db/sqlite/sqlite.py:1879-1890
  • Duplicated block (12 lines × 7) libs/agno/agno/db/mysql/async_mysql.py:2795 — libs/agno/agno/db/mysql/async_mysql.py:2795-2806 | libs/agno/agno/db/mysql/mysql.py:2814-2825 | libs/agno/agno/db/postgres/async_postgres.py:2788-2799 | libs/agno/agno/db/postgres/postgres.py:3262-3273 | libs/agno/agno/db/singlestore/singlestore.py:2770-2781 | libs/agno/agno/db/sqlite/async_sqlite.py:2975-2986 | libs/agno/agno/db/sqlite/sqlite.py:2885-2896
D4 · Code Duplication · Duplicated block (11 lines × 6) · ×2
  • Duplicated block (11 lines × 6) cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/03_condition_and_tool_confirmation.py:123 — cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/03_condition_and_tool_confirmation.py:123-133 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/04_router_selection_and_tool_confirmation.py:129-139 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/05_output_review_and_tool_confirmation.py:87-97 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/06_loop_confirmation_and_tool_confirmation.py:105-115 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/07_router_confirmation_and_tool_confirmation.py:123-133 | cookbook/04_workflows/08_human_in_the_loop/dual_level_hitl/09_multi_step_mixed_hitl.py:209-219
  • Duplicated block (11 lines × 6) cookbook/91_tools/file_generation_tools.py:35 — cookbook/91_tools/file_generation_tools.py:35-45 | cookbook/91_tools/file_generation_tools.py:50-60 | cookbook/91_tools/file_generation_tools.py:65-75 | cookbook/91_tools/file_generation_tools.py:80-90 | cookbook/91_tools/file_generation_tools.py:95-105 | cookbook/91_tools/file_generation_tools.py:110-120
D4 · Code Duplication · Duplicated block (8 lines × 8) · ×2
  • Duplicated block (8 lines × 8) libs/agno/agno/db/postgres/async_postgres.py:3722 — libs/agno/agno/db/postgres/async_postgres.py:3722-3729 | libs/agno/agno/db/postgres/async_postgres.py:3905-3912 | libs/agno/agno/db/postgres/async_postgres.py:3970-3977 | libs/agno/agno/db/postgres/async_postgres.py:4210-4217 | libs/agno/agno/db/sqlite/async_sqlite.py:3832-3839 | libs/agno/agno/db/sqlite/async_sqlite.py:4022-4029 | libs/agno/agno/db/sqlite/async_sqlite.py:4087-4094 | libs/agno/agno/db/sqlite/async_sqlite.py:4327-4334
  • Duplicated block (8 lines × 8) libs/agno/agno/db/postgres/postgres.py:5128 — libs/agno/agno/db/postgres/postgres.py:5128-5135 | libs/agno/agno/db/postgres/postgres.py:5301-5308 | libs/agno/agno/db/postgres/postgres.py:5363-5370 | libs/agno/agno/db/postgres/postgres.py:5695-5702 | libs/agno/agno/db/sqlite/sqlite.py:4972-4979 | libs/agno/agno/db/sqlite/sqlite.py:5153-5160 | libs/agno/agno/db/sqlite/sqlite.py:5215-5222 | libs/agno/agno/db/sqlite/sqlite.py:5547-5554
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×2
  • Duplicated block (7 lines × 4) libs/agno/agno/db/postgres/async_postgres.py:3892 — libs/agno/agno/db/postgres/async_postgres.py:3892-3898 | libs/agno/agno/db/postgres/async_postgres.py:4302-4308 | libs/agno/agno/db/sqlite/async_sqlite.py:4009-4015 | libs/agno/agno/db/sqlite/async_sqlite.py:4423-4429
  • Duplicated block (7 lines × 4) libs/agno/agno/db/utils.py:331 — libs/agno/agno/db/utils.py:331-337 | libs/agno/agno/db/utils.py:343-349 | libs/agno/agno/db/utils.py:355-361 | libs/agno/agno/db/utils.py:367-374
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×2
  • Duplicated block (7 lines × 3) libs/agno/agno/client/os.py:1816 — libs/agno/agno/client/os.py:1816-1822 | libs/agno/agno/client/os.py:2022-2028 | libs/agno/agno/client/os.py:2084-2091
  • Duplicated block (7 lines × 3) libs/agno/agno/db/mysql/async_mysql.py:1994 — libs/agno/agno/db/mysql/async_mysql.py:1994-2000 | libs/agno/agno/db/postgres/async_postgres.py:1878-1884 | libs/agno/agno/db/sqlite/async_sqlite.py:1886-1892
D1 · Cyclomatic Complexity · Workflow._acontinue_execute_stream (cyclomatic 162) · ×1
  • Workflow._acontinue_execute_stream (cyclomatic 162) libs/agno/agno/workflow/workflow.py:8496 — Workflow._acontinue_execute_stream has cyclomatic complexity 162 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._continue_execute_stream (cyclomatic 161) · ×1
  • Workflow._continue_execute_stream (cyclomatic 161) libs/agno/agno/workflow/workflow.py:6770 — Workflow._continue_execute_stream has cyclomatic complexity 161 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · team.aprint_response_stream (cyclomatic 160) · ×1
  • team.aprint_response_stream (cyclomatic 160) libs/agno/agno/utils/print_response/team.py:1292 — team.aprint_response_stream has cyclomatic complexity 160 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · team.print_response_stream (cyclomatic 154) · ×1
  • team.print_response_stream (cyclomatic 154) libs/agno/agno/utils/print_response/team.py:359 — team.print_response_stream has cyclomatic complexity 154 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.stream_a2a_response (cyclomatic 151) · ×1
  • utils.stream_a2a_response (cyclomatic 151) libs/agno/agno/os/interfaces/a2a/utils.py:304 — utils.stream_a2a_response has cyclomatic complexity 151 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · workflow.print_response_stream (cyclomatic 131) · ×1
  • workflow.print_response_stream (cyclomatic 131) libs/agno/agno/utils/print_response/workflow.py:195 — workflow.print_response_stream has cyclomatic complexity 131 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · workflow.aprint_response_stream (cyclomatic 129) · ×1
  • workflow.aprint_response_stream (cyclomatic 129) libs/agno/agno/utils/print_response/workflow.py:1037 — workflow.aprint_response_stream has cyclomatic complexity 129 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _storage.to_dict (cyclomatic 125) · ×1
  • _storage.to_dict (cyclomatic 125) libs/agno/agno/team/_storage.py:396 — _storage.to_dict has cyclomatic complexity 125 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._acontinue_run_stream (cyclomatic 122) · ×1
  • _run._acontinue_run_stream (cyclomatic 122) libs/agno/agno/team/_run.py:8304 — _run._acontinue_run_stream has cyclomatic complexity 122 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._aexecute_stream (cyclomatic 122) · ×1
  • Workflow._aexecute_stream (cyclomatic 122) libs/agno/agno/workflow/workflow.py:3424 — Workflow._aexecute_stream has cyclomatic complexity 122 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._acontinue_execute (cyclomatic 117) · ×1
  • Workflow._acontinue_execute (cyclomatic 117) libs/agno/agno/workflow/workflow.py:7967 — Workflow._acontinue_execute has cyclomatic complexity 117 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _storage.to_dict (cyclomatic 115) · ×1
  • _storage.to_dict (cyclomatic 115) libs/agno/agno/agent/_storage.py:430 — _storage.to_dict has cyclomatic complexity 115 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._continue_execute (cyclomatic 115) · ×1
  • Workflow._continue_execute (cyclomatic 115) libs/agno/agno/workflow/workflow.py:5942 — Workflow._continue_execute has cyclomatic complexity 115 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._execute_stream (cyclomatic 107) · ×1
  • Workflow._execute_stream (cyclomatic 107) libs/agno/agno/workflow/workflow.py:2394 — Workflow._execute_stream has cyclomatic complexity 107 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._acontinue_run_stream (cyclomatic 101) · ×1
  • _run._acontinue_run_stream (cyclomatic 101) libs/agno/agno/agent/_run.py:4972 — _run._acontinue_run_stream has cyclomatic complexity 101 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response._handle_model_response_chunk (cyclomatic 98) · ×1
  • _response._handle_model_response_chunk (cyclomatic 98) libs/agno/agno/team/_response.py:1328 — _response._handle_model_response_chunk has cyclomatic complexity 98 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step.aexecute_stream (cyclomatic 98) · ×1
  • Step.aexecute_stream (cyclomatic 98) libs/agno/agno/workflow/step.py:1658 — Step.aexecute_stream has cyclomatic complexity 98 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step.execute_stream (cyclomatic 89) · ×1
  • Step.execute_stream (cyclomatic 89) libs/agno/agno/workflow/step.py:1054 — Step.execute_stream has cyclomatic complexity 89 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.aget_system_message (cyclomatic 88) · ×1
  • _messages.aget_system_message (cyclomatic 88) libs/agno/agno/agent/_messages.py:492 — _messages.aget_system_message has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run.continue_run_dispatch (cyclomatic 88) · ×1
  • _run.continue_run_dispatch (cyclomatic 88) libs/agno/agno/team/_run.py:6356 — _run.continue_run_dispatch has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.get_system_message (cyclomatic 85) · ×1
  • _messages.get_system_message (cyclomatic 85) libs/agno/agno/agent/_messages.py:134 — _messages.get_system_message has cyclomatic complexity 85 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.arun_function_calls (cyclomatic 85) · ×1
  • Model.arun_function_calls (cyclomatic 85) libs/agno/agno/models/base.py:2510 — Model.arun_function_calls has cyclomatic complexity 85 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response.handle_model_response_chunk (cyclomatic 84) · ×1
  • _response.handle_model_response_chunk (cyclomatic 84) libs/agno/agno/agent/_response.py:1370 — _response.handle_model_response_chunk has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._acontinue_run (cyclomatic 81) · ×1
  • _run._acontinue_run (cyclomatic 81) libs/agno/agno/team/_run.py:7875 — _run._acontinue_run has cyclomatic complexity 81 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GeminiInteractions._parse_provider_response_delta (cyclomatic 78) · ×1
  • GeminiInteractions._parse_provider_response_delta (cyclomatic 78) libs/agno/agno/models/google/gemini_interactions.py:948 — GeminiInteractions._parse_provider_response_delta has cyclomatic complexity 78 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools._determine_tools_for_model (cyclomatic 77) · ×1
  • _tools._determine_tools_for_model (cyclomatic 77) libs/agno/agno/team/_tools.py:107 — _tools._determine_tools_for_model has cyclomatic complexity 77 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · team.print_response (cyclomatic 76) · ×1
  • team.print_response (cyclomatic 76) libs/agno/agno/utils/print_response/team.py:22 — team.print_response has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · team.aprint_response (cyclomatic 75) · ×1
  • team.aprint_response (cyclomatic 75) libs/agno/agno/utils/print_response/team.py:957 — team.aprint_response has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step.aexecute (cyclomatic 75) · ×1
  • Step.aexecute (cyclomatic 75) libs/agno/agno/workflow/step.py:1377 — Step.aexecute has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._arun_stream (cyclomatic 73) · ×1
  • _run._arun_stream (cyclomatic 73) libs/agno/agno/agent/_run.py:2151 — _run._arun_stream has cyclomatic complexity 73 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._acontinue_run (cyclomatic 72) · ×1
  • _run._acontinue_run (cyclomatic 72) libs/agno/agno/agent/_run.py:4478 — _run._acontinue_run has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._aexecute (cyclomatic 67) · ×1
  • Workflow._aexecute (cyclomatic 67) libs/agno/agno/workflow/workflow.py:3065 — Workflow._aexecute has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DbInstance._create (cyclomatic 67) · ×1
  • DbInstance._create (cyclomatic 67) libs/agno_infra/agno/aws/resource/rds/db_instance.py:258 — DbInstance._create has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseRunOutputEvent.to_dict (cyclomatic 65) · ×1
  • BaseRunOutputEvent.to_dict (cyclomatic 65) libs/agno/agno/run/base.py:48 — BaseRunOutputEvent.to_dict has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step.execute (cyclomatic 65) · ×1
  • Step.execute (cyclomatic 65) libs/agno/agno/workflow/step.py:734 — Step.execute has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DbInstance._update (cyclomatic 65) · ×1
  • DbInstance._update (cyclomatic 65) libs/agno_infra/agno/aws/resource/rds/db_instance.py:536 — DbInstance._update has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini._parse_provider_response (cyclomatic 63) · ×1
  • Gemini._parse_provider_response (cyclomatic 63) libs/agno/agno/models/google/gemini.py:1128 — Gemini._parse_provider_response has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._execute (cyclomatic 63) · ×1
  • Workflow._execute (cyclomatic 63) libs/agno/agno/workflow/workflow.py:2052 — Workflow._execute has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · connect._connect (cyclomatic 62) · ×1
  • connect._connect (cyclomatic 62) libs/agnoctl/agnoctl/commands/connect.py:338 — connect._connect has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DbCluster._create (cyclomatic 61) · ×1
  • DbCluster._create (cyclomatic 61) libs/agno_infra/agno/aws/resource/rds/db_cluster.py:336 — DbCluster._create has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._run_stream (cyclomatic 60) · ×1
  • _run._run_stream (cyclomatic 60) libs/agno/agno/agent/_run.py:754 — _run._run_stream has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GeminiInteractions._parse_provider_response (cyclomatic 60) · ×1
  • GeminiInteractions._parse_provider_response (cyclomatic 60) libs/agno/agno/models/google/gemini_interactions.py:777 — GeminiInteractions._parse_provider_response has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._arun_tasks_stream (cyclomatic 59) · ×1
  • _run._arun_tasks_stream (cyclomatic 59) libs/agno/agno/team/_run.py:2415 — _run._arun_tasks_stream has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Condition.execute_stream (cyclomatic 57) · ×1
  • Condition.execute_stream (cyclomatic 57) libs/agno/agno/workflow/condition.py:685 — Condition.execute_stream has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Condition.aexecute_stream (cyclomatic 57) · ×1
  • Condition.aexecute_stream (cyclomatic 57) libs/agno/agno/workflow/condition.py:1126 — Condition.aexecute_stream has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TeamResponse.from_team (cyclomatic 56) · ×1
  • TeamResponse.from_team (cyclomatic 56) libs/agno/agno/os/routers/teams/schema.py:72 — TeamResponse.from_team has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run.continue_run_dispatch (cyclomatic 54) · ×1
  • _run.continue_run_dispatch (cyclomatic 54) libs/agno/agno/agent/_run.py:3251 — _run.continue_run_dispatch has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.aresponse_stream (cyclomatic 54) · ×1
  • Model.aresponse_stream (cyclomatic 54) libs/agno/agno/models/base.py:1641 — Model.aresponse_stream has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._arun_stream (cyclomatic 54) · ×1
  • _run._arun_stream (cyclomatic 54) libs/agno/agno/team/_run.py:3579 — _run._arun_stream has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · claude.format_messages (cyclomatic 54) · ×1
  • claude.format_messages (cyclomatic 54) libs/agno/agno/utils/models/claude.py:451 — claude.format_messages has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.response_stream (cyclomatic 53) · ×1
  • Model.response_stream (cyclomatic 53) libs/agno/agno/models/base.py:1362 — Model.response_stream has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Message.log (cyclomatic 53) · ×1
  • Message.log (cyclomatic 53) libs/agno/agno/models/message.py:350 — Message.log has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Function.process_entrypoint (cyclomatic 53) · ×1
  • Function.process_entrypoint (cyclomatic 53) libs/agno/agno/tools/function.py:401 — Function.process_entrypoint has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Loop.execute_stream (cyclomatic 53) · ×1
  • Loop.execute_stream (cyclomatic 53) libs/agno/agno/workflow/loop.py:584 — Loop.execute_stream has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Loop.aexecute_stream (cyclomatic 53) · ×1
  • Loop.aexecute_stream (cyclomatic 53) libs/agno/agno/workflow/loop.py:977 — Loop.aexecute_stream has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.response (cyclomatic 52) · ×1
  • Model.response (cyclomatic 52) libs/agno/agno/models/base.py:650 — Model.response has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.aresponse (cyclomatic 52) · ×1
  • Model.aresponse (cyclomatic 52) libs/agno/agno/models/base.py:881 — Model.aresponse has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini._parse_provider_response_delta (cyclomatic 52) · ×1
  • Gemini._parse_provider_response_delta (cyclomatic 52) libs/agno/agno/models/google/gemini.py:1302 — Gemini._parse_provider_response_delta has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DbCluster._update (cyclomatic 52) · ×1
  • DbCluster._update (cyclomatic 52) libs/agno_infra/agno/aws/resource/rds/db_cluster.py:621 — DbCluster._update has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Claude._parse_provider_response_delta (cyclomatic 51) · ×1
  • Claude._parse_provider_response_delta (cyclomatic 51) libs/agno/agno/models/anthropic/claude.py:1093 — Claude._parse_provider_response_delta has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.get_system_message (cyclomatic 51) · ×1
  • _messages.get_system_message (cyclomatic 51) libs/agno/agno/team/_messages.py:357 — _messages.get_system_message has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.aget_system_message (cyclomatic 51) · ×1
  • _messages.aget_system_message (cyclomatic 51) libs/agno/agno/team/_messages.py:604 — _messages.aget_system_message has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AwsResources.create_resources (cyclomatic 50) · ×1
  • AwsResources.create_resources (cyclomatic 50) libs/agno_infra/agno/aws/resources.py:73 — AwsResources.create_resources has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DockerResources.create_resources (cyclomatic 49) · ×1
  • DockerResources.create_resources (cyclomatic 49) libs/agno_infra/agno/docker/resources.py:31 — DockerResources.create_resources has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini._format_messages (cyclomatic 48) · ×1
  • Gemini._format_messages (cyclomatic 48) libs/agno/agno/models/google/gemini.py:768 — Gemini._format_messages has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GoogleToolkit._resolve_creds (cyclomatic 48) · ×1
  • GoogleToolkit._resolve_creds (cyclomatic 48) libs/agno/agno/tools/google/base.py:173 — GoogleToolkit._resolve_creds has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentResponse.from_agent (cyclomatic 47) · ×1
  • AgentResponse.from_agent (cyclomatic 47) libs/agno/agno/os/routers/agents/schema.py:70 — AgentResponse.from_agent has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._run_tasks_stream (cyclomatic 47) · ×1
  • _run._run_tasks_stream (cyclomatic 47) libs/agno/agno/team/_run.py:546 — _run._run_tasks_stream has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · connect._connect_one (cyclomatic 47) · ×1
  • connect._connect_one (cyclomatic 47) libs/agnoctl/agnoctl/commands/connect.py:711 — connect._connect_one has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Claude._parse_provider_response (cyclomatic 46) · ×1
  • Claude._parse_provider_response (cyclomatic 46) libs/agno/agno/models/anthropic/claude.py:950 — Claude._parse_provider_response has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · gemini.convert_schema (cyclomatic 46) · ×1
  • gemini.convert_schema (cyclomatic 46) libs/agno/agno/utils/gemini.py:206 — gemini.convert_schema has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AwsResources.delete_resources (cyclomatic 46) · ×1
  • AwsResources.delete_resources (cyclomatic 46) libs/agno_infra/agno/aws/resources.py:236 — AwsResources.delete_resources has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · trace_to_database.run_trace_demo (cyclomatic 45) · ×1
  • trace_to_database.run_trace_demo (cyclomatic 45) cookbook/observability/trace_to_database.py:43 — trace_to_database.run_trace_demo has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb._get_collection (cyclomatic 45) · ×1
  • AsyncMongoDb._get_collection (cyclomatic 45) libs/agno/agno/db/mongo/async_mongo.py:369 — AsyncMongoDb._get_collection has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AuthMiddleware.dispatch (cyclomatic 45) · ×1
  • AuthMiddleware.dispatch (cyclomatic 45) libs/agno/agno/os/middleware/jwt.py:912 — AuthMiddleware.dispatch has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TeamSession.get_messages (cyclomatic 45) · ×1
  • TeamSession.get_messages (cyclomatic 45) libs/agno/agno/session/team.py:114 — TeamSession.get_messages has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agent.print_response_stream (cyclomatic 45) · ×1
  • agent.print_response_stream (cyclomatic 45) libs/agno/agno/utils/print_response/agent.py:27 — agent.print_response_stream has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.get_user_message (cyclomatic 44) · ×1
  • _messages.get_user_message (cyclomatic 44) libs/agno/agno/agent/_messages.py:868 — _messages.get_user_message has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.aget_user_message (cyclomatic 44) · ×1
  • _messages.aget_user_message (cyclomatic 44) libs/agno/agno/agent/_messages.py:1033 — _messages.aget_user_message has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._arun (cyclomatic 44) · ×1
  • _run._arun (cyclomatic 44) libs/agno/agno/agent/_run.py:1475 — _run._arun has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GeminiInteractions._get_request_kwargs (cyclomatic 44) · ×1
  • GeminiInteractions._get_request_kwargs (cyclomatic 44) libs/agno/agno/models/google/gemini_interactions.py:447 — GeminiInteractions._get_request_kwargs has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GmailTools.__init__ (cyclomatic 44) · ×1
  • GmailTools.__init__ (cyclomatic 44) libs/agno/agno/tools/google/gmail.py:140 — GmailTools.__init__ has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agent.aprint_response_stream (cyclomatic 44) · ×1
  • agent.aprint_response_stream (cyclomatic 44) libs/agno/agno/utils/print_response/agent.py:232 — agent.aprint_response_stream has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AwsResources.update_resources (cyclomatic 44) · ×1
  • AwsResources.update_resources (cyclomatic 44) libs/agno_infra/agno/aws/resources.py:391 — AwsResources.update_resources has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DockerResources.delete_resources (cyclomatic 44) · ×1
  • DockerResources.delete_resources (cyclomatic 44) libs/agno_infra/agno/docker/resources.py:191 — DockerResources.delete_resources has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FakeAgentOS.handler (cyclomatic 44) · ×1
  • FakeAgentOS.handler (cyclomatic 44) libs/agnoctl/tests/conftest.py:137 — FakeAgentOS.handler has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.upsert_sessions (cyclomatic 43) · ×1
  • PostgresDb.upsert_sessions (cyclomatic 43) libs/agno/agno/db/postgres/postgres.py:1186 — PostgresDb.upsert_sessions has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ReliabilityEval._evaluate (cyclomatic 43) · ×1
  • ReliabilityEval._evaluate (cyclomatic 43) libs/agno/agno/eval/reliability.py:112 — ReliabilityEval._evaluate has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Message.from_dict (cyclomatic 43) · ×1
  • Message.from_dict (cyclomatic 43) libs/agno/agno/models/message.py:148 — Message.from_dict has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentOS.get_app (cyclomatic 43) · ×1
  • AgentOS.get_app (cyclomatic 43) libs/agno/agno/os/app.py:998 — AgentOS.get_app has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._run_stream (cyclomatic 43) · ×1
  • _run._run_stream (cyclomatic 43) libs/agno/agno/team/_run.py:1396 — _run._run_stream has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DockerResources.update_resources (cyclomatic 43) · ×1
  • DockerResources.update_resources (cyclomatic 43) libs/agno_infra/agno/docker/resources.py:355 — DockerResources.update_resources has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · connect._report (cyclomatic 43) · ×1
  • connect._report (cyclomatic 43) libs/agnoctl/agnoctl/commands/connect.py:868 — connect._report has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamoDb.get_sessions (cyclomatic 42) · ×1
  • DynamoDb.get_sessions (cyclomatic 42) libs/agno/agno/db/dynamo/dynamo.py:334 — DynamoDb.get_sessions has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ReasoningManager.stream_native_reasoning (cyclomatic 42) · ×1
  • ReasoningManager.stream_native_reasoning (cyclomatic 42) libs/agno/agno/reasoning/manager.py:354 — ReasoningManager.stream_native_reasoning has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ReasoningManager.astream_native_reasoning (cyclomatic 42) · ×1
  • ReasoningManager.astream_native_reasoning (cyclomatic 42) libs/agno/agno/reasoning/manager.py:570 — ReasoningManager.astream_native_reasoning has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SecurityGroup.add_inbound_rules (cyclomatic 42) · ×1
  • SecurityGroup.add_inbound_rules (cyclomatic 42) libs/agno_infra/agno/aws/resource/ec2/security_group.py:330 — SecurityGroup.add_inbound_rules has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.get_run_messages (cyclomatic 41) · ×1
  • _messages.get_run_messages (cyclomatic 41) libs/agno/agno/agent/_messages.py:1203 — _messages.get_run_messages has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.aget_run_messages (cyclomatic 41) · ×1
  • _messages.aget_run_messages (cyclomatic 41) libs/agno/agno/agent/_messages.py:1409 — _messages.aget_run_messages has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages._get_user_message (cyclomatic 41) · ×1
  • _messages._get_user_message (cyclomatic 41) libs/agno/agno/team/_messages.py:1120 — _messages._get_user_message has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages._aget_user_message (cyclomatic 41) · ×1
  • _messages._aget_user_message (cyclomatic 41) libs/agno/agno/team/_messages.py:1278 — _messages._aget_user_message has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.parse_tools (cyclomatic 40) · ×1
  • _tools.parse_tools (cyclomatic 40) libs/agno/agno/agent/_tools.py:346 — _tools.parse_tools has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini.get_request_params (cyclomatic 40) · ×1
  • Gemini.get_request_params (cyclomatic 40) libs/agno/agno/models/google/gemini.py:277 — Gemini.get_request_params has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkflowRunOutput.to_dict (cyclomatic 40) · ×1
  • WorkflowRunOutput.to_dict (cyclomatic 40) libs/agno/agno/run/workflow.py:823 — WorkflowRunOutput.to_dict has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agent.build_panels (cyclomatic 40) · ×1
  • agent.build_panels (cyclomatic 40) libs/agno/agno/utils/print_response/agent.py:787 — agent.build_panels has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EcsContainer.get_container_definition (cyclomatic 40) · ×1
  • EcsContainer.get_container_definition (cyclomatic 40) libs/agno_infra/agno/aws/resource/ecs/container.py:93 — EcsContainer.get_container_definition has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunOutput.to_dict (cyclomatic 39) · ×1
  • RunOutput.to_dict (cyclomatic 39) libs/agno/agno/run/agent.py:714 — RunOutput.to_dict has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SuperserveTools.__init__ (cyclomatic 39) · ×1
  • SuperserveTools.__init__ (cyclomatic 39) libs/agno/agno/tools/superserve.py:62 — SuperserveTools.__init__ has cyclomatic complexity 39 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SecurityGroup.add_outbound_rules (cyclomatic 39) · ×1
  • SecurityGroup.add_outbound_rules (cyclomatic 39) libs/agno_infra/agno/aws/resource/ec2/security_group.py:465 — SecurityGroup.add_outbound_rules has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CacheCluster._create (cyclomatic 39) · ×1
  • CacheCluster._create (cyclomatic 39) libs/agno_infra/agno/aws/resource/elasticache/cluster.py:131 — CacheCluster._create has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · infra_cli.up (cyclomatic 39) · ×1
  • infra_cli.up (cyclomatic 39) libs/agno_infra/agno/cli/infra_cli.py:81 — infra_cli.up has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · infra_cli.down (cyclomatic 39) · ×1
  • infra_cli.down (cyclomatic 39) libs/agno_infra/agno/cli/infra_cli.py:279 — infra_cli.down has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._continue_run_stream (cyclomatic 38) · ×1
  • _run._continue_run_stream (cyclomatic 38) libs/agno/agno/agent/_run.py:3809 — _run._continue_run_stream has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils._eval_filter_expr (cyclomatic 38) · ×1
  • utils._eval_filter_expr (cyclomatic 38) libs/agno/agno/db/valkey/utils.py:225 — utils._eval_filter_expr has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.run_function_call (cyclomatic 38) · ×1
  • Model.run_function_call (cyclomatic 38) libs/agno/agno/models/base.py:2133 — Model.run_function_call has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses._format_messages (cyclomatic 38) · ×1
  • OpenAIResponses._format_messages (cyclomatic 38) libs/agno/agno/models/openai/responses.py:585 — OpenAIResponses._format_messages has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GoogleSlidesTools.__init__ (cyclomatic 38) · ×1
  • GoogleSlidesTools.__init__ (cyclomatic 38) libs/agno/agno/tools/google/slides.py:87 — GoogleSlidesTools.__init__ has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SlackTools.__init__ (cyclomatic 38) · ×1
  • SlackTools.__init__ (cyclomatic 38) libs/agno/agno/tools/slack.py:141 — SlackTools.__init__ has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · filters.from_dict (cyclomatic 37) · ×1
  • filters.from_dict (cyclomatic 37) libs/agno/agno/filters.py:397 — filters.from_dict has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._aload_from_url (cyclomatic 37) · ×1
  • Knowledge._aload_from_url (cyclomatic 37) libs/agno/agno/knowledge/knowledge.py:1511 — Knowledge._aload_from_url has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._load_from_url (cyclomatic 37) · ×1
  • Knowledge._load_from_url (cyclomatic 37) libs/agno/agno/knowledge/knowledge.py:1663 — Knowledge._load_from_url has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.get_request_kwargs (cyclomatic 37) · ×1
  • utils.get_request_kwargs (cyclomatic 37) libs/agno/agno/os/utils.py:59 — utils.get_request_kwargs has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TeamRunOutput.to_dict (cyclomatic 37) · ×1
  • TeamRunOutput.to_dict (cyclomatic 37) libs/agno/agno/run/team.py:829 — TeamRunOutput.to_dict has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._route_requirements_to_members_stream (cyclomatic 37) · ×1
  • _run._route_requirements_to_members_stream (cyclomatic 37) libs/agno/agno/team/_run.py:5495 — _run._route_requirements_to_members_stream has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._aroute_requirements_to_members_stream (cyclomatic 37) · ×1
  • _run._aroute_requirements_to_members_stream (cyclomatic 37) libs/agno/agno/team/_run.py:5739 — _run._aroute_requirements_to_members_stream has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _storage.from_dict (cyclomatic 37) · ×1
  • _storage.from_dict (cyclomatic 37) libs/agno/agno/team/_storage.py:731 — _storage.from_dict has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Router.execute_stream (cyclomatic 37) · ×1
  • Router.execute_stream (cyclomatic 37) libs/agno/agno/workflow/router.py:815 — Router.execute_stream has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Router.aexecute_stream (cyclomatic 37) · ×1
  • Router.aexecute_stream (cyclomatic 37) libs/agno/agno/workflow/router.py:1140 — Router.aexecute_stream has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EcsService._create (cyclomatic 37) · ×1
  • EcsService._create (cyclomatic 37) libs/agno_infra/agno/aws/resource/ecs/service.py:121 — EcsService._create has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DockerImage.build_image (cyclomatic 37) · ×1
  • DockerImage.build_image (cyclomatic 37) libs/agno_infra/agno/docker/resource/image.py:169 — DockerImage.build_image has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · disconnect._disconnect (cyclomatic 37) · ×1
  • disconnect._disconnect (cyclomatic 37) libs/agnoctl/agnoctl/commands/disconnect.py:108 — disconnect._disconnect has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._run (cyclomatic 36) · ×1
  • _run._run (cyclomatic 36) libs/agno/agno/agent/_run.py:340 — _run._run has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.upsert_sessions (cyclomatic 36) · ×1
  • ValkeyDb.upsert_sessions (cyclomatic 36) libs/agno/agno/db/valkey/valkey.py:767 — ValkeyDb.upsert_sessions has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RemoteDb.from_config (cyclomatic 36) · ×1
  • RemoteDb.from_config (cyclomatic 36) libs/agno/agno/remote/base.py:61 — RemoteDb.from_config has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentSession.get_messages (cyclomatic 36) · ×1
  • AgentSession.get_messages (cyclomatic 36) libs/agno/agno/session/agent.py:115 — AgentSession.get_messages has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · streamlit.session_selector_widget (cyclomatic 36) · ×1
  • streamlit.session_selector_widget (cyclomatic 36) libs/agno/agno/utils/streamlit.py:57 — streamlit.session_selector_widget has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Parallel.execute_stream (cyclomatic 36) · ×1
  • Parallel.execute_stream (cyclomatic 36) libs/agno/agno/workflow/parallel.py:427 — Parallel.execute_stream has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model._populate_stream_data (cyclomatic 35) · ×1
  • Model._populate_stream_data (cyclomatic 35) libs/agno/agno/models/base.py:1921 — Model._populate_stream_data has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentOS._auto_discover_databases (cyclomatic 35) · ×1
  • AgentOS._auto_discover_databases (cyclomatic 35) libs/agno/agno/os/app.py:1563 — AgentOS._auto_discover_databases has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._arun_tasks (cyclomatic 35) · ×1
  • _run._arun_tasks (cyclomatic 35) libs/agno/agno/team/_run.py:2059 — _run._arun_tasks has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._continue_run_stream (cyclomatic 35) · ×1
  • _run._continue_run_stream (cyclomatic 35) libs/agno/agno/team/_run.py:7266 — _run._continue_run_stream has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb._get_collection (cyclomatic 34) · ×1
  • MongoDb._get_collection (cyclomatic 34) libs/agno/agno/db/mongo/mongo.py:172 — MongoDb._get_collection has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb._create_table (cyclomatic 34) · ×1
  • PostgresDb._create_table (cyclomatic 34) libs/agno/agno/db/postgres/postgres.py:283 — PostgresDb._create_table has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · json_schema.get_json_schema_for_arg (cyclomatic 34) · ×1
  • json_schema.get_json_schema_for_arg (cyclomatic 34) libs/agno/agno/utils/json_schema.py:120 — json_schema.get_json_schema_for_arg has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ClaudeAgent._arun_adapter_stream (cyclomatic 33) · ×1
  • ClaudeAgent._arun_adapter_stream (cyclomatic 33) libs/agno/agno/agents/claude/agent.py:171 — ClaudeAgent._arun_adapter_stream has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MySQLDb.upsert_sessions (cyclomatic 33) · ×1
  • MySQLDb.upsert_sessions (cyclomatic 33) libs/agno/agno/db/mysql/mysql.py:881 — MySQLDb.upsert_sessions has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb.upsert_sessions (cyclomatic 33) · ×1
  • AsyncSqliteDb.upsert_sessions (cyclomatic 33) libs/agno/agno/db/sqlite/async_sqlite.py:937 — AsyncSqliteDb.upsert_sessions has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb._create_table (cyclomatic 33) · ×1
  • SqliteDb._create_table (cyclomatic 33) libs/agno/agno/db/sqlite/sqlite.py:271 — SqliteDb._create_table has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.upsert_sessions (cyclomatic 33) · ×1
  • SqliteDb.upsert_sessions (cyclomatic 33) libs/agno/agno/db/sqlite/sqlite.py:1129 — SqliteDb.upsert_sessions has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runner._isolate_attempt (cyclomatic 33) · ×1
  • runner._isolate_attempt (cyclomatic 33) libs/agno/agno/environments/runner.py:764 — runner._isolate_attempt has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses._parse_provider_response_delta (cyclomatic 33) · ×1
  • OpenAIResponses._parse_provider_response_delta (cyclomatic 33) libs/agno/agno/models/openai/responses.py:1258 — OpenAIResponses._parse_provider_response_delta has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · router._resume_stream_generator (cyclomatic 33) · ×1
  • router._resume_stream_generator (cyclomatic 33) libs/agno/agno/os/routers/workflows/router.py:805 — router._resume_stream_generator has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TelegramTools.__init__ (cyclomatic 33) · ×1
  • TelegramTools.__init__ (cyclomatic 33) libs/agno/agno/tools/telegram.py:41 — TelegramTools.__init__ has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · message.reformat_tool_call_ids (cyclomatic 33) · ×1
  • message.reformat_tool_call_ids (cyclomatic 33) libs/agno/agno/utils/message.py:181 — message.reformat_tool_call_ids has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ChromaDb._build_search_results (cyclomatic 33) · ×1
  • ChromaDb._build_search_results (cyclomatic 33) libs/agno/agno/vectordb/chroma/chromadb.py:990 — ChromaDb._build_search_results has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._deep_copy_single_step (cyclomatic 33) · ×1
  • Workflow._deep_copy_single_step (cyclomatic 33) libs/agno/agno/workflow/workflow.py:10594 — Workflow._deep_copy_single_step has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AwsApp.build_resources (cyclomatic 33) · ×1
  • AwsApp.build_resources (cyclomatic 33) libs/agno_infra/agno/aws/app/base.py:614 — AwsApp.build_resources has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIChat._parse_provider_response (cyclomatic 32) · ×1
  • OpenAIChat._parse_provider_response (cyclomatic 32) libs/agno/agno/models/openai/chat.py:803 — OpenAIChat._parse_provider_response has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._arun (cyclomatic 32) · ×1
  • _run._arun (cyclomatic 32) libs/agno/agno/team/_run.py:2953 — _run._arun has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Steps.execute_stream (cyclomatic 32) · ×1
  • Steps.execute_stream (cyclomatic 32) libs/agno/agno/workflow/steps.py:369 — Steps.execute_stream has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Steps.aexecute_stream (cyclomatic 32) · ×1
  • Steps.aexecute_stream (cyclomatic 32) libs/agno/agno/workflow/steps.py:662 — Steps.aexecute_stream has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InfraApp.add_app_properties_to_resources (cyclomatic 32) · ×1
  • InfraApp.add_app_properties_to_resources (cyclomatic 32) libs/agno_infra/agno/base/app.py:115 — InfraApp.add_app_properties_to_resources has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · suite._run_case_body (cyclomatic 31) · ×1
  • suite._run_case_body (cyclomatic 31) libs/agno/agno/eval/suite.py:317 — suite._run_case_body has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AwsBedrock._format_messages (cyclomatic 31) · ×1
  • AwsBedrock._format_messages (cyclomatic 31) libs/agno/agno/models/aws/bedrock.py:280 — AwsBedrock._format_messages has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LiteLLM._format_messages (cyclomatic 31) · ×1
  • LiteLLM._format_messages (cyclomatic 31) libs/agno/agno/models/litellm/chat.py:129 — LiteLLM._format_messages has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIChat._parse_provider_response_delta (cyclomatic 31) · ×1
  • OpenAIChat._parse_provider_response_delta (cyclomatic 31) libs/agno/agno/models/openai/chat.py:904 — OpenAIChat._parse_provider_response_delta has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MCPTools.__init__ (cyclomatic 31) · ×1
  • MCPTools.__init__ (cyclomatic 31) libs/agno/agno/tools/mcp/mcp.py:41 — MCPTools.__init__ has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · 03_step_user_input_streaming.run_workflow_streaming (cyclomatic 30) · ×1
  • 03_step_user_input_streaming.run_workflow_streaming (cyclomatic 30) cookbook/04_workflows/08_human_in_the_loop/user_input/03_step_user_input_streaming.py:166 — 03_step_user_input_streaming.run_workflow_streaming has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AntigravityAgent._translate_sse_event (cyclomatic 30) · ×1
  • AntigravityAgent._translate_sse_event (cyclomatic 30) libs/agno/agno/agents/antigravity/agent.py:480 — AntigravityAgent._translate_sse_event has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · filter_converter.filter_expr_to_sqlalchemy (cyclomatic 30) · ×1
  • filter_converter.filter_expr_to_sqlalchemy (cyclomatic 30) libs/agno/agno/db/filter_converter.py:63 — filter_converter.filter_expr_to_sqlalchemy has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GcsJsonDb.get_sessions (cyclomatic 30) · ×1
  • GcsJsonDb.get_sessions (cyclomatic 30) libs/agno/agno/db/gcs_json/gcs_json_db.py:266 — GcsJsonDb.get_sessions has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GcsJsonDb.get_trace_stats (cyclomatic 30) · ×1
  • GcsJsonDb.get_trace_stats (cyclomatic 30) libs/agno/agno/db/gcs_json/gcs_json_db.py:1625 — GcsJsonDb.get_trace_stats has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InMemoryDb.get_sessions (cyclomatic 30) · ×1
  • InMemoryDb.get_sessions (cyclomatic 30) libs/agno/agno/db/in_memory/in_memory_db.py:153 — InMemoryDb.get_sessions has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JsonDb.get_sessions (cyclomatic 30) · ×1
  • JsonDb.get_sessions (cyclomatic 30) libs/agno/agno/db/json/json_db.py:248 — JsonDb.get_sessions has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMySQLDb.upsert_sessions (cyclomatic 30) · ×1
  • AsyncMySQLDb.upsert_sessions (cyclomatic 30) libs/agno/agno/db/mysql/async_mysql.py:900 — AsyncMySQLDb.upsert_sessions has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.upsert_config (cyclomatic 30) · ×1
  • PostgresDb.upsert_config (cyclomatic 30) libs/agno/agno/db/postgres/postgres.py:4081 — PostgresDb.upsert_config has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.upsert_config (cyclomatic 30) · ×1
  • SqliteDb.upsert_config (cyclomatic 30) libs/agno/agno/db/sqlite/sqlite.py:3967 — SqliteDb.upsert_config has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._aprocess_lightrag_content (cyclomatic 30) · ×1
  • Knowledge._aprocess_lightrag_content (cyclomatic 30) libs/agno/agno/knowledge/knowledge.py:2630 — Knowledge._aprocess_lightrag_content has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._process_lightrag_content (cyclomatic 30) · ×1
  • Knowledge._process_lightrag_content (cyclomatic 30) libs/agno/agno/knowledge/knowledge.py:2787 — Knowledge._process_lightrag_content has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WebsiteReader.crawl (cyclomatic 30) · ×1
  • WebsiteReader.crawl (cyclomatic 30) libs/agno/agno/knowledge/reader/website_reader.py:153 — WebsiteReader.crawl has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · router.handle_workflow_subscription (cyclomatic 30) · ×1
  • router.handle_workflow_subscription (cyclomatic 30) libs/agno/agno/os/routers/workflows/router.py:217 — router.handle_workflow_subscription has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkflowSession.get_messages_from_team_runs (cyclomatic 30) · ×1
  • WorkflowSession.get_messages_from_team_runs (cyclomatic 30) libs/agno/agno/session/workflow.py:321 — WorkflowSession.get_messages_from_team_runs has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SalesforceTools.__init__ (cyclomatic 30) · ×1
  • SalesforceTools.__init__ (cyclomatic 30) libs/agno/agno/tools/salesforce.py:50 — SalesforceTools.__init__ has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · A2AClient._parse_stream_event (cyclomatic 29) · ×1
  • A2AClient._parse_stream_event (cyclomatic 29) libs/agno/agno/client/a2a/client.py:231 — A2AClient._parse_stream_event has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleStoreDb.upsert_sessions (cyclomatic 29) · ×1
  • SingleStoreDb.upsert_sessions (cyclomatic 29) libs/agno/agno/db/singlestore/singlestore.py:958 — SingleStoreDb.upsert_sessions has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemoryStore._apply_remember (cyclomatic 29) · ×1
  • EntityMemoryStore._apply_remember (cyclomatic 29) libs/agno/agno/learn/stores/entity_memory.py:1551 — EntityMemoryStore._apply_remember has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunMetrics.__add__ (cyclomatic 29) · ×1
  • RunMetrics.__add__ (cyclomatic 29) libs/agno/agno/metrics.py:336 — RunMetrics.__add__ has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses._parse_provider_response (cyclomatic 29) · ×1
  • OpenAIResponses._parse_provider_response (cyclomatic 29) libs/agno/agno/models/openai/responses.py:1162 — OpenAIResponses._parse_provider_response has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · input.extract_media (cyclomatic 29) · ×1
  • input.extract_media (cyclomatic 29) libs/agno/agno/os/interfaces/agui/input.py:33 — input.extract_media has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RedmineTools.__init__ (cyclomatic 29) · ×1
  • RedmineTools.__init__ (cyclomatic 29) libs/agno/agno/tools/redmine.py:15 — RedmineTools.__init__ has cyclomatic complexity 29 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · message.get_text_from_message (cyclomatic 29) · ×1
  • message.get_text_from_message (cyclomatic 29) libs/agno/agno/utils/message.py:281 — message.get_text_from_message has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ChromaDb._hybrid_search (cyclomatic 29) · ×1
  • ChromaDb._hybrid_search (cyclomatic 29) libs/agno/agno/vectordb/chroma/chromadb.py:805 — ChromaDb._hybrid_search has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step._execute_nested_workflow_stream_inner (cyclomatic 29) · ×1
  • Step._execute_nested_workflow_stream_inner (cyclomatic 29) libs/agno/agno/workflow/step.py:2496 — Step._execute_nested_workflow_stream_inner has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step._aexecute_nested_workflow_stream_inner (cyclomatic 29) · ×1
  • Step._aexecute_nested_workflow_stream_inner (cyclomatic 29) libs/agno/agno/workflow/step.py:2766 — Step._aexecute_nested_workflow_stream_inner has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EcsService._update (cyclomatic 29) · ×1
  • EcsService._update (cyclomatic 29) libs/agno_infra/agno/aws/resource/ecs/service.py:335 — EcsService._update has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.aget_relevant_docs_from_knowledge (cyclomatic 28) · ×1
  • _messages.aget_relevant_docs_from_knowledge (cyclomatic 28) libs/agno/agno/agent/_messages.py:1889 — _messages.aget_relevant_docs_from_knowledge has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.get_traces (cyclomatic 28) · ×1
  • ValkeyDb.get_traces (cyclomatic 28) libs/agno/agno/db/valkey/valkey.py:2214 — ValkeyDb.get_traces has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AccuracyEval.run (cyclomatic 28) · ×1
  • AccuracyEval.run (cyclomatic 28) libs/agno/agno/eval/accuracy.py:352 — AccuracyEval.run has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GeminiInteractions._build_input (cyclomatic 28) · ×1
  • GeminiInteractions._build_input (cyclomatic 28) libs/agno/agno/models/google/gemini_interactions.py:351 — GeminiInteractions._build_input has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses.get_request_params (cyclomatic 28) · ×1
  • OpenAIResponses.get_request_params (cyclomatic 28) libs/agno/agno/models/openai/responses.py:251 — OpenAIResponses.get_request_params has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkflowSession.get_messages_from_agent_runs (cyclomatic 28) · ×1
  • WorkflowSession.get_messages_from_agent_runs (cyclomatic 28) libs/agno/agno/session/workflow.py:216 — WorkflowSession.get_messages_from_agent_runs has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _default_tools.aget_relevant_docs_from_knowledge (cyclomatic 28) · ×1
  • _default_tools.aget_relevant_docs_from_knowledge (cyclomatic 28) libs/agno/agno/team/_default_tools.py:1725 — _default_tools.aget_relevant_docs_from_knowledge has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._run_tasks (cyclomatic 28) · ×1
  • _run._run_tasks (cyclomatic 28) libs/agno/agno/team/_run.py:224 — _run._run_tasks has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GithubTools.get_repository_with_stats (cyclomatic 28) · ×1
  • GithubTools.get_repository_with_stats (cyclomatic 28) libs/agno/agno/tools/github.py:993 — GithubTools.get_repository_with_stats has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · workflow.print_response (cyclomatic 28) · ×1
  • workflow.print_response (cyclomatic 28) libs/agno/agno/utils/print_response/workflow.py:44 — workflow.print_response has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · workflow.aprint_response (cyclomatic 28) · ×1
  • workflow.aprint_response (cyclomatic 28) libs/agno/agno/utils/print_response/workflow.py:886 — workflow.aprint_response has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ChromaDb._build_get_results (cyclomatic 28) · ×1
  • ChromaDb._build_get_results (cyclomatic 28) libs/agno/agno/vectordb/chroma/chromadb.py:1085 — ChromaDb._build_get_results has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Parallel.aexecute_stream (cyclomatic 28) · ×1
  • Parallel.aexecute_stream (cyclomatic 28) libs/agno/agno/workflow/parallel.py:773 — Parallel.aexecute_stream has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._handle_event (cyclomatic 28) · ×1
  • Workflow._handle_event (cyclomatic 28) libs/agno/agno/workflow/workflow.py:1696 — Workflow._handle_event has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EmrCluster._create (cyclomatic 28) · ×1
  • EmrCluster._create (cyclomatic 28) libs/agno_infra/agno/aws/resource/emr/cluster.py:87 — EmrCluster._create has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · infra_cli.patch (cyclomatic 28) · ×1
  • infra_cli.patch (cyclomatic 28) libs/agno_infra/agno/cli/infra_cli.py:467 — infra_cli.patch has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.aget_tools (cyclomatic 27) · ×1
  • _tools.aget_tools (cyclomatic 27) libs/agno/agno/agent/_tools.py:213 — _tools.aget_tools has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamoDb.get_traces (cyclomatic 27) · ×1
  • DynamoDb.get_traces (cyclomatic 27) libs/agno/agno/db/dynamo/dynamo.py:2374 — DynamoDb.get_traces has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GcsJsonDb.get_traces (cyclomatic 27) · ×1
  • GcsJsonDb.get_traces (cyclomatic 27) libs/agno/agno/db/gcs_json/gcs_json_db.py:1532 — GcsJsonDb.get_traces has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JsonDb.get_traces (cyclomatic 27) · ×1
  • JsonDb.get_traces (cyclomatic 27) libs/agno/agno/db/json/json_db.py:1513 — JsonDb.get_traces has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.upsert_memories (cyclomatic 27) · ×1
  • ValkeyDb.upsert_memories (cyclomatic 27) libs/agno/agno/db/valkey/valkey.py:1259 — ValkeyDb.upsert_memories has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AccuracyEval.arun (cyclomatic 27) · ×1
  • AccuracyEval.arun (cyclomatic 27) libs/agno/agno/eval/accuracy.py:501 — AccuracyEval.arun has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._aload_from_content (cyclomatic 27) · ×1
  • Knowledge._aload_from_content (cyclomatic 27) libs/agno/agno/knowledge/knowledge.py:1818 — Knowledge._aload_from_content has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._load_from_content (cyclomatic 27) · ×1
  • Knowledge._load_from_content (cyclomatic 27) libs/agno/agno/knowledge/knowledge.py:1924 — Knowledge._load_from_content has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DoclingReader.read (cyclomatic 27) · ×1
  • DoclingReader.read (cyclomatic 27) libs/agno/agno/knowledge/reader/docling_reader.py:177 — DoclingReader.read has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WebsiteReader.async_crawl (cyclomatic 27) · ×1
  • WebsiteReader.async_crawl (cyclomatic 27) libs/agno/agno/knowledge/reader/website_reader.py:288 — WebsiteReader.async_crawl has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini._format_file_for_message (cyclomatic 27) · ×1
  • Gemini._format_file_for_message (cyclomatic 27) libs/agno/agno/models/google/gemini.py:1043 — Gemini._format_file_for_message has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · approval._build_approval_dict (cyclomatic 27) · ×1
  • approval._build_approval_dict (cyclomatic 27) libs/agno/agno/run/approval.py:61 — approval._build_approval_dict has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseWorkflowRunOutputEvent.to_dict (cyclomatic 27) · ×1
  • BaseWorkflowRunOutputEvent.to_dict (cyclomatic 27) libs/agno/agno/run/workflow.py:102 — BaseWorkflowRunOutputEvent.to_dict has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response._update_run_response (cyclomatic 27) · ×1
  • _response._update_run_response (cyclomatic 27) libs/agno/agno/team/_response.py:922 — _response._update_run_response has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response._ahandle_model_response_stream (cyclomatic 27) · ×1
  • _response._ahandle_model_response_stream (cyclomatic 27) libs/agno/agno/team/_response.py:1166 — _response._ahandle_model_response_stream has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response._convert_response_to_structured_format (cyclomatic 27) · ×1
  • _response._convert_response_to_structured_format (cyclomatic 27) libs/agno/agno/team/_response.py:1688 — _response._convert_response_to_structured_format has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._route_requirements_to_members (cyclomatic 27) · ×1
  • _run._route_requirements_to_members (cyclomatic 27) libs/agno/agno/team/_run.py:5386 — _run._route_requirements_to_members has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agentos._normalize_eval_run (cyclomatic 27) · ×1
  • agentos._normalize_eval_run (cyclomatic 27) libs/agno/agno/tools/agentos.py:807 — agentos._normalize_eval_run has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Function.from_callable (cyclomatic 27) · ×1
  • Function.from_callable (cyclomatic 27) libs/agno/agno/tools/function.py:283 — Function.from_callable has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FunctionCall.aexecute (cyclomatic 27) · ×1
  • FunctionCall.aexecute (cyclomatic 27) libs/agno/agno/tools/function.py:1274 — FunctionCall.aexecute has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PubmedTools.parse_details (cyclomatic 27) · ×1
  • PubmedTools.parse_details (cyclomatic 27) libs/agno/agno/tools/pubmed.py:50 — PubmedTools.parse_details has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.filter_expr_to_clickhouse (cyclomatic 26) · ×1
  • utils.filter_expr_to_clickhouse (cyclomatic 26) libs/agno/agno/db/clickhouse/utils.py:175 — utils.filter_expr_to_clickhouse has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamoDb.get_trace_stats (cyclomatic 26) · ×1
  • DynamoDb.get_trace_stats (cyclomatic 26) libs/agno/agno/db/dynamo/dynamo.py:2541 — DynamoDb.get_trace_stats has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JsonDb.get_trace_stats (cyclomatic 26) · ×1
  • JsonDb.get_trace_stats (cyclomatic 26) libs/agno/agno/db/json/json_db.py:1606 — JsonDb.get_trace_stats has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMySQLDb.upsert_session (cyclomatic 26) · ×1
  • AsyncMySQLDb.upsert_session (cyclomatic 26) libs/agno/agno/db/mysql/async_mysql.py:712 — AsyncMySQLDb.upsert_session has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RedisDb.get_traces (cyclomatic 26) · ×1
  • RedisDb.get_traces (cyclomatic 26) libs/agno/agno/db/redis/redis.py:1880 — RedisDb.get_traces has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · runner.arun_rollouts (cyclomatic 26) · ×1
  • runner.arun_rollouts (cyclomatic 26) libs/agno/agno/environments/runner.py:953 — runner.arun_rollouts has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.collect_mcp_tools_from_workflow_step (cyclomatic 26) · ×1
  • utils.collect_mcp_tools_from_workflow_step (cyclomatic 26) libs/agno/agno/os/utils.py:1476 — utils.collect_mcp_tools_from_workflow_step has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseRunOutputEvent.from_dict (cyclomatic 26) · ×1
  • BaseRunOutputEvent.from_dict (cyclomatic 26) libs/agno/agno/run/base.py:208 — BaseRunOutputEvent.from_dict has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages._build_trailing_sections (cyclomatic 26) · ×1
  • _messages._build_trailing_sections (cyclomatic 26) libs/agno/agno/team/_messages.py:277 — _messages._build_trailing_sections has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response._handle_model_response_stream (cyclomatic 26) · ×1
  • _response._handle_model_response_stream (cyclomatic 26) libs/agno/agno/team/_response.py:1006 — _response._handle_model_response_stream has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._run (cyclomatic 26) · ×1
  • _run._run (cyclomatic 26) libs/agno/agno/team/_run.py:1037 — _run._run has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileGenerationTools.__init__ (cyclomatic 26) · ×1
  • FileGenerationTools.__init__ (cyclomatic 26) libs/agno/agno/tools/file_generation.py:94 — FileGenerationTools.__init__ has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · YouTools._format_results (cyclomatic 26) · ×1
  • YouTools._format_results (cyclomatic 26) libs/agno/agno/tools/youcom.py:180 — YouTools._format_results has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step.from_dict (cyclomatic 26) · ×1
  • Step.from_dict (cyclomatic 26) libs/agno/agno/workflow/step.py:304 — Step.from_dict has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · 02_error_retry_skip_streaming.main (cyclomatic 25) · ×1
  • 02_error_retry_skip_streaming.main (cyclomatic 25) cookbook/04_workflows/08_human_in_the_loop/error/02_error_retry_skip_streaming.py:111 — 02_error_retry_skip_streaming.main has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseDb.__init__ (cyclomatic 25) · ×1
  • BaseDb.__init__ (cyclomatic 25) libs/agno/agno/db/base.py:36 — BaseDb.__init__ has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · GcsJsonDb.get_eval_runs (cyclomatic 25) · ×1
  • GcsJsonDb.get_eval_runs (cyclomatic 25) libs/agno/agno/db/gcs_json/gcs_json_db.py:1115 — GcsJsonDb.get_eval_runs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InMemoryDb.get_eval_runs (cyclomatic 25) · ×1
  • InMemoryDb.get_eval_runs (cyclomatic 25) libs/agno/agno/db/in_memory/in_memory_db.py:998 — InMemoryDb.get_eval_runs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JsonDb.get_eval_runs (cyclomatic 25) · ×1
  • JsonDb.get_eval_runs (cyclomatic 25) libs/agno/agno/db/json/json_db.py:1157 — JsonDb.get_eval_runs has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb.upsert_sessions (cyclomatic 25) · ×1
  • AsyncMongoDb.upsert_sessions (cyclomatic 25) libs/agno/agno/db/mongo/async_mongo.py:970 — AsyncMongoDb.upsert_sessions has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb.upsert_sessions (cyclomatic 25) · ×1
  • MongoDb.upsert_sessions (cyclomatic 25) libs/agno/agno/db/mongo/mongo.py:758 — MongoDb.upsert_sessions has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.deserialize_session_json_fields (cyclomatic 25) · ×1
  • utils.deserialize_session_json_fields (cyclomatic 25) libs/agno/agno/db/utils.py:320 — utils.deserialize_session_json_fields has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · ValkeyDb.get_trace_stats (cyclomatic 25) · ×1
  • ValkeyDb.get_trace_stats (cyclomatic 25) libs/agno/agno/db/valkey/valkey.py:2315 — ValkeyDb.get_trace_stats has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemory.get_context_text (cyclomatic 25) · ×1
  • EntityMemory.get_context_text (cyclomatic 25) libs/agno/agno/learn/schemas.py:815 — EntityMemory.get_context_text has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemoryStore._format_entity_hit (cyclomatic 25) · ×1
  • EntityMemoryStore._format_entity_hit (cyclomatic 25) libs/agno/agno/learn/stores/entity_memory.py:1988 — EntityMemoryStore._format_entity_hit has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model._populate_assistant_message (cyclomatic 25) · ×1
  • Model._populate_assistant_message (cyclomatic 25) libs/agno/agno/models/base.py:1242 — Model._populate_assistant_message has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.map_run_output_to_a2a_task (cyclomatic 25) · ×1
  • utils.map_run_output_to_a2a_task (cyclomatic 25) libs/agno/agno/os/interfaces/a2a/utils.py:195 — utils.map_run_output_to_a2a_task has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · helpers.upload_and_send_media_async (cyclomatic 25) · ×1
  • helpers.upload_and_send_media_async (cyclomatic 25) libs/agno/agno/os/interfaces/whatsapp/helpers.py:359 — helpers.upload_and_send_media_async has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JWTValidator.validate_token (cyclomatic 25) · ×1
  • JWTValidator.validate_token (cyclomatic 25) libs/agno/agno/os/middleware/jwt.py:239 — JWTValidator.validate_token has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WorkflowRunOutput.from_dict (cyclomatic 25) · ×1
  • WorkflowRunOutput.from_dict (cyclomatic 25) libs/agno/agno/run/workflow.py:936 — WorkflowRunOutput.from_dict has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ScheduleExecutor.execute (cyclomatic 25) · ×1
  • ScheduleExecutor.execute (cyclomatic 25) libs/agno/agno/scheduler/executor.py:75 — ScheduleExecutor.execute has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _init.__init__ (cyclomatic 25) · ×1
  • _init.__init__ (cyclomatic 25) libs/agno/agno/team/_init.py:63 — _init.__init__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MCPTools._connect (cyclomatic 25) · ×1
  • MCPTools._connect (cyclomatic 25) libs/agno/agno/tools/mcp/mcp.py:585 — MCPTools._connect has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ParallelTools.parallel_extract (cyclomatic 25) · ×1
  • ParallelTools.parallel_extract (cyclomatic 25) libs/agno/agno/tools/parallel.py:216 — ParallelTools.parallel_extract has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workspace.list_files (cyclomatic 25) · ×1
  • Workspace.list_files (cyclomatic 25) libs/agno/agno/tools/workspace.py:459 — Workspace.list_files has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · agent.build_panels_stream (cyclomatic 25) · ×1
  • agent.build_panels_stream (cyclomatic 25) libs/agno/agno/utils/print_response/agent.py:437 — agent.build_panels_stream has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EcsTaskDefinition._create (cyclomatic 25) · ×1
  • EcsTaskDefinition._create (cyclomatic 25) libs/agno_infra/agno/aws/resource/ecs/task_definition.py:95 — EcsTaskDefinition._create has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.get_relevant_docs_from_knowledge (cyclomatic 24) · ×1
  • _messages.get_relevant_docs_from_knowledge (cyclomatic 24) libs/agno/agno/agent/_messages.py:1790 — _messages.get_relevant_docs_from_knowledge has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response.ahandle_model_response_stream (cyclomatic 24) · ×1
  • _response.ahandle_model_response_stream (cyclomatic 24) libs/agno/agno/agent/_response.py:1208 — _response.ahandle_model_response_stream has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseExternalAgent.print_response (cyclomatic 24) · ×1
  • BaseExternalAgent.print_response (cyclomatic 24) libs/agno/agno/agents/base.py:135 — BaseExternalAgent.print_response has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseExternalAgent.aprint_response (cyclomatic 24) · ×1
  • BaseExternalAgent.aprint_response (cyclomatic 24) libs/agno/agno/agents/base.py:256 — BaseExternalAgent.aprint_response has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · BaseExternalAgent._arun_stream (cyclomatic 24) · ×1
  • BaseExternalAgent._arun_stream (cyclomatic 24) libs/agno/agno/agents/base.py:622 — BaseExternalAgent._arun_stream has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FirestoreDb.get_sessions (cyclomatic 24) · ×1
  • FirestoreDb.get_sessions (cyclomatic 24) libs/agno/agno/db/firestore/firestore.py:361 — FirestoreDb.get_sessions has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleStoreDb._create_table (cyclomatic 24) · ×1
  • SingleStoreDb._create_table (cyclomatic 24) libs/agno/agno/db/singlestore/singlestore.py:200 — SingleStoreDb._create_table has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model.run_function_calls (cyclomatic 24) · ×1
  • Model.run_function_calls (cyclomatic 24) libs/agno/agno/models/base.py:2313 — Model.run_function_calls has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _default_tools.get_relevant_docs_from_knowledge (cyclomatic 24) · ×1
  • _default_tools.get_relevant_docs_from_knowledge (cyclomatic 24) libs/agno/agno/team/_default_tools.py:1638 — _default_tools.get_relevant_docs_from_knowledge has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._continue_run_dispatch_stream_with_member_events (cyclomatic 24) · ×1
  • _run._continue_run_dispatch_stream_with_member_events (cyclomatic 24) libs/agno/agno/team/_run.py:6882 — _run._continue_run_dispatch_stream_with_member_events has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GoogleSheetsTools.__init__ (cyclomatic 24) · ×1
  • GoogleSheetsTools.__init__ (cyclomatic 24) libs/agno/agno/tools/google/sheets.py:74 — GoogleSheetsTools.__init__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ParallelTools.parallel_search (cyclomatic 24) · ×1
  • ParallelTools.parallel_search (cyclomatic 24) libs/agno/agno/tools/parallel.py:117 — ParallelTools.parallel_search has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SlackTools._build_instructions (cyclomatic 24) · ×1
  • SlackTools._build_instructions (cyclomatic 24) libs/agno/agno/tools/slack.py:40 — SlackTools._build_instructions has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LanceDb.__init__ (cyclomatic 24) · ×1
  • LanceDb.__init__ (cyclomatic 24) libs/agno/agno/vectordb/lancedb/lance_db.py:47 — LanceDb.__init__ has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._enrich_event_with_workflow_context (cyclomatic 24) · ×1
  • Workflow._enrich_event_with_workflow_context (cyclomatic 24) libs/agno/agno/workflow/workflow.py:1800 — Workflow._enrich_event_with_workflow_context has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TargetGroup._create (cyclomatic 24) · ×1
  • TargetGroup._create (cyclomatic 24) libs/agno_infra/agno/aws/resource/elb/target_group.py:39 — TargetGroup._create has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · disruption_catchup.test_full_catchup (cyclomatic 23) · ×1
  • disruption_catchup.test_full_catchup (cyclomatic 23) cookbook/04_workflows/06_advanced_concepts/long_running/disruption_catchup.py:36 — disruption_catchup.test_full_catchup has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response.update_run_response (cyclomatic 23) · ×1
  • _response.update_run_response (cyclomatic 23) libs/agno/agno/agent/_response.py:965 — _response.update_run_response has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _response.handle_model_response_stream (cyclomatic 23) · ×1
  • _response.handle_model_response_stream (cyclomatic 23) libs/agno/agno/agent/_response.py:1048 — _response.handle_model_response_stream has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _storage.from_dict (cyclomatic 23) · ×1
  • _storage.from_dict (cyclomatic 23) libs/agno/agno/agent/_storage.py:745 — _storage.from_dict has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FirestoreDb.get_trace_stats (cyclomatic 23) · ×1
  • FirestoreDb.get_trace_stats (cyclomatic 23) libs/agno/agno/db/firestore/firestore.py:2127 — FirestoreDb.get_trace_stats has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MySQLDb.upsert_session (cyclomatic 23) · ×1
  • MySQLDb.upsert_session (cyclomatic 23) libs/agno/agno/db/mysql/mysql.py:708 — MySQLDb.upsert_session has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.get_trace_stats (cyclomatic 23) · ×1
  • AsyncPostgresDb.get_trace_stats (cyclomatic 23) libs/agno/agno/db/postgres/async_postgres.py:2690 — AsyncPostgresDb.get_trace_stats has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.get_trace_stats (cyclomatic 23) · ×1
  • PostgresDb.get_trace_stats (cyclomatic 23) libs/agno/agno/db/postgres/postgres.py:3163 — PostgresDb.get_trace_stats has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RedisDb.get_sessions (cyclomatic 23) · ×1
  • RedisDb.get_sessions (cyclomatic 23) libs/agno/agno/db/redis/redis.py:382 — RedisDb.get_sessions has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RedisDb.get_eval_runs (cyclomatic 23) · ×1
  • RedisDb.get_eval_runs (cyclomatic 23) libs/agno/agno/db/redis/redis.py:1436 — RedisDb.get_eval_runs has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.get_sessions (cyclomatic 23) · ×1
  • ValkeyDb.get_sessions (cyclomatic 23) libs/agno/agno/db/valkey/valkey.py:499 — ValkeyDb.get_sessions has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.get_eval_runs (cyclomatic 23) · ×1
  • ValkeyDb.get_eval_runs (cyclomatic 23) libs/agno/agno/db/valkey/valkey.py:1866 — ValkeyDb.get_eval_runs has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MarkdownChunking._split_large_section (cyclomatic 23) · ×1
  • MarkdownChunking._split_large_section (cyclomatic 23) libs/agno/agno/knowledge/chunking/markdown.py:40 — MarkdownChunking._split_large_section has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemoryStore._forget_edge (cyclomatic 23) · ×1
  • EntityMemoryStore._forget_edge (cyclomatic 23) libs/agno/agno/learn/stores/entity_memory.py:2352 — EntityMemoryStore._forget_edge has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · router.handle_workflow_via_websocket (cyclomatic 23) · ×1
  • router.handle_workflow_via_websocket (cyclomatic 23) libs/agno/agno/os/routers/workflows/router.py:69 — router.handle_workflow_via_websocket has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ToolCallScorer.score (cyclomatic 23) · ×1
  • ToolCallScorer.score (cyclomatic 23) libs/agno/agno/scorer/tools.py:80 — ToolCallScorer.score has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _utils._deep_copy_field (cyclomatic 23) · ×1
  • _utils._deep_copy_field (cyclomatic 23) libs/agno/agno/team/_utils.py:160 — _utils._deep_copy_field has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · MCPTools.get_session_for_run (cyclomatic 23) · ×1
  • MCPTools.get_session_for_run (cyclomatic 23) libs/agno/agno/tools/mcp/mcp.py:372 — MCPTools.get_session_for_run has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WhatsAppTools.__init__ (cyclomatic 23) · ×1
  • WhatsAppTools.__init__ (cyclomatic 23) libs/agno/agno/tools/whatsapp.py:35 — WhatsAppTools.__init__ has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · prompts.get_json_output_prompt (cyclomatic 23) · ×1
  • prompts.get_json_output_prompt (cyclomatic 23) libs/agno/agno/utils/prompts.py:9 — prompts.get_json_output_prompt has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · streamlit._load_session (cyclomatic 23) · ×1
  • streamlit._load_session (cyclomatic 23) libs/agno/agno/utils/streamlit.py:201 — streamlit._load_session has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Loop.execute (cyclomatic 23) · ×1
  • Loop.execute (cyclomatic 23) libs/agno/agno/workflow/loop.py:425 — Loop.execute has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Loop.aexecute (cyclomatic 23) · ×1
  • Loop.aexecute (cyclomatic 23) libs/agno/agno/workflow/loop.py:826 — Loop.aexecute has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ContinueExecutionState.__init__ (cyclomatic 23) · ×1
  • ContinueExecutionState.__init__ (cyclomatic 23) libs/agno/agno/workflow/utils/hitl.py:359 — ContinueExecutionState.__init__ has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Workflow.arun (cyclomatic 23) · ×1
  • Workflow.arun (cyclomatic 23) libs/agno/agno/workflow/workflow.py:9639 — Workflow.arun has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CacheCluster._update (cyclomatic 23) · ×1
  • CacheCluster._update (cyclomatic 23) libs/agno_infra/agno/aws/resource/elasticache/cluster.py:286 — CacheCluster._update has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InfraConfig.get_resources (cyclomatic 23) · ×1
  • InfraConfig.get_resources (cyclomatic 23) libs/agno_infra/agno/infra/config.py:104 — InfraConfig.get_resources has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · A2AClient._build_message_request (cyclomatic 22) · ×1
  • A2AClient._build_message_request (cyclomatic 22) libs/agno/agno/client/a2a/client.py:74 — A2AClient._build_message_request has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamoDb.get_eval_runs (cyclomatic 22) · ×1
  • DynamoDb.get_eval_runs (cyclomatic 22) libs/agno/agno/db/dynamo/dynamo.py:1907 — DynamoDb.get_eval_runs has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · v1_to_v2.convert_v1_media_to_v2 (cyclomatic 22) · ×1
  • v1_to_v2.convert_v1_media_to_v2 (cyclomatic 22) libs/agno/agno/db/migrations/v1_to_v2.py:180 — v1_to_v2.convert_v1_media_to_v2 has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · v1_to_v2.convert_v1_fields_to_v2 (cyclomatic 22) · ×1
  • v1_to_v2.convert_v1_fields_to_v2 (cyclomatic 22) libs/agno/agno/db/migrations/v1_to_v2.py:251 — v1_to_v2.convert_v1_fields_to_v2 has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb.get_sessions (cyclomatic 22) · ×1
  • AsyncMongoDb.get_sessions (cyclomatic 22) libs/agno/agno/db/mongo/async_mongo.py:662 — AsyncMongoDb.get_sessions has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb.get_sessions (cyclomatic 22) · ×1
  • MongoDb.get_sessions (cyclomatic 22) libs/agno/agno/db/mongo/mongo.py:450 — MongoDb.get_sessions has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb._create_table (cyclomatic 22) · ×1
  • AsyncPostgresDb._create_table (cyclomatic 22) libs/agno/agno/db/postgres/async_postgres.py:202 — AsyncPostgresDb._create_table has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.get_eval_runs (cyclomatic 22) · ×1
  • AsyncPostgresDb.get_eval_runs (cyclomatic 22) libs/agno/agno/db/postgres/async_postgres.py:2189 — AsyncPostgresDb.get_eval_runs has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.get_span_stats (cyclomatic 22) · ×1
  • AsyncPostgresDb.get_span_stats (cyclomatic 22) libs/agno/agno/db/postgres/async_postgres.py:3010 — AsyncPostgresDb.get_span_stats has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.upsert_session (cyclomatic 22) · ×1
  • PostgresDb.upsert_session (cyclomatic 22) libs/agno/agno/db/postgres/postgres.py:1022 — PostgresDb.upsert_session has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.get_span_stats (cyclomatic 22) · ×1
  • PostgresDb.get_span_stats (cyclomatic 22) libs/agno/agno/db/postgres/postgres.py:3481 — PostgresDb.get_span_stats has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb.get_trace_stats (cyclomatic 22) · ×1
  • AsyncSqliteDb.get_trace_stats (cyclomatic 22) libs/agno/agno/db/sqlite/async_sqlite.py:2873 — AsyncSqliteDb.get_trace_stats has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.get_trace_stats (cyclomatic 22) · ×1
  • SqliteDb.get_trace_stats (cyclomatic 22) libs/agno/agno/db/sqlite/sqlite.py:2783 — SqliteDb.get_trace_stats has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemoryStore.build_context (cyclomatic 22) · ×1
  • EntityMemoryStore.build_context (cyclomatic 22) libs/agno/agno/learn/stores/entity_memory.py:692 — EntityMemoryStore.build_context has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Ollama._format_message (cyclomatic 22) · ×1
  • Ollama._format_message (cyclomatic 22) libs/agno/agno/models/ollama/chat.py:150 — Ollama._format_message has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.get_knowledge_instance (cyclomatic 22) · ×1
  • utils.get_knowledge_instance (cyclomatic 22) libs/agno/agno/os/utils.py:361 — utils.get_knowledge_instance has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunInput.to_dict (cyclomatic 22) · ×1
  • RunInput.to_dict (cyclomatic 22) libs/agno/agno/run/agent.py:75 — RunInput.to_dict has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TeamRunInput.to_dict (cyclomatic 22) · ×1
  • TeamRunInput.to_dict (cyclomatic 22) libs/agno/agno/run/team.py:62 — TeamRunInput.to_dict has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._handle_team_run_cancellation (cyclomatic 22) · ×1
  • _run._handle_team_run_cancellation (cyclomatic 22) libs/agno/agno/team/_run.py:4334 — _run._handle_team_run_cancellation has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run.acontinue_run_dispatch (cyclomatic 22) · ×1
  • _run.acontinue_run_dispatch (cyclomatic 22) libs/agno/agno/team/_run.py:7705 — _run.acontinue_run_dispatch has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DoclingTools.__init__ (cyclomatic 22) · ×1
  • DoclingTools.__init__ (cyclomatic 22) libs/agno/agno/tools/docling.py:48 — DoclingTools.__init__ has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · GoogleCalendarTools.__init__ (cyclomatic 22) · ×1
  • GoogleCalendarTools.__init__ (cyclomatic 22) libs/agno/agno/tools/google/calendar.py:50 — GoogleCalendarTools.__init__ has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenCVTools.capture_video (cyclomatic 22) · ×1
  • OpenCVTools.capture_video (cyclomatic 22) libs/agno/agno/tools/opencv.py:147 — OpenCVTools.capture_video has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TwilioTools.__init__ (cyclomatic 22) · ×1
  • TwilioTools.__init__ (cyclomatic 22) libs/agno/agno/tools/twilio.py:16 — TwilioTools.__init__ has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · Workflow._arun_workflow_agent_stream (cyclomatic 22) · ×1
  • Workflow._arun_workflow_agent_stream (cyclomatic 22) libs/agno/agno/workflow/workflow.py:5166 — Workflow._arun_workflow_agent_stream has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · disconnect._report (cyclomatic 22) · ×1
  • disconnect._report (cyclomatic 22) libs/agnoctl/agnoctl/commands/disconnect.py:247 — disconnect._report has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamoDb.get_spans (cyclomatic 21) · ×1
  • DynamoDb.get_spans (cyclomatic 21) libs/agno/agno/db/dynamo/dynamo.py:2819 — DynamoDb.get_spans has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FirestoreDb.get_eval_runs (cyclomatic 21) · ×1
  • FirestoreDb.get_eval_runs (cyclomatic 21) libs/agno/agno/db/firestore/firestore.py:1741 — FirestoreDb.get_eval_runs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb._ensure_client (cyclomatic 21) · ×1
  • AsyncMongoDb._ensure_client (cyclomatic 21) libs/agno/agno/db/mongo/async_mongo.py:283 — AsyncMongoDb._ensure_client has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb.get_eval_runs (cyclomatic 21) · ×1
  • AsyncMongoDb.get_eval_runs (cyclomatic 21) libs/agno/agno/db/mongo/async_mongo.py:2158 — AsyncMongoDb.get_eval_runs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb.get_eval_runs (cyclomatic 21) · ×1
  • MongoDb.get_eval_runs (cyclomatic 21) libs/agno/agno/db/mongo/mongo.py:1937 — MongoDb.get_eval_runs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MySQLDb.get_sessions (cyclomatic 21) · ×1
  • MySQLDb.get_sessions (cyclomatic 21) libs/agno/agno/db/mysql/mysql.py:540 — MySQLDb.get_sessions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.get_sessions (cyclomatic 21) · ×1
  • AsyncPostgresDb.get_sessions (cyclomatic 21) libs/agno/agno/db/postgres/async_postgres.py:665 — AsyncPostgresDb.get_sessions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb._get_table (cyclomatic 21) · ×1
  • PostgresDb._get_table (cyclomatic 21) libs/agno/agno/db/postgres/postgres.py:505 — PostgresDb._get_table has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RedisDb.get_trace_stats (cyclomatic 21) · ×1
  • RedisDb.get_trace_stats (cyclomatic 21) libs/agno/agno/db/redis/redis.py:1973 — RedisDb.get_trace_stats has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleStoreDb.get_sessions (cyclomatic 21) · ×1
  • SingleStoreDb.get_sessions (cyclomatic 21) libs/agno/agno/db/singlestore/singlestore.py:606 — SingleStoreDb.get_sessions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb._create_table (cyclomatic 21) · ×1
  • AsyncSqliteDb._create_table (cyclomatic 21) libs/agno/agno/db/sqlite/async_sqlite.py:200 — AsyncSqliteDb._create_table has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb.get_sessions (cyclomatic 21) · ×1
  • AsyncSqliteDb.get_sessions (cyclomatic 21) libs/agno/agno/db/sqlite/async_sqlite.py:647 — AsyncSqliteDb.get_sessions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb.get_eval_runs (cyclomatic 21) · ×1
  • AsyncSqliteDb.get_eval_runs (cyclomatic 21) libs/agno/agno/db/sqlite/async_sqlite.py:2150 — AsyncSqliteDb.get_eval_runs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb.get_span_stats (cyclomatic 21) · ×1
  • AsyncSqliteDb.get_span_stats (cyclomatic 21) libs/agno/agno/db/sqlite/async_sqlite.py:3179 — AsyncSqliteDb.get_span_stats has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.get_sessions (cyclomatic 21) · ×1
  • SqliteDb.get_sessions (cyclomatic 21) libs/agno/agno/db/sqlite/sqlite.py:839 — SqliteDb.get_sessions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.get_span_stats (cyclomatic 21) · ×1
  • SqliteDb.get_span_stats (cyclomatic 21) libs/agno/agno/db/sqlite/sqlite.py:3084 — SqliteDb.get_span_stats has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentAsJudgeEval.run (cyclomatic 21) · ×1
  • AgentAsJudgeEval.run (cyclomatic 21) libs/agno/agno/eval/agent_as_judge.py:470 — AgentAsJudgeEval.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._aload_from_path (cyclomatic 21) · ×1
  • Knowledge._aload_from_path (cyclomatic 21) libs/agno/agno/knowledge/knowledge.py:1341 — Knowledge._aload_from_path has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._load_from_path (cyclomatic 21) · ×1
  • Knowledge._load_from_path (cyclomatic 21) libs/agno/agno/knowledge/knowledge.py:1426 — Knowledge._load_from_path has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._build_remote_content_identity (cyclomatic 21) · ×1
  • Knowledge._build_remote_content_identity (cyclomatic 21) libs/agno/agno/knowledge/knowledge.py:2157 — Knowledge._build_remote_content_identity has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Cohere.get_request_params (cyclomatic 21) · ×1
  • Cohere.get_request_params (cyclomatic 21) libs/agno/agno/models/cohere/chat.py:137 — Cohere.get_request_params has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LiteLLM._parse_provider_response_delta (cyclomatic 21) · ×1
  • LiteLLM._parse_provider_response_delta (cyclomatic 21) libs/agno/agno/models/litellm/chat.py:386 — LiteLLM._parse_provider_response_delta has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MoonShot._format_message (cyclomatic 21) · ×1
  • MoonShot._format_message (cyclomatic 21) libs/agno/agno/models/moonshot/moonshot.py:248 — MoonShot._format_message has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIChat._format_message (cyclomatic 21) · ×1
  • OpenAIChat._format_message (cyclomatic 21) libs/agno/agno/models/openai/chat.py:313 — OpenAIChat._format_message has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.map_a2a_request_to_run_input (cyclomatic 21) · ×1
  • utils.map_a2a_request_to_run_input (cyclomatic 21) libs/agno/agno/os/interfaces/a2a/utils.py:86 — utils.map_a2a_request_to_run_input has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AuthMiddleware.__init__ (cyclomatic 21) · ×1
  • AuthMiddleware.__init__ (cyclomatic 21) libs/agno/agno/os/middleware/jwt.py:534 — AuthMiddleware.__init__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GoogleCalendarTools.find_available_slots (cyclomatic 21) · ×1
  • GoogleCalendarTools.find_available_slots (cyclomatic 21) libs/agno/agno/tools/google/calendar.py:529 — GoogleCalendarTools.find_available_slots has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GoogleDriveTools.__init__ (cyclomatic 21) · ×1
  • GoogleDriveTools.__init__ (cyclomatic 21) libs/agno/agno/tools/google/drive.py:259 — GoogleDriveTools.__init__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GmailTools._extract_body (cyclomatic 21) · ×1
  • GmailTools._extract_body (cyclomatic 21) libs/agno/agno/tools/google/gmail.py:1362 — GmailTools._extract_body has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GoogleSlidesTools.add_slide (cyclomatic 21) · ×1
  • GoogleSlidesTools.add_slide (cyclomatic 21) libs/agno/agno/tools/google/slides.py:377 — GoogleSlidesTools.add_slide has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JiraTools.__init__ (cyclomatic 21) · ×1
  • JiraTools.__init__ (cyclomatic 21) libs/agno/agno/tools/jira.py:15 — JiraTools.__init__ has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · MultiMCPTools.__init__ (cyclomatic 21) · ×1
  • MultiMCPTools.__init__ (cyclomatic 21) libs/agno/agno/tools/mcp/multi_mcp.py:43 — MultiMCPTools.__init__ has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Toolkit._register_decorated_tool (cyclomatic 21) · ×1
  • Toolkit._register_decorated_tool (cyclomatic 21) libs/agno/agno/tools/toolkit.py:227 — Toolkit._register_decorated_tool has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · claude._format_file_for_message (cyclomatic 21) · ×1
  • claude._format_file_for_message (cyclomatic 21) libs/agno/agno/utils/models/claude.py:235 — claude._format_file_for_message has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · response.get_paused_content (cyclomatic 21) · ×1
  • response.get_paused_content (cyclomatic 21) libs/agno/agno/utils/response.py:129 — response.get_paused_content has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · UpstashVectorDb.async_upsert (cyclomatic 21) · ×1
  • UpstashVectorDb.async_upsert (cyclomatic 21) libs/agno/agno/vectordb/upstashdb/upstashdb.py:514 — UpstashVectorDb.async_upsert has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow.to_dict (cyclomatic 21) · ×1
  • Workflow.to_dict (cyclomatic 21) libs/agno/agno/workflow/workflow.py:859 — Workflow.to_dict has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · step_history.analyze_food_preferences (cyclomatic 20) · ×1
  • step_history.analyze_food_preferences (cyclomatic 20) cookbook/04_workflows/06_advanced_concepts/history/step_history.py:44 — step_history.analyze_food_preferences has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · events_replay.test_replay (cyclomatic 20) · ×1
  • events_replay.test_replay (cyclomatic 20) cookbook/04_workflows/06_advanced_concepts/long_running/events_replay.py:38 — events_replay.test_replay has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks.aexecute_pre_hooks (cyclomatic 20) · ×1
  • _hooks.aexecute_pre_hooks (cyclomatic 20) libs/agno/agno/agent/_hooks.py:154 — _hooks.aexecute_pre_hooks has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks.aexecute_post_hooks (cyclomatic 20) · ×1
  • _hooks.aexecute_post_hooks (cyclomatic 20) libs/agno/agno/agent/_hooks.py:363 — _hooks.aexecute_post_hooks has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.ahandle_tool_call_updates (cyclomatic 20) · ×1
  • _tools.ahandle_tool_call_updates (cyclomatic 20) libs/agno/agno/agent/_tools.py:958 — _tools.ahandle_tool_call_updates has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.ahandle_tool_call_updates_stream (cyclomatic 20) · ×1
  • _tools.ahandle_tool_call_updates_stream (cyclomatic 20) libs/agno/agno/agent/_tools.py:1005 — _tools.ahandle_tool_call_updates_stream has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · notion_ops.blocks_to_markdown (cyclomatic 20) · ×1
  • notion_ops.blocks_to_markdown (cyclomatic 20) libs/agno/agno/context/wiki/notion_ops.py:173 — notion_ops.blocks_to_markdown has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FirestoreDb.upsert_trace (cyclomatic 20) · ×1
  • FirestoreDb.upsert_trace (cyclomatic 20) libs/agno/agno/db/firestore/firestore.py:1891 — FirestoreDb.upsert_trace has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · v1_to_v2.safe_get_runs_from_memory (cyclomatic 20) · ×1
  • v1_to_v2.safe_get_runs_from_memory (cyclomatic 20) libs/agno/agno/db/migrations/v1_to_v2.py:134 — v1_to_v2.safe_get_runs_from_memory has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMySQLDb.get_eval_runs (cyclomatic 20) · ×1
  • AsyncMySQLDb.get_eval_runs (cyclomatic 20) libs/agno/agno/db/mysql/async_mysql.py:2265 — AsyncMySQLDb.get_eval_runs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MySQLDb.get_eval_runs (cyclomatic 20) · ×1
  • MySQLDb.get_eval_runs (cyclomatic 20) libs/agno/agno/db/mysql/mysql.py:2068 — MySQLDb.get_eval_runs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.get_sessions (cyclomatic 20) · ×1
  • PostgresDb.get_sessions (cyclomatic 20) libs/agno/agno/db/postgres/postgres.py:852 — PostgresDb.get_sessions has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.get_eval_runs (cyclomatic 20) · ×1
  • PostgresDb.get_eval_runs (cyclomatic 20) libs/agno/agno/db/postgres/postgres.py:2425 — PostgresDb.get_eval_runs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleStoreDb.upsert_session (cyclomatic 20) · ×1
  • SingleStoreDb.upsert_session (cyclomatic 20) libs/agno/agno/db/singlestore/singlestore.py:778 — SingleStoreDb.upsert_session has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SingleStoreDb.get_eval_runs (cyclomatic 20) · ×1
  • SingleStoreDb.get_eval_runs (cyclomatic 20) libs/agno/agno/db/singlestore/singlestore.py:2074 — SingleStoreDb.get_eval_runs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.get_eval_runs (cyclomatic 20) · ×1
  • SqliteDb.get_eval_runs (cyclomatic 20) libs/agno/agno/db/sqlite/sqlite.py:2341 — SqliteDb.get_eval_runs has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SurrealDb.upsert_trace (cyclomatic 20) · ×1
  • SurrealDb.upsert_trace (cyclomatic 20) libs/agno/agno/db/surrealdb/surrealdb.py:1469 — SurrealDb.upsert_trace has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _validate.validate_sft_jsonl (cyclomatic 20) · ×1
  • _validate.validate_sft_jsonl (cyclomatic 20) libs/agno/agno/environments/exporters/_validate.py:20 — _validate.validate_sft_jsonl has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentAsJudgeEval.arun (cyclomatic 20) · ×1
  • AgentAsJudgeEval.arun (cyclomatic 20) libs/agno/agno/eval/agent_as_judge.py:575 — AgentAsJudgeEval.arun has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemoryStore.print (cyclomatic 20) · ×1
  • EntityMemoryStore.print (cyclomatic 20) libs/agno/agno/learn/stores/entity_memory.py:3580 — EntityMemoryStore.print has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SessionMetrics.__add__ (cyclomatic 20) · ×1
  • SessionMetrics.__add__ (cyclomatic 20) libs/agno/agno/metrics.py:562 — SessionMetrics.__add__ has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · metrics.accumulate_model_metrics (cyclomatic 20) · ×1
  • metrics.accumulate_model_metrics (cyclomatic 20) libs/agno/agno/metrics.py:636 — metrics.accumulate_model_metrics has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · metrics.merge_background_metrics (cyclomatic 20) · ×1
  • metrics.merge_background_metrics (cyclomatic 20) libs/agno/agno/metrics.py:774 — metrics.merge_background_metrics has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LiteLLM.parse_tool_calls (cyclomatic 20) · ×1
  • LiteLLM.parse_tool_calls (cyclomatic 20) libs/agno/agno/models/litellm/chat.py:433 — LiteLLM.parse_tool_calls has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LiteLLM._get_metrics (cyclomatic 20) · ×1
  • LiteLLM._get_metrics (cyclomatic 20) libs/agno/agno/models/litellm/chat.py:521 — LiteLLM._get_metrics has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · utils.run_performance_eval (cyclomatic 20) · ×1
  • utils.run_performance_eval (cyclomatic 20) libs/agno/agno/os/routers/evals/utils.py:120 — utils.run_performance_eval has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TraceNode.from_span (cyclomatic 20) · ×1
  • TraceNode.from_span (cyclomatic 20) libs/agno/agno/os/routers/traces/schemas.py:69 — TraceNode.from_span has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.get_session_name (cyclomatic 20) · ×1
  • utils.get_session_name (cyclomatic 20) libs/agno/agno/os/utils.py:468 — utils.get_session_name has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunOutput.from_dict (cyclomatic 20) · ×1
  • RunOutput.from_dict (cyclomatic 20) libs/agno/agno/run/agent.py:850 — RunOutput.from_dict has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks._aexecute_pre_hooks (cyclomatic 20) · ×1
  • _hooks._aexecute_pre_hooks (cyclomatic 20) libs/agno/agno/team/_hooks.py:338 — _hooks._aexecute_pre_hooks has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks._aexecute_post_hooks (cyclomatic 20) · ×1
  • _hooks._aexecute_post_hooks (cyclomatic 20) libs/agno/agno/team/_hooks.py:536 — _hooks._aexecute_post_hooks has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FunctionCall._build_entrypoint_args (cyclomatic 20) · ×1
  • FunctionCall._build_entrypoint_args (cyclomatic 20) libs/agno/agno/tools/function.py:918 — FunctionCall._build_entrypoint_args has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NanoBananaTools.create_image (cyclomatic 20) · ×1
  • NanoBananaTools.create_image (cyclomatic 20) libs/agno/agno/tools/nano_banana.py:70 — NanoBananaTools.create_image has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · claude._format_image_for_message (cyclomatic 20) · ×1
  • claude._format_image_for_message (cyclomatic 20) libs/agno/agno/utils/models/claude.py:127 — claude._format_image_for_message has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tokens._count_message_tokens (cyclomatic 20) · ×1
  • tokens._count_message_tokens (cyclomatic 20) libs/agno/agno/utils/tokens.py:553 — tokens._count_message_tokens has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PgVector._async_embed_documents (cyclomatic 20) · ×1
  • PgVector._async_embed_documents (cyclomatic 20) libs/agno/agno/vectordb/pgvector/pgvector.py:534 — PgVector._async_embed_documents has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · StepRequirement._validate_user_input (cyclomatic 20) · ×1
  • StepRequirement._validate_user_input (cyclomatic 20) libs/agno/agno/workflow/types.py:951 — StepRequirement._validate_user_input has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow.deep_copy (cyclomatic 20) · ×1
  • Workflow.deep_copy (cyclomatic 20) libs/agno/agno/workflow/workflow.py:10485 — Workflow.deep_copy has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · PostgresDb.get_container_env (cyclomatic 20) · ×1
  • PostgresDb.get_container_env (cyclomatic 20) libs/agno_infra/agno/docker/app/postgres/postgres.py:61 — PostgresDb.get_container_env has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · InfraConfig.get_resources_from_file (cyclomatic 20) · ×1
  • InfraConfig.get_resources_from_file (cyclomatic 20) libs/agno_infra/agno/infra/config.py:214 — InfraConfig.get_resources_from_file has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · operator.create_infra_from_template (cyclomatic 20) · ×1
  • operator.create_infra_from_template (cyclomatic 20) libs/agno_infra/agno/infra/operator.py:32 — operator.create_infra_from_template has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks.execute_pre_hooks (cyclomatic 19) · ×1
  • _hooks.execute_pre_hooks (cyclomatic 19) libs/agno/agno/agent/_hooks.py:43 — _hooks.execute_pre_hooks has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks.execute_post_hooks (cyclomatic 19) · ×1
  • _hooks.execute_post_hooks (cyclomatic 19) libs/agno/agno/agent/_hooks.py:262 — _hooks.execute_post_hooks has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._continue_run (cyclomatic 19) · ×1
  • _run._continue_run (cyclomatic 19) libs/agno/agno/agent/_run.py:3588 — _run._continue_run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _session.get_session (cyclomatic 19) · ×1
  • _session.get_session (cyclomatic 19) libs/agno/agno/agent/_session.py:75 — _session.get_session has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.get_tools (cyclomatic 19) · ×1
  • _tools.get_tools (cyclomatic 19) libs/agno/agno/agent/_tools.py:105 — _tools.get_tools has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _utils.deep_copy_field (cyclomatic 19) · ×1
  • _utils.deep_copy_field (cyclomatic 19) libs/agno/agno/agent/_utils.py:178 — _utils.deep_copy_field has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · Agent.__init__ (cyclomatic 19) · ×1
  • Agent.__init__ (cyclomatic 19) libs/agno/agno/agent/agent.py:387 — Agent.__init__ has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GcsJsonDb.upsert_trace (cyclomatic 19) · ×1
  • GcsJsonDb.upsert_trace (cyclomatic 19) libs/agno/agno/db/gcs_json/gcs_json_db.py:1389 — GcsJsonDb.upsert_trace has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · JsonDb.upsert_trace (cyclomatic 19) · ×1
  • JsonDb.upsert_trace (cyclomatic 19) libs/agno/agno/db/json/json_db.py:1374 — JsonDb.upsert_trace has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMySQLDb.get_sessions (cyclomatic 19) · ×1
  • AsyncMySQLDb.get_sessions (cyclomatic 19) libs/agno/agno/db/mysql/async_mysql.py:546 — AsyncMySQLDb.get_sessions has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.upsert_session (cyclomatic 19) · ×1
  • AsyncPostgresDb.upsert_session (cyclomatic 19) libs/agno/agno/db/postgres/async_postgres.py:835 — AsyncPostgresDb.upsert_session has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PerformanceEval.run (cyclomatic 19) · ×1
  • PerformanceEval.run (cyclomatic 19) libs/agno/agno/eval/performance.py:489 — PerformanceEval.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PerformanceEval.arun (cyclomatic 19) · ×1
  • PerformanceEval.arun (cyclomatic 19) libs/agno/agno/eval/performance.py:631 — PerformanceEval.arun has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · S3Loader._aload_from_s3 (cyclomatic 19) · ×1
  • S3Loader._aload_from_s3 (cyclomatic 19) libs/agno/agno/knowledge/loaders/s3.py:68 — S3Loader._aload_from_s3 has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MessageMetrics.__add__ (cyclomatic 19) · ×1
  • MessageMetrics.__add__ (cyclomatic 19) libs/agno/agno/metrics.py:196 — MessageMetrics.__add__ has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AwsBedrock.get_async_client (cyclomatic 19) · ×1
  • AwsBedrock.get_async_client (cyclomatic 19) libs/agno/agno/models/aws/bedrock.py:135 — AwsBedrock.get_async_client has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model._process_model_response (cyclomatic 19) · ×1
  • Model._process_model_response (cyclomatic 19) libs/agno/agno/models/base.py:1102 — Model._process_model_response has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Model._aprocess_model_response (cyclomatic 19) · ×1
  • Model._aprocess_model_response (cyclomatic 19) libs/agno/agno/models/base.py:1172 — Model._aprocess_model_response has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DeepSeek._format_message (cyclomatic 19) · ×1
  • DeepSeek._format_message (cyclomatic 19) libs/agno/agno/models/deepseek/deepseek.py:141 — DeepSeek._format_message has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini._format_audio_for_message (cyclomatic 19) · ×1
  • Gemini._format_audio_for_message (cyclomatic 19) libs/agno/agno/models/google/gemini.py:921 — Gemini._format_audio_for_message has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses._format_tool_params (cyclomatic 19) · ×1
  • OpenAIResponses._format_tool_params (cyclomatic 19) libs/agno/agno/models/openai/responses.py:521 — OpenAIResponses._format_tool_params has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentOS.__init__ (cyclomatic 19) · ×1
  • AgentOS.__init__ (cyclomatic 19) libs/agno/agno/os/app.py:230 — AgentOS.__init__ has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · router.handle_workflow_continue_via_websocket (cyclomatic 19) · ×1
  • router.handle_workflow_continue_via_websocket (cyclomatic 19) libs/agno/agno/os/routers/workflows/router.py:446 — router.handle_workflow_continue_via_websocket has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TeamRunOutput.from_dict (cyclomatic 19) · ×1
  • TeamRunOutput.from_dict (cyclomatic 19) libs/agno/agno/run/team.py:949 — TeamRunOutput.from_dict has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages._get_json_output_prompt (cyclomatic 19) · ×1
  • _messages._get_json_output_prompt (cyclomatic 19) libs/agno/agno/team/_messages.py:1556 — _messages._get_json_output_prompt has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._get_continue_run_messages (cyclomatic 19) · ×1
  • _run._get_continue_run_messages (cyclomatic 19) libs/agno/agno/team/_run.py:4920 — _run._get_continue_run_messages has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._ahandle_team_tool_call_updates (cyclomatic 19) · ×1
  • _run._ahandle_team_tool_call_updates (cyclomatic 19) libs/agno/agno/team/_run.py:5134 — _run._ahandle_team_tool_call_updates has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · _run._ahandle_team_tool_call_updates_stream (cyclomatic 19) · ×1
  • _run._ahandle_team_tool_call_updates_stream (cyclomatic 19) libs/agno/agno/team/_run.py:5191 — _run._ahandle_team_tool_call_updates_stream has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · _storage._hydrate_from_graph (cyclomatic 19) · ×1
  • _storage._hydrate_from_graph (cyclomatic 19) libs/agno/agno/team/_storage.py:1095 — _storage._hydrate_from_graph has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileTools.__init__ (cyclomatic 19) · ×1
  • FileTools.__init__ (cyclomatic 19) libs/agno/agno/tools/file.py:82 — FileTools.__init__ has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · FileTools.search_content (cyclomatic 19) · ×1
  • FileTools.search_content (cyclomatic 19) libs/agno/agno/tools/file.py:343 — FileTools.search_content has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MultiMCPTools.get_session_for_run (cyclomatic 19) · ×1
  • MultiMCPTools.get_session_for_run (cyclomatic 19) libs/agno/agno/tools/mcp/multi_mcp.py:279 — MultiMCPTools.get_session_for_run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ModelsLabTools.generate_media (cyclomatic 19) · ×1
  • ModelsLabTools.generate_media (cyclomatic 19) libs/agno/agno/tools/models_labs.py:164 — ModelsLabTools.generate_media has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OxylabsTools.search_google (cyclomatic 19) · ×1
  • OxylabsTools.search_google (cyclomatic 19) libs/agno/agno/tools/oxylabs.py:91 — OxylabsTools.search_google has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OxylabsTools.search_amazon_products (cyclomatic 19) · ×1
  • OxylabsTools.search_amazon_products (cyclomatic 19) libs/agno/agno/tools/oxylabs.py:263 — OxylabsTools.search_amazon_products has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OxylabsTools.scrape_website (cyclomatic 19) · ×1
  • OxylabsTools.scrape_website (cyclomatic 19) libs/agno/agno/tools/oxylabs.py:354 — OxylabsTools.scrape_website has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · YFinanceTools.__init__ (cyclomatic 19) · ×1
  • YFinanceTools.__init__ (cyclomatic 19) libs/agno/agno/tools/yfinance.py:31 — YFinanceTools.__init__ has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · llama.format_message (cyclomatic 19) · ×1
  • llama.format_message (cyclomatic 19) libs/agno/agno/utils/models/llama.py:22 — llama.format_message has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mistral.format_messages (cyclomatic 19) · ×1
  • mistral.format_messages (cyclomatic 19) libs/agno/agno/utils/models/mistral.py:45 — mistral.format_messages has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · response.create_paused_run_output_panel (cyclomatic 19) · ×1
  • response.create_paused_run_output_panel (cyclomatic 19) libs/agno/agno/utils/response.py:81 — response.create_paused_run_output_panel has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ChromaDb.async_insert (cyclomatic 19) · ×1
  • ChromaDb.async_insert (cyclomatic 19) libs/agno/agno/vectordb/chroma/chromadb.py:373 — ChromaDb.async_insert has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LanceDb.search (cyclomatic 19) · ×1
  • LanceDb.search (cyclomatic 19) libs/agno/agno/vectordb/lancedb/lance_db.py:483 — LanceDb.search has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PgVector.vector_search (cyclomatic 19) · ×1
  • PgVector.vector_search (cyclomatic 19) libs/agno/agno/vectordb/pgvector/pgvector.py:806 — PgVector.vector_search has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PgVector.hybrid_search (cyclomatic 19) · ×1
  • PgVector.hybrid_search (cyclomatic 19) libs/agno/agno/vectordb/pgvector/pgvector.py:1067 — PgVector.hybrid_search has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Condition.execute (cyclomatic 19) · ×1
  • Condition.execute (cyclomatic 19) libs/agno/agno/workflow/condition.py:506 — Condition.execute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Condition.aexecute (cyclomatic 19) · ×1
  • Condition.aexecute (cyclomatic 19) libs/agno/agno/workflow/condition.py:949 — Condition.aexecute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Parallel._aggregate_results (cyclomatic 19) · ×1
  • Parallel._aggregate_results (cyclomatic 19) libs/agno/agno/workflow/parallel.py:166 — Parallel._aggregate_results has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step.__init__ (cyclomatic 19) · ×1
  • Step.__init__ (cyclomatic 19) libs/agno/agno/workflow/step.py:163 — Step.__init__ has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._route_executor_requirements_stream (cyclomatic 19) · ×1
  • Workflow._route_executor_requirements_stream (cyclomatic 19) libs/agno/agno/workflow/workflow.py:6533 — Workflow._route_executor_requirements_stream has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._aroute_executor_requirements_stream (cyclomatic 19) · ×1
  • Workflow._aroute_executor_requirements_stream (cyclomatic 19) libs/agno/agno/workflow/workflow.py:6621 — Workflow._aroute_executor_requirements_stream has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · 02_tool_error_persistence.scenario_b_model_call_fails (cyclomatic 18) · ×1
  • 02_tool_error_persistence.scenario_b_model_call_fails (cyclomatic 18) cookbook/02_agents/18_checkpointing/02_tool_error_persistence.py:95 — 02_tool_error_persistence.scenario_b_model_call_fails has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · 11_streaming_events.streaming_with_events (cyclomatic 18) · ×1
  • 11_streaming_events.streaming_with_events (cyclomatic 18) cookbook/03_teams/02_modes/tasks/11_streaming_events.py:74 — 11_streaming_events.streaming_with_events has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages.get_continue_run_messages (cyclomatic 18) · ×1
  • _messages.get_continue_run_messages (cyclomatic 18) libs/agno/agno/agent/_messages.py:1615 — _messages.get_continue_run_messages has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run.arun_dispatch (cyclomatic 18) · ×1
  • _run.arun_dispatch (cyclomatic 18) libs/agno/agno/agent/_run.py:2743 — _run.arun_dispatch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run.acontinue_run_dispatch (cyclomatic 18) · ×1
  • _run.acontinue_run_dispatch (cyclomatic 18) libs/agno/agno/agent/_run.py:4119 — _run.acontinue_run_dispatch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _session.aget_session (cyclomatic 18) · ×1
  • _session.aget_session (cyclomatic 18) libs/agno/agno/agent/_session.py:147 — _session.aget_session has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.handle_tool_call_updates (cyclomatic 18) · ×1
  • _tools.handle_tool_call_updates (cyclomatic 18) libs/agno/agno/agent/_tools.py:856 — _tools.handle_tool_call_updates has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _tools.handle_tool_call_updates_stream (cyclomatic 18) · ×1
  • _tools.handle_tool_call_updates_stream (cyclomatic 18) libs/agno/agno/agent/_tools.py:904 — _tools.handle_tool_call_updates_stream has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentOSClient.upload_knowledge_content (cyclomatic 18) · ×1
  • AgentOSClient.upload_knowledge_content (cyclomatic 18) libs/agno/agno/client/os.py:2373 — AgentOSClient.upload_knowledge_content has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DynamoDb.upsert_trace (cyclomatic 18) · ×1
  • DynamoDb.upsert_trace (cyclomatic 18) libs/agno/agno/db/dynamo/dynamo.py:2195 — DynamoDb.upsert_trace has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FirestoreDb._get_collection (cyclomatic 18) · ×1
  • FirestoreDb._get_collection (cyclomatic 18) libs/agno/agno/db/firestore/firestore.py:117 — FirestoreDb._get_collection has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb.upsert_session (cyclomatic 18) · ×1
  • AsyncMongoDb.upsert_session (cyclomatic 18) libs/agno/agno/db/mongo/async_mongo.py:828 — AsyncMongoDb.upsert_session has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb.upsert_memories (cyclomatic 18) · ×1
  • AsyncMongoDb.upsert_memories (cyclomatic 18) libs/agno/agno/db/mongo/async_mongo.py:1442 — AsyncMongoDb.upsert_memories has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMongoDb.get_traces (cyclomatic 18) · ×1
  • AsyncMongoDb.get_traces (cyclomatic 18) libs/agno/agno/db/mongo/async_mongo.py:2543 — AsyncMongoDb.get_traces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb.upsert_session (cyclomatic 18) · ×1
  • MongoDb.upsert_session (cyclomatic 18) libs/agno/agno/db/mongo/mongo.py:617 — MongoDb.upsert_session has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb.upsert_memories (cyclomatic 18) · ×1
  • MongoDb.upsert_memories (cyclomatic 18) libs/agno/agno/db/mongo/mongo.py:1226 — MongoDb.upsert_memories has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb.get_traces (cyclomatic 18) · ×1
  • MongoDb.get_traces (cyclomatic 18) libs/agno/agno/db/mongo/mongo.py:2381 — MongoDb.get_traces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.get_traces (cyclomatic 18) · ×1
  • AsyncPostgresDb.get_traces (cyclomatic 18) libs/agno/agno/db/postgres/async_postgres.py:2586 — AsyncPostgresDb.get_traces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.get_traces (cyclomatic 18) · ×1
  • PostgresDb.get_traces (cyclomatic 18) libs/agno/agno/db/postgres/postgres.py:3061 — PostgresDb.get_traces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncSqliteDb.get_traces (cyclomatic 18) · ×1
  • AsyncSqliteDb.get_traces (cyclomatic 18) libs/agno/agno/db/sqlite/async_sqlite.py:2770 — AsyncSqliteDb.get_traces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.get_traces (cyclomatic 18) · ×1
  • SqliteDb.get_traces (cyclomatic 18) libs/agno/agno/db/sqlite/sqlite.py:2675 — SqliteDb.get_traces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.upsert_component (cyclomatic 18) · ×1
  • SqliteDb.upsert_component (cyclomatic 18) libs/agno/agno/db/sqlite/sqlite.py:3554 — SqliteDb.upsert_component has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SurrealDb.get_sessions (cyclomatic 18) · ×1
  • SurrealDb.get_sessions (cyclomatic 18) libs/agno/agno/db/surrealdb/surrealdb.py:319 — SurrealDb.get_sessions has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AccuracyEval.run_with_output (cyclomatic 18) · ×1
  • AccuracyEval.run_with_output (cyclomatic 18) libs/agno/agno/eval/accuracy.py:643 — AccuracyEval.run_with_output has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._validate_filters (cyclomatic 18) · ×1
  • Knowledge._validate_filters (cyclomatic 18) libs/agno/agno/knowledge/knowledge.py:830 — Knowledge._validate_filters has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Knowledge._build_content_hash (cyclomatic 18) · ×1
  • Knowledge._build_content_hash (cyclomatic 18) libs/agno/agno/knowledge/knowledge.py:2210 — Knowledge._build_content_hash has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GitHubLoader._aload_from_github (cyclomatic 18) · ×1
  • GitHubLoader._aload_from_github (cyclomatic 18) libs/agno/agno/knowledge/loaders/github.py:336 — GitHubLoader._aload_from_github has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GitHubLoader._load_from_github (cyclomatic 18) · ×1
  • GitHubLoader._load_from_github (cyclomatic 18) libs/agno/agno/knowledge/loaders/github.py:492 — GitHubLoader._load_from_github has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · S3Loader._load_from_s3 (cyclomatic 18) · ×1
  • S3Loader._load_from_s3 (cyclomatic 18) libs/agno/agno/knowledge/loaders/s3.py:174 — S3Loader._load_from_s3 has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntityMemoryStore._apply_forget (cyclomatic 18) · ×1
  • EntityMemoryStore._apply_forget (cyclomatic 18) libs/agno/agno/learn/stores/entity_memory.py:2139 — EntityMemoryStore._apply_forget has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · metrics.accumulate_eval_metrics (cyclomatic 18) · ×1
  • metrics.accumulate_eval_metrics (cyclomatic 18) libs/agno/agno/metrics.py:718 — metrics.accumulate_eval_metrics has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Claude.get_request_params (cyclomatic 18) · ×1
  • Claude.get_request_params (cyclomatic 18) libs/agno/agno/models/anthropic/claude.py:533 — Claude.get_request_params has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Gemini._format_video_for_message (cyclomatic 18) · ×1
  • Gemini._format_video_for_message (cyclomatic 18) libs/agno/agno/models/google/gemini.py:984 — Gemini._format_video_for_message has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GeminiInteractions._call_step_info (cyclomatic 18) · ×1
  • GeminiInteractions._call_step_info (cyclomatic 18) libs/agno/agno/models/google/gemini_interactions.py:654 — GeminiInteractions._call_step_info has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses.invoke (cyclomatic 18) · ×1
  • OpenAIResponses.invoke (cyclomatic 18) libs/agno/agno/models/openai/responses.py:760 — OpenAIResponses.invoke has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OpenAIResponses.ainvoke (cyclomatic 18) · ×1
  • OpenAIResponses.ainvoke (cyclomatic 18) libs/agno/agno/models/openai/responses.py:865 — OpenAIResponses.ainvoke has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentOS._initialize_agents (cyclomatic 18) · ×1
  • AgentOS._initialize_agents (cyclomatic 18) libs/agno/agno/os/app.py:714 — AgentOS._initialize_agents has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HITLHandler.handle_check_status (cyclomatic 18) · ×1
  • HITLHandler.handle_check_status (cyclomatic 18) libs/agno/agno/os/interfaces/slack/hitl.py:321 — HITLHandler.handle_check_status has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · utils.run_reliability_eval (cyclomatic 18) · ×1
  • utils.run_reliability_eval (cyclomatic 18) libs/agno/agno/os/routers/evals/utils.py:179 — utils.run_reliability_eval has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · utils.collect_mcp_tools_from_team (cyclomatic 18) · ×1
  • utils.collect_mcp_tools_from_team (cyclomatic 18) libs/agno/agno/os/utils.py:1405 — utils.collect_mcp_tools_from_team has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RunRequirement.from_dict (cyclomatic 18) · ×1
  • RunRequirement.from_dict (cyclomatic 18) libs/agno/agno/run/requirement.py:232 — RunRequirement.from_dict has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SessionSummaryManager.get_system_message (cyclomatic 18) · ×1
  • SessionSummaryManager.get_system_message (cyclomatic 18) libs/agno/agno/session/summary.py:119 — SessionSummaryManager.get_system_message has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _hooks._execute_pre_hooks (cyclomatic 18) · ×1
  • _hooks._execute_pre_hooks (cyclomatic 18) libs/agno/agno/team/_hooks.py:240 — _hooks._execute_pre_hooks has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · _hooks._execute_post_hooks (cyclomatic 18) · ×1
  • _hooks._execute_post_hooks (cyclomatic 18) libs/agno/agno/team/_hooks.py:441 — _hooks._execute_post_hooks has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · _messages._get_run_messages (cyclomatic 18) · ×1
  • _messages._get_run_messages (cyclomatic 18) libs/agno/agno/team/_messages.py:849 — _messages._get_run_messages has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _messages._aget_run_messages (cyclomatic 18) · ×1
  • _messages._aget_run_messages (cyclomatic 18) libs/agno/agno/team/_messages.py:985 — _messages._aget_run_messages has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run.run_dispatch (cyclomatic 18) · ×1
  • _run.run_dispatch (cyclomatic 18) libs/agno/agno/team/_run.py:1855 — _run.run_dispatch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._continue_run (cyclomatic 18) · ×1
  • _run._continue_run (cyclomatic 18) libs/agno/agno/team/_run.py:7070 — _run._continue_run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · apify.props_to_json_schema (cyclomatic 18) · ×1
  • apify.props_to_json_schema (cyclomatic 18) libs/agno/agno/tools/apify.py:134 — apify.props_to_json_schema has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CodingTools.__init__ (cyclomatic 18) · ×1
  • CodingTools.__init__ (cyclomatic 18) libs/agno/agno/tools/coding.py:122 — CodingTools.__init__ has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FunctionCall.execute (cyclomatic 18) · ×1
  • FunctionCall.execute (cyclomatic 18) libs/agno/agno/tools/function.py:1057 — FunctionCall.execute has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MultiMCPTools._connect (cyclomatic 18) · ×1
  • MultiMCPTools._connect (cyclomatic 18) libs/agno/agno/tools/mcp/multi_mcp.py:516 — MultiMCPTools._connect has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PlivoTools.__init__ (cyclomatic 18) · ×1
  • PlivoTools.__init__ (cyclomatic 18) libs/agno/agno/tools/plivo.py:16 — PlivoTools.__init__ has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · RedmineTools.update_issue (cyclomatic 18) · ×1
  • RedmineTools.update_issue (cyclomatic 18) libs/agno/agno/tools/redmine.py:198 — RedmineTools.update_issue has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workspace.search_content (cyclomatic 18) · ×1
  • Workspace.search_content (cyclomatic 18) libs/agno/agno/tools/workspace.py:566 — Workspace.search_content has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · functions.get_function_call (cyclomatic 18) · ×1
  • functions.get_function_call (cyclomatic 18) libs/agno/agno/utils/functions.py:10 — functions.get_function_call has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mcp.prepare_command (cyclomatic 18) · ×1
  • mcp.prepare_command (cyclomatic 18) libs/agno/agno/utils/mcp.py:300 — mcp.prepare_command has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · tokens.count_file_tokens (cyclomatic 18) · ×1
  • tokens.count_file_tokens (cyclomatic 18) libs/agno/agno/utils/tokens.py:308 — tokens.count_file_tokens has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Cassandra.async_insert (cyclomatic 18) · ×1
  • Cassandra.async_insert (cyclomatic 18) libs/agno/agno/vectordb/cassandra/cassandra.py:122 — Cassandra.async_insert has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · ChromaDb._async_upsert (cyclomatic 18) · ×1
  • ChromaDb._async_upsert (cyclomatic 18) libs/agno/agno/vectordb/chroma/chromadb.py:566 — ChromaDb._async_upsert has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CouchbaseSearch.async_insert (cyclomatic 18) · ×1
  • CouchbaseSearch.async_insert (cyclomatic 18) libs/agno/agno/vectordb/couchbase/couchbase.py:883 — CouchbaseSearch.async_insert has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CouchbaseSearch._async_upsert (cyclomatic 18) · ×1
  • CouchbaseSearch._async_upsert (cyclomatic 18) libs/agno/agno/vectordb/couchbase/couchbase.py:985 — CouchbaseSearch._async_upsert has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MongoDb._create_search_index (cyclomatic 18) · ×1
  • MongoDb._create_search_index (cyclomatic 18) libs/agno/agno/vectordb/mongodb/mongodb.py:256 — MongoDb._create_search_index has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Step._enrich_event_with_context (cyclomatic 18) · ×1
  • Step._enrich_event_with_context (cyclomatic 18) libs/agno/agno/workflow/step.py:1006 — Step._enrich_event_with_context has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Steps.execute (cyclomatic 18) · ×1
  • Steps.execute (cyclomatic 18) libs/agno/agno/workflow/steps.py:244 — Steps.execute has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Steps.aexecute (cyclomatic 18) · ×1
  • Steps.aexecute (cyclomatic 18) libs/agno/agno/workflow/steps.py:538 — Steps.aexecute has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._run_workflow_agent_stream (cyclomatic 18) · ×1
  • Workflow._run_workflow_agent_stream (cyclomatic 18) libs/agno/agno/workflow/workflow.py:4785 — Workflow._run_workflow_agent_stream has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Workflow._arun_workflow_agent (cyclomatic 18) · ×1
  • Workflow._arun_workflow_agent (cyclomatic 18) libs/agno/agno/workflow/workflow.py:5359 — Workflow._arun_workflow_agent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · workflow._find_inner_step_by_executor (cyclomatic 18) · ×1
  • workflow._find_inner_step_by_executor (cyclomatic 18) libs/agno/agno/workflow/workflow.py:205 — workflow._find_inner_step_by_executor has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GlueCrawler._create (cyclomatic 18) · ×1
  • GlueCrawler._create (cyclomatic 18) libs/agno_infra/agno/aws/resource/glue/crawler.py:122 — GlueCrawler._create has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · __main__._run_case_async (cyclomatic 17) · ×1
  • __main__._run_case_async (cyclomatic 17) cookbook/01_demo/evals/__main__.py:68 — __main__._run_case_async has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · 09_custom_tools.assess_risk_score (cyclomatic 17) · ×1
  • 09_custom_tools.assess_risk_score (cyclomatic 17) cookbook/03_teams/02_modes/tasks/09_custom_tools.py:75 — 09_custom_tools.assess_risk_score has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · cancel_run.long_running_task (cyclomatic 17) · ×1
  • cancel_run.long_running_task (cyclomatic 17) cookbook/03_teams/14_run_control/cancel_run.py:22 — cancel_run.long_running_task has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · studio_hitl_agent_os.resolve_paused_tools (cyclomatic 17) · ×1
  • studio_hitl_agent_os.resolve_paused_tools (cyclomatic 17) cookbook/05_agent_os/22_studio/studio_hitl_agent_os.py:105 — studio_hitl_agent_os.resolve_paused_tools has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ClaudeAgent._arun_adapter (cyclomatic 17) · ×1
  • ClaudeAgent._arun_adapter (cyclomatic 17) libs/agno/agno/agents/claude/agent.py:138 — ClaudeAgent._arun_adapter has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DSPyAgent._arun_adapter_stream (cyclomatic 17) · ×1
  • DSPyAgent._arun_adapter_stream (cyclomatic 17) libs/agno/agno/agents/dspy/agent.py:111 — DSPyAgent._arun_adapter_stream has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncBaseDb.__init__ (cyclomatic 17) · ×1
  • AsyncBaseDb.__init__ (cyclomatic 17) libs/agno/agno/db/base.py:1489 — AsyncBaseDb.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · DynamoDb.get_user_memories (cyclomatic 17) · ×1
  • DynamoDb.get_user_memories (cyclomatic 17) libs/agno/agno/db/dynamo/dynamo.py:859 — DynamoDb.get_user_memories has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncMySQLDb._create_table (cyclomatic 17) · ×1
  • AsyncMySQLDb._create_table (cyclomatic 17) libs/agno/agno/db/mysql/async_mysql.py:149 — AsyncMySQLDb._create_table has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MySQLDb._create_table (cyclomatic 17) · ×1
  • MySQLDb._create_table (cyclomatic 17) libs/agno/agno/db/mysql/mysql.py:147 — MySQLDb._create_table has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb._get_table (cyclomatic 17) · ×1
  • AsyncPostgresDb._get_table (cyclomatic 17) libs/agno/agno/db/postgres/async_postgres.py:338 — AsyncPostgresDb._get_table has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AsyncPostgresDb.get_user_memories (cyclomatic 17) · ×1
  • AsyncPostgresDb.get_user_memories (cyclomatic 17) libs/agno/agno/db/postgres/async_postgres.py:1164 — AsyncPostgresDb.get_user_memories has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · PostgresDb.create_component_with_config (cyclomatic 17) · ×1
  • PostgresDb.create_component_with_config (cyclomatic 17) libs/agno/agno/db/postgres/postgres.py:3874 — PostgresDb.create_component_with_config has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RedisDb.upsert_trace (cyclomatic 17) · ×1
  • RedisDb.upsert_trace (cyclomatic 17) libs/agno/agno/db/redis/redis.py:1723 — RedisDb.upsert_trace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SqliteDb.create_component_with_config (cyclomatic 17) · ×1
  • SqliteDb.create_component_with_config (cyclomatic 17) libs/agno/agno/db/sqlite/sqlite.py:3760 — SqliteDb.create_component_with_config has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SurrealDb.get_traces (cyclomatic 17) · ×1
  • SurrealDb.get_traces (cyclomatic 17) libs/agno/agno/db/surrealdb/surrealdb.py:1637 — SurrealDb.get_traces has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.delete_sessions (cyclomatic 17) · ×1
  • ValkeyDb.delete_sessions (cyclomatic 17) libs/agno/agno/db/valkey/valkey.py:397 — ValkeyDb.delete_sessions has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.delete_user_memories (cyclomatic 17) · ×1
  • ValkeyDb.delete_user_memories (cyclomatic 17) libs/agno/agno/db/valkey/valkey.py:961 — ValkeyDb.delete_user_memories has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ValkeyDb.upsert_trace (cyclomatic 17) · ×1
  • ValkeyDb.upsert_trace (cyclomatic 17) libs/agno/agno/db/valkey/valkey.py:2013 — ValkeyDb.upsert_trace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DocumentChunking.chunk (cyclomatic 17) · ×1
  • DocumentChunking.chunk (cyclomatic 17) libs/agno/agno/knowledge/chunking/document.py:14 — DocumentChunking.chunk has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AzureBlobLoader._aload_from_azure_blob (cyclomatic 17) · ×1
  • AzureBlobLoader._aload_from_azure_blob (cyclomatic 17) libs/agno/agno/knowledge/loaders/azure_blob.py:148 — AzureBlobLoader._aload_from_azure_blob has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AzureBlobLoader._load_from_azure_blob (cyclomatic 17) · ×1
  • AzureBlobLoader._load_from_azure_blob (cyclomatic 17) libs/agno/agno/knowledge/loaders/azure_blob.py:294 — AzureBlobLoader._load_from_azure_blob has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FieldLabeledCSVReader.async_read (cyclomatic 17) · ×1
  • FieldLabeledCSVReader.async_read (cyclomatic 17) libs/agno/agno/knowledge/reader/field_labeled_csv_reader.py:168 — FieldLabeledCSVReader.async_read has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TavilyReader._extract (cyclomatic 17) · ×1
  • TavilyReader._extract (cyclomatic 17) libs/agno/agno/knowledge/reader/tavily_reader.py:83 — TavilyReader._extract has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ModelMetrics.accumulate (cyclomatic 17) · ×1
  • ModelMetrics.accumulate (cyclomatic 17) libs/agno/agno/metrics.py:68 — ModelMetrics.accumulate has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · SessionMetrics.accumulate_from_run (cyclomatic 17) · ×1
  • SessionMetrics.accumulate_from_run (cyclomatic 17) libs/agno/agno/metrics.py:509 — SessionMetrics.accumulate_from_run has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AgentOS._add_auth_middleware (cyclomatic 17) · ×1
  • AgentOS._add_auth_middleware (cyclomatic 17) libs/agno/agno/os/app.py:1352 — AgentOS._add_auth_middleware has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · handlers.on_run_completed (cyclomatic 17) · ×1
  • handlers.on_run_completed (cyclomatic 17) libs/agno/agno/os/interfaces/agui/handlers.py:317 — handlers.on_run_completed has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mcp._consume_workflow_stream (cyclomatic 17) · ×1
  • mcp._consume_workflow_stream (cyclomatic 17) libs/agno/agno/os/mcp.py:486 — mcp._consume_workflow_stream has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · mcp.get_mcp_server (cyclomatic 17) · ×1
  • mcp.get_mcp_server (cyclomatic 17) libs/agno/agno/os/mcp.py:1242 — mcp.get_mcp_server has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · router.workflow_response_streamer (cyclomatic 17) · ×1
  • router.workflow_response_streamer (cyclomatic 17) libs/agno/agno/os/routers/workflows/router.py:571 — router.workflow_response_streamer has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · approval._apply_approval_to_tools (cyclomatic 17) · ×1
  • approval._apply_approval_to_tools (cyclomatic 17) libs/agno/agno/run/approval.py:342 — approval._apply_approval_to_tools has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._handle_team_tool_call_updates (cyclomatic 17) · ×1
  • _run._handle_team_tool_call_updates (cyclomatic 17) libs/agno/agno/team/_run.py:4997 — _run._handle_team_tool_call_updates has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · _run._handle_team_tool_call_updates_stream (cyclomatic 17) · ×1
  • _run._handle_team_tool_call_updates_stream (cyclomatic 17) libs/agno/agno/team/_run.py:5058 — _run._handle_team_tool_call_updates_stream has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · AntigravityTools._load_agent_directory (cyclomatic 17) · ×1
  • AntigravityTools._load_agent_directory (cyclomatic 17) libs/agno/agno/tools/antigravity.py:140 — AntigravityTools._load_agent_directory has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CalComTools.__init__ (cyclomatic 17) · ×1
  • CalComTools.__init__ (cyclomatic 17) libs/agno/agno/tools/calcom.py:16 — CalComTools.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CodingTools.grep (cyclomatic 17) · ×1
  • CodingTools.grep (cyclomatic 17) libs/agno/agno/tools/coding.py:563 — CodingTools.grep has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CodingTools.ls (cyclomatic 17) · ×1
  • CodingTools.ls (cyclomatic 17) libs/agno/agno/tools/coding.py:711 — CodingTools.ls has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Mem0Tools.__init__ (cyclomatic 17) · ×1
  • Mem0Tools.__init__ (cyclomatic 17) libs/agno/agno/tools/mem0.py:17 — Mem0Tools.__init__ has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cas...

    Downloadable artifacts

    Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.