Repository Analysis

openai/openai-agents-python

A lightweight, powerful framework for multi-agent workflows

27.8 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 27,895 GitHub stars. SynthScan v2.0 examined 331,631 lines of code across 1337 source files, recording 8567 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 27.8 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).

27.8
Adjusted Score
27.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
27.9K
Stars
Python
Language
331.6K
Lines of Code
1.3K
Files
8.6K
Pattern Hits
2026-07-14
Scan Date
0.15
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 198MEDIUM 474LOW 7894

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 8567 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 Identifiers5600 hits · 4796 pts
SeverityFileLineSnippetContext
LOWtests/test_run_error_details.py12async def test_run_error_includes_data():CODE
LOWtests/test_run_error_details.py31async def test_streamed_run_error_includes_data():CODE
LOWtests/test_tool_use_tracker.py20def test_tool_use_tracker_as_serializable_uses_agent_map_or_runtime_snapshot() -> None:CODE
LOWtests/test_tool_use_tracker.py31def test_tool_use_tracker_from_and_serialize_snapshots() -> None:CODE
LOWtests/test_tool_use_tracker.py42def test_serialize_and_hydrate_tool_use_tracker_preserves_duplicate_agent_identity() -> None:CODE
LOWtests/test_tool_use_tracker.py54 def get_tool_use_tracker_snapshot(self) -> dict[str, list[str]]:CODE
LOWtests/test_tool_use_tracker.py67def test_tool_use_tracker_handles_literal_suffix_names_without_collision() -> None:CODE
LOWtests/test_tool_use_tracker.py82 def get_tool_use_tracker_snapshot(self) -> dict[str, list[str]]:CODE
LOWtests/test_tool_use_tracker.py95def test_record_used_tools_uses_trace_names_for_namespaced_and_deferred_functions() -> None:CODE
LOWtests/test_tool_use_tracker.py133def test_record_processed_response_ignores_hosted_tool_search_for_resets():CODE
LOWtests/test_tool_use_tracker.py161def test_record_processed_response_keeps_function_named_tool_search():CODE
LOWtests/test_tool_use_tracker.py189def test_record_processed_response_counts_output_only_tools_without_shifting_names() -> None:CODE
LOWtests/test_tool_use_tracker.py224def test_hydrate_tool_use_tracker_skips_unknown_agents() -> None:CODE
LOWtests/test_tool_use_tracker.py226 def get_tool_use_tracker_snapshot(self) -> dict[str, list[str]]:CODE
LOWtests/test_handoff_prompt.py7def test_prompt_with_handoff_instructions_includes_prefix() -> None:CODE
LOWtests/test_tool_metadata.py36def test_tool_name_properties() -> None:CODE
LOWtests/test_tool_metadata.py56def test_shell_command_output_status_property() -> None:CODE
LOWtests/test_tool_metadata.py61def test_tool_context_from_agent_context() -> None:CODE
LOWtests/test_asyncio_progress.py12async def test_function_tool_task_progress_deadline_detects_timer_backed_sleep() -> None:CODE
LOWtests/test_asyncio_progress.py37async def test_function_tool_task_progress_deadline_returns_none_for_external_wait() -> None:CODE
LOWtests/test_asyncio_progress.py61async def test_function_tool_task_progress_deadline_can_follow_tracked_invoke_task() -> None:CODE
LOWtests/test_asyncio_progress.py95async def test_function_tool_task_progress_deadline_can_follow_awaited_child_task() -> None:CODE
LOWtests/test_asyncio_progress.py121async def test_function_tool_task_progress_deadline_can_follow_shielded_child_task() -> None:CODE
LOWtests/test_asyncio_progress.py147async def test_function_tool_task_progress_deadline_can_follow_gathered_child_tasks() -> None:CODE
LOWtests/test_asyncio_progress.py172async def test_function_tool_task_progress_deadline_can_follow_timer_backed_future() -> None:CODE
LOWtests/test_asyncio_progress.py177 async def _timer_backed_future_task() -> None:CODE
LOWtests/test_run_config.py28async def test_model_provider_on_run_config_is_used_for_agent_model_name() -> None:CODE
LOWtests/test_run_config.py45async def test_run_config_model_name_override_takes_precedence() -> None:CODE
LOWtests/test_run_config.py65async def test_run_config_model_name_override_uses_model_specific_default_settings(CODE
LOWtests/test_run_config.py88async def test_run_config_model_settings_override_implicit_model_specific_defaults(CODE
LOWtests/test_run_config.py113async def test_run_config_model_override_object_takes_precedence() -> None:CODE
LOWtests/test_run_config.py127async def test_agent_model_object_is_used_when_present() -> None:CODE
LOWtests/test_run_config.py144def test_trace_include_sensitive_data_defaults_to_true_when_env_not_set(monkeypatch):CODE
LOWtests/test_run_config.py178def test_trace_include_sensitive_data_follows_env_value(env_value, expected, monkeypatch):CODE
LOWtests/test_run_config.py185def test_trace_include_sensitive_data_explicit_override_takes_precedence(monkeypatch):CODE
LOWtests/test_run_config.py196def test_tool_execution_config_rejects_invalid_function_tool_concurrency() -> None:CODE
LOWtests/test_run_config.py204def test_tool_execution_config_is_public_from_agents_package() -> None:CODE
LOWtests/test_run_config.py211def test_tool_not_found_behavior_defaults_to_raise_error() -> None:CODE
LOWtests/test_run_config.py217def test_tool_not_found_behavior_is_public_from_agents_package() -> None:CODE
LOWtests/test_oaiconv_resume_response_id.py18def test_hydrate_from_state_uses_latest_non_none_response_id() -> None:CODE
LOWtests/test_shell_call_serialization.py13def test_coerce_shell_call_reads_max_output_length() -> None:CODE
LOWtests/test_shell_call_serialization.py26def test_coerce_shell_call_requires_commands() -> None:CODE
LOWtests/test_shell_call_serialization.py33def test_coerce_shell_call_rejects_string_like_commands(commands: object) -> None:CODE
LOWtests/test_shell_call_serialization.py42def test_normalize_shell_output_handles_timeout() -> None:CODE
LOWtests/test_shell_call_serialization.py54def test_normalize_shell_output_converts_string_outcome() -> None:CODE
LOWtests/test_shell_call_serialization.py67def test_serialize_shell_output_emits_canonical_outcome() -> None:CODE
LOWtests/test_shell_call_serialization.py79def test_shell_rejection_payload_preserves_missing_exit_code() -> None:CODE
LOWtests/test_shell_call_serialization.py105def test_shell_output_preserves_zero_exit_code() -> None:CODE
LOWtests/test_tracing_errors.py34async def test_single_turn_model_error():CODE
LOWtests/test_tracing_errors.py75async def test_multi_turn_no_handoffs():CODE
LOWtests/test_tracing_errors.py208async def test_multiple_handoff_doesnt_error():CODE
LOWtests/test_tracing_errors.py298async def test_multiple_final_output_doesnt_error():CODE
LOWtests/test_tracing_errors.py334async def test_handoffs_lead_to_correct_agent_spans():CODE
LOWtests/test_agent_instructions_signature.py17 async def test_valid_async_signature_passes(self, mock_run_context):CODE
LOWtests/test_agent_instructions_signature.py28 async def test_valid_sync_signature_passes(self, mock_run_context):CODE
LOWtests/test_agent_instructions_signature.py39 async def test_one_parameter_raises_error(self, mock_run_context):CODE
LOWtests/test_agent_instructions_signature.py54 async def test_three_parameters_raises_error(self, mock_run_context):CODE
LOWtests/test_agent_instructions_signature.py69 async def test_zero_parameters_raises_error(self, mock_run_context):CODE
LOWtests/test_agent_instructions_signature.py84 async def test_function_with_args_kwargs_fails(self, mock_run_context):CODE
LOWtests/test_agent_instructions_signature.py99 async def test_string_instructions_still_work(self, mock_run_context):CODE
5540 more matches not shown…
Unused Imports1318 hits · 1050 pts
SeverityFileLineSnippetContext
LOWtests/test_tool_use_tracker.py1CODE
LOWtests/test_tool_metadata.py1CODE
LOWtests/test_asyncio_progress.py1CODE
LOWtests/test_run_config.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_agent_tool_state.py1CODE
LOWtests/test_tool_origin.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_source_compat_constructors.py1CODE
LOWtests/test_output_guardrail_cancellation.py1CODE
LOWtests/test_guardrails.py1CODE
LOWtests/test_hitl_session_scenario.py1CODE
LOWtests/test_tracing_errors_streamed.py1CODE
LOWtests/test_run.py1CODE
LOWtests/test_items_helpers.py1CODE
LOWtests/test_agent_runner_streamed.py1CODE
LOWtests/test_streaming_logging.py1CODE
LOWtests/test_agent_prompt.py1CODE
LOWtests/test_agent_tracing.py1CODE
LOWtests/test_hitl_error_scenarios.py3CODE
LOWtests/test_run_step_processing.py1CODE
LOWtests/test_apply_diff.py3CODE
LOWtests/test_usage.py1CODE
LOWtests/test_agent_tool_input.py1CODE
LOWtests/test_shell_tool.py1CODE
LOWtests/test_agents_logging.py1CODE
LOWtests/test_run_internal_error_handlers.py1CODE
LOWtests/test_agent_runner.py1CODE
LOWtests/test_agent_as_tool.py1CODE
LOWtests/test_call_model_input_filter_unit.py1CODE
LOWtests/test_computer_tool_lifecycle.py1CODE
LOWtests/test_invalid_final_output_handler.py1CODE
LOWtests/test_apply_diff_helpers.py3CODE
LOWtests/test_run_state.py3CODE
LOWtests/test_extension_filters.py1CODE
LOWtests/test_tool_guardrails.py1CODE
LOWtests/test_tool_output_conversion.py1CODE
LOWtests/test_tracing_provider_safe_debug.py1CODE
LOWtests/test_responses.py1CODE
LOWtests/test_daytona_usaspending_example.py1CODE
LOWtests/test_max_turns.py1CODE
LOWtests/test_result_cast.py1CODE
LOWtests/test_global_hooks.py1CODE
LOWtests/test_apply_patch_tool.py1CODE
LOWtests/test_run_examples_script.py1CODE
LOWtests/test_tool_identity.py9CODE
LOWtests/test_tool_custom_data.py1CODE
LOWtests/test_run_step_execution.py1CODE
LOWtests/test_example_workflows.py1CODE
LOWtests/test_streamed_terminal_output_backfill.py1CODE
LOWtests/fake_model.py1CODE
LOWtests/test_run_internal_approvals.py1CODE
1258 more matches not shown…
Decorative Section Separators236 hits · 784 pts
SeverityFileLineSnippetContext
MEDIUMtests/memory/test_session.py665# ============================================================================COMMENT
MEDIUMtests/memory/test_session.py667# ============================================================================COMMENT
MEDIUMtests/memory/test_openai_conversations_session.py528# ============================================================================COMMENT
MEDIUMtests/memory/test_openai_conversations_session.py530# ============================================================================COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py571# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py573# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py54# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py513# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/test_tool_output_trimmer.py515# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_encrypt_session.py432# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_encrypt_session.py434# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_dapr_session.py878# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_dapr_session.py880# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_advanced_sqlite_session.py1604# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_advanced_sqlite_session.py1606# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py226# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py372# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py374# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py433# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py435# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py468# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py470# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py587# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py589# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py771# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py773# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py256# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py258# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py283# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py285# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py649# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py651# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py697# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_mongodb_session.py699# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/memory/test_redis_session.py824# ============================================================================COMMENT
MEDIUMtests/extensions/memory/test_redis_session.py826# ============================================================================COMMENT
MEDIUMtests/extensions/sandbox/test_daytona.py1620# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_daytona.py1622# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py34# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py48# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py752# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py754# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py850# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py852# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py1014# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/extensions/sandbox/test_blaxel.py1016# ---------------------------------------------------------------------------COMMENT
176 more matches not shown…
Cross-File Repetition126 hits · 630 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.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.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/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
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that pop_item returns none on an empty session.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that pop_item returns none on an empty session.STRING
HIGHtests/extensions/memory/test_dapr_session.py0test that adding an empty list of items is a no-op.STRING
HIGHtests/extensions/memory/test_async_sqlite_session.py0test that adding an empty list of items is a no-op.STRING
HIGHtests/extensions/memory/test_sqlalchemy_session.py0test that adding an empty list of items is a no-op.STRING
HIGHtests/extensions/memory/test_redis_session.py0test that adding an empty list of items is a no-op.STRING
HIGHdocs/context.md0fetch the age of the user. call this function to get user's age information.STRING
HIGHdocs/ja/context.md0fetch the age of the user. call this function to get user's age information.STRING
HIGHdocs/zh/context.md0fetch the age of the user. call this function to get user's age information.STRING
HIGHdocs/ko/context.md0fetch the age of the user. call this function to get user's age information.STRING
HIGHdocs/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.STRING
HIGHdocs/ja/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.STRING
HIGHdocs/zh/handoffs.md0{recommended_prompt_prefix} <fill in the rest of your prompt here>.STRING
66 more matches not shown…
Excessive Try-Catch Wrapping581 hits · 579 pts
SeverityFileLineSnippetContext
LOWtests/memory/test_session.py44 except Exception:CODE
LOWtests/mcp/test_mcp_util.py911 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py678 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py296 except Exception:CODE
LOWtests/extensions/memory/test_dapr_session.py613 except Exception:CODE
LOWtests/extensions/memory/test_dapr_redis_integration.py86 except Exception:CODE
LOWtests/extensions/memory/test_dapr_redis_integration.py109 except Exception:CODE
LOWtests/extensions/memory/test_sqlalchemy_session.py458 except Exception as exc:CODE
LOWtests/extensions/memory/test_sqlalchemy_session.py506 except Exception as exc:CODE
LOWtests/extensions/memory/test_advanced_sqlite_session.py1210 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py467 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py591 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py187 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py414 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py513 except Exception:CODE
LOWtests/extensions/memory/test_redis_session.py640 except Exception:CODE
LOWtests/extensions/sandbox/test_blaxel.py1558 except Exception:CODE
MEDIUMtests/realtime/test_openai_realtime.py2001def handler(websocket):CODE
LOWtests/realtime/test_openai_realtime.py2030 except Exception:CODE
LOWtests/realtime/test_session.py665 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.py389 except Exception:STRING
MEDIUMdocs/scripts/translate_docs.py498 print("Error: No valid files found to translate")STRING
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.py83 except Exception as exc: # noqa: BLE001CODE
LOWexamples/memory/file_hitl_example.py143 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
LOWexamples/basic/tool_guardrails.py140 except Exception as e:CODE
MEDIUMexamples/basic/tool_guardrails.py141 print(f"Error: {e}\n")CODE
LOWexamples/basic/tool_guardrails.py157 except Exception as e:CODE
MEDIUMexamples/basic/tool_guardrails.py158 print(f"Error: {e}\n")CODE
LOWexamples/basic/non_strict_output_type.py64 except Exception as e:CODE
MEDIUMexamples/basic/non_strict_output_type.py65 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
LOWexamples/mcp/prompt_server/main.py122 except Exception as e:CODE
MEDIUMexamples/mcp/prompt_server/main.py123 print(f"Error starting server: {e}")CODE
LOWexamples/mcp/sse_example/main.py96 except Exception as e:CODE
MEDIUMexamples/mcp/sse_example/main.py97 print(f"Error starting SSE server: {e}")CODE
LOWexamples/realtime/app/server.py147 except Exception as e:CODE
LOWexamples/realtime/app/server.py385 except Exception:CODE
LOWexamples/realtime/cli/demo.py135 except Exception:CODE
LOWexamples/realtime/cli/demo.py200 except Exception:CODE
LOWexamples/realtime/cli/demo.py316 except Exception as e:CODE
521 more matches not shown…
Self-Referential Comments132 hits · 414 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_responses_tracing.py232 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py235 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py374 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py377 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py450 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py453 # Define a dummy fetch function that returns an async stream with a dummy responseCOMMENT
MEDIUMtests/test_responses_tracing.py61 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py125 # Create an instance of the modelCOMMENT
MEDIUMtests/test_responses_tracing.py191 # Create an instance of the modelCOMMENT
MEDIUMtests/test_items_helpers.py201 # Create a non-message run item of a different type, e.g., a reasoning trace.COMMENT
MEDIUMtests/test_agent_runner_streamed.py1696 # Create a tool that requires approvalCOMMENT
MEDIUMtests/test_hitl_error_scenarios.py575 # Create the tool with needs_approval directlyCOMMENT
MEDIUMtests/test_usage.py254 # Create a usage with request_usage_entriesCOMMENT
MEDIUMtests/test_agent_runner.py4595 # Define a tool that will be called by the orchestrator agentCOMMENT
MEDIUMtests/test_agent_runner.py4683 # Create a computer tool (not a FunctionTool)COMMENT
MEDIUMtests/test_agent_runner.py4725 # Create an approved tool call for the computer toolCOMMENT
MEDIUMtests/test_agent_runner.py4757 # Create a rejected tool callCOMMENT
MEDIUMtests/test_agent_runner.py4901 # Create a tool call with unclear status (neither approved nor rejected)COMMENT
MEDIUMtests/test_agent_runner.py4924 # Create an approved tool call for a tool that doesn't existCOMMENT
MEDIUMtests/test_agent_as_tool.py61 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py109 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py157 # Create a simple agentCOMMENT
MEDIUMtests/test_agent_as_tool.py220 # 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.py3374 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py3384 # Create a ProcessedResponse with the tool call item in new_itemsCOMMENT
MEDIUMtests/test_run_state.py3467 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py3477 # Create a ProcessedResponse with the tool call itemCOMMENT
MEDIUMtests/test_run_state.py5100 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py5110 # Create a ProcessedResponseCOMMENT
MEDIUMtests/test_run_state.py5130 # Create a tool call itemCOMMENT
MEDIUMtests/test_run_state.py5140 # Create a ProcessedResponseCOMMENT
MEDIUMtests/test_run_state.py5229 # Create a mock MCP tool that will be recognized as HostedMCPToolCOMMENT
MEDIUMtests/test_run_state.py5234 # Create a minimal Mcp configCOMMENT
MEDIUMtests/test_run_state.py1472 # Create a mock item that has id and type directly on the item (not in raw_item)COMMENT
MEDIUMtests/test_run_state.py1698 # Create a cycle A -> B -> ACOMMENT
MEDIUMtests/test_run_state.py2551 # Create a handoff output itemCOMMENT
MEDIUMtests/test_run_state.py3294 # Create a RunState with contextCOMMENT
MEDIUMtests/test_run_state.py3314 # Create a RunState with contextCOMMENT
MEDIUMtests/test_run_state.py3338 # Create a run that will have interruptionsCOMMENT
MEDIUMtests/test_run_state.py3406 # Create a message with nested contentCOMMENT
MEDIUMtests/test_run_state.py3683 # Create a handoff with a name attribute but no tool_nameCOMMENT
MEDIUMtests/test_run_state.py3828 # Create a shell tool with descriptionCOMMENT
MEDIUMtests/test_run_state.py3866 # Create an apply patch tool with descriptionCOMMENT
MEDIUMtests/test_run_state.py3912 # Create a mock MCP tool - HostedMCPTool doesn't have a simple constructorCOMMENT
MEDIUMtests/test_run_state.py3951 # Create a message itemCOMMENT
MEDIUMtests/test_run_state.py4184 # Create a mock item with a raw_item that is neither dict nor has model_dumpCOMMENT
MEDIUMtests/test_run_state.py4204 # Create an agent without get_all_tools methodCOMMENT
MEDIUMtests/test_run_state.py4233 # Create a handoff with tool_nameCOMMENT
MEDIUMtests/test_run_state.py4845 # Create a mock MCP toolCOMMENT
MEDIUMtests/test_run_state.py5190 # Create a handoff with name attribute but no tool_nameCOMMENT
MEDIUMtests/test_run_state.py5280 # Create an agent without get_all_tools methodCOMMENT
MEDIUMtests/test_run_state.py5343 # Create an item with missing type field to trigger the union adapter fallbackCOMMENT
MEDIUMtests/test_extension_filters.py729 # Create a nested summary that will be parsedCOMMENT
MEDIUMtests/test_extension_filters.py737 # Create a second nested summary that includes the firstCOMMENT
MEDIUMtests/test_extension_filters.py836 # Create an item with a circular reference or other unserializable contentCOMMENT
MEDIUMtests/test_extension_filters.py841 # Create an item that will trigger TypeError in json.dumpsCOMMENT
MEDIUMtests/test_extension_filters.py571 # Create an item that doesn't have a role (e.g., a function call)COMMENT
MEDIUMtests/test_extension_filters.py708 # Create a summary message with non-string content (array)COMMENT
MEDIUMtests/test_extension_filters.py756 # Create a summary that includes a role with nameCOMMENT
72 more matches not shown…
Cross-Language Confusion55 hits · 312 pts
SeverityFileLineSnippetContext
HIGHtests/test_agent_tool_input.py93 assert "- count (integer | null, optional) - Optional count." in info.summaryCODE
HIGHtests/extensions/sandbox/test_modal.py2149 "modal-snapshot-directory-ephemeral.tar -T - 2>/dev/null && test -f "CODE
HIGHtests/extensions/sandbox/test_modal.py2375 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",CODE
HIGHtests/extensions/sandbox/test_modal.py2406 ["sh", "-lc", "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)"],CODE
HIGHtests/extensions/sandbox/test_modal.py2458 "cd -- /workspace && (tar cf - -- tmp.txt 2>/dev/null || true)",CODE
HIGHtests/extensions/sandbox/test_modal.py2486 ["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.py159 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHtests/extensions/sandbox/test_e2b.py176 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py153 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py170 "sh -lc command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py196 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHtests/extensions/sandbox/test_runloop_mounts.py206 "sh -lc command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHtests/extensions/sandbox/test_runloop.py2280 await session.exec("pwd && echo hello", shell=True)CODE
HIGHtests/extensions/sandbox/test_runloop.py2496 await session.exec("pwd && echo hello", shell=True)CODE
HIGHtests/realtime/test_session.py3165 complex_args = '{"nested": {"data": [1, 2, 3]}, "bool": true, "null": null}'CODE
HIGHtests/sandbox/test_session_sinks.py495 slow_result = await session.exec("sleep 1 && echo slow span")CODE
HIGHtests/sandbox/test_runtime.py3751 result = await session.exec("echo hi > note.txt && cat note.txt")CODE
HIGHtests/sandbox/test_session_utils.py189 await session.exec("echo hello && echo goodbye", shell=True)CODE
HIGHtests/sandbox/test_session_utils.py191 assert session.last_command == ("sh", "-lc", "echo hello && echo goodbye")CODE
HIGHtests/sandbox/test_mounts.py1149 ["sh", "-lc", "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone"],CODE
HIGHtests/sandbox/test_docker.py2471 'pid="$(cat "$1" 2>/dev/null || true)"; 'CODE
HIGHtests/sandbox/test_docker.py2472 'if [ -n "$pid" ]; then kill -KILL "$pid" >/dev/null 2>&1 || true; fi; 'CODE
HIGHtests/sandbox/test_docker.py2514 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 10' >/dev/null 2>&1 || true"],CODE
HIGHtests/sandbox/test_docker.py2519 "cmd": ["sh", "-lc", "pkill -f -- 'sleep 20' >/dev/null 2>&1 || true"],CODE
HIGHtests/sandbox/test_docker.py2456 'mkdir -p "$1" && printf "%s" "$$" > "$2" && shift 2 && exec "$@"',CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py503 ("cd /workspace/src/project && pwd", 10.0, ["/bin/bash", "-c"])CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py510 "stdout: cd /workspace/src/project && pwd\n"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py511 "stderr: cd /workspace/src/project && pwd"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py545 assert session.exec_calls == [("cd /tmp && pwd", 10.0, ["/bin/bash", "-c"])]CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py551 "stdout: cd /tmp && pwd\n"CODE
HIGHtests/sandbox/capabilities/test_shell_capability.py552 "stderr: cd /tmp && pwd"CODE
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.py49 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHsrc/agents/extensions/sandbox/runloop/mounts.py77 "command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1",CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py222 "cd /tmp && ar x gcsfuse.deb && "CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py246 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")CODE
HIGHsrc/agents/extensions/sandbox/blaxel/mounts.py246 detect = await _exec(session, "which apk >/dev/null 2>&1 && echo apk || echo apt")CODE
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py37 f"command -v {cmd} >/dev/null 2>&1 || test -x /usr/local/bin/{cmd}",CODE
HIGHsrc/agents/extensions/sandbox/daytona/mounts.py57 f"apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq {package}"CODE
HIGHsrc/agents/extensions/sandbox/modal/sandbox.py1318 f"(tar cf - -- {rel_args} 2>/dev/null || true)"CODE
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py30 "test -c /dev/fuse && grep -qw fuse /proc/filesystems && "CODE
HIGHsrc/agents/extensions/sandbox/e2b/mounts.py31 "(command -v fusermount3 >/dev/null 2>&1 || command -v fusermount >/dev/null 2>&1)",CODE
HIGHsrc/agents/sandbox/sandboxes/docker.py525 f"pkill -f -- '{pattern}' >/dev/null 2>&1 || true",CODE
HIGHsrc/agents/sandbox/sandboxes/docker.py1281 'pid="$(cat "$1" 2>/dev/null || true)"; 'CODE
HIGHsrc/agents/sandbox/sandboxes/docker.py1283 'kill -KILL "$pid" >/dev/null 2>&1 || true; 'CODE
HIGHsrc/agents/sandbox/sandboxes/docker.py151 'n=$1; shift; [ "$(printf ab | head -c 1 2>/dev/null)" = a ] || exit 98; head -c "$n" | "$@"'CODE
HIGHsrc/agents/sandbox/sandboxes/docker.py942 'mkdir -p "$1" && printf "%s" "$$" > "$2" && shift 2 && exec "$@"',CODE
HIGHsrc/agents/sandbox/entries/mounts/patterns.py881 "command -v rclone >/dev/null 2>&1 || test -x /usr/local/bin/rclone",CODE
HIGHsrc/agents/sandbox/entries/mounts/patterns.py964 f"umount {shlex.quote(sandbox_path_str(path))} >/dev/null 2>&1 || true",CODE
HIGHsrc/agents/sandbox/entries/mounts/patterns.py973 f"'rclone (mount|serve nfs) {rclone_config.remote_name}:' >/dev/null 2>&1 || true"CODE
HIGHsrc/agents/sandbox/session/runtime_helpers.py288if [ -x "$dest" ] && command -v cmp >/dev/null 2>&1 && cmp -s "$dest" "$tmp"; thenCODE
Deep Nesting213 hits · 174 pts
SeverityFileLineSnippetContext
LOWtests/test_tracing.py288CODE
LOWtests/test_agent_llm_hooks.py104CODE
LOWtests/test_hitl_session_scenario.py361CODE
LOWtests/test_hitl_session_scenario.py382CODE
LOWtests/test_run_hooks.py126CODE
LOWtests/fake_model.py147CODE
LOWtests/memory/test_session.py26CODE
LOW…xtensions/experimental/hosted_multi_agent/test_live.py37CODE
LOWtests/extensions/memory/test_dapr_redis_integration.py65CODE
LOWtests/extensions/memory/test_dapr_redis_integration.py95CODE
LOWtests/extensions/sandbox/test_e2b.py306CODE
LOWtests/extensions/sandbox/test_vercel.py244CODE
LOWtests/extensions/sandbox/test_runloop.py266CODE
LOWtests/realtime/test_session.py1000CODE
LOWtests/sandbox/test_runtime.py4464CODE
LOWtests/sandbox/test_runtime.py4487CODE
LOWdocs/scripts/translate_docs.py459CODE
LOWexamples/web_search_utils.py20CODE
LOWexamples/run_examples.py612CODE
LOWexamples/run_examples.py666CODE
LOWexamples/tools/tool_search.py121CODE
LOWexamples/tools/code_interpreter.py14CODE
LOWexamples/tools/container_shell_inline_skill.py18CODE
LOWexamples/tools/shell_human_in_the_loop.py104CODE
LOWexamples/customer_service/main.py151CODE
LOWexamples/memory/file_hitl_example.py22CODE
LOWexamples/memory/memory_session_hitl_example.py56CODE
LOWexamples/memory/openai_session_hitl_example.py56CODE
LOWexamples/basic/stream_function_call_args.py25CODE
LOWexamples/basic/stream_ws.py90CODE
LOWexamples/basic/stream_items.py13CODE
LOWexamples/realtime/app/server.py417CODE
LOWexamples/realtime/app/server.py151CODE
LOWexamples/realtime/app/server.py334CODE
LOWexamples/realtime/app/server.py351CODE
LOWexamples/realtime/cli/demo.py84CODE
LOWexamples/realtime/cli/demo.py272CODE
LOWexamples/realtime/cli/demo.py324CODE
LOWexamples/realtime/twilio_sip/server.py99CODE
LOWexamples/realtime/twilio/twilio_handler.py149CODE
LOWexamples/realtime/twilio/twilio_handler.py194CODE
LOWexamples/reasoning_content/runner_example.py23CODE
LOWexamples/reasoning_content/main.py70CODE
LOWexamples/agent_patterns/agents_as_tools_conditional.py87CODE
LOWexamples/agent_patterns/agents_as_tools.py59CODE
LOWexamples/agent_patterns/routing.py37CODE
LOWexamples/agent_patterns/llm_as_a_judge.py42CODE
LOWexamples/voice/static/util.py9CODE
LOWexamples/sandbox/memory.py138CODE
LOWexamples/sandbox/memory_s3.py233CODE
LOWexamples/sandbox/memory_multi_agent_multiturn.py145CODE
LOWexamples/sandbox/unix_local_pty.py83CODE
LOWexamples/sandbox/sandbox_agent_capabilities.py287CODE
LOWexamples/sandbox/docker/docker_runner.py65CODE
LOWexamples/sandbox/extensions/blaxel_runner.py138CODE
LOWexamples/sandbox/extensions/cloudflare_runner.py216CODE
LOW…/sandbox/extensions/temporal/temporal_sandbox_agent.py241CODE
LOW…/sandbox/extensions/temporal/temporal_sandbox_agent.py284CODE
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py809CODE
LOW…es/sandbox/extensions/temporal/temporal_sandbox_tui.py992CODE
153 more matches not shown…
Modern Structural Boilerplate141 hits · 154 pts
SeverityFileLineSnippetContext
LOWtests/test_agent_runner_sync.py14 def set_event_loop(self, loop: asyncio.AbstractEventLoop | None) -> None: ...CODE
LOWtests/test_trace_processor.py336 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWtests/test_trace_processor.py345 def set_disabled(self, disabled: bool) -> None:CODE
LOWtests/extensions/memory/test_encrypt_session.py46 def _set_time(value: int) -> None:CODE
LOWtests/extensions/sandbox/test_modal.py58def _set_aio_attr(obj: object, name: str, fn: Callable[..., object]) -> None:CODE
LOWtests/realtime/test_session_exceptions.py30 def set_next_events(self, events: list[RealtimeModelEvent]) -> None:CODE
LOWtests/sandbox/test_runtime.py121 def _set_concurrency_limits(self, limits: SandboxConcurrencyLimits) -> None:CODE
LOWtests/sandbox/test_runtime.py125 def _set_archive_limits(self, limits: SandboxArchiveLimits | None) -> None:CODE
LOWexamples/realtime/app/server.py44logger = logging.getLogger(__name__)CODE
LOWexamples/realtime/cli/demo.py369 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.py131__all__ = [CODE
LOWsrc/agents/run.py152def set_default_agent_runner(runner: AgentRunner | None) -> None:CODE
LOWsrc/agents/run_state.py994 def set_trace(self, trace: Trace | None) -> None:CODE
LOWsrc/agents/run_state.py1003 def set_tool_use_tracker_snapshot(self, snapshot: Mapping[str, Sequence[str]] | None) -> None:CODE
LOWsrc/agents/run_state.py1016 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.py133__all__ = ["ResponsesWebSocketSession", "responses_websocket_session"]CODE
LOWsrc/agents/__init__.py298def set_default_openai_api(api: Literal["chat_completions", "responses"]) -> None:CODE
LOWsrc/agents/__init__.py305def set_default_openai_responses_transport(transport: Literal["http", "websocket"]) -> None:CODE
LOWsrc/agents/__init__.py325def set_default_openai_harness(harness_id: str | None) -> None:CODE
LOWsrc/agents/__init__.py340__all__ = [CODE
LOWsrc/agents/__init__.py270def set_default_openai_key(key: str, use_for_tracing: bool = True) -> None:CODE
LOWsrc/agents/__init__.py285def set_default_openai_client(client: AsyncOpenAI, use_for_tracing: bool = True) -> None:CODE
LOWsrc/agents/apply_diff.py347__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.py372__all__ = [CODE
LOWsrc/agents/agent_tool_state.py36def set_agent_tool_state_scope(context: Any, scope_id: str | None) -> None:CODE
LOWsrc/agents/tracing/provider.py182 def set_processors(self, processors: list[TracingProcessor]) -> None:CODE
LOWsrc/agents/tracing/provider.py194 def set_disabled(self, disabled: bool) -> None:CODE
LOWsrc/agents/tracing/provider.py284 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.py139 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/spans.py240 def set_error(self, error: SpanError) -> None:CODE
LOWsrc/agents/tracing/spans.py349 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.py54__all__ = [CODE
LOWsrc/agents/models/__init__.py9__all__ = [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
LOWsrc/agents/models/_openai_shared.py45def set_use_responses_websocket_by_default(use_responses_websocket: bool) -> None:CODE
LOWsrc/agents/models/_openai_shared.py53def set_default_openai_responses_transport(transport: OpenAIResponsesTransport) -> None:CODE
LOWsrc/agents/extensions/tool_output_trimmer.py41logger = logging.getLogger(__name__)CODE
LOWsrc/agents/extensions/__init__.py3__all__ = ["ToolOutputTrimmer"]CODE
LOWsrc/agents/extensions/handoff_filters.py26__all__ = [CODE
LOWsrc/agents/extensions/experimental/__init__.py4__all__ = [CODE
LOWsrc/agents/extensions/experimental/codex/__init__.py48__all__ = [CODE
81 more matches not shown…
Modern AI Meta-Vocabulary43 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md121. [**Agents**](https://openai.github.io/openai-agents-python/agents): LLMs configured with instructions, tools, guardraCODE
MEDIUMREADME.md161. [**Guardrails**](https://openai.github.io/openai-agents-python/guardrails/): Configurable safety checks for input andCODE
MEDIUMtests/test_items_helpers.py201 # Create a non-message run item of a different type, e.g., a reasoning trace.COMMENT
MEDIUMtests/realtime/test_session.py3536 # Neither should trigger guardrails yetCOMMENT
MEDIUMtests/realtime/test_session.py3679 # 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.txt24- [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.md54## Tool guardrailsCOMMENT
MEDIUMdocs/quickstart.md180## 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.txt28- [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Create synchronous or asynchronous checks, shCODE
MEDIUMdocs/llms-full.txt59- [guardrail APIs](https://openai.github.io/openai-agents-python/ref/guardrail/): Build custom guardrails, interpret valCODE
MEDIUMdocs/index.md3The [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) enables you to build agentic AI apps in a lightwCODE
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/models/index.md20| OpenAIがホストするサブエージェントを使用する | 試験的なホスト型マルチエージェントモデルを使用する | [ホスト型マルチエージェント](#hosted-multi-agent-experimental) |CODE
MEDIUMdocs/models/index.md16| Use OpenAI-hosted subagents | Use the experimental hosted multi-agent model | [Hosted multi-agent](#hosted-multi-agentCODE
MEDIUMdocs/models/index.md235### Hosted multi-agent (experimental)COMMENT
MEDIUMdocs/models/index.md287#### Relationship to SDK orchestrationCOMMENT
MEDIUMdocs/realtime/guide.md182## Tools, approvals, handoffs, and guardrailsCOMMENT
MEDIUMdocs/zh/models/index.md20| 使用OpenAI托管的子智能体 | 使用实验性的托管式多智能体模型 | [托管式多智能体](#hosted-multi-agent-experimental) |CODE
MEDIUMdocs/ko/models/index.md20| OpenAI에서 호스팅되는 서브에이전트 사용 | 실험적 호스티드 멀티 에이전트 모델 사용 | [호스티드 멀티 에이전트](#hosted-multi-agent-experimental) |CODE
MEDIUMexamples/basic/tool_guardrails.py103# Apply guardrails to toolsCOMMENT
MEDIUMexamples/realtime/twilio_sip/server.py44# Build the multi-agent graph (triage + specialist agents) from agents.py.COMMENT
MEDIUMexamples/agent_patterns/input_guardrails.py32### 1. An agent-based guardrail that is triggered if the user is asking to do math homeworkCOMMENT
MEDIUMexamples/agent_patterns/agents_as_tools.py65 # Run the entire orchestration in a single traceCOMMENT
MEDIUMexamples/agent_patterns/README.md1# Common agentic patternsCOMMENT
MEDIUMexamples/agent_patterns/README.md5## Hosted multi-agent (experimental)COMMENT
MEDIUMexamples/agent_patterns/streaming_guardrails.py70 # alternate implementation is to have N guardrails running, or cancel the previousCOMMENT
MEDIUMexamples/sandbox/README.md27## Tutorial scaffoldCOMMENT
MEDIUM…dbox/extensions/daytona/usaspending_text2sql/README.md65### SQL guardrails (defense in depth)COMMENT
MEDIUMsrc/agents/run.py782 # Blocking first-turn guardrails must run before sandbox prep so a tripwireCOMMENT
MEDIUMsrc/agents/result.py736 # Await input guardrails if they are still running, so lateCOMMENT
MEDIUMsrc/agents/tool.py419 # Tool-specific guardrails.COMMENT
MEDIUMsrc/agents/run_internal/guardrails.py94 # Early first-turn streamed guardrails can run before the agent span exists.COMMENT
MEDIUMsrc/agents/realtime/session.py421 # Check if we should run guardrails based on debounce thresholdCOMMENT
MEDIUMsrc/agents/realtime/session.py1362 # Runs the guardrails in a separate task to avoid blocking the main loopCOMMENT
MEDIUMsrc/agents/sandbox/entries/mounts/patterns.py678 # host process that is orchestrating the session.COMMENT
MEDIUMsrc/agents/sandbox/memory/phase_one.py69 # context window once model metadata is available in the SDK.COMMENT
Magic Placeholder Names12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHdocs/tracing.md161 api_key="your-api-key",CODE
HIGHdocs/ja/tracing.md165 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.md165 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.md165 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 Patterns40 hits · 28 pts
SeverityFileLineSnippetContext
LOWtests/test_run_state.py195CODE
LOWtests/test_run_step_execution.py2908CODE
LOWtests/extensions/sandbox/test_e2b.py306CODE
LOWtests/extensions/sandbox/test_e2b.py1034CODE
LOWtests/extensions/sandbox/test_e2b.py1101CODE
LOWtests/extensions/sandbox/test_e2b.py1153CODE
LOWtests/extensions/sandbox/test_e2b.py1367CODE
LOWtests/sandbox/capabilities/test_apply_patch_tool.py241CODE
LOW…ndbox/extensions/daytona/usaspending_text2sql/agent.py203CODE
LOWsrc/agents/run.py200CODE
LOWsrc/agents/run.py284CODE
LOWsrc/agents/run.py366CODE
LOWsrc/agents/responses_websocket_session.py81CODE
LOWsrc/agents/tool_context.py60CODE
LOWsrc/agents/retry.py62CODE
LOWsrc/agents/agent.py508CODE
LOWsrc/agents/tool.py599CODE
LOWsrc/agents/tool.py1851CODE
LOWsrc/agents/tool.py1876CODE
LOWsrc/agents/tool.py1899CODE
LOWsrc/agents/tracing/create.py188CODE
LOWsrc/agents/tracing/create.py353CODE
LOWsrc/agents/tracing/create.py397CODE
LOWsrc/agents/mcp/server.py541CODE
LOWsrc/agents/mcp/server.py1116CODE
LOWsrc/agents/mcp/server.py1241CODE
LOWsrc/agents/mcp/server.py1381CODE
LOWsrc/agents/models/multi_provider.py75CODE
LOWsrc/agents/models/openai_provider.py45CODE
LOWsrc/agents/extensions/experimental/codex/codex_tool.py236CODE
LOWsrc/agents/extensions/sandbox/vercel/sandbox.py199CODE
LOWsrc/agents/extensions/sandbox/runloop/sandbox.py479CODE
LOWsrc/agents/extensions/sandbox/blaxel/mounts.py206CODE
LOWsrc/agents/extensions/sandbox/blaxel/sandbox.py1187CODE
LOWsrc/agents/extensions/sandbox/daytona/sandbox.py327CODE
LOWsrc/agents/extensions/sandbox/modal/sandbox.py289CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py443CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py210CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py271CODE
LOWsrc/agents/extensions/sandbox/e2b/sandbox.py625CODE
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHsrc/agents/run_state.py667Serializes the run state to a JSON-compatible dictionary. This method is used to serialize the run state to a dSTRING
HIGHsrc/agents/run_state.py1036Deserializes 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.py1077Deserializes 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.py808Create a new branch starting from a specific user message turn. Args: turn_number: The branch turn STRING
HIGHsrc/agents/extensions/memory/advanced_sqlite_session.py885Create branch from the first user turn matching the search term. Args: search_term: Text to search STRING
Redundant / Tautological Comments12 hits · 18 pts
SeverityFileLineSnippetContext
LOWtests/realtime/test_session_exceptions.py121 # Set events to sendCOMMENT
LOWtests/voice/test_input.py130 # Add audio to the queueCOMMENT
LOWexamples/memory/memory_session_hitl_example.py36 # Check if any city name is in the provided location stringCOMMENT
LOWexamples/memory/openai_session_hitl_example.py36 # Check if any city name is in the provided location stringCOMMENT
LOWexamples/realtime/cli/demo.py282 # 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.py134 # Check if message is agents.extensions.models.litellm_model.InternalChatCompletionMessageCOMMENT
LOWsrc/agents/extensions/memory/advanced_sqlite_session.py964 # Check if trying to delete current branchCOMMENT
LOWsrc/agents/extensions/models/litellm_model.py640 # Check if this is an assistant message with tool callsCOMMENT
LOWsrc/agents/realtime/session.py276 # Check if there's a stored exception to raiseCOMMENT
LOWsrc/agents/realtime/session.py421 # Check if we should run guardrails based on debounce thresholdCOMMENT
Dead Code8 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cancel_streaming.py259CODE
MEDIUMtests/test_run_step_execution.py2599CODE
MEDIUMtests/models/test_model_retry.py1566CODE
MEDIUMtests/models/test_model_retry.py1696CODE
MEDIUMtests/models/test_model_retry.py1740CODE
MEDIUMtests/models/test_model_retry.py2062CODE
MEDIUMtests/models/test_model_retry.py2106CODE
MEDIUMsrc/agents/voice/workflow.py41CODE
Fake / Example Data14 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/test_responses_tracing.py45 self.id = "dummy-id"CODE
LOWtests/test_responses_tracing.py101 "response_id": "dummy-id",CODE
LOWtests/test_responses_tracing.py252 response=fake_model.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_responses_tracing.py281 "response_id": "dummy-id-123",CODE
LOWtests/test_responses_tracing.py325 self.response = fake_model.get_response_obj([], "dummy-id-terminal")CODE
LOWtests/test_responses_tracing.py394 response=fake_model.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_responses_tracing.py470 response=fake_model.get_response_obj([], "dummy-id-123"),CODE
LOWtests/test_run_state.py2210 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.py157 def __init__(self, value: str = "fake-token-abc123") -> None:CODE
LOWexamples/basic/tool_guardrails.py29 "name": "John Doe",CODE
LOWexamples/basic/tool_guardrails.py32 "phone": "555-1234",CODE
LOWexamples/basic/tool_guardrails.py43 "phone": "555-1234",CODE
LOWexamples/basic/tool_guardrails.py95 if "555-1234" in output_str: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.py144 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py177 # Step 2: Convert output items back to messagesCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py330 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py366 # 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.py144 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py177 # Step 2: Convert output items back to messagesCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py330 # Step 1: Convert message to output itemsCOMMENT
LOWtests/models/test_anthropic_thinking_blocks.py366 # 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.py5296 # This should not raise an error, just return empty toolsCOMMENT
MEDIUMtests/mcp/test_tool_filtering.py206 # Role-based filter for comprehensive testingCOMMENT
LOWexamples/customer_service/main.py158 # 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.py691 # Soft cancel - just set the flagCOMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMexamples/basic/tool_guardrails.py173❌ Guardrail rejected function tool call: I'm unable to send the email as mentioning ACME Corp. is restricted.STRING
MEDIUMexamples/basic/tool_guardrails.py180❌ Guardrail rejected function tool output: I'm unable to retrieve the contact info for user456 because it contains restrSTRING
MEDIUMexamples/handoffs/message_filter_streaming.py37 # or, you can use the HandoffInputData.clone(kwargs) methodCOMMENT
MEDIUMexamples/handoffs/message_filter.py37 # or, you can use the HandoffInputData.clone(kwargs) methodCOMMENT
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
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 # 3. **Why did the scarecrow win an award?**COMMENT
LOWexamples/sandbox/memory.py81 ),COMMENT
LOWexamples/sandbox/memory.py101 #COMMENT
LOWsrc/agents/models/chatcmpl_stream_handler.py961 # Content-filter refusal with no emitted output: synthesize a refusal soCOMMENT
LOWsrc/agents/extensions/memory/mongodb_session.py81 atomically incrementing a counter on the session metadata document. ThisCOMMENT
LOWsrc/agents/sandbox/sandboxes/docker.py641 # Frame the payload by length so the in-container reader terminates on aCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/realtime/test_realtime_model_settings.py65 def helper() -> str:CODE