Repository Analysis

openai/openai-agents-python

A lightweight, powerful framework for multi-agent workflows

25.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openai/openai-agents-python, a Python project with 29,043 GitHub stars. SynthScan v2.0 examined 488,488 lines of code across 1488 source files, recording 12573 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 25.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

25.3
Adjusted Score
25.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
29.0K
Stars
Python
Language
488.5K
Lines of Code
1.5K
Files
12.6K
Pattern Hits
2026-08-29
Scan Date
0.16
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 239MEDIUM 538LOW 11795

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 12573 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers9137 hits · 7299 pts
SeverityFileLineSnippetContext
LOWintegration_tests/conftest.py26def _external_providers_enabled() -> bool:CODE
LOWintegration_tests/conftest.py34def _direct_providers_enabled() -> bool:CODE
LOWintegration_tests/conftest.py101def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:CODE
LOWintegration_tests/conftest.py141def _provider_model_credentials(model: str) -> tuple[str, ...]:CODE
LOWintegration_tests/conftest.py221def integration_realtime_model() -> str:CODE
LOWintegration_tests/_contract_support.py1433def _optional_dependency_is_available_for_contract(CODE
LOWintegration_tests/_contract_support.py1442def _optional_dependency_is_unsupported_for_contract(CODE
LOWintegration_tests/_contract_support.py1449def _optional_dependency_for_binding(CODE
LOWintegration_tests/_contract_support.py42 def is_supported_on_current_platform(self) -> bool:CODE
LOWintegration_tests/_contract_support.py63def load_submodule_export_policy(path: Path) -> SubmoduleExportPolicy:CODE
LOWintegration_tests/_contract_support.py273def _public_class_contract_policy(value: object) -> tuple[dict[str, Any], ...]:CODE
LOWintegration_tests/_contract_support.py336def _public_typed_dict_policy(value: object) -> tuple[dict[str, Any], ...]:CODE
LOWintegration_tests/_contract_support.py380def _public_type_alias_policy(value: object) -> tuple[dict[str, str], ...]:CODE
LOWintegration_tests/_contract_support.py407def _add_legacy_literal_types(value: object) -> None:CODE
LOWintegration_tests/_contract_support.py484def _deserialize_common_sandbox_session_state(payload: dict[str, object]) -> Any:CODE
LOWintegration_tests/_contract_support.py600def _dataclass_field_contract(value: object) -> list[dict[str, object]]:CODE
LOWintegration_tests/_contract_support.py625def _pydantic_model_field_contract(value: object) -> list[dict[str, object]] | None:CODE
LOWintegration_tests/_contract_support.py729def _sdk_public_class_descriptor(value: type, name: str) -> object | None:CODE
LOWintegration_tests/_contract_support.py744def _public_class_member_contract(value: object) -> dict[str, dict[str, object]]:CODE
LOWintegration_tests/_contract_support.py847def _merge_public_class_contracts(CODE
LOWintegration_tests/_contract_support.py872def _validate_voice_public_class_contract_policy(CODE
LOWintegration_tests/_contract_support.py927def _public_property_identity(entry: Mapping[str, Any]) -> tuple[str, str, str]:CODE
LOWintegration_tests/_contract_support.py948def _sorted_type_alias_members(members: Iterable[dict[str, object]]) -> list[dict[str, object]]:CODE
LOWintegration_tests/_contract_support.py963def _is_type_alias_annotation(annotation: object, module: object) -> bool:CODE
LOWintegration_tests/_contract_support.py980def _module_declares_type_alias(module: object, alias_name: str, value: object) -> bool:CODE
LOWintegration_tests/_contract_support.py1028 def _visit_function_definition(self, node: ast.FunctionDef | ast.AsyncFunctionDef) -> None:CODE
LOWintegration_tests/_contract_support.py1163def _has_explicit_type_alias_declaration(CODE
LOWintegration_tests/_contract_support.py1278def _public_type_alias_contract(CODE
LOWintegration_tests/_contract_support.py1303def _merge_public_type_aliases(CODE
LOWintegration_tests/_contract_support.py1317def _typed_dict_field_is_required(typed_dict: type, name: str, annotation: object) -> bool:CODE
LOWintegration_tests/_contract_support.py1342def _typed_dict_field_contract(typed_dict: type, name: str) -> dict[str, object] | None:CODE
LOWintegration_tests/_contract_support.py1353def _public_typed_dict_contract(CODE
LOWintegration_tests/_contract_support.py1381def _merge_public_typed_dicts(CODE
LOWintegration_tests/_contract_support.py1408def _optional_dependency_unsupported_platforms(CODE
LOWintegration_tests/_contract_support.py1469def _optional_dependency_for_binding_in_modules(CODE
LOWintegration_tests/_contract_support.py1480def _optional_dependency_for_module_import(CODE
LOWintegration_tests/_contract_support.py1512def _preserve_released_callable_for_promotion(CODE
LOWintegration_tests/_contract_support.py1532def _preserve_released_submodule_callables(CODE
LOWintegration_tests/_contract_support.py1541def build_released_api_contract(CODE
LOWintegration_tests/_contract_support.py1862def _validate_parameter_contract(CODE
LOWintegration_tests/_contract_support.py1906def _validate_pydantic_model_field_contract(CODE
LOWintegration_tests/_contract_support.py1936def _validate_public_property_contract(CODE
LOWintegration_tests/_contract_support.py1990def _validate_public_class_contract(CODE
LOWintegration_tests/_contract_support.py2032def _validate_public_typed_dict_contract(CODE
LOWintegration_tests/_contract_support.py2068def _validate_public_type_alias_contract(CODE
LOWintegration_tests/_contract_support.py2110def _submodule_export_contract(CODE
LOWintegration_tests/_contract_support.py2157def _optional_dependency_modules(value: object, *, field_name: str) -> dict[str, str]:CODE
LOWintegration_tests/_contract_support.py2172def _optional_dependency_is_available(module_name: str) -> bool:CODE
LOWintegration_tests/_contract_support.py2178def _matches_platform_import_error(CODE
LOWintegration_tests/_contract_support.py2194def validate_released_api_contract(CODE
LOWintegration_tests/_contract_support.py2564def _normalized_durable_state(payload: dict[str, Any]) -> dict[str, Any]:CODE
LOWintegration_tests/_contract_support.py2570def _normalize_legacy_mount_credentials(payload: dict[str, Any]) -> dict[str, Any]:CODE
LOWintegration_tests/_contract_support.py2593def _legacy_driver_option_errors(payload: dict[str, Any]) -> list[str]:CODE
LOWintegration_tests/_contract_support.py2658async def validate_historical_run_state_fixture(path: Path) -> list[str]:CODE
LOWintegration_tests/_contract_support.py2692async def validate_historical_resume_behavior(CODE
LOWintegration_tests/_contract_support.py2805async def validate_legacy_credential_run_state_fixture(CODE
LOW…egration_tests/packaging/test_distribution_contents.py18def test_wheel_excludes_integration_tests_and_contains_runtime_modules() -> None:CODE
LOW…egration_tests/packaging/test_distribution_contents.py32def test_source_distribution_excludes_repository_automation_and_local_caches() -> None:CODE
LOW…egration_tests/packaging/test_distribution_contents.py48def test_installed_distribution_advertises_expected_optional_extras() -> None:CODE
LOW…egration_tests/packaging/test_distribution_contents.py87def test_public_runtime_modules_import_from_the_distribution(module_name: str) -> None:CODE
9077 more matches not shown…
Unused Imports1461 hits · 1165 pts
SeverityFileLineSnippetContext
LOWintegration_tests/conftest.py1CODE
LOWintegration_tests/packaging/test_mcp_compat.py1CODE
LOW…egration_tests/packaging/test_distribution_contents.py1CODE
LOWintegration_tests/packaging/test_provider_selection.py1CODE
LOWintegration_tests/packaging/test_optional_extras.py1CODE
LOWintegration_tests/packaging/mcp_legacy_server.py1CODE
LOW…ration_tests/security/test_packaged_mount_redaction.py1CODE
LOW…gration_tests/security/test_local_sandbox_isolation.py1CODE
LOWintegration_tests/providers/test_any_llm.py1CODE
LOWintegration_tests/providers/test_litellm.py1CODE
LOWintegration_tests/hosted/test_web_search.py1CODE
LOWintegration_tests/hosted/test_multi_agent.py1CODE
LOWintegration_tests/hosted/test_tool_search.py1CODE
LOW…gration_tests/hosted/test_programmatic_tool_calling.py1CODE
LOWintegration_tests/hosted/test_local_tool_families.py1CODE
LOWintegration_tests/hosted/test_mcp.py1CODE
LOWintegration_tests/hosted/test_code_interpreter.py1CODE
LOWintegration_tests/realtime/test_realtime.py1CODE
LOWintegration_tests/voice/test_voice_pipeline.py1CODE
LOWintegration_tests/containers/test_dapr_redis.py10CODE
LOWintegration_tests/openai/test_retry.py1CODE
LOWintegration_tests/openai/test_tracing.py1CODE
LOWintegration_tests/openai/test_approval_resume.py1CODE
LOWintegration_tests/openai/test_guardrails.py1CODE
LOWintegration_tests/openai/test_websocket.py1CODE
LOWintegration_tests/openai/test_sessions.py1CODE
LOWintegration_tests/openai/test_chat_completions.py1CODE
LOWintegration_tests/openai/test_handoffs.py1CODE
LOWintegration_tests/openai/test_responses.py1CODE
LOWintegration_tests/openai/test_model_settings.py1CODE
LOWintegration_tests/openai/test_execution_controls.py1CODE
LOWtests/test_tool_approval_call_id_reuse.py1CODE
LOWtests/test_tool_use_tracker.py1CODE
LOWtests/test_tool_metadata.py1CODE
LOWtests/test_asyncio_progress.py1CODE
LOWtests/test_run_serial_tests.py1CODE
LOWtests/test_run_config.py1CODE
LOWtests/test_update_rclone_pin.py1CODE
LOWtests/model_test_helpers.py1CODE
LOWtests/test_shell_call_serialization.py1CODE
LOWtests/test_tracing_errors.py1CODE
LOWtests/testing_processor.py1CODE
LOWtests/conftest.py1CODE
LOWtests/test_tool_use_behavior.py3CODE
LOWtests/test_usaspending_setup_db.py1CODE
LOWtests/test_scripted_sandbox.py1CODE
LOWtests/test_agent_tool_state.py1CODE
LOWtests/test_tool_origin.py1CODE
LOWtests/test_code_change_verification_policy.py1CODE
LOWtests/test_prompt_cache_key.py1CODE
LOWtests/test_tracing.py1CODE
LOWtests/test_agent_memory_leak.py1CODE
LOWtests/test_call_model_input_filter.py1CODE
LOWtests/test_release_provenance.py1CODE
LOWtests/test_tool_name_collision_policy.py1CODE
LOWtests/test_test_environment.py1CODE
LOWtests/test_source_compat_constructors.py1CODE
LOWtests/test_error_logging_redaction.py9CODE
LOWtests/test_output_guardrail_cancellation.py1CODE
LOWtests/test_guardrails.py1CODE
1401 more matches not shown…
Decorative Section Separators236 hits · 780 pts
SeverityFileLineSnippetContext
MEDIUMtests/memory/test_session.py845# ============================================================================COMMENT
MEDIUMtests/memory/test_session.py847# ============================================================================COMMENT
MEDIUMtests/memory/test_openai_conversations_session.py738# ============================================================================COMMENT
MEDIUMtests/memory/test_openai_conversations_session.py740# ============================================================================COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py118# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py1103# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py1105# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py1045# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py1047# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_encrypt_session.py499# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_encrypt_session.py501# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_dapr_session.py915# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_dapr_session.py917# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_advanced_sqlite_session.py2615# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_advanced_sqlite_session.py2617# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py284# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py286# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py573# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py575# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py636# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py638# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py671# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py673# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py823# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py825# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py1116# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py1118# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py317# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py319# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py344# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py346# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py885# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py887# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py1042# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py1044# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_redis_session.py941# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_redis_session.py943# ============================================================================COMMENT
MEDIUMtests/extensions/sandbox/test_daytona.py1635# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_daytona.py1637# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py43# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py762# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py764# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py881# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py883# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py1103# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py1105# ---------------------------------------------------------------------------COMMENT
176 more matches not shown…
Cross-File Repetition152 hits · 760 pts
SeverityFileLineSnippetContext
HIGHtests/test_function_tool_decorator.py0get the temperature for a given city. args: city: the city to get temperature for. returns: temperature information for STRING
HIGHexamples/agent_patterns/human_in_the_loop.py0get the temperature for a given city. args: city: the city to get temperature for. returns: temperature information for STRING
HIGHexamples/agent_patterns/human_in_the_loop_stream.py0get the temperature for a given city. args: city: the city to get temperature for. returns: temperature information for STRING
HIGHtests/memory/test_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_dapr_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_mongodb_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/extensions/memory/test_redis_session.py0add_items([]) must not bypass the closed check through the empty-list fast path.STRING
HIGHtests/memory/test_session.py0pop_item skips corrupt newest rows and returns the next valid item.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0pop_item skips corrupt newest rows and returns the next valid item.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0pop_item skips corrupt newest rows and returns the next valid item.STRING
HIGHtests/memory/test_session.py0pop_item removes corrupt rows and returns none when no valid items remain.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0pop_item removes corrupt rows and returns none when no valid items remain.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0pop_item removes corrupt rows and returns none when no valid items remain.STRING
HIGHtests/memory/test_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0limit counts valid items, expanding past corrupt newest rows.STRING
HIGHtests/memory/test_session.py0test that session correctly stores and retrieves unicode/non-ascii content.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that session correctly stores and retrieves unicode/non-ascii content.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that session correctly stores and retrieves unicode/non-ascii content.STRING
HIGHtests/memory/test_session.py0test concurrent access to the same session to verify data integrity.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test concurrent access to the same session to verify data integrity.STRING
HIGHtests/extensions/memory/test_redis_session.py0test concurrent access to the same session to verify data integrity.STRING
HIGHtests/memory/test_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/memory/test_openai_conversations_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that session_settings defaults to empty sessionsettings.STRING
HIGHtests/memory/test_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that get_items uses session_settings.limit as default.STRING
HIGHtests/memory/test_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_encrypt_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that explicit limit parameter overrides session_settings.STRING
HIGHtests/memory/test_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_encrypt_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_advanced_sqlite_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that runconfig can override session's default settings.STRING
HIGHtests/models/test_litellm_chatcompletions_stream.py0cancelling during the cleanup `aclose` continues that close instead of abandoning it.STRING
HIGHtests/models/test_openai_chatcompletions_stream.py0cancelling during the cleanup `aclose` continues that close instead of abandoning it.STRING
HIGHtests/models/test_openai_responses.py0cancelling during the cleanup `aclose` continues that close instead of abandoning it.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that different session ids result in isolated conversation histories.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that pop_item returns none on an empty session.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that pop_item returns none on an empty session.STRING
92 more matches not shown…
Excessive Try-Catch Wrapping637 hits · 601 pts
SeverityFileLineSnippetContext
LOWintegration_tests/_contract_support.py1207 except Exception as error:CODE
LOWintegration_tests/_contract_support.py1655 except Exception as error:CODE
LOWintegration_tests/_contract_support.py1672 except Exception as error:CODE
LOWintegration_tests/_contract_support.py1772 except Exception as error:CODE
LOWintegration_tests/_contract_support.py1954 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2008 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2050 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2087 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2250 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2406 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2413 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2443 except Exception as error:CODE
LOWintegration_tests/_contract_support.py2461 except Exception as error:CODE
LOWintegration_tests/containers/test_dapr_redis.py116 except Exception:CODE
LOWintegration_tests/containers/test_dapr_redis.py139 except Exception:CODE
LOWtests/memory/test_session.py80 except Exception:CODE
LOWtests/mcp/test_mcp_util.py1227 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py715 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py297 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py650 except Exception:CODE
LOWtests/extensions/memory/test_sqlalchemy_session.py780 except Exception as exc:CODE
LOWtests/extensions/memory/test_sqlalchemy_session.py828 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1151 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1175 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py2155 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py541 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py665 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py261 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py488 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py587 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py714 except Exception:CODE
MEDIUMtests/realtime/test_openai_realtime.py3308def handler(websocket):CODE
LOWtests/realtime/test_openai_realtime.py3337 except Exception:CODE
LOWtests/realtime/test_session.py727 except Exception: # noqa: S110CODE
MEDIUMdocs/ja/realtime/quickstart.md96 print(f"Error: {event.error}")CODE
MEDIUMdocs/realtime/quickstart.md92 print(f"Error: {event.error}")CODE
MEDIUMdocs/zh/realtime/quickstart.md96 print(f"Error: {event.error}")CODE
LOWdocs/scripts/translate_docs.py706 except Exception:CODE
MEDIUMdocs/scripts/translate_docs.py834 print("Error: No valid files found to translate")CODE
MEDIUMdocs/ko/realtime/quickstart.md96 print(f"Error: {event.error}")CODE
LOWexamples/memory/dapr_session_example.py223 except Exception as e:CODE
MEDIUMexamples/memory/dapr_session_example.py224 print(f"Error: {e}")CODE
LOWexamples/memory/dapr_session_example.py295 except Exception as e:CODE
LOWexamples/memory/dapr_session_example.py426 except Exception as e:CODE
LOWexamples/memory/dapr_session_example.py458 except Exception:CODE
LOWexamples/memory/file_hitl_example.py87 except Exception as exc: # noqa: BLE001CODE
LOWexamples/memory/file_hitl_example.py147 except Exception:CODE
LOWexamples/memory/redis_session_example.py148 except Exception as e:CODE
MEDIUMexamples/memory/redis_session_example.py149 print(f"Error: {e}")CODE
LOWexamples/memory/redis_session_example.py175 except Exception as e:CODE
LOWexamples/memory/mongodb_session_example.py31 except Exception:CODE
LOWexamples/financial_research_agent/manager.py176 except Exception:CODE
MEDIUMexamples/basic/non_strict_output_type.py71 print(f"Error (expected): {e}")CODE
LOWexamples/research_bot/manager.py102 except Exception:CODE
LOW…mples/mcp/streamablehttp_custom_client_example/main.py129 except Exception as e:CODE
MEDIUM…mples/mcp/streamablehttp_custom_client_example/main.py130 print(f"Error starting Streamable HTTP server: {e}")CODE
LOWexamples/mcp/streamablehttp_example/server.py36 except Exception:CODE
LOWexamples/mcp/streamablehttp_example/main.py96 except Exception as e:CODE
MEDIUMexamples/mcp/streamablehttp_example/main.py97 print(f"Error starting Streamable HTTP server: {e}")CODE
LOWexamples/mcp/prompt_server/main.py44 except Exception as e:CODE
577 more matches not shown…
Self-Referential Comments132 hits · 413 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_responses_tracing.py296 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py299 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py441 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py447 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py649 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py652 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py70 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py134 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py255 # Create an instance of the modelCOMMENT
MEDIUMtests/test_items_helpers.py208 # Create a non-message run item of a different type, e.g., a reasoning trace.COMMENT
MEDIUMtests/test_agent_runner_streamed.py2183 # Create a tool that requires approvalCOMMENT
MEDIUMtests/test_hitl_error_scenarios.py651 # Create the tool with needs_approval directlyCOMMENT
MEDIUMtests/test_usage.py300 # Create a usage with request_usage_entriesCOMMENT
MEDIUMtests/test_agent_runner.py6831 # Define a tool that will be called by the orchestrator agentCOMMENT
MEDIUMtests/test_agent_runner.py6919 # Create a computer tool (not a FunctionTool)COMMENT
MEDIUMtests/test_agent_runner.py6961 # Create an approved tool call for the computer toolCOMMENT
MEDIUMtests/test_agent_runner.py6993 # Create a rejected tool callCOMMENT
MEDIUMtests/test_agent_runner.py7175 # Create a tool call with unclear status (neither approved nor rejected)COMMENT
MEDIUMtests/test_agent_runner.py7198 # Create an approved tool call for a tool that doesn't existCOMMENT
MEDIUMtests/test_agent_as_tool.py225 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py273 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py321 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py384 # Create a simple agentCOMMENT
MEDIUMtests/test_computer_action.py542 # Create a dummy click action to trigger a click and screenshot.COMMENT
MEDIUMtests/test_run_state.py6944 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py6954 # Create a ProcessedResponse with the tool call item in new_itemsCOMMENT
MEDIUMtests/test_run_state.py7037 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py7047 # Create a ProcessedResponse with the tool call itemCOMMENT
MEDIUMtests/test_run_state.py10222 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py10232 # Create a ProcessedResponseCOMMENT
MEDIUMtests/test_run_state.py10252 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py10262 # Create a ProcessedResponseCOMMENT
MEDIUMtests/test_run_state.py10351 # Create a mock MCP tool that will be recognized as HostedMCPToolCOMMENT
MEDIUMtests/test_run_state.py10356 # Create a minimal Mcp configCOMMENT
MEDIUMtests/test_run_state.py1529 # Create a mock item that has id and type directly on the item (not in raw_item)COMMENT
MEDIUMtests/test_run_state.py4148 # Create a cycle A -> B -> ACOMMENT
MEDIUMtests/test_run_state.py5167 # Create a handoff output itemCOMMENT
MEDIUMtests/test_run_state.py6864 # Create a RunState with contextCOMMENT
MEDIUMtests/test_run_state.py6884 # Create a RunState with contextCOMMENT
MEDIUMtests/test_run_state.py6908 # Create a run that will have interruptionsCOMMENT
MEDIUMtests/test_run_state.py6976 # Create a message with nested contentCOMMENT
MEDIUMtests/test_run_state.py7253 # Create a handoff with a name attribute but no tool_nameCOMMENT
MEDIUMtests/test_run_state.py7398 # Create a shell tool with descriptionCOMMENT
MEDIUMtests/test_run_state.py7436 # Create an apply patch tool with descriptionCOMMENT
MEDIUMtests/test_run_state.py7482 # Create a mock MCP tool - HostedMCPTool doesn't have a simple constructorCOMMENT
MEDIUMtests/test_run_state.py7521 # Create a message itemCOMMENT
MEDIUMtests/test_run_state.py7812 # Create a mock item with a raw_item that is neither dict nor has model_dumpCOMMENT
MEDIUMtests/test_run_state.py7832 # Create an agent without get_all_tools methodCOMMENT
MEDIUMtests/test_run_state.py7861 # Create a handoff with tool_nameCOMMENT
MEDIUMtests/test_run_state.py8516 # Create a mock MCP toolCOMMENT
MEDIUMtests/test_run_state.py10312 # Create a handoff with name attribute but no tool_nameCOMMENT
MEDIUMtests/test_run_state.py10402 # Create an agent without get_all_tools methodCOMMENT
MEDIUMtests/test_run_state.py10465 # Create an item with missing type field to trigger the union adapter fallbackCOMMENT
MEDIUMtests/test_extension_filters.py789 # Create a nested summary that will be parsedCOMMENT
MEDIUMtests/test_extension_filters.py797 # Create a second nested summary that includes the firstCOMMENT
MEDIUMtests/test_extension_filters.py896 # Create an item with a circular reference or other unserializable contentCOMMENT
MEDIUMtests/test_extension_filters.py901 # Create an item that will trigger TypeError in json.dumpsCOMMENT
MEDIUMtests/test_extension_filters.py631 # Create an item that doesn't have a role (e.g., a function call)COMMENT
MEDIUMtests/test_extension_filters.py768 # Create a summary message with non-string content (array)COMMENT
MEDIUMtests/test_extension_filters.py816 # Create a summary that includes a role with nameCOMMENT
72 more matches not shown…
Cross-Language Confusion69 hits · 390 pts
SeverityFileLineSnippetContext
HIGHtests/test_tool_approval_call_id_reuse.py169 "arguments": '{"value": null}',CODE
HIGHtests/test_agent_tool_input.py93 assert "- count (integer | null, optional) - Optional count." in info.summaryCODE
HIGHtests/test_run_state.py4581 "output": '{"temperature":20,"unit":"celsius","humidity":null}',CODE
HIGHtests/extensions/memory/test_dapr_session.py1428 # still non-null, which is the situation the guard is actually for.COMMENT
HIGHtests/extensions/sandbox/test_modal.py2539 "modal-snapshot-directory-ephemeral.tar -T - 2>/dev/null && test -f "CODE
HIGHtests/extensions/sandbox/test_modal.py2775 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",CODE
HIGHtests/extensions/sandbox/test_modal.py2806 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],CODE
HIGHtests/extensions/sandbox/test_modal.py2858 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",CODE
HIGHtests/extensions/sandbox/test_modal.py2886 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],CODE
HIGHtests/extensions/sandbox/test_e2b.py131 "sh -lc test -c /dev/fuse && grep -qw fuse /proc/filesystems && "CODE
HIGHtests/extensions/sandbox/test_e2b.py132 "(command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1)"CODE
HIGHtests/extensions/sandbox/test_e2b.py160 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHtests/extensions/sandbox/test_e2b.py177 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py155 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py172 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py198 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py208 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHtests/extensions/sandbox/test_runloop.py2422 await session.exec("pwd && echo hello", shell=True)CODE
HIGHtests/extensions/sandbox/test_runloop.py2638 await session.exec("pwd && echo hello", shell=True)CODE
HIGHtests/realtime/test_session.py4549 complex_args = '{"nested": {"data": [1, 2, 3]}, "bool": true, "null": null}'CODE
HIGHtests/sandbox/test_session_sinks.py699 slow_result = await session.exec("sleep 1 && echo slow span")CODE
HIGHtests/sandbox/test_runtime.py5020 result = await session.exec("echo hi > note.txt && cat note.txt")CODE
HIGHtests/sandbox/test_session_utils.py218 await session.exec("echo hello && echo goodbye", shell=True)CODE
HIGHtests/sandbox/test_session_utils.py220 assert session.last_command == ("sh", "-lc", "echo hello && echo goodbye")CODE
HIGHtests/sandbox/test_posix_tool_paths.py30 assert command == "cd /workspace/src/project && pwd"CODE
HIGHtests/sandbox/test_posix_tool_paths.py58 assert command == f"cd {workspace.as_posix()}/src/project && pwd"CODE
HIGHtests/sandbox/test_mounts.py1267 ["sh", "-lc", "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"],CODE
HIGHtests/sandbox/test_docker.py3634 'pid="$(cat "$1" 2>/dev/null || true)"; 'CODE
HIGHtests/sandbox/test_docker.py3635 'if [ -n "$pid" ]; then kill -KILL "$pid" >/dev/null 2>&1 || true; fi; 'CODE
HIGHtests/sandbox/test_docker.py3677 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 10' >/dev/null 2>&1 || true"],CODE
HIGHtests/sandbox/test_docker.py3682 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 20' >/dev/null 2>&1 || true"],CODE
HIGHtests/sandbox/test_docker.py3619 'mkdir -p "$1" && printf "%s" "$$" > "$2" && shift 2 && exec "$@"',CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py356 assert session.calls[0].args == ("cd /workspace/src/project && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py364 "stdout: cd /workspace/src/project && pwd\n"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py365 "stderr: cd /workspace/src/project && pwd"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py457 assert session.calls[0].args == ("cd /mnt/shared-data && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py465 "stdout: cd /mnt/shared-data && pwd\n"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py466 "stderr: cd /mnt/shared-data && pwd"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py605 assert session.calls[0].args == ("cd /workspace/tasks/a && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py606 assert session.calls[1].args == ("cd /workspace/tasks/a && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py291 assert session.calls[0].args == ("cd /workspace/tasks/a && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py385 assert session.calls[0].args == ("cd /workspace/tasks/a && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py400 assert session.calls[0].args == ("cd /workspace/tasks/a/src/project && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py417 assert session.calls[0].args == ("cd /workspace/tasks/a/src/project && pwd",)CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py503 assert session.calls[0].args == ("cd /workspace/tasks/a && pwd",)CODE
HIGHexamples/sandbox/shared_session_workdirs.py94SHELL_COMMAND = "cp reference.png page.png && cat brief.md"CODE
HIGHexamples/sandbox/healthcare_support/support_agents.py120 "Use `exec_command` with `pwd`, `ls`, `cat`, and the documented `rg || grep` search "STRING
HIGHexamples/sandbox/extensions/blaxel_runner.py307 f"cat {mount_path}/{marker}.txt && ls {mount_path}"CODE
HIGH…ples/sandbox/tutorials/dataroom_metric_extract/main.py61 Optional field: `segment` (segment/geography if explicitly stated, else null).STRING
HIGHsrc/agents/extensions/sandbox/_rclone.py8_RCLONE_CHECK = "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py53 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py81 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py247 "cd /tmp && ar x gcsfuse.deb && "CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py271 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py271 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")CODE
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py42 f"command -v {cmd} >/dev/null 2>&1 || test -x /usr/local/bin/{cmd}",CODE
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py62 f"apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq {package}"CODE
HIGHsrc/agents/extensions/sandbox/modal/sandbox.py1354 f"(tar cf - -- {rel_args} 2>/dev/null || true)"CODE
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py34 "test -c /dev/fuse && grep -qw fuse /proc/filesystems && "CODE
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py35 "(command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1)",CODE
9 more matches not shown…
Modern AI Meta-Vocabulary104 hits · 282 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md121. [**Agents**](https://openai.github.io/openai-agents-python/agents): LLMs configured with instructions, tools, guardraCODE
MEDIUMREADME.md181. [**Guardrails**](https://openai.github.io/openai-agents-python/guardrails/): Configurable safety checks for input andCODE
MEDIUMtests/test_guardrails.py510 # Trip only after the tool ran. If parallel guardrails gated the turn, thisCOMMENT
MEDIUMtests/test_guardrails.py869 # Trip only after the tool ran. If parallel guardrails gated the turn, thisCOMMENT
MEDIUMtests/test_items_helpers.py208 # Create a non-message run item of a different type, e.g., a reasoning trace.COMMENT
MEDIUMtests/realtime/test_session.py5650 # Neither should trigger guardrails yetCOMMENT
MEDIUMtests/realtime/test_session.py5793 # Use a minimal agent (guardrails from run_config)COMMENT
MEDIUMdocs/llms.txt8- [Overview](https://openai.github.io/openai-agents-python/): Learn the core primitives—agents, handoffs, guardrails, seCODE
MEDIUMdocs/llms.txt10- [Example Gallery](https://openai.github.io/openai-agents-python/examples/): Task-oriented examples that demonstrate agCODE
MEDIUMdocs/llms.txt13- [Agents](https://openai.github.io/openai-agents-python/agents/): Configure agent instructions, tools, guardrails, memoCODE
MEDIUMdocs/llms.txt25- [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Define validators that run alongside the agenCODE
MEDIUMdocs/guardrails.md20## Input guardrailsCOMMENT
MEDIUMdocs/guardrails.md40## Output guardrailsCOMMENT
MEDIUMdocs/guardrails.md58## Tool guardrailsCOMMENT
MEDIUMdocs/context.md40Adapt the shared application policy to these callbacks instead of maintaining separate capability lists. The callbacks cCODE
MEDIUMdocs/quickstart.md181## Run the agent orchestrationCOMMENT
MEDIUMdocs/llms-full.txt10- [Example Gallery](https://openai.github.io/openai-agents-python/examples/): Realistic Python samples that demonstrate CODE
MEDIUMdocs/llms-full.txt29- [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Create synchronous or asynchronous checks, shCODE
MEDIUMdocs/llms-full.txt61- [guardrail APIs](https://openai.github.io/openai-agents-python/ref/guardrail/): Build custom guardrails, interpret valCODE
MEDIUMdocs/release.md28- When an agent-level output guardrail blocks final output produced directly by a terminal function tool, the SDK retaCODE
MEDIUMdocs/release.md61- Runtime reliability fixes align streamed and non-streamed [output-guardrail session persistence](guardrails.md#outpuCODE
MEDIUMdocs/results.md214One redaction rule applies when an agent-level output guardrail blocks final output produced directly by a terminal funcCODE
MEDIUMdocs/index.md3The [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) enables you to build agentic AI apps in a lightwCODE
MEDIUMdocs/tools.md841For locally configured function tools, the runner also reevaluates `is_enabled` before invocation. However, `is_enabled`CODE
MEDIUMdocs/multi_agent.md1# Agent orchestrationCOMMENT
MEDIUMdocs/multi_agent.md57- [Tools](tools.md#agents-as-tools) for `Agent.as_tool()` and manager-style orchestration.CODE
MEDIUMdocs/ja/guardrails.md24## 入力ガードレール {#input-guardrails}COMMENT
MEDIUMdocs/ja/guardrails.md44## 出力ガードレール {#output-guardrails}COMMENT
MEDIUMdocs/ja/guardrails.md62## ツールガードレール {#tool-guardrails}COMMENT
MEDIUMdocs/ja/context.md44個別の機能リストを管理するのではなく、共有アプリケーションポリシーをこれらのコールバックに合わせて適用してください。これらのコールバックは、現在の実行に対して SDK が公開する機能を制御しますが、モデルが生成した引数やリソース選択を認可すCODE
MEDIUMdocs/ja/quickstart.md185## エージェントオーケストレーションの実行 {#run-the-agent-orchestration}COMMENT
MEDIUMdocs/ja/running_agents.md144##### ガードレール、ハンドオフ、モデル入力の整形 {#guardrails-handoffs-and-model-input-shaping}COMMENT
MEDIUMdocs/ja/release.md32- エージェントレベルの出力ガードレールが、終端関数ツールによって直接生成された最終出力をブロックした場合、検証済みフィールドによって安全に再構築できる場合に限り、SDK は再実行可能な呼び出し/出力ペアを保持します。元の `functCODE
MEDIUMdocs/ja/release.md65- 実行時の信頼性修正により、ストリーミングと非ストリーミングの[出力ガードレールのセッション永続化](guardrails.md#output-guardrails)が統一され、コピーおよび名前空間化の際に `FunctionToolCODE
MEDIUMdocs/ja/results.md218エージェントレベルの出力ガードレールが、終端となる関数ツールによって直接生成された最終出力をブロックした場合、1 つの秘匿化ルールが適用されます。ブロックされた現在のレスポンスでは、`output_guardrail_results` が拒CODE
MEDIUMdocs/ja/agents.md182## マルチエージェントシステムの設計パターン {#multi-agent-system-design-patterns}COMMENT
MEDIUMdocs/ja/agents.md305## ガードレール {#guardrails}COMMENT
MEDIUMdocs/ja/tools.md845ローカルで設定された関数ツールの場合、Runner は呼び出し前にも `is_enabled` を再評価します。ただし、`is_enabled` は可視性とディスパッチを制御するものであり、ツール引数やアクセス対象のリソースに依存する認可のCODE
MEDIUMdocs/ja/multi_agent.md14## LLM によるオーケストレーション {#orchestrating-via-llm}COMMENT
MEDIUMdocs/ja/multi_agent.md47## コードによるオーケストレーション {#orchestrating-via-code}COMMENT
MEDIUMdocs/ja/models/index.md20| OpenAI がホストするサブエージェントを使用する | 実験的なホステッド・マルチエージェントモデルを使用する | [ホステッド・マルチエージェント](#hosted-multi-agent-experimental) |CODE
MEDIUMdocs/ja/models/index.md242### ホステッド・マルチエージェント(実験的) {#hosted-multi-agent-experimental}COMMENT
MEDIUMdocs/ja/models/index.md294#### SDK オーケストレーションとの関係 {#relationship-to-sdk-orchestration}COMMENT
MEDIUMdocs/ja/realtime/guide.md266## ツール、承認、ハンドオフ、ガードレール {#tools-approvals-handoffs-and-guardrails}COMMENT
MEDIUMdocs/ja/realtime/guide.md329### ガードレール {#guardrails}COMMENT
MEDIUMdocs/models/index.md16| Use OpenAI-hosted subagents | Use the experimental hosted multi-agent model | [Hosted multi-agent](#hosted-multi-agentCODE
MEDIUMdocs/models/index.md238### Hosted multi-agent (experimental)COMMENT
MEDIUMdocs/models/index.md290#### Relationship to SDK orchestrationCOMMENT
MEDIUMdocs/realtime/guide.md262## Tools, approvals, handoffs, and guardrailsCOMMENT
MEDIUMdocs/zh/guardrails.md24## 输入安全防护措施 {#input-guardrails}COMMENT
MEDIUMdocs/zh/guardrails.md44## 输出安全防护措施 {#output-guardrails}COMMENT
MEDIUMdocs/zh/guardrails.md62## 工具安全防护措施 {#tool-guardrails}COMMENT
MEDIUMdocs/zh/context.md44请针对这些回调调整共享的应用策略,而不是维护单独的能力列表。这些回调用于控制 SDK 在当前运行中公开哪些能力;它们无法对模型生成的参数或资源选择进行授权。对于函数工具,请在工具实现内部实施这些决策,或在适当时使用[工具输入安全防护措施](CODE
MEDIUMdocs/zh/quickstart.md185## 智能体编排的运行 {#run-the-agent-orchestration}COMMENT
MEDIUMdocs/zh/running_agents.md144##### 安全防护措施、任务转移与模型输入调整 {#guardrails-handoffs-and-model-input-shaping}COMMENT
MEDIUMdocs/zh/release.md32- 当智能体级输出安全防护措施阻止由终止函数工具直接生成的最终输出时,仅当经过验证的字段允许安全重建时,SDK 才会保留可用于重放的调用/输出对。原始 `function_call_output` 载荷会在会话历史记录、`RunStatCODE
MEDIUMdocs/zh/release.md65- 运行时可靠性修复统一了流式和非流式的[输出安全防护措施会话持久化](guardrails.md#output-guardrails),在复制和命名空间处理期间保留 `FunctionTool` 子类,并针对[不受支持的 Chat CCODE
MEDIUMdocs/zh/results.md218当智能体级输出安全防护措施阻止由终止函数工具直接生成的最终输出时,会应用一条脱敏规则。对于当前被阻止的响应,`output_guardrail_results` 会替换被拒绝的智能体输出,并清除包含载荷的输出元数据,而 `tool_outpCODE
MEDIUMdocs/zh/agents.md182## 多智能体系统设计模式 {#multi-agent-system-design-patterns}COMMENT
MEDIUMdocs/zh/agents.md305## 安全防护措施 {#guardrails}COMMENT
44 more matches not shown…
Deep Nesting341 hits · 268 pts
SeverityFileLineSnippetContext
LOWintegration_tests/conftest.py159CODE
LOWintegration_tests/_contract_support.py419CODE
LOWintegration_tests/_contract_support.py1541CODE
LOWintegration_tests/_contract_support.py2194CODE
LOWintegration_tests/_contract_support.py2692CODE
LOWintegration_tests/_contract_support.py426CODE
LOWintegration_tests/packaging/mcp_legacy_server.py12CODE
LOW…gration_tests/security/test_local_sandbox_isolation.py115CODE
LOWintegration_tests/containers/test_dapr_redis.py95CODE
LOWintegration_tests/containers/test_dapr_redis.py125CODE
LOWtests/test_tracing.py306CODE
LOWtests/test_error_logging_redaction.py1795CODE
LOWtests/test_error_logging_redaction.py1831CODE
LOWtests/test_error_logging_redaction.py2220CODE
LOWtests/test_agent_llm_hooks.py104CODE
LOWtests/test_hitl_session_scenario.py321CODE
LOWtests/test_hitl_session_scenario.py342CODE
LOWtests/test_run_hooks.py125CODE
LOWtests/test_agent_runner_streamed.py2716CODE
LOWtests/test_agent_runner_streamed.py2918CODE
LOWtests/test_repository_workflow_interfaces.py17CODE
LOWtests/test_max_turns.py929CODE
LOWtests/test_provider_span_errors.py259CODE
LOWtests/test_provider_span_errors.py282CODE
LOWtests/test_provider_span_errors.py304CODE
LOWtests/test_provider_span_errors.py324CODE
LOWtests/test_function_tool_decorator.py710CODE
LOWtests/test_scripted_model.py1818CODE
LOWtests/memory/test_session.py62CODE
LOWtests/mcp/test_server_errors.py63CODE
LOWtests/mcp/test_server_errors.py132CODE
LOWtests/mcp/test_mcp_v2_http.py161CODE
LOWtests/mcp/servers/legacy.py12CODE
LOW…xtensions/experimental/hosted_multi_agent/test_live.py37CODE
LOWtests/extensions/memory/test_dapr_session.py1265CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py675CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1344CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py3550CODE
LOWtests/extensions/memory/test_redis_session.py3042CODE
LOWtests/extensions/sandbox/test_modal.py3315CODE
LOWtests/extensions/sandbox/test_e2b.py310CODE
LOWtests/extensions/sandbox/test_vercel.py339CODE
LOWtests/extensions/sandbox/test_runloop.py274CODE
LOWtests/realtime/test_session.py1303CODE
LOWtests/sandbox/test_runtime.py6296CODE
LOWtests/sandbox/test_runtime.py6319CODE
LOWtests/sandbox/_filesystem_test_session.py94CODE
LOWtests/sandbox/test_mount_security.py689CODE
LOW…gents/skills/release-candidate-prep/scripts/prepare.py280CODE
LOW…lls/implementation-kickoff/scripts/validate_handoff.py104CODE
LOW…implementation-final-review/scripts/review_protocol.py526CODE
LOW…implementation-final-review/scripts/review_protocol.py1030CODE
LOW…ls/implementation-final-review/scripts/review_state.py68CODE
LOW…s/sensitive-logging-audit/scripts/inventory_logging.py115CODE
LOWdocs/scripts/translate_docs.py795CODE
LOWexamples/web_search_utils.py20CODE
LOWexamples/run_examples.py577CODE
LOWexamples/run_examples.py629CODE
LOWexamples/tools/tool_search.py121CODE
LOWexamples/tools/code_interpreter.py14CODE
281 more matches not shown…
Modern Structural Boilerplate155 hits · 168 pts
SeverityFileLineSnippetContext
LOWtests/test_tracing_errors.py711 def set_error(self, error: Any) -> None:CODE
LOWtests/test_tracing_errors.py727 def set_error(self, error: Any) -> None:CODE
LOWtests/test_agent_runner_sync.py14 def set_event_loop(self, loop: asyncio.AbstractEventLoop | None) -> None: ...CODE
LOWtests/test_trace_processor.py379 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWtests/test_trace_processor.py388 def set_disabled(self, disabled: bool) -> None:CODE
LOWtests/test_model_error_logging_redaction.py14 def set_error(self, _error: Any) -> None:CODE
LOWtests/test_scripted_model.py1362 def set_error(self, _error: SpanError) -> None:CODE
LOWtests/test_scripted_model.py1377 def set_error(self, error: SpanError) -> None:CODE
LOWtests/test_scripted_model.py1405 def set_error(self, error: SpanError) -> None:CODE
LOWtests/extensions/memory/test_encrypt_session.py53 def _set_time(value: int) -> None:CODE
LOWtests/extensions/sandbox/test_modal.py62def _set_aio_attr(obj: object, name: str, fn: Callable[..., object]) -> None:CODE
LOWtests/sandbox/test_runtime.py165 def _set_concurrency_limits(self, limits: SandboxConcurrencyLimits) -> None:CODE
LOWtests/sandbox/test_runtime.py169 def _set_archive_limits(self, limits: SandboxArchiveLimits | None) -> None:CODE
LOWexamples/realtime/app/server.py45logger = logging.getLogger(__name__)CODE
LOWexamples/realtime/cli/demo.py385 def _update_playback_rms(self, samples: np.ndarray[Any, np.dtype[Any]]) -> None:CODE
LOW…andbox/extensions/temporal/temporal_session_manager.py395 async def update_snapshot_id(self, request: RenameRequest) -> None:CODE
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py328 def _set_activity(self, text: str | Text = "") -> None:CODE
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py722 def _set_session_title(self, title: str) -> None:CODE
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py324 def _set_liveness(self, text: str | Text) -> None:STRING
LOWsrc/agents/run.py168__all__ = [CODE
LOWsrc/agents/run.py192def set_default_agent_runner(runner: AgentRunner | None) -> None:CODE
LOWsrc/agents/run_state.py2146 def set_trace(self, trace: Trace | None) -> None:CODE
LOWsrc/agents/run_state.py2155 def set_tool_use_tracker_snapshot(self, snapshot: Mapping[str, Sequence[str]] | None) -> None:CODE
LOWsrc/agents/run_state.py2168 def set_reasoning_item_id_policy(self, policy: Literal["preserve", "omit"] | None) -> None:CODE
LOWsrc/agents/run_error_handlers.py58__all__ = [CODE
LOWsrc/agents/responses_websocket_session.py142__all__ = ["ResponsesWebSocketSession", "responses_websocket_session"]CODE
LOWsrc/agents/__init__.py306def set_default_openai_api(api: Literal["chat_completions", "responses"]) -> None:CODE
LOWsrc/agents/__init__.py313def set_default_openai_responses_transport(transport: Literal["http", "websocket"]) -> None:CODE
LOWsrc/agents/__init__.py278def set_default_openai_key(key: str, use_for_tracing: bool = True) -> None:CODE
LOWsrc/agents/__init__.py293def set_default_openai_client(client: AsyncOpenAI, use_for_tracing: bool = True) -> None:CODE
LOWsrc/agents/__init__.py333def set_default_openai_harness(harness_id: str | None) -> None:CODE
LOWsrc/agents/__init__.py366__all__ = [CODE
LOWsrc/agents/apply_diff.py411__all__ = ["apply_diff"]CODE
LOWsrc/agents/_config.py13def set_default_openai_key(key: str, use_for_tracing: bool) -> None:CODE
LOWsrc/agents/_config.py20def set_default_openai_client(client: AsyncOpenAI, use_for_tracing: bool) -> None:CODE
LOWsrc/agents/_config.py27def set_default_openai_api(api: Literal["chat_completions", "responses"]) -> None:CODE
LOWsrc/agents/_config.py34def set_default_openai_responses_transport(transport: Literal["http", "websocket"]) -> None:CODE
LOWsrc/agents/_config.py48def set_default_openai_harness(harness_id: str | None) -> None:CODE
LOWsrc/agents/run_config.py611__all__ = [CODE
LOWsrc/agents/agent_tool_state.py57def set_agent_tool_state_scope(context: Any, scope_id: str | None) -> None:CODE
LOWsrc/agents/decorators.py12__all__ = [CODE
LOWsrc/agents/tracing/provider.py230 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWsrc/agents/tracing/provider.py242 def set_disabled(self, disabled: bool) -> None:CODE
LOWsrc/agents/tracing/provider.py332 def set_disabled(self, disabled: bool) -> None:CODE
LOWsrc/agents/tracing/__init__.py101def set_trace_processors(processors: list[TracingProcessor]) -> None:CODE
LOWsrc/agents/tracing/__init__.py108def set_tracing_disabled(disabled: bool) -> None:CODE
LOWsrc/agents/tracing/__init__.py115def set_tracing_export_api_key(api_key: str) -> None:CODE
LOWsrc/agents/tracing/__init__.py45__all__ = [CODE
LOWsrc/agents/tracing/spans.py167 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/spans.py266 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/spans.py373 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/setup.py27def set_trace_provider(provider: TraceProvider) -> None:CODE
LOWsrc/agents/memory/__init__.py20__all__ = [CODE
LOWsrc/agents/mcp/__init__.py44__all__ = [CODE
LOWsrc/agents/models/reasoning_content_replay.py61__all__ = [CODE
LOWsrc/agents/models/__init__.py9__all__ = [CODE
LOWsrc/agents/models/_openai_websocket.py52def _set_header(headers: dict[str, str], key: object, value: object) -> None:CODE
LOWsrc/agents/models/_openai_shared.py18def set_default_openai_key(key: str) -> None:CODE
LOWsrc/agents/models/_openai_shared.py27def set_default_openai_client(client: AsyncOpenAI) -> None:CODE
LOWsrc/agents/models/_openai_shared.py36def set_use_responses_by_default(use_responses: bool) -> None:CODE
95 more matches not shown…
Magic Placeholder Names12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHdocs/tracing.md175 api_key="your-api-key",CODE
HIGHdocs/ja/tracing.md179 api_key="your-api-key",CODE
HIGHdocs/ja/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/ja/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})CODE
HIGHdocs/realtime/quickstart.md130export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/realtime/quickstart.md136session = await runner.run(model_config={"api_key": "your-api-key"})CODE
HIGHdocs/zh/tracing.md179 api_key="your-api-key",CODE
HIGHdocs/zh/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/zh/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})CODE
HIGHdocs/ko/tracing.md179 api_key="your-api-key",CODE
HIGHdocs/ko/realtime/quickstart.md134export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/ko/realtime/quickstart.md140session = await runner.run(model_config={"api_key": "your-api-key"})CODE
AI Structural Patterns49 hits · 36 pts
SeverityFileLineSnippetContext
LOWtests/test_run_state.py176CODE
LOWtests/test_run_step_execution.py3052CODE
LOWtests/mcp/helpers.py72CODE
LOWtests/extensions/sandbox/test_e2b.py310CODE
LOWtests/extensions/sandbox/test_e2b.py1101CODE
LOWtests/extensions/sandbox/test_e2b.py1168CODE
LOWtests/extensions/sandbox/test_e2b.py1220CODE
LOWtests/extensions/sandbox/test_e2b.py1438CODE
LOWtests/sandbox/capabilities/test_apply_patch_tool.py664CODE
LOW…ndbox/extensions/daytona/usaspending_text2sql/agent.py203CODE
LOWsrc/agents/model_settings.py225CODE
LOWsrc/agents/run.py257CODE
LOWsrc/agents/run.py362CODE
LOWsrc/agents/run.py465CODE
LOWsrc/agents/responses_websocket_session.py90CODE
LOWsrc/agents/tool_context.py66CODE
LOWsrc/agents/retry.py62CODE
LOWsrc/agents/agent.py583CODE
LOWsrc/agents/agent.py401CODE
LOWsrc/agents/run_config.py265CODE
LOWsrc/agents/run_config.py500CODE
LOWsrc/agents/tool.py698CODE
LOWsrc/agents/tool.py2458CODE
LOWsrc/agents/tool.py2486CODE
LOWsrc/agents/tool.py2512CODE
LOWsrc/agents/tracing/create.py188CODE
LOWsrc/agents/tracing/create.py353CODE
LOWsrc/agents/tracing/create.py397CODE
LOWsrc/agents/mcp/server.py878CODE
LOWsrc/agents/mcp/server.py1894CODE
LOWsrc/agents/mcp/server.py2036CODE
LOWsrc/agents/mcp/server.py2206CODE
LOWsrc/agents/models/multi_provider.py76CODE
LOWsrc/agents/models/openai_provider.py46CODE
LOWsrc/agents/extensions/experimental/codex/codex_tool.py237CODE
LOWsrc/agents/extensions/sandbox/vercel/sandbox.py424CODE
LOWsrc/agents/extensions/sandbox/runloop/sandbox.py490CODE
LOWsrc/agents/extensions/sandbox/blaxel/mounts.py231CODE
LOWsrc/agents/extensions/sandbox/blaxel/sandbox.py1198CODE
LOWsrc/agents/extensions/sandbox/daytona/sandbox.py329CODE
LOWsrc/agents/extensions/sandbox/modal/sandbox.py302CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py445CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py212CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py273CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py627CODE
LOWsrc/agents/run_internal/run_loop.py2054CODE
LOWsrc/agents/run_internal/run_loop.py2402CODE
LOWsrc/agents/voice/pipeline_config.py55CODE
LOWsrc/agents/sandbox/sandbox_agent.py59CODE
Dead Code15 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cancel_streaming.py260CODE
MEDIUMtests/test_cancel_streaming.py284CODE
MEDIUMtests/test_run_step_execution.py2710CODE
MEDIUMtests/models/test_model_retry.py3300CODE
MEDIUMtests/models/test_model_retry.py2344CODE
MEDIUMtests/models/test_model_retry.py2474CODE
MEDIUMtests/models/test_model_retry.py2518CODE
MEDIUMtests/models/test_model_retry.py2840CODE
MEDIUMtests/models/test_model_retry.py2884CODE
MEDIUMtests/realtime/test_testing.py327CODE
MEDIUMtests/voice/test_pipeline.py1379CODE
MEDIUMtests/voice/test_pipeline.py567CODE
MEDIUMtests/voice/test_pipeline.py638CODE
MEDIUMtests/voice/test_pipeline.py1153CODE
MEDIUMsrc/agents/voice/workflow.py41CODE
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsrc/agents/run_state.py1781Serializes the run state to a JSON-compatible dictionary. This method is used to serialize the run state to a dSTRING
HIGHsrc/agents/run_state.py2188Deserializes a run state from a JSON string. This method is used to deserialize a run state from a string that STRING
HIGHsrc/agents/run_state.py2262Deserializes a run state from a JSON dictionary. This method is used to deserialize a run state from a dict thaSTRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py1000Create a new branch starting from a specific user message turn. Args: turn_number: The branch turn STRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py1055Create branch from the first user turn matching the search term. Args: search_term: Text to search STRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py1395Copy messages before the branch point to the new branch. Args: new_branch_id: The ID of the new braSTRING
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtests/voice/test_input.py207 # Add audio to the queueCOMMENT
LOWexamples/memory/memory_session_hitl_example.py41 # Check if any city name is in the provided location stringCOMMENT
LOWexamples/memory/openai_session_hitl_example.py41 # Check if any city name is in the provided location stringCOMMENT
LOWexamples/realtime/cli/demo.py298 # Check if there's enough data to readCOMMENT
LOWexamples/agent_patterns/agents_as_tools_structured.py41 # Set include_input_schema to true to include the full JSON Schema:COMMENT
LOWexamples/agent_patterns/streaming_guardrails.py68 # Check if it's time to run the guardrail checkCOMMENT
LOWsrc/agents/models/chatcmpl_converter.py140 # Check if message is agents.extensions.models.litellm_model.InternalChatCompletionMessage.COMMENT
LOWsrc/agents/extensions/memory/advanced_sqlite_session.py1149 # Check if trying to delete current branchCOMMENT
LOWsrc/agents/extensions/models/litellm_model.py731 # Check if this is an assistant message with tool callsCOMMENT
LOWsrc/agents/realtime/session.py318 # Check if there's a stored exception to raiseCOMMENT
Fake / Example Data16 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/test_responses_tracing.py54 self.id = "dummy-id"CODE
LOWtests/test_responses_tracing.py110 "response_id": "dummy-id",CODE
LOWtests/test_responses_tracing.py177 "response_id": "dummy-id",CODE
LOWtests/test_responses_tracing.py316 response=model_test_helpers.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_responses_tracing.py345 "response_id": "dummy-id-123",CODE
LOWtests/test_responses_tracing.py389 self.response = model_test_helpers.get_response_obj([], "dummy-id-terminal")CODE
LOWtests/test_responses_tracing.py464 response=model_test_helpers.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_responses_tracing.py499 "response_id": "dummy-id-123",CODE
LOWtests/test_responses_tracing.py669 response=model_test_helpers.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_run_state.py4826 state = make_state(agent, context=context, original_input="placeholder", max_turns=5)CODE
LOWtests/models/test_model_payload_iterators.py87 id="dummy-id",CODE
LOWtests/extensions/sandbox/test_blaxel.py164 def __init__(self, value: str = "fake-token-abc123") -> None:CODE
LOWexamples/basic/tool_guardrails.py31 "name": "John Doe",CODE
LOWexamples/basic/tool_guardrails.py34 "phone": "555-1234",CODE
LOWexamples/basic/tool_guardrails.py45 "phone": "555-1234",CODE
LOWexamples/basic/tool_guardrails.py97 if "555-1234" in output_str:CODE
Overly Generic Function Names10 hits · 10 pts
SeverityFileLineSnippetContext
LOWintegration_tests/openai/test_approval_resume.py37 def perform_action(action: str) -> str:CODE
LOWtests/test_apply_diff.py187 " def helper():",CODE
LOWtests/test_apply_diff.py136 " def helper():",CODE
LOWtests/test_apply_diff.py163 " def helper():",CODE
LOWtests/test_released_api_contract.py1595 def helper(value: str = "default") -> None:CODE
LOWtests/mcp/test_mcp_v2_http.py71 def handle_request(request):CODE
LOWtests/realtime/test_realtime_model_settings.py167 def helper() -> str:CODE
LOWtests/sandbox/test_apply_patch.py83 b" def helper():\n"CODE
LOWtests/sandbox/test_apply_patch.py96 b"class Target\n def helper():\n pass\n\n def desired():\n return 1\n"CODE
LOWtests/sandbox/test_apply_patch.py62 b" def helper():\n"CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/agents/voice/models/openai_tts.py42 response = self._client.audio.speech.with_streaming_response.create(CODE
Verbosity Indicators6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/models/test_anthropic_thinking_blocks.py246 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py279 # Step 2: Convert output items back to messagesCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py419 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py455 # Step 2: Convert output items back to messages with preserve_thinking_blocks=TrueCOMMENT
LOWtests/models/test_gemini_thought_signatures.py38 # Step 1: Convert to itemsCOMMENT
LOWtests/models/test_gemini_thought_signatures.py53 # Step 2: Convert back to messagesCOMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/models/test_anthropic_thinking_blocks.py246 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py279 # Step 2: Convert output items back to messagesCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py419 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py455 # Step 2: Convert output items back to messages with preserve_thinking_blocks=TrueCOMMENT
LOWtests/models/test_gemini_thought_signatures.py38 # Step 1: Convert to itemsCOMMENT
LOWtests/models/test_gemini_thought_signatures.py53 # Step 2: Convert back to messagesCOMMENT
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/test_run_state.py10418 # This should not raise an error, just return empty toolsCOMMENT
MEDIUMtests/mcp/test_tool_filtering.py239 # Role-based filter for comprehensive testingCOMMENT
LOWexamples/customer_service/main.py156 # Here, we'll just use a random UUID for the conversation IDCOMMENT
MEDIUMexamples/mcp/prompt_server/server.py20 return f"""You are a senior {language} code review specialist. Your role is to provide comprehensive code analysis wCODE
LOWsrc/agents/result.py862 # Soft cancel - just set the flagCOMMENT
Over-Commented Block9 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs/scripts/translate_docs.py261## DO NOT TRANSLATE ##COMMENT
LOWexamples/__init__.py1# Make the examples directory into a package to avoid top-level module name collisions.COMMENT
LOWexamples/basic/lifecycle_example.py181### 11: LLM ended. Usage: 3 requests, 472 input tokens, 45 output tokens, 517 total tokensCOMMENT
LOWexamples/basic/stream_items.py61 # They don't have the guts!COMMENT
LOWexamples/sandbox/memory.py81 "access, report that validation was blocked and finish instead of retrying repeatedly. "COMMENT
LOWexamples/sandbox/memory.py101 # considered during consolidation. Older conversation-specific guidance may be removed fromCOMMENT
LOWsrc/agents/extensions/sandbox/modal/sandbox.py441COMMENT
LOWsrc/agents/run_internal/model_retry.py441COMMENT
LOWsrc/agents/sandbox/sandboxes/docker.py141 spool.close()COMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMexamples/basic/tool_guardrails.py169❌ Guardrail rejected function tool call: I'm unable to send the email as mentioning ACME Corp. is restricted.STRING
MEDIUMexamples/basic/tool_guardrails.py176❌ Guardrail rejected function tool output: I'm unable to retrieve the contact info for user456 because it contains restrSTRING
MEDIUMexamples/handoffs/message_filter_streaming.py44 # or, you can use the HandoffInputData.clone(kwargs) methodCOMMENT
MEDIUMexamples/handoffs/message_filter.py44 # or, you can use the HandoffInputData.clone(kwargs) methodCOMMENT