Repository Analysis

openai/openai-agents-python

A lightweight, powerful framework for multi-agent workflows

27.3 Moderate AI signal View on GitHub
27.3
Adjusted Score
27.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
26,768
Stars
Python
Language
313,746
Lines of Code
1298
Files
7881
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 196MEDIUM 431LOW 7253

Pattern Findings

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

Hyper-Verbose Identifiers5210 hits · 4490 pts
SeverityFileLineSnippet
LOWtests/test_run_error_details.py12async def test_run_error_includes_data():
LOWtests/test_run_error_details.py31async def test_streamed_run_error_includes_data():
LOWtests/test_tool_use_tracker.py20def test_tool_use_tracker_as_serializable_uses_agent_map_or_runtime_snapshot() -> None:
LOWtests/test_tool_use_tracker.py31def test_tool_use_tracker_from_and_serialize_snapshots() -> None:
LOWtests/test_tool_use_tracker.py42def test_serialize_and_hydrate_tool_use_tracker_preserves_duplicate_agent_identity() -> None:
LOWtests/test_tool_use_tracker.py54 def get_tool_use_tracker_snapshot(self) -> dict[str, list[str]]:
LOWtests/test_tool_use_tracker.py67def test_tool_use_tracker_handles_literal_suffix_names_without_collision() -> None:
LOWtests/test_tool_use_tracker.py82 def get_tool_use_tracker_snapshot(self) -> dict[str, list[str]]:
LOWtests/test_tool_use_tracker.py95def test_record_used_tools_uses_trace_names_for_namespaced_and_deferred_functions() -> None:
LOWtests/test_tool_use_tracker.py133def test_record_processed_response_ignores_hosted_tool_search_for_resets():
LOWtests/test_tool_use_tracker.py161def test_record_processed_response_keeps_function_named_tool_search():
LOWtests/test_tool_use_tracker.py189def test_record_processed_response_counts_output_only_tools_without_shifting_names() -> None:
LOWtests/test_tool_use_tracker.py224def test_hydrate_tool_use_tracker_skips_unknown_agents() -> None:
LOWtests/test_tool_use_tracker.py226 def get_tool_use_tracker_snapshot(self) -> dict[str, list[str]]:
LOWtests/test_handoff_prompt.py7def test_prompt_with_handoff_instructions_includes_prefix() -> None:
LOWtests/test_tool_metadata.py36def test_tool_name_properties() -> None:
LOWtests/test_tool_metadata.py56def test_shell_command_output_status_property() -> None:
LOWtests/test_tool_metadata.py61def test_tool_context_from_agent_context() -> None:
LOWtests/test_asyncio_progress.py12async def test_function_tool_task_progress_deadline_detects_timer_backed_sleep() -> None:
LOWtests/test_asyncio_progress.py37async def test_function_tool_task_progress_deadline_returns_none_for_external_wait() -> None:
LOWtests/test_asyncio_progress.py61async def test_function_tool_task_progress_deadline_can_follow_tracked_invoke_task() -> None:
LOWtests/test_asyncio_progress.py95async def test_function_tool_task_progress_deadline_can_follow_awaited_child_task() -> None:
LOWtests/test_asyncio_progress.py121async def test_function_tool_task_progress_deadline_can_follow_shielded_child_task() -> None:
LOWtests/test_asyncio_progress.py147async def test_function_tool_task_progress_deadline_can_follow_gathered_child_tasks() -> None:
LOWtests/test_asyncio_progress.py172async def test_function_tool_task_progress_deadline_can_follow_timer_backed_future() -> None:
LOWtests/test_asyncio_progress.py177 async def _timer_backed_future_task() -> None:
LOWtests/test_run_config.py28async def test_model_provider_on_run_config_is_used_for_agent_model_name() -> None:
LOWtests/test_run_config.py45async def test_run_config_model_name_override_takes_precedence() -> None:
LOWtests/test_run_config.py61async def test_run_config_model_name_override_uses_model_specific_default_settings(
LOWtests/test_run_config.py82async def test_run_config_model_settings_override_implicit_model_specific_defaults(
LOWtests/test_run_config.py107async def test_run_config_model_override_object_takes_precedence() -> None:
LOWtests/test_run_config.py121async def test_agent_model_object_is_used_when_present() -> None:
LOWtests/test_run_config.py138def test_trace_include_sensitive_data_defaults_to_true_when_env_not_set(monkeypatch):
LOWtests/test_run_config.py172def test_trace_include_sensitive_data_follows_env_value(env_value, expected, monkeypatch):
LOWtests/test_run_config.py179def test_trace_include_sensitive_data_explicit_override_takes_precedence(monkeypatch):
LOWtests/test_run_config.py190def test_tool_execution_config_rejects_invalid_function_tool_concurrency() -> None:
LOWtests/test_run_config.py198def test_tool_execution_config_is_public_from_agents_package() -> None:
LOWtests/test_run_config.py205def test_tool_not_found_behavior_defaults_to_raise_error() -> None:
LOWtests/test_run_config.py211def test_tool_not_found_behavior_is_public_from_agents_package() -> None:
LOWtests/test_oaiconv_resume_response_id.py18def test_hydrate_from_state_uses_latest_non_none_response_id() -> None:
LOWtests/test_shell_call_serialization.py13def test_coerce_shell_call_reads_max_output_length() -> None:
LOWtests/test_shell_call_serialization.py26def test_coerce_shell_call_requires_commands() -> None:
LOWtests/test_shell_call_serialization.py33def test_coerce_shell_call_rejects_string_like_commands(commands: object) -> None:
LOWtests/test_shell_call_serialization.py42def test_normalize_shell_output_handles_timeout() -> None:
LOWtests/test_shell_call_serialization.py54def test_normalize_shell_output_converts_string_outcome() -> None:
LOWtests/test_shell_call_serialization.py67def test_serialize_shell_output_emits_canonical_outcome() -> None:
LOWtests/test_shell_call_serialization.py79def test_shell_rejection_payload_preserves_missing_exit_code() -> None:
LOWtests/test_shell_call_serialization.py105def test_shell_output_preserves_zero_exit_code() -> None:
LOWtests/test_tracing_errors.py34async def test_single_turn_model_error():
LOWtests/test_tracing_errors.py75async def test_multi_turn_no_handoffs():
LOWtests/test_tracing_errors.py208async def test_multiple_handoff_doesnt_error():
LOWtests/test_tracing_errors.py298async def test_multiple_final_output_doesnt_error():
LOWtests/test_tracing_errors.py334async def test_handoffs_lead_to_correct_agent_spans():
LOWtests/test_agent_instructions_signature.py17 async def test_valid_async_signature_passes(self, mock_run_context):
LOWtests/test_agent_instructions_signature.py28 async def test_valid_sync_signature_passes(self, mock_run_context):
LOWtests/test_agent_instructions_signature.py39 async def test_one_parameter_raises_error(self, mock_run_context):
LOWtests/test_agent_instructions_signature.py54 async def test_three_parameters_raises_error(self, mock_run_context):
LOWtests/test_agent_instructions_signature.py69 async def test_zero_parameters_raises_error(self, mock_run_context):
LOWtests/test_agent_instructions_signature.py84 async def test_function_with_args_kwargs_fails(self, mock_run_context):
LOWtests/test_agent_instructions_signature.py99 async def test_string_instructions_still_work(self, mock_run_context):
5150 more matches not shown…
Unused Imports1285 hits · 1034 pts
SeverityFileLineSnippet
LOWtests/test_tool_use_tracker.py1
LOWtests/test_tool_metadata.py1
LOWtests/test_asyncio_progress.py1
LOWtests/test_run_config.py1
LOWtests/test_shell_call_serialization.py1
LOWtests/test_tracing_errors.py1
LOWtests/testing_processor.py1
LOWtests/conftest.py1
LOWtests/test_tool_use_behavior.py3
LOWtests/test_usaspending_setup_db.py1
LOWtests/test_agent_tool_state.py1
LOWtests/test_tool_origin.py1
LOWtests/test_prompt_cache_key.py1
LOWtests/test_tracing.py1
LOWtests/test_agent_memory_leak.py1
LOWtests/test_call_model_input_filter.py1
LOWtests/test_source_compat_constructors.py1
LOWtests/test_output_guardrail_cancellation.py1
LOWtests/test_guardrails.py1
LOWtests/test_hitl_session_scenario.py1
LOWtests/test_tracing_errors_streamed.py1
LOWtests/test_run.py1
LOWtests/test_items_helpers.py1
LOWtests/test_agent_runner_streamed.py1
LOWtests/test_streaming_logging.py1
LOWtests/test_agent_prompt.py1
LOWtests/test_agent_tracing.py1
LOWtests/test_hitl_error_scenarios.py3
LOWtests/test_run_step_processing.py1
LOWtests/test_apply_diff.py3
LOWtests/test_usage.py1
LOWtests/test_agent_tool_input.py1
LOWtests/test_shell_tool.py1
LOWtests/test_agents_logging.py1
LOWtests/test_run_internal_error_handlers.py1
LOWtests/test_agent_runner.py1
LOWtests/test_agent_as_tool.py1
LOWtests/test_call_model_input_filter_unit.py1
LOWtests/test_computer_tool_lifecycle.py1
LOWtests/test_apply_diff_helpers.py3
LOWtests/test_run_state.py3
LOWtests/test_extension_filters.py1
LOWtests/test_tool_guardrails.py1
LOWtests/test_tool_output_conversion.py1
LOWtests/test_tracing_provider_safe_debug.py1
LOWtests/test_responses.py1
LOWtests/test_daytona_usaspending_example.py1
LOWtests/test_max_turns.py1
LOWtests/test_result_cast.py1
LOWtests/test_global_hooks.py1
LOWtests/test_apply_patch_tool.py1
LOWtests/test_run_examples_script.py1
LOWtests/test_tool_identity.py9
LOWtests/test_run_step_execution.py1
LOWtests/test_example_workflows.py1
LOWtests/test_streamed_terminal_output_backfill.py1
LOWtests/fake_model.py1
LOWtests/test_run_internal_approvals.py1
LOWtests/_fake_workspace_paths.py1
LOWtests/test_stream_input_guardrail_timing.py1
1225 more matches not shown…
Decorative Section Separators236 hits · 780 pts
SeverityFileLineSnippet
MEDIUMtests/memory/test_session.py665# ============================================================================
MEDIUMtests/memory/test_session.py667# ============================================================================
MEDIUMtests/memory/test_openai_conversations_session.py448# ============================================================================
MEDIUMtests/memory/test_openai_conversations_session.py450# ============================================================================
MEDIUMtests/extensions/test_tool_output_trimmer.py82# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py84# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py113# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py115# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py160# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py162# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py571# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py573# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py17# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py19# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py52# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py54# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py513# ---------------------------------------------------------------------------
MEDIUMtests/extensions/test_tool_output_trimmer.py515# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_encrypt_session.py432# ============================================================================
MEDIUMtests/extensions/memory/test_encrypt_session.py434# ============================================================================
MEDIUMtests/extensions/memory/test_dapr_session.py878# ============================================================================
MEDIUMtests/extensions/memory/test_dapr_session.py880# ============================================================================
MEDIUMtests/extensions/memory/test_advanced_sqlite_session.py1208# ============================================================================
MEDIUMtests/extensions/memory/test_advanced_sqlite_session.py1210# ============================================================================
MEDIUMtests/extensions/memory/test_mongodb_session.py226# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py228# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py372# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py374# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py433# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py435# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py468# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py470# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py587# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py589# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py771# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py773# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py28# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py30# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py256# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py258# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py283# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py285# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py649# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py651# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py697# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_mongodb_session.py699# ---------------------------------------------------------------------------
MEDIUMtests/extensions/memory/test_redis_session.py824# ============================================================================
MEDIUMtests/extensions/memory/test_redis_session.py826# ============================================================================
MEDIUMtests/extensions/sandbox/test_daytona.py1394# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_daytona.py1396# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py34# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py36# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py48# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py50# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py736# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py738# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py834# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py836# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py998# ---------------------------------------------------------------------------
MEDIUMtests/extensions/sandbox/test_blaxel.py1000# ---------------------------------------------------------------------------
176 more matches not shown…
Cross-File Repetition124 hits · 620 pts
SeverityFileLineSnippet
HIGHtests/memory/test_session.py0pop_item skips corrupt newest rows and returns the next valid item.
HIGHtests/extensions/memory/test_async_sqlite_session.py0pop_item skips corrupt newest rows and returns the next valid item.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0pop_item skips corrupt newest rows and returns the next valid item.
HIGHtests/memory/test_session.py0pop_item removes corrupt rows and returns none when no valid items remain.
HIGHtests/extensions/memory/test_async_sqlite_session.py0pop_item removes corrupt rows and returns none when no valid items remain.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0pop_item removes corrupt rows and returns none when no valid items remain.
HIGHtests/memory/test_session.py0test that session correctly stores and retrieves unicode/non-ascii content.
HIGHtests/extensions/memory/test_dapr_session.py0test that session correctly stores and retrieves unicode/non-ascii content.
HIGHtests/extensions/memory/test_redis_session.py0test that session correctly stores and retrieves unicode/non-ascii content.
HIGHtests/memory/test_session.py0test concurrent access to the same session to verify data integrity.
HIGHtests/extensions/memory/test_dapr_session.py0test concurrent access to the same session to verify data integrity.
HIGHtests/extensions/memory/test_redis_session.py0test concurrent access to the same session to verify data integrity.
HIGHtests/memory/test_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/memory/test_openai_conversations_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/extensions/memory/test_dapr_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/extensions/memory/test_redis_session.py0test that session_settings defaults to empty sessionsettings.
HIGHtests/memory/test_session.py0test that get_items uses session_settings.limit as default.
HIGHtests/extensions/memory/test_dapr_session.py0test that get_items uses session_settings.limit as default.
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that get_items uses session_settings.limit as default.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that get_items uses session_settings.limit as default.
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that get_items uses session_settings.limit as default.
HIGHtests/extensions/memory/test_redis_session.py0test that get_items uses session_settings.limit as default.
HIGHtests/memory/test_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/extensions/memory/test_encrypt_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/extensions/memory/test_dapr_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/extensions/memory/test_redis_session.py0test that explicit limit parameter overrides session_settings.
HIGHtests/memory/test_session.py0test that runconfig can override session's default settings.
HIGHtests/extensions/memory/test_encrypt_session.py0test that runconfig can override session's default settings.
HIGHtests/extensions/memory/test_dapr_session.py0test that runconfig can override session's default settings.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that runconfig can override session's default settings.
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that runconfig can override session's default settings.
HIGHtests/extensions/memory/test_redis_session.py0test that runconfig can override session's default settings.
HIGHtests/extensions/memory/test_dapr_session.py0test that different session ids result in isolated conversation histories.
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that different session ids result in isolated conversation histories.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that different session ids result in isolated conversation histories.
HIGHtests/extensions/memory/test_redis_session.py0test that different session ids result in isolated conversation histories.
HIGHtests/extensions/memory/test_dapr_session.py0test that pop_item returns none on an empty session.
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that pop_item returns none on an empty session.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that pop_item returns none on an empty session.
HIGHtests/extensions/memory/test_redis_session.py0test that pop_item returns none on an empty session.
HIGHtests/extensions/memory/test_dapr_session.py0test that adding an empty list of items is a no-op.
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that adding an empty list of items is a no-op.
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that adding an empty list of items is a no-op.
HIGHtests/extensions/memory/test_redis_session.py0test that adding an empty list of items is a no-op.
HIGHdocs/context.md0fetch the age of the user. call this function to get user's age information.
HIGHdocs/ja/context.md0fetch the age of the user. call this function to get user's age information.
HIGHdocs/zh/context.md0fetch the age of the user. call this function to get user's age information.
HIGHdocs/ko/context.md0fetch the age of the user. call this function to get user's age information.
HIGHdocs/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.
HIGHdocs/ja/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.
HIGHdocs/zh/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.
HIGHdocs/ko/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.
HIGHdocs/tools.md0fetch the weather for a given location. args: location: the location to fetch the weather for.
HIGHdocs/ja/tools.md0fetch the weather for a given location. args: location: the location to fetch the weather for.
64 more matches not shown…
Excessive Try-Catch Wrapping573 hits · 591 pts
SeverityFileLineSnippet
LOWtests/memory/test_session.py44 except Exception:
LOWtests/mcp/test_mcp_util.py871 except Exception:
LOWtests/extensions/memory/test_dapr_session.py678 except Exception:
LOWtests/extensions/memory/test_dapr_session.py296 except Exception:
LOWtests/extensions/memory/test_dapr_session.py613 except Exception:
LOWtests/extensions/memory/test_dapr_redis_integration.py86 except Exception:
LOWtests/extensions/memory/test_dapr_redis_integration.py109 except Exception:
LOWtests/extensions/memory/test_sqlalchemy_session.py413 except Exception as exc:
LOWtests/extensions/memory/test_sqlalchemy_session.py461 except Exception as exc:
LOWtests/extensions/memory/test_advanced_sqlite_session.py814 except Exception:
LOWtests/extensions/memory/test_redis_session.py467 except Exception:
LOWtests/extensions/memory/test_redis_session.py591 except Exception:
LOWtests/extensions/memory/test_redis_session.py187 except Exception:
LOWtests/extensions/memory/test_redis_session.py414 except Exception:
LOWtests/extensions/memory/test_redis_session.py513 except Exception:
LOWtests/extensions/memory/test_redis_session.py640 except Exception:
LOWtests/extensions/sandbox/test_blaxel.py1542 except Exception:
MEDIUMtests/realtime/test_openai_realtime.py1914def handler(websocket):
LOWtests/realtime/test_openai_realtime.py1943 except Exception:
LOWtests/realtime/test_session.py237 except Exception: # noqa: S110
MEDIUMdocs/ja/realtime/quickstart.md96 print(f"Error: {event.error}")
MEDIUMdocs/realtime/quickstart.md92 print(f"Error: {event.error}")
MEDIUMdocs/zh/realtime/quickstart.md96 print(f"Error: {event.error}")
LOWdocs/scripts/translate_docs.py389 except Exception:
MEDIUMdocs/scripts/translate_docs.py498 print("Error: No valid files found to translate")
MEDIUMdocs/ko/realtime/quickstart.md96 print(f"Error: {event.error}")
LOWexamples/memory/dapr_session_example.py223 except Exception as e:
MEDIUMexamples/memory/dapr_session_example.py224 print(f"Error: {e}")
LOWexamples/memory/dapr_session_example.py295 except Exception as e:
LOWexamples/memory/dapr_session_example.py426 except Exception as e:
LOWexamples/memory/dapr_session_example.py458 except Exception:
LOWexamples/memory/file_hitl_example.py83 except Exception as exc: # noqa: BLE001
LOWexamples/memory/file_hitl_example.py143 except Exception:
LOWexamples/memory/redis_session_example.py148 except Exception as e:
MEDIUMexamples/memory/redis_session_example.py149 print(f"Error: {e}")
LOWexamples/memory/redis_session_example.py175 except Exception as e:
LOWexamples/memory/mongodb_session_example.py31 except Exception:
LOWexamples/financial_research_agent/manager.py108 except Exception:
LOWexamples/basic/tool_guardrails.py130 except Exception as e:
MEDIUMexamples/basic/tool_guardrails.py131 print(f"Error: {e}\n")
LOWexamples/basic/tool_guardrails.py147 except Exception as e:
MEDIUMexamples/basic/tool_guardrails.py148 print(f"Error: {e}\n")
LOWexamples/basic/non_strict_output_type.py64 except Exception as e:
MEDIUMexamples/basic/non_strict_output_type.py65 print(f"Error (expected): {e}")
LOWexamples/research_bot/manager.py102 except Exception:
LOW…mples/mcp/streamablehttp_custom_client_example/main.py129 except Exception as e:
MEDIUM…mples/mcp/streamablehttp_custom_client_example/main.py130 print(f"Error starting Streamable HTTP server: {e}")
LOWexamples/mcp/streamablehttp_example/server.py36 except Exception:
LOWexamples/mcp/streamablehttp_example/main.py96 except Exception as e:
MEDIUMexamples/mcp/streamablehttp_example/main.py97 print(f"Error starting Streamable HTTP server: {e}")
LOWexamples/mcp/prompt_server/main.py44 except Exception as e:
LOWexamples/mcp/prompt_server/main.py122 except Exception as e:
MEDIUMexamples/mcp/prompt_server/main.py123 print(f"Error starting server: {e}")
LOWexamples/mcp/sse_example/main.py96 except Exception as e:
MEDIUMexamples/mcp/sse_example/main.py97 print(f"Error starting SSE server: {e}")
LOWexamples/realtime/app/server.py136 except Exception as e:
LOWexamples/realtime/app/server.py191 except Exception:
LOWexamples/realtime/cli/demo.py135 except Exception:
LOWexamples/realtime/cli/demo.py200 except Exception:
LOWexamples/realtime/cli/demo.py316 except Exception as e:
513 more matches not shown…
Self-Referential Comments132 hits · 413 pts
SeverityFileLineSnippet
MEDIUMtests/test_responses_tracing.py59 # Create an instance of the model
MEDIUMtests/test_responses_tracing.py120 # Create an instance of the model
MEDIUMtests/test_responses_tracing.py183 # Create an instance of the model
MEDIUMtests/test_responses_tracing.py224 # Create an instance of the model
MEDIUMtests/test_responses_tracing.py227 # Define a dummy fetch function that returns an async stream with a dummy response
MEDIUMtests/test_responses_tracing.py363 # Create an instance of the model
MEDIUMtests/test_responses_tracing.py366 # Define a dummy fetch function that returns an async stream with a dummy response
MEDIUMtests/test_responses_tracing.py436 # Create an instance of the model
MEDIUMtests/test_responses_tracing.py439 # Define a dummy fetch function that returns an async stream with a dummy response
MEDIUMtests/test_items_helpers.py195 # Create a non-message run item of a different type, e.g., a reasoning trace.
MEDIUMtests/test_agent_runner_streamed.py1696 # Create a tool that requires approval
MEDIUMtests/test_hitl_error_scenarios.py572 # Create the tool with needs_approval directly
MEDIUMtests/test_usage.py219 # Create a usage with request_usage_entries
MEDIUMtests/test_agent_runner.py4466 # Define a tool that will be called by the orchestrator agent
MEDIUMtests/test_agent_runner.py4554 # Create a computer tool (not a FunctionTool)
MEDIUMtests/test_agent_runner.py4596 # Create an approved tool call for the computer tool
MEDIUMtests/test_agent_runner.py4628 # Create a rejected tool call
MEDIUMtests/test_agent_runner.py4772 # Create a tool call with unclear status (neither approved nor rejected)
MEDIUMtests/test_agent_runner.py4795 # Create an approved tool call for a tool that doesn't exist
MEDIUMtests/test_agent_as_tool.py61 # Create a simple agent
MEDIUMtests/test_agent_as_tool.py109 # Create a simple agent
MEDIUMtests/test_agent_as_tool.py157 # Create a simple agent
MEDIUMtests/test_agent_as_tool.py220 # Create a simple agent
MEDIUMtests/test_computer_action.py542 # Create a dummy click action to trigger a click and screenshot.
MEDIUMtests/test_run_state.py3023 # Create a tool call item
MEDIUMtests/test_run_state.py3033 # Create a ProcessedResponse with the tool call item in new_items
MEDIUMtests/test_run_state.py3116 # Create a tool call item
MEDIUMtests/test_run_state.py3126 # Create a ProcessedResponse with the tool call item
MEDIUMtests/test_run_state.py4747 # Create a tool call item
MEDIUMtests/test_run_state.py4757 # Create a ProcessedResponse
MEDIUMtests/test_run_state.py4777 # Create a tool call item
MEDIUMtests/test_run_state.py4787 # Create a ProcessedResponse
MEDIUMtests/test_run_state.py4876 # Create a mock MCP tool that will be recognized as HostedMCPTool
MEDIUMtests/test_run_state.py4881 # Create a minimal Mcp config
MEDIUMtests/test_run_state.py1438 # Create a mock item that has id and type directly on the item (not in raw_item)
MEDIUMtests/test_run_state.py1664 # Create a cycle A -> B -> A
MEDIUMtests/test_run_state.py2443 # Create a handoff output item
MEDIUMtests/test_run_state.py2943 # Create a RunState with context
MEDIUMtests/test_run_state.py2963 # Create a RunState with context
MEDIUMtests/test_run_state.py2987 # Create a run that will have interruptions
MEDIUMtests/test_run_state.py3055 # Create a message with nested content
MEDIUMtests/test_run_state.py3332 # Create a handoff with a name attribute but no tool_name
MEDIUMtests/test_run_state.py3477 # Create a shell tool with description
MEDIUMtests/test_run_state.py3515 # Create an apply patch tool with description
MEDIUMtests/test_run_state.py3561 # Create a mock MCP tool - HostedMCPTool doesn't have a simple constructor
MEDIUMtests/test_run_state.py3600 # Create a message item
MEDIUMtests/test_run_state.py3833 # Create a mock item with a raw_item that is neither dict nor has model_dump
MEDIUMtests/test_run_state.py3853 # Create an agent without get_all_tools method
MEDIUMtests/test_run_state.py3882 # Create a handoff with tool_name
MEDIUMtests/test_run_state.py4494 # Create a mock MCP tool
MEDIUMtests/test_run_state.py4837 # Create a handoff with name attribute but no tool_name
MEDIUMtests/test_run_state.py4927 # Create an agent without get_all_tools method
MEDIUMtests/test_run_state.py4990 # Create an item with missing type field to trigger the union adapter fallback
MEDIUMtests/test_extension_filters.py657 # Create a nested summary that will be parsed
MEDIUMtests/test_extension_filters.py665 # Create a second nested summary that includes the first
MEDIUMtests/test_extension_filters.py764 # Create an item with a circular reference or other unserializable content
MEDIUMtests/test_extension_filters.py769 # Create an item that will trigger TypeError in json.dumps
MEDIUMtests/test_extension_filters.py499 # Create an item that doesn't have a role (e.g., a function call)
MEDIUMtests/test_extension_filters.py636 # Create a summary message with non-string content (array)
MEDIUMtests/test_extension_filters.py684 # Create a summary that includes a role with name
72 more matches not shown…
Cross-Language Confusion55 hits · 312 pts
SeverityFileLineSnippet
HIGHtests/test_agent_tool_input.py93 assert "- count (integer | null, optional) - Optional count." in info.summary
HIGHtests/extensions/sandbox/test_modal.py2122 "modal-snapshot-directory-ephemeral.tar -T - 2>/dev/null && test -f "
HIGHtests/extensions/sandbox/test_modal.py2348 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",
HIGHtests/extensions/sandbox/test_modal.py2379 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],
HIGHtests/extensions/sandbox/test_modal.py2431 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",
HIGHtests/extensions/sandbox/test_modal.py2459 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],
HIGHtests/extensions/sandbox/test_e2b.py129 "sh -lc test -c /dev/fuse && grep -qw fuse /proc/filesystems && "
HIGHtests/extensions/sandbox/test_e2b.py130 "(command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1)"
HIGHtests/extensions/sandbox/test_e2b.py157 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",
HIGHtests/extensions/sandbox/test_e2b.py174 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"
HIGHtests/extensions/sandbox/test_runloop_mounts.py153 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",
HIGHtests/extensions/sandbox/test_runloop_mounts.py170 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"
HIGHtests/extensions/sandbox/test_runloop_mounts.py196 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",
HIGHtests/extensions/sandbox/test_runloop_mounts.py206 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",
HIGHtests/extensions/sandbox/test_runloop.py2202 await session.exec("pwd && echo hello", shell=True)
HIGHtests/extensions/sandbox/test_runloop.py2358 await session.exec("pwd && echo hello", shell=True)
HIGHtests/realtime/test_session.py1905 complex_args = '{"nested": {"data": [1, 2, 3]}, "bool": true, "null": null}'
HIGHtests/sandbox/test_session_sinks.py402 slow_result = await session.exec("sleep 1 && echo slow span")
HIGHtests/sandbox/test_runtime.py3751 result = await session.exec("echo hi > note.txt && cat note.txt")
HIGHtests/sandbox/test_session_utils.py174 await session.exec("echo hello && echo goodbye", shell=True)
HIGHtests/sandbox/test_session_utils.py176 assert session.last_command == ("sh", "-lc", "echo hello && echo goodbye")
HIGHtests/sandbox/test_mounts.py1149 ["sh", "-lc", "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"],
HIGHtests/sandbox/test_docker.py2132 'pid="$(cat "$1" 2>/dev/null || true)"; '
HIGHtests/sandbox/test_docker.py2133 'if [ -n "$pid" ]; then kill -KILL "$pid" >/dev/null 2>&1 || true; fi; '
HIGHtests/sandbox/test_docker.py2175 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 10' >/dev/null 2>&1 || true"],
HIGHtests/sandbox/test_docker.py2180 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 20' >/dev/null 2>&1 || true"],
HIGHtests/sandbox/test_docker.py2117 'mkdir -p "$1" && printf "%s" "$$" > "$2" && shift 2 && exec "$@"',
HIGHtests/sandbox/capabilities/test_shell_capability.py486 ("cd /workspace/src/project && pwd", 10.0, ["/bin/bash", "-c"])
HIGHtests/sandbox/capabilities/test_shell_capability.py493 "stdout: cd /workspace/src/project && pwd\n"
HIGHtests/sandbox/capabilities/test_shell_capability.py494 "stderr: cd /workspace/src/project && pwd"
HIGHtests/sandbox/capabilities/test_shell_capability.py528 assert session.exec_calls == [("cd /tmp && pwd", 10.0, ["/bin/bash", "-c"])]
HIGHtests/sandbox/capabilities/test_shell_capability.py534 "stdout: cd /tmp && pwd\n"
HIGHtests/sandbox/capabilities/test_shell_capability.py535 "stderr: cd /tmp && pwd"
HIGHexamples/sandbox/extensions/blaxel_runner.py307 f"cat {mount_path}/{marker}.txt && ls {mount_path}"
HIGH…ples/sandbox/tutorials/dataroom_metric_extract/main.py61 Optional field: `segment` (segment/geography if explicitly stated, else null).
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py15_RCLONE_CHECK = "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py51 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py79 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py222 "cd /tmp && ar x gcsfuse.deb && "
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py246 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py246 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py37 f"command -v {cmd} >/dev/null 2>&1 || test -x /usr/local/bin/{cmd}",
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py57 f"apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq {package}"
HIGHsrc/agents/extensions/sandbox/modal/sandbox.py1221 f"(tar cf - -- {rel_args} 2>/dev/null || true)"
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py15_RCLONE_CHECK = "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py33 "test -c /dev/fuse && grep -qw fuse /proc/filesystems && "
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py34 "(command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1)",
HIGHsrc/agents/sandbox/sandboxes/docker.py449 f"pkill -f -- '{pattern}' >/dev/null 2>&1 || true",
HIGHsrc/agents/sandbox/sandboxes/docker.py1181 'pid="$(cat "$1" 2>/dev/null || true)"; '
HIGHsrc/agents/sandbox/sandboxes/docker.py1183 'kill -KILL "$pid" >/dev/null 2>&1 || true; '
HIGHsrc/agents/sandbox/sandboxes/docker.py820 'mkdir -p "$1" && printf "%s" "$$" > "$2" && shift 2 && exec "$@"',
HIGHsrc/agents/sandbox/entries/mounts/patterns.py881 "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",
HIGHsrc/agents/sandbox/entries/mounts/patterns.py964 f"umount {shlex.quote(sandbox_path_str(path))} >/dev/null 2>&1 || true",
HIGHsrc/agents/sandbox/entries/mounts/patterns.py973 f"'rclone (mount|serve nfs) {rclone_config.remote_name}:' >/dev/null 2>&1 || true"
HIGHsrc/agents/sandbox/session/runtime_helpers.py288if [ -x "$dest" ] && command -v cmp >/dev/null 2>&1 && cmp -s "$dest" "$tmp"; then
Deep Nesting201 hits · 166 pts
SeverityFileLineSnippet
LOWtests/test_tracing.py288
LOWtests/test_agent_llm_hooks.py104
LOWtests/test_hitl_session_scenario.py361
LOWtests/test_hitl_session_scenario.py382
LOWtests/test_run_hooks.py125
LOWtests/fake_model.py147
LOWtests/memory/test_session.py26
LOWtests/extensions/memory/test_dapr_redis_integration.py65
LOWtests/extensions/memory/test_dapr_redis_integration.py95
LOWtests/extensions/sandbox/test_vercel.py202
LOWtests/extensions/sandbox/test_runloop.py194
LOWtests/realtime/test_session.py301
LOWtests/sandbox/test_runtime.py4464
LOWtests/sandbox/test_runtime.py4487
LOWdocs/scripts/translate_docs.py459
LOWexamples/run_examples.py611
LOWexamples/run_examples.py665
LOWexamples/tools/tool_search.py121
LOWexamples/tools/code_interpreter.py14
LOWexamples/tools/container_shell_inline_skill.py18
LOWexamples/tools/shell_human_in_the_loop.py104
LOWexamples/customer_service/main.py151
LOWexamples/memory/file_hitl_example.py22
LOWexamples/memory/memory_session_hitl_example.py56
LOWexamples/memory/openai_session_hitl_example.py56
LOWexamples/basic/stream_function_call_args.py25
LOWexamples/basic/stream_ws.py90
LOWexamples/basic/stream_items.py13
LOWexamples/realtime/app/server.py223
LOWexamples/realtime/app/server.py140
LOWexamples/realtime/app/server.py157
LOWexamples/realtime/cli/demo.py84
LOWexamples/realtime/cli/demo.py272
LOWexamples/realtime/cli/demo.py324
LOWexamples/realtime/twilio_sip/server.py99
LOWexamples/realtime/twilio/twilio_handler.py149
LOWexamples/realtime/twilio/twilio_handler.py194
LOWexamples/reasoning_content/runner_example.py23
LOWexamples/reasoning_content/main.py70
LOWexamples/agent_patterns/agents_as_tools_conditional.py83
LOWexamples/agent_patterns/agents_as_tools.py59
LOWexamples/agent_patterns/routing.py37
LOWexamples/agent_patterns/llm_as_a_judge.py42
LOWexamples/voice/static/util.py9
LOWexamples/sandbox/memory.py138
LOWexamples/sandbox/memory_s3.py233
LOWexamples/sandbox/memory_multi_agent_multiturn.py145
LOWexamples/sandbox/unix_local_pty.py83
LOWexamples/sandbox/sandbox_agent_capabilities.py287
LOWexamples/sandbox/docker/docker_runner.py65
LOWexamples/sandbox/extensions/blaxel_runner.py138
LOWexamples/sandbox/extensions/cloudflare_runner.py216
LOW…/sandbox/extensions/temporal/temporal_sandbox_agent.py241
LOW…/sandbox/extensions/temporal/temporal_sandbox_agent.py284
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py809
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py992
LOWexamples/sandbox/extensions/runloop/capabilities.py711
LOW…ndbox/extensions/daytona/usaspending_text2sql/agent.py383
LOWexamples/sandbox/tutorials/misc.py168
LOWexamples/hosted_mcp/human_in_the_loop.py45
141 more matches not shown…
Magic Placeholder Names12 hits · 60 pts
SeverityFileLineSnippet
HIGHdocs/tracing.md169 api_key="your-api-key",
HIGHdocs/ja/tracing.md169 api_key="your-api-key",
HIGHdocs/ja/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"
HIGHdocs/ja/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})
HIGHdocs/realtime/quickstart.md130export OPENAI_API_KEY="your-api-key-here"
HIGHdocs/realtime/quickstart.md136session = await runner.run(model_config={"api_key": "your-api-key"})
HIGHdocs/zh/tracing.md172 api_key="your-api-key",
HIGHdocs/zh/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"
HIGHdocs/zh/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})
HIGHdocs/ko/tracing.md171 api_key="your-api-key",
HIGHdocs/ko/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"
HIGHdocs/ko/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippet
HIGHsrc/agents/run_state.py663Serializes the run state to a JSON-compatible dictionary. This method is used to serialize the run state to a d
HIGHsrc/agents/run_state.py1029Deserializes a run state from a JSON string. This method is used to deserialize a run state from a string that
HIGHsrc/agents/run_state.py1070Deserializes a run state from a JSON dictionary. This method is used to deserialize a run state from a dict tha
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py602Create a new branch starting from a specific user message turn. Args: turn_number: The branch turn
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py668Create branch from the first user turn matching the search term. Args: search_term: Text to search
Redundant / Tautological Comments13 hits · 20 pts
SeverityFileLineSnippet
LOWtests/realtime/test_session_exceptions.py121 # Set events to send
LOWtests/voice/test_input.py130 # Add audio to the queue
LOWexamples/memory/memory_session_hitl_example.py36 # Check if any city name is in the provided location string
LOWexamples/memory/openai_session_hitl_example.py36 # Check if any city name is in the provided location string
LOWexamples/realtime/cli/demo.py282 # Check if there's enough data to read
LOWexamples/agent_patterns/agents_as_tools_structured.py41 # Set include_input_schema to true to include the full JSON Schema:
LOWexamples/agent_patterns/streaming_guardrails.py68 # Check if it's time to run the guardrail check
LOWsrc/agents/mcp/server.py715 # Check if it's an ExceptionGroup containing HTTP errors
LOWsrc/agents/models/chatcmpl_converter.py134 # Check if message is agents.extensions.models.litellm_model.InternalChatCompletionMessage
LOWsrc/agents/extensions/memory/advanced_sqlite_session.py740 # Check if trying to delete current branch
LOWsrc/agents/extensions/models/litellm_model.py615 # Check if this is an assistant message with tool calls
LOWsrc/agents/realtime/session.py246 # Check if there's a stored exception to raise
LOWsrc/agents/realtime/session.py358 # Check if we should run guardrails based on debounce threshold
Dead Code8 hits · 16 pts
SeverityFileLineSnippet
MEDIUMtests/test_cancel_streaming.py259
MEDIUMtests/test_run_step_execution.py2599
MEDIUMtests/models/test_model_retry.py1553
MEDIUMtests/models/test_model_retry.py1683
MEDIUMtests/models/test_model_retry.py1727
MEDIUMtests/models/test_model_retry.py2049
MEDIUMtests/models/test_model_retry.py2093
MEDIUMsrc/agents/voice/workflow.py41
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALsrc/agents/voice/models/openai_tts.py42 response = self._client.audio.speech.with_streaming_response.create(
Verbosity Indicators6 hits · 9 pts
SeverityFileLineSnippet
LOWtests/models/test_anthropic_thinking_blocks.py144 # Step 1: Convert message to output items
LOWtests/models/test_anthropic_thinking_blocks.py177 # Step 2: Convert output items back to messages
LOWtests/models/test_anthropic_thinking_blocks.py330 # Step 1: Convert message to output items
LOWtests/models/test_anthropic_thinking_blocks.py366 # Step 2: Convert output items back to messages with preserve_thinking_blocks=True
LOWtests/models/test_gemini_thought_signatures.py38 # Step 1: Convert to items
LOWtests/models/test_gemini_thought_signatures.py53 # Step 2: Convert back to messages
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippet
LOWtests/test_run_state.py4943 # This should not raise an error, just return empty tools
MEDIUMtests/mcp/test_tool_filtering.py206 # Role-based filter for comprehensive testing
LOWexamples/customer_service/main.py158 # Here, we'll just use a random UUID for the conversation ID
MEDIUMexamples/mcp/prompt_server/server.py20 return f"""You are a senior {language} code review specialist. Your role is to provide comprehensive code analysis w
LOWsrc/agents/result.py691 # Soft cancel - just set the flag
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippet
MEDIUMexamples/basic/tool_guardrails.py163❌ Guardrail rejected function tool call: I'm unable to send the email as mentioning ACME Corp. is restricted.
MEDIUMexamples/basic/tool_guardrails.py170❌ Guardrail rejected function tool output: I'm unable to retrieve the contact info for user456 because it contains restr
MEDIUMexamples/handoffs/message_filter_streaming.py37 # or, you can use the HandoffInputData.clone(kwargs) method
MEDIUMexamples/handoffs/message_filter.py37 # or, you can use the HandoffInputData.clone(kwargs) method
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippet
LOWexamples/__init__.py1# Make the examples directory into a package to avoid top-level module name collisions.
LOWexamples/basic/lifecycle_example.py181### 11: LLM ended. Usage: 3 requests, 472 input tokens, 45 output tokens, 517 total tokens
LOWexamples/basic/stream_items.py61 # 3. **Why did the scarecrow win an award?**
LOWexamples/sandbox/memory.py81 ),
LOWexamples/sandbox/memory.py101 #
LOWsrc/agents/extensions/memory/mongodb_session.py81 atomically incrementing a counter on the session metadata document. This
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOWexamples/basic/tool_guardrails.py29 "name": "John Doe",
LOWexamples/basic/tool_guardrails.py32 "phone": "555-1234",
LOWexamples/basic/tool_guardrails.py43 "phone": "555-1234",
LOWexamples/basic/tool_guardrails.py95 if "555-1234" in output_str:
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWtests/realtime/test_realtime_model_settings.py48 def helper() -> str: