Repository Analysis

ag-ui-protocol/ag-ui

AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications.

10.4 Low AI signal View on GitHub
10.4
Adjusted Score
10.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
13,921
Stars
TypeScript
Language
377,605
Lines of Code
1837
Files
2831
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 3HIGH 59MEDIUM 421LOW 2348

Pattern Findings

2831 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1426 hits · 1324 pts
SeverityFileLineSnippet
LOWsdks/python/tests/test_interrupts.py8 def test_required_fields_only(self):
LOWsdks/python/tests/test_interrupts.py28 def test_alias_camel_case_on_serialization(self):
LOWsdks/python/tests/test_interrupts.py34 def test_parse_from_camel_case(self):
LOWsdks/python/tests/test_interrupts.py42 def test_rejects_missing_reason(self):
LOWsdks/python/tests/test_interrupts.py48 def test_resolved_with_payload(self):
LOWsdks/python/tests/test_interrupts.py53 def test_cancelled_without_payload(self):
LOWsdks/python/tests/test_interrupts.py58 def test_rejects_unknown_status(self):
LOWsdks/python/tests/test_interrupts.py62 def test_rejects_missing_interrupt_id(self):
LOWsdks/python/tests/test_interrupts.py66 def test_alias_camel_case_on_serialization(self):
LOWsdks/python/tests/test_interrupts.py72 def test_parse_from_camel_case(self):
LOWsdks/python/tests/test_capabilities.py32 def test_empty_agent_capabilities_serializes_to_empty_object(self):
LOWsdks/python/tests/test_capabilities.py38 def test_agent_capabilities_top_level_keys_match_typescript(self):
LOWsdks/python/tests/test_capabilities.py68 def test_identity_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py83 def test_transport_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py97 def test_tools_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py108 def test_output_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py117 def test_state_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py127 def test_multi_agent_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py138 def test_execution_capabilities_camel_case_keys(self):
LOWsdks/python/tests/test_capabilities.py151 def test_human_in_the_loop_top_level_alias(self):
LOWsdks/python/tests/test_capabilities.py159 def test_multimodal_nested_shape(self):
LOWsdks/python/tests/test_capabilities.py176 def test_round_trip_from_camel_case_payload(self):
LOWsdks/python/tests/test_capabilities.py204 def test_sub_agent_info_required_name(self):
LOWsdks/python/tests/test_text_roles.py21 def test_text_message_start_with_all_roles(self) -> None:
LOWsdks/python/tests/test_text_roles.py34 def test_text_message_chunk_with_all_roles(self) -> None:
LOWsdks/python/tests/test_text_roles.py49 def test_text_message_chunk_without_role(self) -> None:
LOWsdks/python/tests/test_text_roles.py61 def test_multiple_messages_different_roles(self) -> None:
LOWsdks/python/tests/test_text_roles.py90 def test_text_message_serialization(self) -> None:
LOWsdks/python/tests/test_text_roles.py110 def test_invalid_role_rejected(self) -> None:
LOWsdks/python/tests/test_text_roles.py134 def test_text_message_start_name_preserved_with_roles(self) -> None:
LOWsdks/python/tests/test_text_roles.py146 def test_text_message_start_default_role(self) -> None:
LOWsdks/python/tests/test_encoder.py12 def test_encoder_initialization(self):
LOWsdks/python/tests/test_encoder.py73 def test_encode_with_different_event_types(self):
LOWsdks/python/tests/test_encoder.py104 def test_null_value_exclusion(self):
LOWsdks/python/tests/test_encoder.py148 def test_round_trip_serialization(self):
LOWsdks/python/tests/test_capabilities_interrupts.py11 def test_approve_with_edits_flag(self):
LOWsdks/python/tests/test_capabilities_interrupts.py21 def test_parse_from_camel_case(self):
LOWsdks/python/tests/test_run_finished_event.py14 def test_legacy_event_with_no_outcome(self):
LOWsdks/python/tests/test_run_finished_event.py19 def test_legacy_event_with_result_only(self):
LOWsdks/python/tests/test_run_finished_event.py24 def test_explicit_success_outcome(self):
LOWsdks/python/tests/test_run_finished_event.py35 def test_explicit_interrupt_outcome(self):
LOWsdks/python/tests/test_run_finished_event.py47 def test_outcome_via_dict_discriminator(self):
LOWsdks/python/tests/test_run_finished_event.py62 def test_interrupt_outcome_rejects_empty_interrupts(self):
LOWsdks/python/tests/test_run_finished_event.py66 def test_interrupt_outcome_via_dict_rejects_empty(self):
LOWsdks/python/tests/test_run_finished_event.py77 def test_camel_case_serialization(self):
LOWsdks/python/tests/test_run_finished_event.py90 def test_legacy_event_serialization_omits_outcome(self):
LOWsdks/python/tests/test_events.py70 def test_text_message_content(self):
LOWsdks/python/tests/test_events.py370 def test_event_union_deserialization(self):
LOWsdks/python/tests/test_events.py429 def test_empty_delta_accepted(self):
LOWsdks/python/tests/test_events.py437 def test_serialization_round_trip(self):
LOWsdks/python/tests/test_events.py509 def test_raw_event_with_null_source(self):
LOWsdks/python/tests/test_events.py529 def test_complex_nested_event_structures(self):
LOWsdks/python/tests/test_events.py580 def test_text_message_start_with_name(self):
LOWsdks/python/tests/test_events.py593 def test_text_message_start_without_name(self):
LOWsdks/python/tests/test_events.py600 def test_text_message_chunk_with_name(self):
LOWsdks/python/tests/test_events.py612 def test_text_message_chunk_without_name(self):
LOWsdks/python/tests/test_events.py620 def test_event_with_unicode_and_special_chars(self):
LOWsdks/python/tests/test_events.py642 def test_all_event_subclasses_in_event_union(self):
LOWsdks/python/tests/test_events.py666 def test_reasoning_message_start_event_role_is_reasoning(self):
LOWsdks/python/tests/test_events.py699 def test_reasoning_message_start_event_rejects_assistant_role(self):
1366 more matches not shown…
Decorative Section Separators263 hits · 916 pts
SeverityFileLineSnippet
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py49# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py51# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py79# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py81# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py121# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py123# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py161# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py163# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py319# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py321# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py372# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py374# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py413# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py416# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py450# ---------------------------------------------------------------------------
MEDIUMsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py456# ---------------------------------------------------------------------------
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts44// ── Reusable helpers ─────────────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts114// ── Agents ───────────────────────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts420// ── Tests ────────────────────────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts423 // ─── Basic chaining ────────────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts463 // ─── Full text events (no chunk transformation) ────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts482 // ─── Tool call chunk transformation ────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts515 // ─── Full tool call events (no chunk transformation) ───────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts545 // ─── State propagation ─────────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts589 // ─── MESSAGES_SNAPSHOT ─────────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts610 // ─── Multiple sequential messages ──────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts630 // ─── Mixed text + tool call events ─────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts663 // ─── Mixed middleware types ────────────────────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts720 // ─── Initial messages / pre-existing state ─────────────────────────────────
MEDIUM…eware/__tests__/middleware-chained-integration.test.ts765 // ─── Event-with-state tracking across all event types ──────────────────────
MEDIUMsdks/community/c++/tests/test_sse_server.cpp105// ── Test Suite 1: HTTP Client Integration Tests ───────────────────────────────
MEDIUMsdks/community/c++/tests/test_sse_server.cpp182// ── Test Suite 2: HttpAgent Integration Tests ─────────────────────────────────
MEDIUMsdks/community/c++/tests/test_sse_server.cpp708// ── Test Environment Setup ────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_middleware.cpp424// ── TH-3: Builder::build() rejects an empty URL ──────────────────────────────
MEDIUMsdks/community/c++/tests/test_middleware.cpp432// ── TH-4: MiddlewareChain::notifyError notifies all middlewares ───────────────
MEDIUMsdks/community/c++/tests/test_event_handler.cpp1085// ── notifyRunFailed / notifyRunFinalized best-effort semantics ────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp23// ── Text Message Events ────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp97// ── Thinking Message Events ────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp127// ── Tool Call Events ───────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp208// ── Thinking Step Events ───────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp226// ── State Management Events ────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp268// ── Run Lifecycle Events ───────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp313// ── Step Events ────────────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp339// ── Unknown/Missing Type Handling ─────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp353// ── T-4: Activity Events Round-Trip ───────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp398// ── T-5: RawEvent / CustomEvent Round-Trip ────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_event_parser.cpp445// ── T-6: Event::validate() direct tests ──────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp253// ─── Mock HTTP Service ───────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp337// ─── Core Path Tests ─────────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp1110// ─── H-5: Multi-run state persistence ────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp1176// ─── H-6: Per-run subscriber cleanup ─────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp1234// ─── cancelRun test ───────────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp1262// ─── roleFromString test ──────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_http_agent.cpp1276// ── T-3: HTTP 4xx/5xx error response handling ─────────────────────────────────
MEDIUMsdks/community/c++/tests/test_agent_error.cpp16// ── Construction & Basic Fields ────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_agent_error.cpp37// ── what() interface ───────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_agent_error.cpp51// ── fullMessage ────────────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_agent_error.cpp66// ── Stack Trace ────────────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_agent_error.cpp91// ── Recovery Strategy ──────────────────────────────────────────────────────
MEDIUMsdks/community/c++/tests/test_agent_error.cpp104// ── Static Factory Methods ─────────────────────────────────────────────────
203 more matches not shown…
Self-Referential Comments129 hits · 389 pts
SeverityFileLineSnippet
MEDIUMsdks/python/tests/test_encoder.py23 # Create a test event
MEDIUMsdks/python/tests/test_encoder.py44 # Create a test event with specific data
MEDIUMsdks/python/tests/test_encoder.py106 # Create an event with some fields set to None
MEDIUMsdks/python/tests/test_encoder.py150 # Create a complex event with multiple fields
MEDIUMsdks/python/tests/test_types.py107 # Create a tool call with nested function call in camelCase
MEDIUMsdks/community/ruby/lib/ag-ui-protocol.rb3# This file is a alias for the ag_ui_protocol
MEDIUM…thon/examples/server/routers/backend_tool_rendering.py106# Create the router with weather tools
MEDIUM…ython/examples/server/routers/agentic_generative_ui.py47 # Create a copy to track changes for JSON patches
MEDIUM…egrations/langgraph/python/ag_ui_langgraph/endpoint.py17 # Create an event encoder to properly format SSE events
MEDIUM…ions/langgraph/python/tests/test_message_conversion.py116 # Create a message-like object with an unsupported role
MEDIUM…python/examples/agents/multimodal_messages/__init__.py17# Create a multimodal user message
MEDIUM…ph/python/examples/agents/multimodal_messages/agent.py72# Define a new graph
MEDIUM…/python/examples/agents/agentic_generative_ui/agent.py79 # Define the model
MEDIUM…/python/examples/agents/agentic_generative_ui/agent.py163# Define the graph
MEDIUM…raph/python/examples/agents/human_in_the_loop/agent.py74 # Define the model
MEDIUM…raph/python/examples/agents/human_in_the_loop/agent.py222# Define the graph
MEDIUM…langgraph/python/examples/agents/shared_state/agent.py148 # Create a safer serialization of the recipe
MEDIUM…langgraph/python/examples/agents/shared_state/agent.py171 # Define the model
MEDIUM…langgraph/python/examples/agents/shared_state/agent.py229 # Create a new recipe
MEDIUM…langgraph/python/examples/agents/shared_state/agent.py267# Define the graph
MEDIUM…thon/examples/agents/predictive_state_updates/agent.py63 # Define the model
MEDIUM…thon/examples/agents/predictive_state_updates/agent.py152# Define the graph
MEDIUM…ns/langgraph/python/examples/agents/subgraphs/agent.py248 # Define the model
MEDIUM…ython/examples/agents/agentic_chat_multimodal/agent.py61# Define a new graph
MEDIUM…python/examples/agents/agentic_chat_reasoning/agent.py85# Define a new graph
MEDIUM…crosoft-agent-framework/python/examples/agents/dojo.py66# Create a shared chat client for all agents
MEDIUM…thon/examples/example_server/backend_tool_rendering.py30 # Create an event encoder to properly format SSE events
MEDIUM…eatures/python/examples/example_server/agentic_chat.py34 # Create an event encoder to properly format SSE events
MEDIUM…es/python/examples/example_server/human_in_the_loop.py29 # Create an event encoder to properly format SSE events
MEDIUM…ython/examples/example_server/agentic_generative_ui.py25 # Create an event encoder to properly format SSE events
MEDIUM…ython/examples/example_server/agentic_generative_ui.py79 # Create a copy to track changes for JSON patches
MEDIUM…eatures/python/examples/example_server/shared_state.py21 # Create an event encoder to properly format SSE events
MEDIUM…eatures/python/examples/example_server/shared_state.py55 # Define the recipe state
MEDIUM…on/examples/example_server/predictive_state_updates.py30 # Create an event encoder to properly format SSE events
MEDIUM…on/examples/example_server/tool_based_generative_ui.py23 # Create an event encoder to properly format SSE events
MEDIUMintegrations/crew-ai/python/ag_ui_crewai/endpoint.py1473 # Create an event encoder to properly format SSE events
MEDIUMintegrations/crew-ai/python/ag_ui_crewai/enterprise.py69# This class is used to produce custom events when running a crewai flow on CrewAI Enterprise.
MEDIUM…ver-starter/python/examples/example_server/__init__.py29 # Create an event encoder to properly format SSE events
MEDIUM…ions/aws-strands/python/tests/test_reasoning_events.py41 # Create a mock base agent to extract config from
MEDIUM…rations/aws-strands/python/examples/server/__init__.py37# Create main app
MEDIUM…aws-strands/python/examples/server/api/shared_state.py146# Create the AG-UI Strands agent wrapper
MEDIUM…aws-strands/python/examples/server/api/shared_state.py154# Create the FastAPI app
MEDIUM…grations/agent-spec/python/ag_ui_agentspec/endpoint.py28 # Create an event encoder to properly format SSE events
MEDIUM…egrations/watsonx/python/src/ag_ui_watsonx/endpoint.py24 # Create an event encoder to properly format SSE events
MEDIUM…eware/python/tests/test_duplicate_function_response.py76 # Create the session
MEDIUM…ations/adk-middleware/python/tests/test_concurrency.py16 # Create a real ADK agent
MEDIUM…are/python/tests/test_lro_tool_response_persistence.py118 # Define a simple client-side tool
MEDIUM…are/python/tests/test_lro_tool_response_persistence.py190 # Define the client-side tool
MEDIUM…ns/adk-middleware/python/tests/test_execution_state.py63 # Create a real asyncio task for testing
MEDIUM…s/adk-middleware/python/tests/test_session_creation.py32 # Create a test input that should trigger session creation
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py352 # Create a mock event queue that fails
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py90 # Create an execution with a pending tool
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py139 # Create an execution without the expected tool call
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py326 # Create a sample tool for the toolset
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py374 # Create a mock event queue that fails
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py397 # Create a real asyncio task for proper cancellation testing
MEDIUM…/adk-middleware/python/tests/test_user_id_extractor.py14 # Create a test ADK agent
MEDIUM…/adk-middleware/python/tests/test_user_id_extractor.py49 # Create a test ADK agent
MEDIUM…/adk-middleware/python/tests/test_user_id_extractor.py92 # Create a test ADK agent
MEDIUM…/adk-middleware/python/tests/test_user_id_extractor.py121 # Create a test ADK agent
69 more matches not shown…
Unused Imports438 hits · 370 pts
SeverityFileLineSnippet
LOWsdks/python/tests/test_text_roles.py5
LOWsdks/python/tests/test_events.py8
LOWsdks/python/a2ui_toolkit/tests/test_toolkit.py7
LOWsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py11
LOWsdks/python/ag_ui/core/events.py10
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py5
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
LOWsdks/python/ag_ui/core/__init__.py49
378 more matches not shown…
Cross-File Repetition47 hits · 235 pts
SeverityFileLineSnippet
HIGH…nity/rust/crates/ag-ui-client/scripts/generative_ui.py0a class representing a json patch operation (rfc 6902).
HIGH…ai/python/examples/server/api/agentic_generative_ui.py0a class representing a json patch operation (rfc 6902).
HIGH…re/python/examples/server/api/agentic_generative_ui.py0a class representing a json patch operation (rfc 6902).
HIGH…id/python/examples/server/api/agentic_generative_ui.py0a class representing a json patch operation (rfc 6902).
HIGH…nity/rust/crates/ag-ui-client/scripts/generative_ui.py0create a plan with multiple steps. args: steps: list of step descriptions to create the plan. returns: statesnapshoteven
HIGH…ai/python/examples/server/api/agentic_generative_ui.py0create a plan with multiple steps. args: steps: list of step descriptions to create the plan. returns: statesnapshoteven
HIGH…g2/python/examples/server/api/agentic_generative_ui.py0create a plan with multiple steps. args: steps: list of step descriptions to create the plan. returns: statesnapshoteven
HIGH…nity/rust/crates/ag-ui-client/scripts/generative_ui.py0update the plan with new steps or changes. args: index: the index of the step to update. description: the new descriptio
HIGH…ai/python/examples/server/api/agentic_generative_ui.py0update the plan with new steps or changes. args: index: the index of the step to update. description: the new descriptio
HIGH…g2/python/examples/server/api/agentic_generative_ui.py0update the plan with new steps or changes. args: index: the index of the step to update. description: the new descriptio
HIGH…thon/examples/server/routers/backend_tool_rendering.py0map weather code to human-readable condition. args: code: wmo weather code. returns: human-readable weather condition st
HIGH…i/python/examples/server/api/backend_tool_rendering.py0map weather code to human-readable condition. args: code: wmo weather code. returns: human-readable weather condition st
HIGH…e/python/examples/server/api/backend_tool_rendering.py0map weather code to human-readable condition. args: code: wmo weather code. returns: human-readable weather condition st
HIGH…o/python/examples/server/api/backend_tool_rendering.py0map weather code to human-readable condition. args: code: wmo weather code. returns: human-readable weather condition st
HIGH…thon/examples/server/routers/backend_tool_rendering.py0get current weather for a location. args: location: city name. returns: dictionary with weather information including te
HIGH…i/python/examples/server/api/backend_tool_rendering.py0get current weather for a location. args: location: city name. returns: dictionary with weather information including te
HIGH…e/python/examples/server/api/backend_tool_rendering.py0get current weather for a location. args: location: city name. returns: dictionary with weather information including te
HIGH…thon/examples/server/routers/backend_tool_rendering.py0you are a helpful weather assistant that provides accurate weather information. your primary function is to help users g
HIGH…i/python/examples/server/api/backend_tool_rendering.py0you are a helpful weather assistant that provides accurate weather information. your primary function is to help users g
HIGH…e/python/examples/server/api/backend_tool_rendering.py0you are a helpful weather assistant that provides accurate weather information. your primary function is to help users g
HIGH…python/examples/agents/backend_tool_rendering/agent.py0a simple agentic chat flow using langgraph instead of crewai.
HIGH…langgraph/python/examples/agents/agentic_chat/agent.py0a simple agentic chat flow using langgraph instead of crewai.
HIGH…python/examples/agents/agentic_chat_reasoning/agent.py0a simple agentic chat flow using langgraph instead of crewai.
HIGH…are/python/tests/test_lro_tool_response_persistence.py0ensure llmock is running when no real api key is set.
HIGH…are/python/tests/test_lro_tool_response_persistence.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_resumability_config.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_resumability_config.py0ensure llmock is running when no real api key is set.
HIGH…re/python/tests/test_adk_130_invocation_id_override.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_lro_sse_persistence.py0ensure llmock is running when no real api key is set.
HIGH…k-middleware/python/tests/test_from_app_integration.py0ensure llmock is running when no real api key is set.
HIGH…s/adk-middleware/python/tests/test_lro_sse_id_remap.py0ensure llmock is running when no real api key is set.
HIGH…e/python/tests/test_thought_to_thinking_integration.py0ensure llmock is running when no real api key is set.
HIGH…tests/test_issue_437_skip_summarization_integration.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_context_integration.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_context_integration.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_context_integration.py0ensure llmock is running when no real api key is set.
HIGH…dk-middleware/python/tests/test_context_integration.py0ensure llmock is running when no real api key is set.
HIGH…iddleware/python/tests/test_multi_turn_conversation.py0ensure llmock is running when no real api key is set.
HIGH…eware/python/tests/test_hitl_resumption_text_output.py0ensure llmock is running when no real api key is set.
HIGH…ons/adk-middleware/python/tests/test_multimodal_e2e.py0ensure llmock is running when no real api key is set.
HIGH…ations/adk-middleware/python/tests/test_text_events.py0test that we get proper message events with correct start/content/end patterns.
HIGH…ations/adk-middleware/python/tests/test_text_events.py0test that we get proper message events with correct start/content/end patterns.
HIGH…ations/adk-middleware/python/tests/test_text_events.py0test that we get proper message events with correct start/content/end patterns.
HIGH…ns/adk-middleware/python/tests/test_message_history.py0return app suitable for testclient (wrap apirouter in fastapi if needed). note: this must be called after routes are add
HIGH…ns/adk-middleware/python/tests/test_message_history.py0return app suitable for testclient (wrap apirouter in fastapi if needed). note: this must be called after routes are add
HIGH…iddleware/python/tests/test_endpoint_error_handling.py0return app suitable for testclient (wrap apirouter in fastapi if needed). note: this must be called after routes are add
HIGH…egrations/adk-middleware/python/tests/test_endpoint.py0return app suitable for testclient (wrap apirouter in fastapi if needed). note: this must be called after routes are add
Excessive Try-Catch Wrapping163 hits · 162 pts
SeverityFileLineSnippet
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py583 except Exception:
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py592 except Exception:
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py600 except Exception:
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py608 except Exception:
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py522 except Exception:
LOW…langgraph/python/examples/agents/shared_state/agent.py153 except Exception as e: # pylint: disable=broad-exception-caught
LOWintegrations/crew-ai/python/tests/conftest.py23except Exception: # pragma: no cover - import-time failure is a real bug
LOWintegrations/crew-ai/python/tests/conftest.py71 except Exception: # pragma: no cover - defensive
LOWintegrations/crew-ai/python/tests/conftest.py84 except Exception: # pragma: no cover - defensive
LOW…rations/crew-ai/python/tests/test_task_cancellation.py1065 except Exception: # noqa: BLE001
LOW…rations/crew-ai/python/tests/test_task_cancellation.py1875 except Exception:
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py346 except Exception: # noqa: BLE001 - defensive
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py426 except Exception: # noqa: BLE001 - defensive
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py475 except Exception as grace_exc: # pylint: disable=broad-exception-caught
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py541 except Exception as recov_exc: # pylint: disable=broad-exception-caught
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py1270 except Exception: # noqa: BLE001
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py1402 except Exception as e: # pylint: disable=broad-exception-caught
LOW…s/crew-ai/python/ag_ui_crewai/examples/shared_state.py215 except Exception as e:
MEDIUM…s/crew-ai/python/ag_ui_crewai/examples/shared_state.py217 print(f"Error updating recipe state: {e}") # Log the error server-side
LOW…aws-strands/python/examples/server/api/shared_state.py113 except Exception:
LOW…tions/aws-strands/python/src/ag_ui_strands/endpoint.py27 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/utils.py57 except Exception as exc:
LOW…grations/aws-strands/python/src/ag_ui_strands/utils.py76 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/utils.py157 except Exception:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py341 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py435 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py664 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py718 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py918 except Exception:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1011 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1024 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1327 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1396 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1418 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1479 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1566 except Exception as e:
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1616 except Exception as e:
LOW…c/python/ag_ui_agentspec/agentspec_tracing_exporter.py67 except Exception: # pylint: disable=broad-exception-caught
LOW…grations/agent-spec/python/ag_ui_agentspec/endpoint.py40 except Exception as e: # pylint: disable=broad-exception-caught
LOW…grations/agent-spec/python/ag_ui_agentspec/endpoint.py65 except Exception as e: # pylint: disable=broad-exception-caught
MEDIUM…grations/agent-spec/python/ag_ui_agentspec/endpoint.py36def run_and_close():
LOW…ec/python/ag_ui_agentspec/runtimes/langgraph_runner.py22 except Exception as e:
LOW…spec/python/ag_ui_agentspec/runtimes/wayflow_runner.py68 except Exception as e:
LOW…spec/python/ag_ui_agentspec/runtimes/wayflow_runner.py81 except Exception as e:
LOWintegrations/watsonx/python/src/ag_ui_watsonx/agent.py326 except Exception as e:
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py246 except Exception as e:
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py354 except Exception as e:
MEDIUM…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py350def in input_data.tools:
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/session.py76 except Exception as exc:
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/session.py82 except Exception as exc:
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/session.py96 except Exception as exc:
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/session.py116 except Exception as exc:
MEDIUMintegrations/claude-agent-sdk/python/examples/server.py50 print("Error: ANTHROPIC_API_KEY required")
LOW…ations/adk-middleware/python/tests/test_concurrency.py90 except Exception as e:
LOW…eware/python/tests/test_credential_service_defaults.py20 except Exception as e:
LOW…eware/python/tests/test_credential_service_defaults.py54 except Exception as e:
LOW…eware/python/tests/test_credential_service_defaults.py86 except Exception as e:
LOW…eware/python/tests/test_credential_service_defaults.py139 except Exception as e:
LOW…eware/python/tests/test_credential_service_defaults.py160 except Exception as e:
LOW…s/adk-middleware/python/tests/test_session_creation.py69 except Exception as e:
103 more matches not shown…
Over-Commented Block134 hits · 124 pts
SeverityFileLineSnippet
LOW…ages/client/src/agent/__tests__/legacy-bridged.test.ts381
LOWsdks/community/c++/tests/test_sse_server.cpp21#include <vector>
LOWsdks/community/c++/src/core/subscriber.h1#pragma once
LOWsdks/community/c++/src/agent/http_agent.h1#pragma once
LOWsdks/community/go/pkg/core/events/events.go41 // EventTypeThinkingEnd indicates the end of a thinking phase.
LOWsdks/community/go/pkg/core/events/events.go401 case EventTypeMessagesSnapshot:
LOWsdks/community/go/pkg/client/sse/client_test.go61// wantErr bool
LOWsdks/community/go/pkg/client/sse/client_test.go81// flusher.Flush()
LOWsdks/community/go/pkg/client/sse/client_test.go101// t.Errorf("expected 3 frames, got %d", len(frames))
LOWsdks/community/go/pkg/client/sse/client_test.go121// {
LOWsdks/community/go/pkg/client/sse/client_test.go141// wantFrames: 1,
LOWsdks/community/go/pkg/client/sse/client_test.go161// },
LOWsdks/community/go/pkg/client/sse/client_test.go181// if auth != "Bearer test-key-123" {
LOWsdks/community/go/pkg/client/sse/client_test.go201// payload: RunAgentInput{Stream: true},
LOWsdks/community/go/pkg/client/sse/client_test.go221// _, _ = fmt.Fprintf(w, "data: {\"authorized\":true}\n\n")
LOWsdks/community/go/pkg/client/sse/client_test.go241// logger := logrus.New()
LOWsdks/community/go/pkg/client/sse/client_test.go261// }
LOWsdks/community/go/pkg/client/sse/client_test.go281// }
LOWsdks/community/go/pkg/client/sse/client_test.go301// w.Header().Set("Content-Type", "text/event-stream")
LOWsdks/community/go/pkg/client/sse/client_test.go321// })
LOWsdks/community/go/pkg/client/sse/client_test.go341// }
LOWsdks/community/dart/lib/ag_ui.dart1/// AG-UI Dart SDK - Standardizing agent-user interactions
LOWsdks/community/dart/lib/ag_ui.dart21/// config: AgUiClientConfig(
LOWsdks/community/dart/lib/src/types/base.dart21
LOWsdks/community/dart/lib/src/encoder/encoder.dart41
LOWsdks/community/dart/lib/src/events/events.dart1/// All event types for AG-UI protocol.
LOWsdks/community/dart/lib/src/client/client.dart21/// Example:
LOWsdks/community/dart/lib/src/client/config.dart1import '../sse/backoff_strategy.dart';
LOWsdks/community/rust/crates/ag-ui-core/src/event.rs141
LOWsdks/community/rust/crates/ag-ui-client/src/sse.rs21/// Extension trait for processing Server-Sent Events (SSE) responses from reqwest::Response
LOW…s/community/rust/crates/ag-ui-client/src/subscriber.rs281 &self,
LOW…s/community/rust/crates/ag-ui-client/src/subscriber.rs301/// // Create from a single subscriber
LOWsdks/community/rust/crates/ag-ui-client/src/agent.rs161 /// can also be a unit type `()` or `None` if none are needed. Valid types are `T`, `(T,)`,
LOW…kotlin/com/agui/example/chatapp/chat/ChatController.kt421 //
LOWsdks/community/ruby/lib/ag_ui_protocol/util.rb1# typed: true
LOW…community/ruby/lib/ag_ui_protocol/core/capabilities.rb661
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb1# typed: true
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb21 # ```ruby
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb61 def to_json(*_args)
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb201
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb221 sig { params(id: String, content: String, name: T.nilable(String)).void }
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb241 # @param content [Object] Text content of the message (required)
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb401 }
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb961 # ```ruby
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb981 end
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb1061 # Represents an entry for resuming an interrupted run.
LOWsdks/community/ruby/lib/ag_ui_protocol/core/types.rb1101 end
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb1# typed: true
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb21 # ## Tool Call Events
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb81 # shared across all event types. Value types in this module
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb161
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb221 def to_h
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb321 def initialize(timestamp: nil, raw_event: nil)
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb441 #
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb501 delta: @delta
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb661 # contents verbatim on the wire.
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb861 # input = AgUiProtocol::Core::Types::RunAgentInput.new(
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb1081 super.merge(message: @message, code: @code)
LOWsdks/community/ruby/lib/ag_ui_protocol/core/events.rb1161 sig { returns(T::Hash[Symbol, T.untyped]) }
LOW…unity/ruby/lib/ag_ui_protocol/encoder/event_encoder.rb1# typed: true
74 more matches not shown…
Verbosity Indicators54 hits · 97 pts
SeverityFileLineSnippet
LOWsdks/typescript/packages/client/src/apply/default.ts584 // Step 3: Append messages from the snapshot that we don't have yet.
LOWsdks/community/c++/src/core/subscriber.cpp62 // Step 1: Invoke generic onEvent callback first
LOWsdks/community/c++/src/core/subscriber.cpp66 // Step 2: Check stopPropagation flag
LOWsdks/community/c++/src/core/subscriber.cpp71 // Step 3: Execute default event handling
LOWsdks/community/c++/src/core/subscriber.cpp147 // Step 4: Invoke type-specific subscriber callbacks
LOWsdks/community/kotlin/publish.sh106# Step 1: Clean previous builds and staging directory
LOWsdks/community/kotlin/publish.sh119# Step 2: Run tests
LOWsdks/community/kotlin/publish.sh129# Step 3: Build and publish to staging
LOWsdks/community/kotlin/publish.sh139# Step 4: Deploy to Maven Central (or dry-run)
LOW…are/python/tests/test_lro_tool_response_persistence.py203 # Step 1: Send initial message to trigger tool call
LOW…are/python/tests/test_lro_tool_response_persistence.py230 # Step 2: Submit tool result
LOW…are/python/tests/test_lro_tool_response_persistence.py267 # Step 3: Verify session has exactly ONE function_response
LOW…are/python/tests/test_lro_tool_response_persistence.py320 # Step 1: Trigger tool call
LOW…are/python/tests/test_lro_tool_response_persistence.py339 # Step 2: Submit tool result with specific run_id
LOW…are/python/tests/test_lro_tool_response_persistence.py447 # Step 1: Trigger tool call
LOW…are/python/tests/test_lro_tool_response_persistence.py466 # Step 2: Submit tool result WITH trailing user message
LOW…are/python/tests/test_lro_tool_response_persistence.py600 # Step 1: Initial request - should trigger tool call and pause
LOW…are/python/tests/test_lro_tool_response_persistence.py626 # Step 2: Submit tool result (resuming HITL)
LOW…dk-middleware/python/tests/test_resumability_config.py389 # Step 1: Initial request - should trigger tool call
LOW…dk-middleware/python/tests/test_resumability_config.py412 # Step 2: Submit tool result (simulating user approval)
LOW…adk-middleware/python/tests/test_tool_tracking_hitl.py362 # Step 2: Simulate middleware restart by clearing all in-memory state
LOW…adk-middleware/python/tests/test_tool_tracking_hitl.py368 # Step 3: Call _ensure_session_exists again (simulating first request after restart)
LOW…adk-middleware/python/tests/test_tool_tracking_hitl.py377 # Step 4: Verify pending_tool_calls were cleared
LOW…adk-middleware/python/tests/test_tool_tracking_hitl.py337 # Step 1: Create a session and add pending_tool_calls (simulating state before restart)
LOW…eware/python/tests/test_hitl_resumption_text_output.py194 # Step 1: Send initial request to trigger tool call
LOW…eware/python/tests/test_hitl_resumption_text_output.py232 # Step 2: Submit tool result (simulating user approval)
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py237 # Step 1: Emit LRO tool call via translate_lro_function_calls (simulates LRO path)
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py259 # Step 2: Confirmed event arrives (non-partial) WITHOUT long_running_tool_ids
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py297 # Step 1: Emit LRO via translate_lro_function_calls
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py314 # Step 2: Confirmed event with BOTH the LRO call and a new non-LRO call
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py837 # Step 1: LRO event — translator emits START/ARGS/END
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py861 # Step 2: Confirmed event (different ID) — suppressed by client_tool_names
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py1036 # Step 1: LRO event — translator emits START/ARGS/END
LOW…ions/adk-middleware/python/tests/test_lro_filtering.py1060 # Step 2: Confirmed event with different ID — must be suppressed so the
LOW…s/adk-middleware/python/examples/other/simple_agent.py25 # Step 1: Create an ADK agent
LOW…s/adk-middleware/python/examples/other/simple_agent.py32 # Step 2: Register the agent
LOW…s/adk-middleware/python/examples/other/simple_agent.py36 # Step 3: Create the middleware agent
LOW…s/adk-middleware/python/examples/other/simple_agent.py42 # Step 4: Create a sample input
LOW…s/adk-middleware/python/examples/other/simple_agent.py61 # Step 5: Run the agent and print events
LOW…adk-middleware/python/examples/other/complete_setup.py49 # Step 1: Configure Google ADK authentication
LOW…adk-middleware/python/examples/other/complete_setup.py59 # Step 2: Create shared memory service
LOW…adk-middleware/python/examples/other/complete_setup.py64 # Step 3: Create your ADK agent(s)
LOW…adk-middleware/python/examples/other/complete_setup.py101 # Step 4: Configure ADK middleware
LOW…adk-middleware/python/examples/other/complete_setup.py146 # Step 5: Create FastAPI app
LOW…adk-middleware/python/examples/other/complete_setup.py163 # Step 6: Add endpoints
LOW…adk-middleware/python/examples/other/complete_setup.py221 # Step 7: Run the server
LOWapps/dojo/e2e/setup-aws.sh34# Step 1: Create S3 Bucket
LOWapps/dojo/e2e/setup-aws.sh49# Step 2: Configure bucket for public read access
LOWapps/dojo/e2e/setup-aws.sh72# Step 3: Set up lifecycle policy for automatic cleanup (30 days)
LOWapps/dojo/e2e/setup-aws.sh91# Step 4: Create IAM policy for S3 upload permissions
LOWapps/dojo/e2e/setup-aws.sh121# Step 5: Create IAM user
LOWapps/dojo/e2e/setup-aws.sh127# Step 6: Attach policy to user
LOWapps/dojo/e2e/setup-aws.sh133# Step 7: Create access keys
LOWapps/dojo/e2e/setup-aws.sh141# Step 8: Test the setup
Deep Nesting86 hits · 73 pts
SeverityFileLineSnippet
LOWsdks/python/tests/test_events.py437
LOWsdks/python/a2ui_toolkit/ag_ui_a2ui_toolkit/__init__.py189
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py69
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py115
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py187
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py234
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py306
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py450
LOWintegrations/langgraph/python/ag_ui_langgraph/utils.py483
LOWintegrations/langgraph/python/ag_ui_langgraph/agent.py180
LOWintegrations/langgraph/python/ag_ui_langgraph/agent.py455
LOWintegrations/langgraph/python/ag_ui_langgraph/agent.py738
LOWintegrations/langgraph/python/ag_ui_langgraph/agent.py959
LOW…s/langgraph/python/tests/test_nested_tool_end_dedup.py178
LOW…raph/python/examples/agents/human_in_the_loop/agent.py63
LOW…langgraph/python/examples/agents/shared_state/agent.py144
LOWintegrations/crew-ai/python/tests/test_llm_timeout.py175
LOWintegrations/crew-ai/python/ag_ui_crewai/sdk.py276
LOWintegrations/crew-ai/python/ag_ui_crewai/crews.py105
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py292
LOWintegrations/crew-ai/python/ag_ui_crewai/endpoint.py952
LOW…s-strands/python/tests/test_streaming_predict_state.py118
LOW…ns/aws-strands/python/examples/server/model_factory.py12
LOW…ds/python/examples/server/api/agentic_generative_ui.py107
LOW…grations/aws-strands/python/src/ag_ui_strands/utils.py85
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py120
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py182
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py323
LOW…spec/python/ag_ui_agentspec/runtimes/wayflow_runner.py55
LOWintegrations/watsonx/python/src/ag_ui_watsonx/agent.py116
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py265
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py395
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/session.py48
LOW…s/claude-agent-sdk/python/ag_ui_claude_sdk/handlers.py139
LOW…ions/claude-agent-sdk/python/ag_ui_claude_sdk/utils.py92
LOW…ions/claude-agent-sdk/python/ag_ui_claude_sdk/utils.py341
LOW…ions/claude-agent-sdk/python/ag_ui_claude_sdk/utils.py404
LOW…eware/python/tests/test_duplicate_function_response.py113
LOW…are/python/tests/test_lro_tool_response_persistence.py72
LOW…are/python/tests/test_lro_tool_response_persistence.py293
LOW…eware/python/tests/test_credential_service_defaults.py90
LOW…ations/adk-middleware/python/tests/test_text_events.py265
LOW…iddleware/python/tests/test_endpoint_error_handling.py241
LOW…s/adk-middleware/python/tests/test_context_handling.py75
LOW…s/adk-middleware/python/tests/test_context_handling.py131
LOW…s/adk-middleware/python/tests/test_context_handling.py211
LOW…e/python/tests/test_thought_to_thinking_integration.py139
LOW…tests/test_issue_437_skip_summarization_integration.py323
LOW…s/adk-middleware/python/tests/test_tool_result_flow.py545
LOW…s/adk-middleware/python/tests/test_tool_result_flow.py1055
LOW…s/adk-middleware/python/tests/test_tool_result_flow.py1222
LOW…s/adk-middleware/python/tests/test_tool_result_flow.py1490
LOW…s/adk-middleware/python/tests/test_tool_result_flow.py586
LOW…eware/python/tests/test_hitl_resumption_text_output.py147
LOW…eware/python/tests/test_hitl_resumption_text_output.py311
LOW…adk-middleware/python/examples/test_multimodal_live.py77
LOW…adk-middleware/python/examples/test_multimodal_live.py137
LOW…s/adk-middleware/python/examples/other/simple_agent.py75
LOW…/adk-middleware/python/examples/other/context_usage.py69
LOW…/adk-middleware/python/examples/other/context_usage.py180
26 more matches not shown…
Redundant / Tautological Comments41 hits · 62 pts
SeverityFileLineSnippet
LOWsdks/community/kotlin/publish.sh48# Check if running in dry-run mode
LOW…raph/python/examples/agents/human_in_the_loop/agent.py180 # Check if we already have a user_response in the state
LOW…langgraph/python/examples/agents/shared_state/agent.py211 # Check if args is already a dict or needs to be parsed
LOW…on/examples/example_server/tool_based_generative_ui.py36 # Check if last message was a tool result
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1075 # Check if we've already seen this tool (by Strands' internal ID)
LOW…grations/aws-strands/python/src/ag_ui_strands/agent.py1537 # Check if generator is already closed/exhausted
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py614 # Check if this is the state management tool
LOW…ns/claude-agent-sdk/python/ag_ui_claude_sdk/adapter.py659 # Check if this is a frontend tool -- halt stream
LOW…ions/claude-agent-sdk/python/ag_ui_claude_sdk/utils.py107 # Check if last message is a tool result (for re-submission handling)
LOW…ations/adk-middleware/python/tests/test_text_events.py230 # Check if we have any text message events at all
LOW…adk-middleware/python/tests/test_tool_tracking_hitl.py135 # Check if tool call was tracked
LOW…iddleware/python/tests/test_endpoint_error_handling.py91 # Check if error handling worked
LOW…iddleware/python/tests/test_endpoint_error_handling.py152 # Check if error handling worked
LOW…iddleware/python/tests/test_endpoint_error_handling.py228 # Check if normal handling worked
LOW…iddleware/python/tests/test_endpoint_error_handling.py384 # Check if error handling worked
LOW…s/adk-middleware/python/tests/test_context_handling.py435 # Check if custom_metadata is supported
LOW…tests/test_issue_437_skip_summarization_integration.py671 # Check if the response contains summarization of the FIRST result
LOW…k-middleware/python/src/ag_ui_adk/client_proxy_tool.py279 # Check if this tool has predictive state configuration
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1746 # Check if execution is stale
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1756 # Check if task is done
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1176 # Check if there are pending tool calls AND tool results in unseen messages
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1313 # Check if there's an upcoming tool batch that will be skipped
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1544 # Check if there were actual tool messages that were filtered out
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1819 # Check if there's an existing execution for this thread+user and wait for it
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py1894 # Check if session has pending tool calls before cleanup
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py2653 # Check if we got a non-partial event (persistence complete)
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py2685 # Check if this is a streaming chunk that needs regular processing
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py2714 # Check if event has function responses (e.g., backend tool results)
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py2816 # Set flag to continue draining - checked at loop start
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py48 # Check if Part class has 'thought' in its model fields (Pydantic)
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py349 # Check if this is the final response (contains complete message - skip to avoid duplication)
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py529 # Check if this is a thought part (backwards-compatible)
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py903 # Check if this tool call ID already exists
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py910 # Check if this tool has predictive state configuration
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py958 # Check if we should emit confirm_changes tool call after this tool
LOW…dk-middleware/python/src/ag_ui_adk/event_translator.py969 # Check if any mapping has emit_confirm_tool=True
LOW…tegrations/langroid/python/src/ag_ui_langroid/agent.py199 # Check if the response itself is a ToolMessage (Langroid might return ToolMessage directly)
LOWscripts/release/detect-ts-version-changes.sh118# Output results
LOWscripts/release/detect-py-version-changes.sh97# Output results
LOWapps/dojo/e2e/setup-aws.sh20# Check if AWS CLI is installed and configured
LOWapps/dojo/e2e/setup-aws.sh26# Check if AWS credentials are configured
Magic Placeholder Names9 hits · 51 pts
SeverityFileLineSnippet
HIGHsdks/community/dart/example/README.md352- Or pass directly: `dart run -- -k "your-api-key" -m "Test"`
HIGHsdks/community/kotlin/examples/chatapp-wearos/README.md28chatapp.wear.defaultAgentApiKey=sk-your-api-key
HIGHintegrations/langgraph/typescript/README.md24 langsmithApiKey: "your-api-key",
HIGHintegrations/watsonx/python/README.md20 api_key="YOUR_API_KEY",
HIGHintegrations/watsonx/typescript/README.md61 api_key="YOUR_API_KEY",
HIGHintegrations/adk-middleware/python/CONFIGURATION.md333export GOOGLE_API_KEY="your-api-key"
HIGH…adk-middleware/python/examples/other/complete_setup.py51 # export GOOGLE_API_KEY="your-api-key-here"
HIGH…ions/adk-middleware/python/examples/server/__init__.py74 print(" export GOOGLE_API_KEY='your-api-key-here'")
HIGHintegrations/agno/python/examples/README.md122. Set your OpenAI API key: `export OPENAI_API_KEY="your-api-key"`
Dead Code19 hits · 38 pts
SeverityFileLineSnippet
MEDIUM…ions/langgraph/python/tests/test_subgraph_streaming.py274
MEDIUM…tions/aws-strands/python/tests/test_session_manager.py46
MEDIUM…eware/python/tests/test_duplicate_function_response.py218
MEDIUM…eware/python/tests/test_duplicate_function_response.py321
MEDIUM…eware/python/tests/test_duplicate_function_response.py497
MEDIUM…ons/adk-middleware/python/tests/test_adk_2_0_compat.py460
MEDIUM…ons/adk-middleware/python/tests/test_adk_2_0_compat.py525
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py123
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py171
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py285
MEDIUM…dk-middleware/python/tests/test_tool_error_handling.py457
MEDIUM…iddleware/python/tests/test_endpoint_error_handling.py113
MEDIUM…s/adk-middleware/python/tests/test_tool_result_flow.py348
MEDIUM…s/adk-middleware/python/tests/test_tool_result_flow.py1577
MEDIUM…s/adk-middleware/python/tests/test_tool_result_flow.py1698
MEDIUM…s/adk-middleware/python/tests/test_tool_result_flow.py1790
MEDIUM…s/adk-middleware/python/tests/test_tool_result_flow.py1165
MEDIUM…egrations/adk-middleware/python/tests/test_endpoint.py226
MEDIUM…egrations/adk-middleware/python/tests/test_endpoint.py256
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippet
CRITICAL…com/agui/example/chatapp/ui/screens/chat/ChatScreen.kt135private fun com.agui.example.tools.BackgroundStyle.toComposeColor(default: Color): Color {
CRITICAL…est/kotlin/com/agui/example/chatapp/IosSettingsTest.kt44 val repository = com.agui.example.chatapp.data.repository.AgentRepository.getInstance(settings)
CRITICAL…h/python/tests/test_prepare_stream_interrupt_resume.py120 agent.graph.aupdate_state.await_args.kwargs.get("as_node"),
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippet
HIGH…ds/python/examples/server/api/agentic_generative_ui.py61 Plan the concrete steps required to accomplish a task and walk each step from "pending" through "in_progress" t
HIGH…ions/claude-agent-sdk/python/ag_ui_claude_sdk/utils.py68 Strip mcp__servername__ prefix from Claude SDK tool names. Claude SDK prefixes all MCP tools: mcp__weather
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippet
MEDIUM…rands/python/tests/test_template_hooks_preservation.py270 # Reuse the same robust "consume until populated, then surface
LOW…ware/python/tests/test_adk_agent_memory_integration.py136 # Yield no events - just return immediately
MEDIUM…k-middleware/python/src/ag_ui_adk/client_proxy_tool.py30# This is more robust than a denylist — new JSON Schema fields that
LOW…tions/adk-middleware/python/src/ag_ui_adk/adk_agent.py2504 # No tool results, just use the user message
Fake / Example Data8 hits · 10 pts
SeverityFileLineSnippet
LOW…/packages/client/src/transform/__tests__/proto.test.ts306 { op: "replace", path: "/users/123/name", value: "Jane Doe" },
LOW…/core/src/test/java/com/agui/core/state/StateTest.java23 var value = "John Doe";
LOW…onTest/kotlin/com/agui/tests/EventSerializationTest.kt264 put("value", "John Doe")
LOW…onTest/kotlin/com/agui/tests/EventSerializationTest.kt294 assertEquals("John Doe", firstPatch["value"]?.jsonPrimitive?.content)
LOW…kotlin/com/agui/tests/MessageProtocolComplianceTest.kt47 name = "John Doe"
LOW…kotlin/com/agui/tests/MessageProtocolComplianceTest.kt53 assertEquals("John Doe", jsonObj["name"]?.jsonPrimitive?.content)
LOW…kotlin/com/agui/tests/MessageProtocolComplianceTest.kt57 assertEquals("John Doe", decoded.name)
LOW…/adk-middleware/python/examples/other/context_usage.py156 Context(description="company_name", value="Acme Corp"),
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGH…/main/java/com/agui/core/message/AssistantMessage.java12 * This message type is used for responses and communications generated by AI
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippet
LOW…ython/examples/server/routers/agentic_generative_ui.py18async def run_task(
LOWintegrations/crew-ai/python/ag_ui_crewai/sdk.py314 def my_function():
LOW…rations/claude-agent-sdk/typescript/examples/server.ts30async function handleRequest(
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUM…/com/agui/chatapp/java/MultiAgentInstrumentedTest.java192 String description = "This is a test agent for demonstration purposes.";