AI Slop Code RIsk Monitor

pydantic/pydantic-ai

How Python does AI. Agents, realtime voice, image generation, embeddings. Every model, every interface, typed end to end.

15.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pydantic/pydantic-ai, a Python project with 20,535 GitHub stars. SynthScan examined 1,767,650 lines of code across 4100 source files, recording 25495 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 15.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

15.0
Adjusted Signal
15.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
20.5K
Stars
Python
Language
1.8M
Lines of Code
4.1K
Files
25.5K
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 39.1/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 21154 finding(s).

Hallucinated Dependency & Supply Chain Risk 12.5/100 · LOW

Are imports declared and package/API names verified? 2935 finding(s).

Agent Over-Engineering Ratio 42.6/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 21218 finding(s).

PR Review Velocity Impact 59.9/100 · HIGH

Which changes need focused human review? 25495 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1002MEDIUM 893LOW 23600

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 25495 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers19619 hits · 15176 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/_output.py110def _isinstance_maybe_generic(value: Any, type_: type[Any]) -> bool:CODE
LOWpydantic_ai_slim/pydantic_ai/_output.py130async def run_output_validate_hooks(CODE
LOWpydantic_ai_slim/pydantic_ai/_thinking_part.py6def split_content_into_text_and_thinking(content: str, thinking_tags: tuple[str, str]) -> list[ThinkingPart | TextPart]:CODE
LOWpydantic_ai_slim/pydantic_ai/run.py471 async def _wrap_and_advance_streaming(CODE
LOWpydantic_ai_slim/pydantic_ai/run.py845 def __get_pydantic_json_schema__(cls, core_schema: CoreSchema, handler: GetJsonSchemaHandler) -> JsonSchemaValue:CODE
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py132def _validate_hook_deferral_error(hook_name: str, error: CallDeferred | ApprovalRequired) -> UserError:CODE
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py276 def get_parallel_execution_mode(self) -> ParallelExecutionMode:CODE
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py787 async def validate_output_tool_call(CODE
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py1184 async def resolve_deferred_tool_calls(CODE
LOW⚡pydantic_ai_slim/pydantic_ai/_instrumentation.py505def _model_request_parameters_adapter() -> TypeAdapter[ModelRequestParameters]:CODE
LOW⚡pydantic_ai_slim/pydantic_ai/_instrumentation.py511def model_settings_attributes(model_settings: ModelSettings | None) -> dict[str, AttributeValue]:CODE
LOW⚡pydantic_ai_slim/pydantic_ai/_instrumentation.py521def annotate_tool_call_otel_metadata(response: ModelResponse, parameters: ModelRequestParameters) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py169def capture_model_request_span_context(request_context: ModelRequestContext) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py176def capture_model_response_span_context(CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py188def model_response_span_capture(CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py232def get_agent_run_baggage_attributes() -> dict[str, Any]:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py450def model_request_parameters_attributes(CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py461def _redact_model_request_parameters(serialized_parameters: Any) -> dict[str, Any] | None:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py488def _serialize_model_request_parameters(model_request_parameters: ModelRequestParameters) -> Any:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py598def response_price_calculation(response: ModelResponse) -> PriceCalculation | None:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py637def _prepare_model_request_span_context(CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py1083 def get_output_tool_span_name(self, tool_name: str) -> str:CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py373def _narrow_native_tool_search_call(part: NativeToolCallPart) -> NativeToolSearchCallPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py380def _narrow_native_tool_search_return(part: NativeToolReturnPart) -> NativeToolSearchReturnPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py394def _narrow_tool_search_return(part: ToolReturnPart) -> ToolSearchReturnPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py442def synthesize_local_from_native_call(part: NativeToolSearchCallPart) -> ToolSearchCallPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py454def synthesize_local_from_native_return(part: NativeToolSearchReturnPart) -> ToolSearchReturnPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py471def synthesize_local_tool_search_messages(CODE
LOWpydantic_ai_slim/pydantic_ai/_event_registry.py103def set_replay_isolation_guard(guard: Callable[[], bool]) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_event_registry.py121def keeps_canonical_registration() -> bool:CODE
LOWpydantic_ai_slim/pydantic_ai/_http.py168def warn_if_legacy_httpx_client(http_client: object, *, consumer: str, stacklevel: int) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py72def _map_sampling_response_part(CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py86def _map_sampling_tool_result(CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py229def map_from_sampling_content(CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py311 def _named_required_fields_schema(self, named_required_fields: Sequence[tuple[str, bool, Any]]) -> JsonSchemaValue:CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py113def _narrow_load_capability_call(part: ToolCallPart) -> LoadCapabilityCallPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py120def _narrow_load_capability_return(part: ToolReturnPart) -> LoadCapabilityReturnPart:CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py138def parse_loaded_capabilities(messages: Sequence[ModelMessage]) -> set[str]:CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py159def registered_loaded_capability_ids(messages: Sequence[ModelMessage], capability_ids: Collection[str]) -> set[str]:CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py175def _parse_loaded_capabilities(messages: Sequence[ModelMessage]) -> set[str]:CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py136def _compatible_request_error_init(self: Exception, message: str, *, request: httpx2.Request | None = None) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py141def _compatible_http_status_error_init(CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py173def _compatible_request_error(error: httpx2.RequestError) -> Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py800def _response_with_decoded_content(response: httpx2.Response, content: bytes) -> httpx2.Response:CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py371 def get_conflicting_type_names(signatures: list[FunctionSignature]) -> frozenset[str]:CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py407 def collect_unique_referenced_types(signatures: list[FunctionSignature]) -> list[TypeSignature]:CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py545def _build_params_from_schema(CODE
LOWpydantic_ai_slim/pydantic_ai/_genai_prices.py86def calculate_price_for_usage(CODE
LOWpydantic_ai_slim/pydantic_ai/_display.py21def _replace_lock_inherited_from_fork() -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_function_schema.py398def extract_return_schema_type(return_annotation: Any, function: Callable[..., Any]) -> Any:CODE
LOWpydantic_ai_slim/pydantic_ai/_function_schema.py456def validate_schema_signature(CODE
LOWpydantic_ai_slim/pydantic_ai/_spec.py37def serializes_as_string_keyed_dict(value: Any) -> bool:CODE
LOWpydantic_ai_slim/pydantic_ai/_template.py57def _hint_contains_template_str(hint: Any) -> bool:CODE
LOWpydantic_ai_slim/pydantic_ai/result.py83 def _refresh_initial_run_ctx_usage(self) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/result.py375 async def _stream_text_deltas_ungrouped() -> AsyncIterator[tuple[str, int]]:CODE
LOWpydantic_ai_slim/pydantic_ai/result.py1215def _get_usage_checking_stream_response(CODE
LOWpydantic_ai_slim/pydantic_ai/result.py1234def _get_deferred_tool_requests(CODE
LOWpydantic_ai_slim/pydantic_ai/_run_context.py592 def _dispatch_active_capability_ids(self) -> set[str]:CODE
LOWpydantic_ai_slim/pydantic_ai/_run_context.py929def _run_context_init_with_capability_loaded(CODE
LOWpydantic_ai_slim/pydantic_ai/mcp.py1176 def _invalidate_resources_cache(self) -> None:CODE
19559 more matches not shown…
Cross-Language Confusion414 hits · 2079 pts
SeverityFileLineSnippetContext
HIGH⚡pydantic_ai_slim/pydantic_ai/_json_schema.py278 # they are both null, so just return one of themCOMMENT
HIGHpydantic_ai_slim/pydantic_ai/models/openrouter.py1314 # arrive mid-stream. `_OpenRouterChatCompletionChunk.choices` is required and non-null,COMMENT
HIGH⚡pydantic_ai_slim/pydantic_ai/workspaces/conformance.py99 result = await _commands(backend).run(['sh', '-c', 'read value || printf eof'], timeout=30)CODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/workspace.py145 f'for tool in {tools}; do command -v "$tool" >/dev/null 2>&1 || printf "%s " "$tool"; done', shell=TrueCODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/workspace.py261 mark = ' -exec sh -c \'for f do test -d "$f" && d=d || d=-; printf "%s%s\\000" "$d" "$f"; done\' sh {} +'CODE
HIGHpydantic_ai_slim/pydantic_ai/realtime/openai_live.py274# OpenAI's guide says to expect `error` frames whose `code` is null, but the SDK's `Error.code` is aCOMMENT
HIGHpydantic_ai_slim/pydantic_ai/realtime/openai_live.py1162 OpenAI's guide says to expect `error` frames whose `code` is null, which the SDK's `Error.code`STRING
HIGHpydantic_ai_slim/pydantic_ai/realtime/openai.py1386 # `turn_detection` is always set: a dict enables VAD, `None` (explicit null) disables it.COMMENT
HIGHpydantic_ai_slim/pydantic_ai/profiles/google.py488 # `$defs`/`$ref` and `anyOf [X, null]` have no OpenAPI-subset equivalent, so definitions areCOMMENT
HIGHtests/test_streaming.py5798 content_delta='force_download":false,"vendor_metadata":null,"kind":"image-url","media_type":"image/jCODE
HIGHtests/test_streaming.py5804 content='{"get_image":{"url":"https://t3.ftcdn.net/jpg/00/85/79/92/360_F_85799278_0BBGV9OAdQDTLnKwAPCODE
HIGHtests/test_workspace.py622 command = command.replace('mv -f', 'false && mv -f', 1)CODE
HIGHtests/test_workspace.py723 await status.write_text('{"exit_code": null}')CODE
HIGH⚡tests/test_mcp.py2342 """Non-string/dict/list values (ints, bools, null) in the config flow throughSTRING
HIGH⚡tests/test_ag_ui.py6168 'content': '["Image analysis result",{"data":"aW1n","media_type":"image/png","vendor_metadata":null,"kinCODE
HIGH⚡tests/test_ag_ui.py6176 'content': '{"url":"https://example.com/image.jpg","force_download":false,"vendor_metadata":null,"kind":CODE
HIGHtests/test_ag_ui.py8613 Anything that fails validation (missing, null, non-bool, non-dict payload, non-dictSTRING
HIGHtests/test_messages.py1872 '{"files":[{"media_type":"image/png"},{"media_type":null}]}'CODE
HIGH⚡tests/test_messages.py1785 '{"url":"https://example.com/image.png","force_download":false,"vendor_metadata":null,"kind":"image-url"STRING
HIGH⚡tests/test_messages.py1788 '{"url":"https://example.com/image","force_download":false,"vendor_metadata":null,"kind":"image-url","meSTRING
HIGH⚡tests/test_messages.py1795 '{"url":"https://example.com/image.png","force_download":false,"vendor_metadata":null,"kind":"image-url"STRING
HIGH⚡tests/test_messages.py1798 '{"url":"https://example.com/image","force_download":false,"vendor_metadata":null,"kind":"image-url","meSTRING
HIGH⚡tests/test_messages.py1805 '{"url":"https://example.com/image.png","force_download":false,"vendor_metadata":null,"kind":"image-url"STRING
HIGH⚡tests/test_messages.py1808 '{"url":"https://example.com/image","force_download":false,"vendor_metadata":null,"kind":"image-url"}'STRING
HIGH⚡tests/test_messages.py1815 '{"url":"https://example.com/image.png","force_download":false,"vendor_metadata":null,"kind":"image-url"STRING
HIGH⚡tests/test_messages.py1818 '{"url":"https://example.com/image","force_download":false,"vendor_metadata":null,"kind":"image-url"}'STRING
HIGH⚡tests/test_messages.py1835 snapshot('{"url":"https://example.com/image","media_type":null}'),STRING
HIGH⚡tests/test_messages.py1841 '{"url":"https://example.com/image.png","force_download":false,"vendor_metadata":null,"kind":"image-url"STRING
HIGH⚡tests/test_messages.py1844 '{"url":"https://example.com/image","force_download":false,"vendor_metadata":null,"kind":"image-url","idSTRING
HIGHtests/models/test_anthropic.py16110 '"role": "assistant", "model": "claude-sonnet-4-5", "content": [], "stop_reason": null, "stop_sequence": null, 'STRING
HIGHtests/models/test_openai.py2189 b'"choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null}]}\n\n'CODE
HIGHtests/models/test_openai.py6860 b'"choices":[{"index":0,"delta":{"role":"assistant","content":"hi"},"finish_reason":null}]}\n\n'CODE
HIGHtests/models/test_openrouter.py161 # final usage chunk (which has native_finish_reason: null, see cassette for details)COMMENT
HIGHtests/models/test_openrouter.py1316 # (not null) when `max_tokens` is unset.COMMENT
HIGHtests/models/test_openrouter.py2193 b'"choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null}]}\n\n'CODE
HIGHtests/models/test_openrouter.py2079 OpenRouter intermittently returns `{"choices": null, ...}` with no error field at all (a providerSTRING
HIGHtests/models/test_openrouter.py2130 `_OpenRouterChatCompletionChunk.choices` is required and non-null, so this chunk is rejected inSTRING
HIGHtests/models/test_groq.py765 b'"choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null}]}\n\n'CODE
HIGHtests/models/test_groq.py6036 b'"choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null}]}\n\n'CODE
HIGHtests/models/test_openai_chat_stream_parity.py119 # that one's is null), where a complete response has the value the stream ended on, e.g. OpenRouter'sCOMMENT
HIGHtests/models/anthropic/test_implicit_stream.py30 b'"claude-sonnet-4-5","content":[],"stop_reason":null,"stop_sequence":null,'CODE
HIGH⚡tests/durable_exec/test_prefect.py656 content='{"index":0,"part":{"tool_name":"get_country","args":"","tooCODE
HIGH⚡tests/durable_exec/test_prefect.py659 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"{}CODE
HIGH⚡tests/durable_exec/test_prefect.py662 content='{"index":0,"part":{"tool_name":"get_country","args":"{}","tCODE
HIGH⚡tests/durable_exec/test_prefect.py700 content='{"index":0,"part":{"tool_name":"get_weather","args":"","tooCODE
HIGH⚡tests/durable_exec/test_prefect.py703 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"{\CODE
HIGH⚡tests/durable_exec/test_prefect.py706 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"tyCODE
HIGH⚡tests/durable_exec/test_prefect.py709 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"\\CODE
HIGH⚡tests/durable_exec/test_prefect.py712 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"o CODE
HIGH⚡tests/durable_exec/test_prefect.py715 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"tyCODE
HIGH⚡tests/durable_exec/test_prefect.py718 content='{"index":0,"part":{"tool_name":"get_weather","args":"{\\"ciCODE
HIGH⚡tests/durable_exec/test_prefect.py721 content='{"index":1,"part":{"tool_name":"get_product_name","args":""CODE
HIGH⚡tests/durable_exec/test_prefect.py724 content='{"index":1,"delta":{"tool_name_delta":null,"args_delta":"{}CODE
HIGH⚡tests/durable_exec/test_prefect.py727 content='{"index":1,"part":{"tool_name":"get_product_name","args":"{CODE
HIGH⚡tests/durable_exec/test_prefect.py799 content='{"index":0,"part":{"tool_name":"final_result","args":"","toCODE
HIGH⚡tests/durable_exec/test_prefect.py805 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"{\CODE
HIGH⚡tests/durable_exec/test_prefect.py808 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"anCODE
HIGH⚡tests/durable_exec/test_prefect.py811 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"\\CODE
HIGH⚡tests/durable_exec/test_prefect.py814 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"{\CODE
HIGH⚡tests/durable_exec/test_prefect.py817 content='{"index":0,"delta":{"tool_name_delta":null,"args_delta":"laCODE
354 more matches not shown…
Unused Imports2326 hits · 2051 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/_output.py1CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py14CODE
LOWpydantic_ai_slim/pydantic_ai/_thinking_part.py1CODE
LOWpydantic_ai_slim/pydantic_ai/_uuid.py9CODE
LOWpydantic_ai_slim/pydantic_ai/_enqueue.py7CODE
LOWpydantic_ai_slim/pydantic_ai/run.py1CODE
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py1CODE
LOWpydantic_ai_slim/pydantic_ai/format_prompt.py1CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py1CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py23CODE
LOWpydantic_ai_slim/pydantic_ai/_event_registry.py13CODE
LOWpydantic_ai_slim/pydantic_ai/_usage_attribution.py26CODE
LOWpydantic_ai_slim/pydantic_ai/conversation.py3CODE
LOWpydantic_ai_slim/pydantic_ai/_http.py3CODE
LOWpydantic_ai_slim/pydantic_ai/_http.py10CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py1CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py1CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/tools.py16CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py3CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py8CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py8CODE
LOWpydantic_ai_slim/pydantic_ai/concurrency.py3CODE
LOWpydantic_ai_slim/pydantic_ai/_genai_prices.py3CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py3CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py4CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py5CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py17CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py18CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py18CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py18CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py19CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py19CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py19CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py19CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py25CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py25CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py26CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py26CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py26CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py26CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py32CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py32CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py32CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py32CODE
LOWpydantic_ai_slim/pydantic_ai/__init__.py32CODE
2266 more matches not shown…
Decorative Section Separators455 hits · 1573 pts
SeverityFileLineSnippetContext
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py34# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py36# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py91# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py93# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py458# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py460# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py837# =============================================================================COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/function_signature.py839# =============================================================================COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py237 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py239 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py389 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py391 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py512 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py514 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py708 # ------------------------------------------------------------------COMMENT
MEDIUM…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py710 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_function_signature.py632# =============================================================================STRING
MEDIUM⚡tests/test_function_signature.py634# =============================================================================STRING
MEDIUM⚡tests/test_function_signature.py734# =============================================================================STRING
MEDIUM⚡tests/test_function_signature.py736# =============================================================================STRING
MEDIUM⚡tests/test_function_signature.py1166# =============================================================================STRING
MEDIUM⚡tests/test_function_signature.py1168# =============================================================================STRING
MEDIUMtests/test_usage_limits.py1181# ── per_request_input_tokens_limit ──────────────────────────────────────COMMENT
MEDIUM⚡tests/test_streaming_errors.py225# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py227# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py345# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py347# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py454# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py456# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py542# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py544# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py640# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py642# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py930# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py932# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py1140# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_errors.py1142# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_errors.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_errors.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_errors.py966# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_errors.py968# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_errors.py1055# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_errors.py1057# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py117# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py119# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py167# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py169# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py1360# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py1362# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py1425# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_thinking.py1427# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_thinking.py81# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_thinking.py83# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py365# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py367# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py451# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py453# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py671# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py673# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/evals/test_agentic_evaluators.py906# ---------------------------------------------------------------------------COMMENT
395 more matches not shown…
Cross-File Repetition301 hits · 1505 pts
SeverityFileLineSnippetContext
HIGHREADME.md0support_advice='hello john, your current account balance, including pending transactions, is $123.45.' block_card=false STRING
HIGH…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml0support_advice='hello john, your current account balance, including pending transactions, is $123.45.' block_card=false STRING
HIGHdocs/index.md0support_advice='hello john, your current account balance, including pending transactions, is $123.45.' block_card=false STRING
HIGHexamples/pydantic_ai_examples/bank_support.py0support_advice='hello john, your current account balance, including pending transactions, is $123.45.' block_card=false STRING
HIGHREADME.md0support_advice="i'm sorry to hear that, john. we are temporarily blocking your card to prevent unauthorized transactionsSTRING
HIGH…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml0support_advice="i'm sorry to hear that, john. we are temporarily blocking your card to prevent unauthorized transactionsSTRING
HIGHdocs/index.md0support_advice="i'm sorry to hear that, john. we are temporarily blocking your card to prevent unauthorized transactionsSTRING
HIGHexamples/pydantic_ai_examples/bank_support.py0support_advice="i'm sorry to hear that, john. we are temporarily blocking your card to prevent unauthorized transactionsSTRING
HIGHpydantic_ai_slim/pydantic_ai/run.py0metadata associated with this agent run, if configured.STRING
HIGHpydantic_ai_slim/pydantic_ai/result.py0metadata associated with this agent run, if configured.STRING
HIGHpydantic_ai_slim/pydantic_ai/_run_context.py0metadata associated with this agent run, if configured.STRING
HIGHpydantic_ai_slim/pydantic_ai/exceptions.py0metadata associated with this agent run, if configured.STRING
HIGH…c_ai_slim/pydantic_ai/capabilities/image_generation.py0one-off: an agent searches, fetches or generates one way, so the id is fixed. declared here rather than only as an `__inSTRING
HIGHpydantic_ai_slim/pydantic_ai/capabilities/web_fetch.py0one-off: an agent searches, fetches or generates one way, so the id is fixed. declared here rather than only as an `__inSTRING
HIGHpydantic_ai_slim/pydantic_ai/capabilities/web_search.py0one-off: an agent searches, fetches or generates one way, so the id is fixed. declared here rather than only as an `__inSTRING
HIGHpydantic_ai_slim/pydantic_ai/capabilities/x_search.py0one-off: an agent searches, fetches or generates one way, so the id is fixed. declared here rather than only as an `__inSTRING
HIGH…ic_ai_slim/pydantic_ai/capabilities/instrumentation.py0one-off: an agent has a single caching configuration, so the id is fixed by default. two of them resolve to one via [`coSTRING
HIGHpydantic_ai_slim/pydantic_ai/capabilities/thinking.py0one-off: an agent has a single caching configuration, so the id is fixed by default. two of them resolve to one via [`coSTRING
HIGHpydantic_ai_slim/pydantic_ai/capabilities/caching.py0one-off: an agent has a single caching configuration, so the id is fixed by default. two of them resolve to one via [`coSTRING
HIGHpydantic_ai_slim/pydantic_ai/providers/cerebras.py0create a new z.ai provider. args: api_key: the api key to use for authentication, if not provided, the `zai_api_key` envSTRING
HIGHpydantic_ai_slim/pydantic_ai/providers/crusoe.py0create a new z.ai provider. args: api_key: the api key to use for authentication, if not provided, the `zai_api_key` envSTRING
HIGHpydantic_ai_slim/pydantic_ai/providers/zai.py0create a new z.ai provider. args: api_key: the api key to use for authentication, if not provided, the `zai_api_key` envSTRING
HIGHpydantic_ai_slim/pydantic_ai/providers/openrouter.py0deprecated: use [`thinking_enabled_by_default`][pydantic_ai.profiles.modelprofile.thinking_enabled_by_default] instead. STRING
HIGHpydantic_ai_slim/pydantic_ai/profiles/openai.py0deprecated: use [`thinking_enabled_by_default`][pydantic_ai.profiles.modelprofile.thinking_enabled_by_default] instead. STRING
HIGHpydantic_ai_slim/pydantic_ai/profiles/grok.py0deprecated: use [`thinking_enabled_by_default`][pydantic_ai.profiles.modelprofile.thinking_enabled_by_default] instead. STRING
HIGHpydantic_ai_slim/pydantic_ai/profiles/anthropic.py0deprecated: use [`thinking_enabled_by_default`][pydantic_ai.profiles.modelprofile.thinking_enabled_by_default] instead. STRING
HIGH…ai/.agents/skills/building-pydantic-ai-agents/SKILL.md0the first known use of "hello, world" was in a 1974 textbook about the c programming language.STRING
HIGH…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml0the first known use of "hello, world" was in a 1974 textbook about the c programming language.STRING
HIGHdocs/gateway.md0the first known use of "hello, world" was in a 1974 textbook about the c programming language.STRING
HIGHdocs/logfire.md0the first known use of "hello, world" was in a 1974 textbook about the c programming language.STRING
HIGHpydantic_ai_slim/pydantic_ai/agent/abstract.py0run the agent with a user prompt in async mode. this method builds an internal agent graph (using system prompts, tools STRING
HIGHpydantic_ai_slim/pydantic_ai/agent/__init__.py0run the agent with a user prompt in async mode. this method builds an internal agent graph (using system prompts, tools STRING
HIGHpydantic_ai_slim/pydantic_ai/agent/wrapper.py0run the agent with a user prompt in async mode. this method builds an internal agent graph (using system prompts, tools STRING
HIGH…ic_ai_slim/pydantic_ai/durable_exec/temporal/_agent.py0run the agent with a user prompt in async mode. this method builds an internal agent graph (using system prompts, tools STRING
HIGH…dantic_ai_slim/pydantic_ai/durable_exec/dbos/_agent.py0run the agent with a user prompt in async mode. this method builds an internal agent graph (using system prompts, tools STRING
HIGH…tic_ai_slim/pydantic_ai/durable_exec/prefect/_agent.py0run the agent with a user prompt in async mode. this method builds an internal agent graph (using system prompts, tools STRING
HIGHpydantic_ai_slim/pydantic_ai/agent/abstract.py0a contextmanager which can be used to iterate over the agent graph's nodes as they are executed. this method builds an iSTRING
HIGHpydantic_ai_slim/pydantic_ai/agent/wrapper.py0a contextmanager which can be used to iterate over the agent graph's nodes as they are executed. this method builds an iSTRING
HIGHpydantic_ai_slim/pydantic_ai/agent/__init__.py0a contextmanager which can be used to iterate over the agent graph's nodes as they are executed. this method builds an iSTRING
HIGH…ic_ai_slim/pydantic_ai/durable_exec/temporal/_agent.py0a contextmanager which can be used to iterate over the agent graph's nodes as they are executed. this method builds an iSTRING
HIGH…dantic_ai_slim/pydantic_ai/durable_exec/dbos/_agent.py0a contextmanager which can be used to iterate over the agent graph's nodes as they are executed. this method builds an iSTRING
HIGH…tic_ai_slim/pydantic_ai/durable_exec/prefect/_agent.py0a contextmanager which can be used to iterate over the agent graph's nodes as they are executed. this method builds an iSTRING
HIGHpydantic_ai_slim/pydantic_ai/agent/abstract.py0context manager to temporarily override agent configuration. this is particularly useful when testing. you can find an eSTRING
HIGHpydantic_ai_slim/pydantic_ai/agent/wrapper.py0context manager to temporarily override agent configuration. this is particularly useful when testing. you can find an eSTRING
HIGH…ic_ai_slim/pydantic_ai/durable_exec/temporal/_agent.py0context manager to temporarily override agent configuration. this is particularly useful when testing. you can find an eSTRING
HIGH…dantic_ai_slim/pydantic_ai/durable_exec/dbos/_agent.py0context manager to temporarily override agent configuration. this is particularly useful when testing. you can find an eSTRING
HIGH…tic_ai_slim/pydantic_ai/durable_exec/prefect/_agent.py0context manager to temporarily override agent configuration. this is particularly useful when testing. you can find an eSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/cerebras.py0possible z.ai model names. since z.ai supports a variety of models and the list changes frequently, we explicitly list kSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/crusoe.py0possible z.ai model names. since z.ai supports a variety of models and the list changes frequently, we explicitly list kSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/zai.py0possible z.ai model names. since z.ai supports a variety of models and the list changes frequently, we explicitly list kSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/cerebras.py0initialize a snowflake cortex model. args: model_name: the name of the snowflake cortex model to use. provider: the provSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/zai.py0initialize a snowflake cortex model. args: model_name: the name of the snowflake cortex model to use. provider: the provSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/snowflake.py0initialize a snowflake cortex model. args: model_name: the name of the snowflake cortex model to use. provider: the provSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/mistral.py0process a non-streamed response, and prepare a message to return.STRING
HIGHpydantic_ai_slim/pydantic_ai/models/groq.py0process a non-streamed response, and prepare a message to return.STRING
HIGHpydantic_ai_slim/pydantic_ai/models/openai.py0process a non-streamed response, and prepare a message to return.STRING
HIGHpydantic_ai_slim/pydantic_ai/models/huggingface.py0process a non-streamed response, and prepare a message to return.STRING
HIGHpydantic_ai_slim/pydantic_ai/models/anthropic.py0process a non-streamed response, and prepare a message to return.STRING
HIGHpydantic_ai_slim/pydantic_ai/models/cohere.py0process a non-streamed response, and prepare a message to return.STRING
HIGHpydantic_ai_slim/pydantic_ai/models/mistral.py0process a streamed response, and prepare a streaming response to return.STRING
241 more matches not shown…
Empty Error Handlers131 hits · 640 pts
SeverityFileLineSnippetContext
HIGHpydantic_ai_slim/pydantic_ai/retries.py586except (ValueError, TypeError, AssertionError, OverflowError):CODE
HIGHpydantic_ai_slim/pydantic_ai/run.py467except StopAsyncIteration:CODE
HIGHpydantic_ai_slim/pydantic_ai/_instrumentation.py406except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/_ssrf.py732except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/concurrency.py214except anyio.WouldBlock:CODE
HIGHpydantic_ai_slim/pydantic_ai/_genai_prices.py107except LookupError:CODE
HIGHpydantic_ai_slim/pydantic_ai/_display.py340except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/_display.py359except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/_display.py455except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/result.py106except (ValidationError, exceptions.ModelRetry):CODE
HIGHpydantic_ai_slim/pydantic_ai/result.py505except StopAsyncIteration:CODE
HIGHpydantic_ai_slim/pydantic_ai/mcp.py1861except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/messages.py2544except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/messages.py327except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/messages.py1210except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/exceptions.py605except (ValueError, OverflowError):CODE
HIGHpydantic_ai_slim/pydantic_ai/_agent_graph.py238except BaseException:CODE
HIGHpydantic_ai_slim/pydantic_ai/_sync_stream.py208except RuntimeError:CODE
HIGHpydantic_ai_slim/pydantic_ai/ui/_event_stream.py314except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py1222except ValueError:CODE
HIGHpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py481except json.JSONDecodeError:CODE
HIGHpydantic_ai_slim/pydantic_ai/embeddings/instrumented.py151except LookupError:CODE
HIGHpydantic_ai_slim/pydantic_ai/providers/openai_codex.py627except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/providers/xai.py43except RuntimeError:CODE
HIGHpydantic_ai_slim/pydantic_ai/agent/__init__.py404except (asyncio.CancelledError, BaseException):CODE
HIGHpydantic_ai_slim/pydantic_ai/agent/spec.py350except (NameError, TypeError, AttributeError):CODE
HIGHpydantic_ai_slim/pydantic_ai/models/openrouter.py1120except ValidationError:CODE
HIGHpydantic_ai_slim/pydantic_ai/models/decision.py1063except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/models/openai.py503except ValidationError:CODE
HIGHpydantic_ai_slim/pydantic_ai/models/_continuation.py241except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/local.py486except ProcessLookupError:CODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/conformance.py450except OSError:CODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/workspace.py137except _DamagedOutputError:CODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/workspace.py292except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/workspaces/workspace.py224except Exception:CODE
HIGH…_ai_slim/pydantic_ai/durable_exec/_runtime_toolsets.py59except ImportError: # pragma: no coverCODE
HIGH…lim/pydantic_ai/durable_exec/temporal/_event_stream.py205except TimeoutError:CODE
HIGH…_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py73except ImportError:CODE
HIGH…_ai_slim/pydantic_ai/durable_exec/temporal/_toolset.py403except ImportError:CODE
HIGH…dantic_ai_slim/pydantic_ai/durable_exec/dbos/_agent.py164except ImportError:CODE
HIGH…c_ai_slim/pydantic_ai/durable_exec/prefect/_toolset.py134except ImportError:CODE
HIGHpydantic_ai_slim/pydantic_ai/realtime/_session.py1341except self._connection.transport_errors:CODE
HIGHpydantic_ai_slim/pydantic_ai/realtime/_session.py3865except RuntimeError:CODE
HIGHpydantic_ai_slim/pydantic_ai/_cli/__init__.py191except Exception:CODE
HIGHpydantic_ai_slim/pydantic_ai/_cli/__init__.py425except KeyboardInterrupt:CODE
HIGHtests/conftest.py720except ImportError:CODE
HIGHtests/conftest.py598except ImportError:CODE
HIGHtests/test_agent.py10406except asyncio.CancelledError:CODE
HIGHtests/test_agent.py10518except asyncio.CancelledError:CODE
HIGHtests/test_agent.py10467except asyncio.CancelledError:CODE
HIGHtests/test_agent.py10503except asyncio.CancelledError:CODE
HIGHtests/test_agent.py10395except asyncio.CancelledError:CODE
HIGHtests/test_agent.py10443except asyncio.CancelledError:CODE
HIGHtests/test_streaming.py4747except UnexpectedModelBehavior:CODE
HIGHtests/test_streaming.py6249except UnexpectedModelBehavior:CODE
HIGHtests/test_streaming.py5545except RuntimeError:CODE
HIGHtests/test_run_cancellation.py201except asyncio.CancelledError:CODE
HIGHtests/test_run_cancellation.py761except asyncio.CancelledError:CODE
HIGHtests/test_run_cancellation.py939except asyncio.CancelledError:CODE
HIGHtests/test_run_cancellation.py228except asyncio.CancelledError:CODE
71 more matches not shown…
Magic Placeholder Names89 hits · 478 pts
SeverityFileLineSnippetContext
HIGHpydantic_ai_slim/pydantic_ai/images/google.py129 provider=GoogleProvider(api_key='your-api-key'),STRING
HIGHpydantic_ai_slim/pydantic_ai/images/xai.py115 provider=XaiProvider(api_key='your-api-key'),STRING
HIGHclai/README.md22export OPENAI_API_KEY='your-api-key-here'CODE
HIGH⚡tests/providers/test_ovhcloud.py31 provider = OVHcloudProvider(api_key='your-api-key')CODE
HIGH⚡tests/providers/test_ovhcloud.py35 assert provider.client.api_key == 'your-api-key'CODE
HIGH⚡tests/providers/test_ovhcloud.py51 openai_client = openai.AsyncOpenAI(api_key='your-api-key')CODE
HIGH⚡tests/providers/test_ovhcloud.py58 provider = OVHcloudProvider(api_key='your-api-key', http_client=http_client)CODE
HIGH⚡tests/providers/test_ovhcloud.py60 assert provider.client.api_key == 'your-api-key'CODE
HIGH⚡tests/providers/test_ovhcloud.py64 provider = OVHcloudProvider(api_key='your-api-key')CODE
HIGH⚡tests/providers/test_google.py77 env.set(api_key_env_var, 'your-api-key')CODE
HIGH⚡tests/providers/test_google.py80 assert provider.client._api_client.api_key == 'your-api-key' # pyright: ignore[reportPrivateUsage]CODE
HIGH⚡tests/providers/test_google.py250 env.set(api_key_env_var, 'your-api-key')CODE
HIGH⚡tests/providers/test_google.py253 assert provider.client._api_client.api_key == 'your-api-key' # pyright: ignore[reportPrivateUsage]CODE
HIGH⚡tests/providers/test_google.py285 env.set('GOOGLE_API_KEY', 'your-api-key')CODE
HIGH⚡tests/providers/test_google.py290 assert provider.client._api_client.api_key == 'your-api-key' # pyright: ignore[reportPrivateUsage]CODE
HIGH⚡tests/providers/test_google.py301 provider = GoogleCloudProvider(api_key='your-api-key')CODE
HIGH⚡tests/providers/test_google.py302 assert provider.client._api_client.api_key == 'your-api-key' # pyright: ignore[reportPrivateUsage]CODE
HIGH⚡tests/providers/test_google.py312 api_key='your-api-key', credentials=credentials, project='pydantic-ai', location='us-central1'CODE
HIGHdocs/cli.md42export OPENAI_API_KEY='your-api-key-here'CODE
HIGHdocs/embeddings.md175export OPENAI_API_KEY='your-api-key'CODE
HIGHdocs/embeddings.md247 api_key='your-api-key',CODE
HIGHdocs/embeddings.md284export GOOGLE_API_KEY='your-api-key'CODE
HIGHdocs/embeddings.md405export CO_API_KEY='your-api-key'CODE
HIGHdocs/embeddings.md461export VOYAGE_API_KEY='your-api-key'CODE
HIGHdocs/image-generation.md23export OPENAI_API_KEY='your-api-key'CODE
HIGHdocs/image-generation.md140export OPENAI_API_KEY='your-api-key'CODE
HIGHdocs/image-generation.md165export GOOGLE_API_KEY='your-api-key'CODE
HIGHdocs/image-generation.md192export XAI_API_KEY='your-api-key'CODE
HIGHdocs/image-generation.md211 provider=OpenAIProvider(base_url='https://my-provider.com/v1', api_key='your-api-key'),CODE
HIGHdocs/retries.md335 api_key='your-api-key', # Replace with actual API keyCODE
HIGHdocs/models/xai.md26export XAI_API_KEY='your-api-key'CODE
HIGHdocs/models/xai.md61provider = XaiProvider(api_key='your-api-key')CODE
HIGHdocs/models/xai.md75 api_key='your-api-key',CODE
HIGHdocs/models/xai.md97 async with AsyncClient(api_key='your-api-key') as xai_client:CODE
HIGHdocs/models/xai.md117 api_key='your-api-key',CODE
HIGHdocs/models/xai.md140 async with AsyncClient(api_key='your-api-key', channel_options=[('grpc.enable_retries', 0)]) as xai_client:CODE
HIGHdocs/models/anthropic.md26export ANTHROPIC_API_KEY='your-api-key'CODE
HIGHdocs/models/anthropic.md64 'claude-sonnet-4-5', provider=AnthropicProvider(api_key='your-api-key')CODE
HIGHdocs/models/anthropic.md84 provider=AnthropicProvider(api_key='your-api-key', http_client=custom_http_client),CODE
HIGHdocs/models/anthropic.md293 api_key='your-api-key',CODE
HIGHdocs/models/groq.md26export GROQ_API_KEY='your-api-key'CODE
HIGHdocs/models/groq.md59 'llama-3.3-70b-versatile', provider=GroqProvider(api_key='your-api-key')CODE
HIGHdocs/models/groq.md77 provider=GroqProvider(api_key='your-api-key', http_client=custom_http_client),CODE
HIGHdocs/models/typesafe.md29export TYPESAFE_API_KEY='your-api-key'CODE
HIGHdocs/models/typesafe.md189model = TypeSafeModel('jev-latest', provider=TypeSafeProvider(api_key='your-api-key'))CODE
HIGHdocs/models/typesafe.md208 provider=TypeSafeProvider(api_key='your-api-key', http_client=custom_http_client),CODE
HIGHdocs/models/typesafe.md227client = AsyncTypeSafeClient(api_key='your-api-key', retry=RetryPolicy(max_retries=0))CODE
HIGHdocs/models/google-cloud.md92export GOOGLE_API_KEY=your-api-keyCODE
HIGHdocs/models/google-cloud.md111provider = GoogleCloudProvider(api_key='your-api-key')CODE
HIGHdocs/models/openai.md27export OPENAI_API_KEY='your-api-key'CODE
HIGHdocs/models/openai.md68model = OpenAIResponsesModel('gpt-5.2', provider=OpenAIProvider(api_key='your-api-key'))CODE
HIGHdocs/models/openai.md105 api_key='your-api-key',CODE
HIGHdocs/models/openai.md580model = OpenAIDecisionsModel('gpt-6-luna', provider=OpenAIDecisionsProvider(api_key='your-api-key'))CODE
HIGHdocs/models/bedrock.md54export AWS_BEARER_TOKEN_BEDROCK='your-api-key'CODE
HIGHdocs/models/ollama.md34export OLLAMA_API_KEY='your-api-key' # required for Ollama CloudCODE
HIGHdocs/models/system-one.md65export SYSTEM_ONE_API_KEY='your-api-key'CODE
HIGHdocs/models/system-one.md92 provider=SystemOneProvider(base_url='https://decisions.example.com', api_key='your-api-key'),CODE
HIGHdocs/models/cohere.md26export CO_API_KEY='your-api-key'CODE
HIGHdocs/models/cohere.md58model = CohereModel('command-r7b-12-2024', provider=CohereProvider(api_key='your-api-key'))CODE
HIGHdocs/models/cohere.md75 provider=CohereProvider(api_key='your-api-key', http_client=custom_http_client),CODE
29 more matches not shown…
Deep Nesting553 hits · 466 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/_output.py1674CODE
LOWpydantic_ai_slim/pydantic_ai/_output.py461CODE
LOWpydantic_ai_slim/pydantic_ai/_output.py1217CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py514CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py562CODE
LOWpydantic_ai_slim/pydantic_ai/format_prompt.py135CODE
LOWpydantic_ai_slim/pydantic_ai/format_prompt.py187CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py521CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py735CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_search.py471CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py20CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py104CODE
LOWpydantic_ai_slim/pydantic_ai/_mcp.py180CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred_capabilities.py175CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py637CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py884CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py545CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py599CODE
LOWpydantic_ai_slim/pydantic_ai/function_signature.py371CODE
LOWpydantic_ai_slim/pydantic_ai/_function_schema.py110CODE
LOWpydantic_ai_slim/pydantic_ai/_spec.py96CODE
LOWpydantic_ai_slim/pydantic_ai/result.py1234CODE
LOWpydantic_ai_slim/pydantic_ai/result.py281CODE
LOWpydantic_ai_slim/pydantic_ai/result.py522CODE
LOWpydantic_ai_slim/pydantic_ai/mcp.py1851CODE
LOWpydantic_ai_slim/pydantic_ai/mcp.py1911CODE
LOWpydantic_ai_slim/pydantic_ai/mcp.py1182CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_execution.py257CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_execution.py716CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_execution.py798CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_execution.py1008CODE
LOWpydantic_ai_slim/pydantic_ai/_tool_execution.py1208CODE
LOWpydantic_ai_slim/pydantic_ai/_json_schema.py101CODE
LOWpydantic_ai_slim/pydantic_ai/_json_schema.py133CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred.py125CODE
LOWpydantic_ai_slim/pydantic_ai/_deferred.py182CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3127CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3201CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3247CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3313CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3426CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3508CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3630CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py738CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py968CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py1191CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py1503CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py1557CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py3055CODE
LOWpydantic_ai_slim/pydantic_ai/messages.py4183CODE
LOWpydantic_ai_slim/pydantic_ai/_cancel.py235CODE
LOWpydantic_ai_slim/pydantic_ai/_parts_manager.py152CODE
LOWpydantic_ai_slim/pydantic_ai/_parts_manager.py358CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py990CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py1157CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py662CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py778CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py832CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py1414CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py1900CODE
493 more matches not shown…
AI Slop Vocabulary138 hits · 439 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml138 # `pydantic-ai-harness[stackone]` needs FastMCP 3.COMMENT
MEDIUMpyproject.toml180# so resolving `pydantic-ai-harness[browser-use]` here would hold the whole workspace to those versions.COMMENT
MEDIUMpyproject.toml181# The extra stays in the published metadata; this lock leaves it out, and the `harness browser-use`COMMENT
MEDIUMpyproject.toml285 # Storage backends `pydantic-ai-harness` supports, faked or run against a live server.COMMENT
MEDIUMpyproject.toml487 # Need `browser-use`, which the workspace lock excludes; the `harness browser-use` CI job checks them.COMMENT
MEDIUMpyproject.toml516 # TODO: Replace native cancellation in harness code (e.g. `asyncio.wait_for` in `SubAgents`) withCOMMENT
MEDIUMpyproject.toml519 # Experimental harness capabilities warn on import by design; tests assert it where it matters.COMMENT
LOWpydantic_ai_slim/pydantic_ai/_output.py344 # Text output: no real validation, just pass through the textCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/_display.py456 # Best-effort enrichment: the harness is named only when it can be found and named withoutCOMMENT
LOW⚡pydantic_ai_slim/pydantic_ai/_json_schema.py278 # they are both null, so just return one of themCOMMENT
LOWpydantic_ai_slim/pydantic_ai/_utils.py641 # If we already have a buffered item, just return it.COMMENT
MEDIUM…_slim/pydantic_ai/capabilities/process_event_stream.py97 # the observer form returns an awaitable. Introspecting the return is robust forCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/mistral.py852 # It seems that mistral just sends full tool calls, so we just use them directly, rather than buildiCOMMENT
MEDIUM…_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py121 # harness through alone leaves that dependency sandbox-local and triggers a late-import error.COMMENT
LOW…dantic_ai_slim/pydantic_ai/durable_exec/dbos/_model.py113 # If not in a workflow (could be in a step), just call the wrapped request_stream method.COMMENT
LOW…tic_ai_slim/pydantic_ai/durable_exec/prefect/_model.py137 # If not in a flow, just call the wrapped request_stream methodCOMMENT
LOWpydantic_ai_slim/pydantic_ai/realtime/model.py451 # can drop a claim the provider made and not just add to it.COMMENT
MEDIUMtests/conftest.py379 # example printing from inside a running event loop trips the detector on the harness's ownCOMMENT
MEDIUMtests/conftest.py383 # The first-run banner asks whether the harness is installed and what version it is, to name itCOMMENT
MEDIUMtests/conftest.py453 # The harness isn't installed in every CI lane (the `pydantic-evals` one, say).COMMENT
MEDIUMtests/test_display.py400 # enough — as a dev install with the harness already is.COMMENT
MEDIUMtests/test_examples.py128 # Written for the harness repository, which never ran them; not yet made runnable here.COMMENT
MEDIUMtests/test_examples.py134 # (harness imports, the Coder blocks-equivalence fragment, interactive realtimeCOMMENT
MEDIUMtests/models/test_model_settings_support.py673 # that as "not forwarded" would let a harness failure quietly agree with a stale list.COMMENT
MEDIUM⚡…/test_anthropic/test_anthropic_mcp_servers_stream.yaml129 data: {"type":"content_block_start","index":2,"content_block":{"type":"mcp_tool_result","tool_use_id":"mcptoolu_CODE
MEDIUM⚡…l_mcp_list_tools_stream_backfills_missing_results.yaml397 data: {"type":"response.completed","response":{"id":"resp_034c5e93e2fa45ad006a2c2b74c2e4819dafbd93fcd1b49697","oCODE
MEDIUM⚡…l_mcp_list_tools_stream_backfills_missing_results.yaml397 data: {"type":"response.completed","response":{"id":"resp_034c5e93e2fa45ad006a2c2b74c2e4819dafbd93fcd1b49697","oCODE
MEDIUM⚡…l_mcp_list_tools_stream_backfills_missing_results.yaml397 data: {"type":"response.completed","response":{"id":"resp_034c5e93e2fa45ad006a2c2b74c2e4819dafbd93fcd1b49697","oCODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml79 data: {"type":"response.output_item.done","sequence_number":13,"output_index":2,"item":{"id":"mcp_00b9cc7a23d047CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml619 data: {"type":"response.completed","sequence_number":193,"response":{"id":"resp_00b9cc7a23d047270068faa0e2593481CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml619 data: {"type":"response.completed","sequence_number":193,"response":{"id":"resp_00b9cc7a23d047270068faa0e2593481CODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml150 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml156 data: {"type":"content_block_start","index":3,"content_block":{"type":"code_execution_tool_result","tool_use_id"CODE
MEDIUM⚡…calls/test_in_flight_mcp_call_history_is_accepted.yaml99 data: {"type":"content_block_start","index":0,"content_block":{"type":"mcp_tool_result","tool_use_id":"mcptoolu_CODE
LOWtests/durable_exec/test_dbos.py355 # DBOSAgent already wraps the `run` function as a DBOS workflow, so we can just call it directly.COMMENT
LOWtests/durable_exec/test_dbos.py853 # DBOSAgent already wraps the `run` function as a DBOS workflow, so we can just call it directly.COMMENT
MEDIUMtests/realtime/test_session.py6969 # `state_restored=True` stands, so an app is not told a seamless renewal was a disruption.COMMENT
MEDIUMtests/harness/conftest.py23# `from tests.harness.conftest import IsStr, IsDatetime, ...` instead of importingCOMMENT
MEDIUMtests/harness/conftest.py45# Temporal markers live in `tests/harness/_temporal.py`: modules defining workflows must not importCOMMENT
MEDIUMtests/harness/test_doc_snippets.py145 continue # missing optional extra in this environment; the harness module existsCODE
MEDIUM⚡tests/harness/test_doc_snippets.py287 # Valid: harness imports that resolve, star imports, plain imports, and non-harness imports.COMMENT
MEDIUM⚡tests/harness/test_doc_snippets.py300 assert _is_missing_harness_module('acp') is False # a missing extra, not a harness moduleCODE
MEDIUM⚡tests/harness/test_doc_snippets.py305 # Simulate the `slim` environment: the harness module exists, but importing itCOMMENT
MEDIUMtests/harness/_docs_examples.py53_ROOT = Path(__file__).parents[2] # the repository root, above `tests/harness`CODE
MEDIUMtests/harness/test_docs_parity.py37# as a capability (https://github.com/pydantic/pydantic-ai-harness/issues/625).COMMENT
MEDIUMtests/harness/test_docs_parity.py89# --- Unified-docs page checks (docs/harness/*.md) ---------------------------COMMENT
MEDIUMtests/harness/test_docs_parity.py91# The flat pages under `docs/harness/` render on the unified site. These mechanicalCOMMENT
MEDIUMtests/harness/test_workspace_provider.py153 # Nothing the harness declares installs `sniffio`, so a clean install has none. Every sandbox backend imports this mCOMMENT
MEDIUM⚡tests/harness/test_coder.py82 # Forget the whole harness package (restored after the test), so neither `pydantic_ai_harness`COMMENT
LOWtests/harness/test_skill_examples.py39 # `find_examples` yields paths relative to the cwd we just set, so use them as-is.COMMENT
MEDIUMtests/harness/test_skill_examples.py141 # `Task-Family References` table of the `pydantic-ai-harness` skill, and each class needs its own section inCOMMENT
MEDIUM…arness/conversation_search/test_conversation_search.py231 # pydantic-ai-harness#810: pydantic-ai stamps `timestamp`, `run_id`, andCOMMENT
MEDIUM…arness/conversation_search/test_conversation_search.py247 # pydantic-ai-harness#810: `StepPersistence.after_node_run` saves theCOMMENT
MEDIUM…arness/conversation_search/test_conversation_search.py308 # example `MongoStepStore`, pydantic-ai-harness#446) fails at constructionCOMMENT
MEDIUM…arness/conversation_search/test_conversation_search.py323 # Bounded snapshot retention (pydantic-ai-harness#442) can prune the early,COMMENT
MEDIUM⚡tests/harness/filesystem/test_filesystem.py540 # A provider the harness does not ship names no example capability.COMMENT
MEDIUMtests/harness/gh_aw/test_engine_definition.py49# Stands in for gh-aw's own helper module, which the harness script requires next toCOMMENT
MEDIUMtests/harness/gh_aw/test_engine_definition.py292 # `os.tmpdir()`, where the harness script puts the generated module. Pointing itCOMMENT
MEDIUMtests/harness/code_mode/test_websocket.py147 # One statement: the harness cancels this while the close is in flight, so a separateCOMMENT
MEDIUM⚡tests/clai2/test_ordinal.py243 # With `auto`, a chosen key wins over the environment, as an explicit `auth` does in harness `Ordinal`.COMMENT
78 more matches not shown…
Docstring Block Structure66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHpydantic_ai_slim/pydantic_ai/_output.py366Execute an output function with error handling, converting `ModelRetry` to `ToolRetryError`. Tracing for output-funSTRING
HIGHpydantic_ai_slim/pydantic_ai/retries.py196Handle an HTTP request with retry logic. Args: request: The HTTP request to handle. ReturnSTRING
HIGHpydantic_ai_slim/pydantic_ai/retries.py299Handle an async HTTP request with retry logic. Args: request: The HTTP request to handle. STRING
HIGHpydantic_ai_slim/pydantic_ai/retries.py382Handle an HTTP request with retry logic. Args: request: The HTTP request to handle. ReturnSTRING
HIGHpydantic_ai_slim/pydantic_ai/retries.py468Handle an async HTTP request with retry logic. Args: request: The HTTP request to handle. STRING
HIGHpydantic_ai_slim/pydantic_ai/run.py701Emit a [`CustomEvent`][pydantic_ai.messages.CustomEvent] into this run's event stream. Lets code driving [`AgenSTRING
HIGHpydantic_ai_slim/pydantic_ai/run.py741Enqueue content to be injected into the conversation. Safe to call directly from synchronous or asynchronous coSTRING
HIGHpydantic_ai_slim/pydantic_ai/tool_manager.py749Execute a validated tool call via capability hooks. The Instrumentation capability (if present) creates trace sSTRING
HIGHpydantic_ai_slim/pydantic_ai/tool_manager.py1089Handle a tool call by validating the arguments, calling the tool, and handling retries. This is a convenience mSTRING
HIGHpydantic_ai_slim/pydantic_ai/_ssrf.py338Validate that the URL uses an allowed protocol (http or https). Args: url: The URL to validate. ReturnSTRING
HIGHpydantic_ai_slim/pydantic_ai/_ssrf.py438Validate URL and resolve hostname to IP addresses. Performs protocol validation, DNS resolution, and IP validation.STRING
HIGHpydantic_ai_slim/pydantic_ai/_ssrf.py647Download content from a URL with SSRF protection. This function: 1. Validates the URL protocol (only http/httpsSTRING
HIGHpydantic_ai_slim/pydantic_ai/_run_context.py738Emit a custom or capability event into the current run's event stream. Application code emits an instance of anSTRING
HIGHpydantic_ai_slim/pydantic_ai/_run_context.py842Enqueue content to be injected into the conversation. Safe to call directly from async tools, sync tools runninSTRING
HIGHpydantic_ai_slim/pydantic_ai/mcp.py1617Read the contents of a specific resource by URI. Args: uri: The URI of the resource to read, or a [STRING
HIGHpydantic_ai_slim/pydantic_ai/mcp.py1941Recursively expand environment variables in a JSON structure. Environment variables can be referenced using `${VAR_STRING
HIGHpydantic_ai_slim/pydantic_ai/mcp.py2011Load `MCPToolset`s from a configuration file. The configuration file uses the same `mcpServers` JSON shape as ClaudSTRING
HIGHpydantic_ai_slim/pydantic_ai/messages.py4119Apply this text delta to an existing `TextPart`. Args: part: The existing model response part, whicSTRING
HIGHpydantic_ai_slim/pydantic_ai/messages.py4184Apply this thinking delta to an existing `ThinkingPart`. Args: part: The existing model response paSTRING
HIGHpydantic_ai_slim/pydantic_ai/messages.py4318Apply this delta to a part or delta, returning a new part or delta with the changes applied. Args: STRING
HIGHpydantic_ai_slim/pydantic_ai/messages.py4466Apply this delta to an existing `SpeechPart`. `transcript` replaces the part's transcript when set, which is hoSTRING
HIGHpydantic_ai_slim/pydantic_ai/direct.py63Make a non-streamed request to a model. ```py title="model_request_example.py" from pydantic_ai import ModelReqSTRING
HIGHpydantic_ai_slim/pydantic_ai/direct.py116Make a Synchronous, non-streamed request to a model. This is a convenience method that wraps [`model_request`][pydaSTRING
HIGHpydantic_ai_slim/pydantic_ai/direct.py172Make a streamed async request to a model. ```py {title="model_request_stream_example.py"} from pydantic_ai impSTRING
HIGHpydantic_ai_slim/pydantic_ai/direct.py235Make a streamed synchronous request to a model. This is the synchronous version of [`model_request_stream`][pydantiSTRING
HIGHpydantic_ai_slim/pydantic_ai/_parts_manager.py163Handle incoming text content, creating or updating a TextPart in the manager as appropriate. When `vendor_part_STRING
HIGHpydantic_ai_slim/pydantic_ai/_parts_manager.py261Handle incoming thinking content, creating or updating a ThinkingPart in the manager as appropriate. When `vendSTRING
HIGHpydantic_ai_slim/pydantic_ai/_parts_manager.py368Handle or update a tool call, creating or updating a `ToolCallPart`, `NativeToolCallPart`, or `ToolCallPartDelta`. STRING
HIGHpydantic_ai_slim/pydantic_ai/_utils.py842Check if a callable takes a `RunContext` as its first argument. Args: callable_obj: The callable to check. STRING
HIGHpydantic_ai_slim/pydantic_ai/_utils.py862Get the type annotation of the first parameter of a callable. Handles regular functions, methods, and callable clasSTRING
HIGHpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_utils.py95Dump provider metadata from keyword arguments. Args: wrapper_key: The key to wrap the metadata in. DefaultsSTRING
HIGHpydantic_ai_slim/pydantic_ai/ui/_web/app.py176Create a Starlette app that serves a web chat UI for the given agent. By default, the UI is fetched from a CDN and STRING
HIGHpydantic_ai_slim/pydantic_ai/embeddings/__init__.py337Count the number of tokens in the given text. Args: text: The text to tokenize and count. STRING
HIGHpydantic_ai_slim/pydantic_ai/embeddings/result.py86Get the embedding for an input by index or by the original input text. Args: item: Either an integeSTRING
HIGHpydantic_ai_slim/pydantic_ai/embeddings/base.py104Count the number of tokens in the given text. Args: text: The text to tokenize and count. STRING
HIGHpydantic_ai_slim/pydantic_ai/images/__init__.py254Generate images from a prompt and optional reference images. Args: prompt: The text prompt describiSTRING
HIGHpydantic_ai_slim/pydantic_ai/images/__init__.py288Synchronous version of [`generate()`][pydantic_ai.images.ImageGenerator.generate]. Args: prompt: ThSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/cerebras.py134Transforms a 'CerebrasModelSettings' object into an 'OpenAIChatModelSettings' object. Args: model_settings:STRING
HIGHpydantic_ai_slim/pydantic_ai/models/instrumented.py94Create instrumentation options. Args: tracer_provider: The OpenTelemetry tracer provider to use. STRING
HIGHpydantic_ai_slim/pydantic_ai/models/openrouter.py645Transforms a 'OpenRouterModelSettings' object into an 'OpenAIChatModelSettings' object. Args: model_settingSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/zai.py226Transforms a 'ZaiModelSettings' object into an 'OpenAIChatModelSettings' object. Maps the unified `thinking` settinSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/snowflake.py331Transforms a `SnowflakeModelSettings` object into an `OpenAIChatModelSettings` object. Args: model_settingsSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/bedrock.py500Insert a cache point before trailing document/video content. AWS rejects cache points that directly follow documentSTRING
HIGHpydantic_ai_slim/pydantic_ai/models/_tool_choice.py16Resolve user-facing tool_choice into a canonical form for providers. Pydantic AI distinguishes between function tooSTRING
HIGH…slim/pydantic_ai/durable_exec/_capability_operation.py198Declare an async capability method as a durable operation. The method keeps its original signature. During a run wiSTRING
HIGHpydantic_ai_slim/pydantic_ai/realtime/_session.py1888Enqueue content to be delivered to the model when the session is ready for it. Use this from code driving the sSTRING
HIGHpydantic_ai_slim/pydantic_ai/realtime/model.py283Open a connection to the realtime model. Args: messages: Prior conversation and the current requestSTRING
HIGHpydantic_evals/pydantic_evals/generation.py42Use an LLM to generate a dataset of test cases, each consisting of input, expected output, and metadata. This functSTRING
HIGHpydantic_evals/pydantic_evals/dataset.py559Load a dataset from a file. Args: path: Path to the file to load. fmt: Format of the fiSTRING
HIGHpydantic_evals/pydantic_evals/dataset.py602Load a dataset from a string. Args: contents: The string content to parse. fmt: Format STRING
HIGHpydantic_evals/pydantic_evals/dataset.py640Load a dataset from a dictionary. Args: data: Dictionary representation of the dataset. STRING
HIGHpydantic_evals/pydantic_evals/dataset.py874Infer the format to use for a file based on its extension. Args: path: The path to infer the formatSTRING
HIGHpydantic_evals/pydantic_evals/dataset.py946Run a task on a case and return the context for evaluators. Args: task: The task to run. case: The STRING
HIGHpydantic_evals/pydantic_evals/_utils.py56Get the name of a function, unwrapping partials and decorators. Args: func: The function to get the name ofSTRING
HIGH…ntic_evals/pydantic_evals/evaluators/_run_evaluator.py40Run an evaluator and return the results. This function runs an evaluator on the given context and processes the resSTRING
HIGH…ntic_evals/pydantic_evals/evaluators/llm_as_a_judge.py581Judge an output using a G-Eval style chain-of-thought prompt. This is a simplified implementation of G-Eval (Liu etSTRING
HIGHpydantic_graph/pydantic_graph/join.py236Attempt to run the join node. Args: ctx: The graph execution context Returns: STRING
HIGHpydantic_graph/pydantic_graph/step.py185Attempt to run the step node. Args: ctx: The graph execution context Returns: STRING
HIGHpydantic_graph/pydantic_graph/step.py238Execute the wrapped node with the step context. Args: ctx: The step context containing the node insSTRING
HIGHpydantic_graph/pydantic_graph/node.py82Force type variance for proper generic typing. This method exists solely for type checking purposes and should STRING
6 more matches not shown…
Self-Referential Comments95 hits · 274 pts
SeverityFileLineSnippetContext
MEDIUMpydantic_ai_slim/pydantic_ai/concurrency.py234 # Create a span for observability while waitingCOMMENT
MEDIUM⚡pydantic_ai_slim/pydantic_ai/_json_schema.py271 # Create a new schema based on the non-null part, mark as nullableCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/_parts_manager.py1"""This module provides functionality to manage and update parts of a model's streamed response.STRING
MEDIUMpydantic_ai_slim/pydantic_ai/providers/gateway.py1"""This module implements the Pydantic AI Gateway provider."""STRING
MEDIUMpydantic_ai_slim/pydantic_ai/models/__init__.py746 # This method is not required, but you need to implement it if you want to support `UsageLimits.count_tokens_befCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/models/__init__.py772 # This method is not required, but you need to implement it if you want to support streamed responsesCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/models/system_one.py50 # This class is a placeholder for any future System One-specific settings.COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/models/openai_decisions.py78 # This class is a placeholder for any future Decisions API-specific settings.COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/models/huggingface.py149 # This class is a placeholder for any future huggingface-specific settingsCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/models/cohere.py115 # This class is a placeholder for any future cohere-specific settingsCOMMENT
MEDIUM⚡…tic_ai_slim/pydantic_ai/durable_exec/prefect/_agent.py204 # Create a task to handle each eventCOMMENT
MEDIUMtests/test_toolsets.py951 # Create a toolset with tools that can failCOMMENT
MEDIUM⚡tests/test_ui_web.py1141 # Create a test HTML fileCOMMENT
MEDIUM⚡tests/test_ui_web.py1153 # Create a test HTML fileCOMMENT
MEDIUM⚡tests/test_tenacity.py487 # Create a retry state with no exceptionCOMMENT
MEDIUM⚡tests/test_tenacity.py501 # Create a retry state with a non-HTTP exceptionCOMMENT
MEDIUMtests/test_tenacity.py597 # Create a future date (30 seconds from now)COMMENT
MEDIUMtests/test_tenacity.py645 # Create a past dateCOMMENT
MEDIUMtests/test_tenacity.py670 # Create a future date (120 seconds from now, > max_wait)COMMENT
MEDIUMtests/test_tenacity.py715 # Create a retry state with no exception to trigger fallbackCOMMENT
MEDIUMtests/test_function_signature.py1190 # Create a function with bare generic annotation (typing.List, not list)STRING
MEDIUMtests/test_usage_limits.py669 # Create a usage with None in details (simulating model response with missing detail)COMMENT
MEDIUMtests/test_json_schema.py67 # Create a schema with $defs that should not be modifiedCOMMENT
MEDIUMtests/evals/test_evaluator_common.py264 # Create a mock GradingOutputCOMMENT
MEDIUMtests/evals/test_evaluator_common.py502 # Create a span tree with a known structureCOMMENT
MEDIUM⚡tests/evals/test_evaluator_context.py22 # Create a mock span treeCOMMENT
MEDIUM⚡tests/evals/test_evaluator_context.py25 # Create a context with all fields populatedCOMMENT
MEDIUM⚡tests/evals/test_evaluators.py563 # Create a span tree with a known structureCOMMENT
MEDIUM⚡tests/evals/test_evaluators.py569 # Create a context with this span treeCOMMENT
MEDIUMtests/evals/test_evaluators.py103 # Create a specCOMMENT
MEDIUMtests/evals/test_evaluators.py182 # Create a context with the correct object typing for IsInstanceCOMMENT
MEDIUMtests/evals/test_evaluators.py205 # Create a context with DifferentOutputCOMMENT
MEDIUMtests/evals/test_reports.py111 # Create a new caseCOMMENT
MEDIUMtests/evals/test_reports.py139 # Create a case aggregateCOMMENT
MEDIUMtests/evals/test_reports.py175 # Create an evaluator outputCOMMENT
MEDIUMtests/evals/test_reports.py183 # Create a caseCOMMENT
MEDIUMtests/evals/test_reports.py201 # Create a report with the error caseCOMMENT
MEDIUM⚡tests/evals/test_dataset.py1758 # This function is tough to test in an interesting way outside an example...COMMENT
MEDIUMtests/evals/test_otel.py789 # Create a simple tree for testing negationCOMMENT
MEDIUMtests/evals/test_otel.py986 # Create a test span treeCOMMENT
MEDIUMtests/evals/test_otel.py1021 # Create a tree with varying numbers of childrenCOMMENT
MEDIUMtests/providers/test_litellm.py122 # Create a real AsyncClient for the mockCOMMENT
MEDIUMtests/graph/builder/test_graph_builder.py395 # Create a cycle that doesn't reach the end nodeCOMMENT
MEDIUM⚡tests/models/test_anthropic.py647 # Create a mock model instanceCOMMENT
MEDIUM⚡tests/models/test_anthropic.py654 # Create a list with an unsupported param type (thinking)COMMENT
MEDIUMtests/models/test_anthropic.py627 # Create a UserPromptPart with CachePointCOMMENT
MEDIUMtests/models/test_anthropic.py1013 # Create a mock client that looks like standard AsyncAnthropicCOMMENT
MEDIUMtests/models/test_anthropic.py8295 # Create a model instanceSTRING
MEDIUMtests/models/test_anthropic.py8366 # Create a model instanceSTRING
MEDIUMtests/models/test_anthropic.py8407 # Create a model instanceSTRING
MEDIUMtests/models/test_anthropic.py10680 # Create the first mock response with server tool blocksSTRING
MEDIUMtests/models/test_anthropic.py10712 # Create the second mock response that references the historySTRING
MEDIUMtests/models/test_anthropic.py10741 # Create the first mock response with server tool blocksSTRING
MEDIUMtests/models/test_anthropic.py10772 # Create the second mock response that references the historySTRING
MEDIUMtests/models/test_anthropic.py14455 # Create a message history with a container_id in provider_detailsSTRING
MEDIUMtests/models/test_anthropic.py14479 # Create a message history with a container_idSTRING
MEDIUMtests/models/test_openai.py3642 # Create a mock completion for testingCOMMENT
MEDIUMtests/models/test_openai.py4039 # Create a mock response with logprobsCOMMENT
MEDIUMtests/models/mock_xai.py322 # Create the chunk tool call (delta)COMMENT
MEDIUMtests/models/test_model_settings.py49 # Create a base model with settingsCOMMENT
35 more matches not shown…
Modern AI Meta-Vocabulary112 hits · 272 pts
SeverityFileLineSnippetContext
MEDIUM.pre-commit-config.yaml9 # gh-aw compiles *.md agentic workflows into *.lock.yml, and alsoCOMMENT
MEDIUMREADME.md28**[Pydantic AI Harness](https://pydantic.dev/docs/ai/harness/)** has everything an agent needs for complex, long-runningCODE
MEDIUMpydantic_ai_slim/pydantic_ai/native_tools/__init__.py189 * Groq, see <https://console.groq.com/docs/agentic-tooling#search-settings>STRING
MEDIUMpydantic_ai_slim/pydantic_ai/native_tools/__init__.py203 * Groq, see <https://console.groq.com/docs/agentic-tooling#search-settings>STRING
MEDIUM…stra-to-pydantic-ai/references/RESEARCH-AND-MAPPING.md11- Pydantic AI Harness: [overview](https://pydantic.dev/docs/ai/harness/), [memory](https://pydantic.dev/docs/ai/harness/CODE
MEDIUM…building-pydantic-ai-agents/references/ARCHITECTURE.md11 - [Choosing a Multi-Agent Pattern](#choosing-a-multi-agent-pattern)CODE
MEDIUM…ai-agents/references/ORCHESTRATION-AND-INTEGRATIONS.md109## Use Embeddings for RAGCOMMENT
MEDIUM…g-pi-to-pydantic-ai/references/RESEARCH-AND-MAPPING.md11- Pydantic AI Harness: [overview](https://pydantic.dev/docs/ai/harness/), [Coder](https://pydantic.dev/docs/ai/harness/cCODE
MEDIUM…gents-sdk-to-pydantic-ai/references/CONCEPT-MAPPING.md49Harness provides [`InputGuardrail`, `OutputGuardrail`, and `ToolGuardrail`](https://pydantic.dev/docs/ai/harness/guardraCODE
MEDIUM…gents-sdk-to-pydantic-ai/references/CONCEPT-MAPPING.md94Primary references: [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/), [agents](https://openai.github.CODE
MEDIUM…agno-to-pydantic-ai/references/RESEARCH-AND-MAPPING.md11- Pydantic AI Harness: [overview](https://pydantic.dev/docs/ai/harness/), [memory](https://pydantic.dev/docs/ai/harness/CODE
MEDIUM…chain-to-pydantic-ai/references/DEEP-AGENTS-MAPPING.md10- [Orchestration and recovery](#orchestration-and-recovery)CODE
MEDIUM…langchain-to-pydantic-ai/references/CONCEPT-MAPPING.md13- [Graphs and multi-agent systems](#graphs-and-multi-agent-systems)CODE
MEDIUM…langchain-to-pydantic-ai/references/CONCEPT-MAPPING.md174## Graphs and multi-agent systemsCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/models/wrapper.py144 # have a context window (the smallest among its candidates).COMMENT
MEDIUM…_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py118 # Harness file-tool orchestration runs workflow-side for pre-write vetoes; importing itCOMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/profiles/grok.py135 # whole conversation, so it can't measure how full the context window is.COMMENT
MEDIUMpydantic_ai_slim/pydantic_ai/profiles/anthropic.py335 # Before Claude Sonnet 4.5, Anthropic rejects a request whose input plus `max_tokens` exceeds the context window:COMMENT
MEDIUMtests/test_capability_native_or_local.py954 # First turn: hallucinate a call to the filtered tool. Even though the modelCOMMENT
MEDIUM⚡tests/evals/test_evaluator_common.py606 # An empty steps list would produce a prompt with no chain-of-thought section, defeating the method.COMMENT
MEDIUMtests/models/test_anthropic.py8085dataclass is used to pass data, connections, and logic into the model that will be needed when running[instructions](ageCODE
MEDIUMtests/models/test_anthropic.py8088[instructions](agents/#instructions)can be registered with thedecorator, and can make use of dependency injection. DepenCODE
MEDIUMtests/models/test_anthropic.py8156dataclass is used to pass data, connections, and logic into the model that will be needed when running[instructions](ageCODE
MEDIUMtests/models/test_anthropic.py8159[instructions](agents/#instructions)can be registered with thedecorator, and can make use of dependency injection. DepenCODE
MEDIUM⚡…/test_anthropic/test_anthropic_mcp_servers_stream.yaml129 data: {"type":"content_block_start","index":2,"content_block":{"type":"mcp_tool_result","tool_use_id":"mcptoolu_CODE
MEDIUM⚡…/test_anthropic/test_anthropic_mcp_servers_stream.yaml129 data: {"type":"content_block_start","index":2,"content_block":{"type":"mcp_tool_result","tool_use_id":"mcptoolu_CODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml188 dataclass is used to pass data, connections, and logic into the model that will be needed when running[iCODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml191 [instructions](agents/#instructions)can be registered with thedecorator, and can make use of dependency CODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml259 dataclass is used to pass data, connections, and logic into the model that will be needed when running[iCODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml262 [instructions](agents/#instructions)can be registered with thedecorator, and can make use of dependency CODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml540 dataclass is used to pass data, connections, and logic into the model that will be needed when runningCODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml543 [instructions](agents/#instructions)can be registered with thedecorator, and can make use of dependencCODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml611 dataclass is used to pass data, connections, and logic into the model that will be needed when runningCODE
MEDIUM…ttes/test_anthropic/test_anthropic_web_fetch_tool.yaml614 [instructions](agents/#instructions)can be registered with thedecorator, and can make use of dependencCODE
MEDIUM⚡…st_anthropic/test_anthropic_web_fetch_tool_stream.yaml117 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…st_anthropic/test_anthropic_web_fetch_tool_stream.yaml117 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…st_anthropic/test_anthropic_web_fetch_tool_stream.yaml117 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml79 data: {"type":"response.output_item.done","sequence_number":13,"output_index":2,"item":{"id":"mcp_00b9cc7a23d047CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml79 data: {"type":"response.output_item.done","sequence_number":13,"output_index":2,"item":{"id":"mcp_00b9cc7a23d047CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml619 data: {"type":"response.completed","sequence_number":193,"response":{"id":"resp_00b9cc7a23d047270068faa0e2593481CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml619 data: {"type":"response.completed","sequence_number":193,"response":{"id":"resp_00b9cc7a23d047270068faa0e2593481CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml619 data: {"type":"response.completed","sequence_number":193,"response":{"id":"resp_00b9cc7a23d047270068faa0e2593481CODE
MEDIUM⚡…est_openai_responses_model_mcp_server_tool_stream.yaml619 data: {"type":"response.completed","sequence_number":193,"response":{"id":"resp_00b9cc7a23d047270068faa0e2593481CODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml150 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml150 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml150 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml150 data: {"type":"content_block_start","index":2,"content_block":{"type":"web_fetch_tool_result","tool_use_id":"srvCODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml156 data: {"type":"content_block_start","index":3,"content_block":{"type":"code_execution_tool_result","tool_use_id"CODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml156 data: {"type":"content_block_start","index":3,"content_block":{"type":"code_execution_tool_result","tool_use_id"CODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml156 data: {"type":"content_block_start","index":3,"content_block":{"type":"code_execution_tool_result","tool_use_id"CODE
MEDIUM⚡…anthropic_supported_model_uses_20260209_web_tools.yaml156 data: {"type":"content_block_start","index":3,"content_block":{"type":"code_execution_tool_result","tool_use_id"CODE
MEDIUM⚡…calls/test_in_flight_mcp_call_history_is_accepted.yaml99 data: {"type":"content_block_start","index":0,"content_block":{"type":"mcp_tool_result","tool_use_id":"mcptoolu_CODE
MEDIUM⚡…calls/test_in_flight_mcp_call_history_is_accepted.yaml99 data: {"type":"content_block_start","index":0,"content_block":{"type":"mcp_tool_result","tool_use_id":"mcptoolu_CODE
MEDIUMtests/realtime/test_session.py11834# --- context window ----------------------------------------------------------------------------COMMENT
MEDIUMtests/harness/test_readme_quick_start.py95 'url': 'https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering/',CODE
MEDIUMtests/harness/test_readme_quick_start.py126 'url': 'https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering/',CODE
MEDIUMtests/harness/test_readme_quick_start.py377 'url': 'https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering/',STRING
MEDIUMtests/harness/test_readme_quick_start.py458 'url': 'https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering/',STRING
MEDIUMtests/harness/dynamic_workflow/test_dynamic_workflow.py523 # Model is shown only the orchestration tool, not the sub-agents directly.COMMENT
MEDIUMdocs/coding-agent-skills.md9[Agent skills](https://agentskills.io) are packages of instructions and reference material that coding agents load on deCODE
52 more matches not shown…
Excessive Try-Catch Wrapping239 hits · 250 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/_output.py201 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py216 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py319 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py405 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py491 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/run.py493 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/run.py552 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py517 except Exception as e:CODE
LOW⚡pydantic_ai_slim/pydantic_ai/_instrumentation.py499 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py271 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py335 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py338 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py727 except Exception as error:CODE
LOWpydantic_ai_slim/pydantic_ai/_genai_prices.py150 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/_display.py340 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_display.py359 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_display.py382 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_display.py455 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_spec.py234 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/_template.py30 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_model_request_attempts.py133 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_parts_manager.py449 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py442 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py1735 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py2969 except Exception:STRING
LOWpydantic_ai_slim/pydantic_ai/usage.py351 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/usage.py358 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/_utils.py743 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_event_stream.py296 except Exception as exc: # `exc` to avoid shadowing by `async for e in` belowCODE
LOWpydantic_ai_slim/pydantic_ai/ui/_event_stream.py314 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/ui/ag_ui/_utils.py125 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/embeddings/instrumented.py154 except Exception as e: # pragma: no coverCODE
LOWpydantic_ai_slim/pydantic_ai/embeddings/instrumented.py199 except Exception: # pragma: no coverCODE
LOWpydantic_ai_slim/pydantic_ai/embeddings/instrumented.py202 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/hooks.py1022 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/hooks.py1112 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/hooks.py1234 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/hooks.py1353 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/_merge.py227 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/combined.py619 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/combined.py710 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/combined.py776 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/combined.py843 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/combined.py905 except Exception: # pragma: no coverCODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/combined.py966 except Exception as new_error:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/openai_codex.py627 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/openai_codex.py651 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/openai_codex.py672 except Exception as e:CODE
LOWpydantic_ai_slim/pydantic_ai/models/decision.py1063 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/models/_continuation.py241 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/models/fallback.py262 except Exception as exc:CODE
LOWpydantic_ai_slim/pydantic_ai/models/fallback.py292 except Exception as exc:CODE
LOWpydantic_ai_slim/pydantic_ai/models/fallback.py354 except Exception as exc:CODE
LOWpydantic_ai_slim/pydantic_ai/models/fallback.py389 except Exception as exc:CODE
LOWpydantic_ai_slim/pydantic_ai/workspaces/workspace.py224 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/workspaces/workspace.py292 except Exception:CODE
LOWpydantic_ai_slim/pydantic_ai/durable_exec/_workspace.py246 except Exception as error:CODE
LOW⚡pydantic_ai_slim/pydantic_ai/durable_exec/_toolset.py65 except Exception:CODE
LOW…lim/pydantic_ai/durable_exec/temporal/_model_errors.py80 except Exception:CODE
LOW…lim/pydantic_ai/durable_exec/temporal/_model_errors.py100 except Exception:CODE
179 more matches not shown…
Over-Commented Block267 hits · 248 pts
SeverityFileLineSnippetContext
LOWpyproject.toml261 "genai-prices>=0.1.0",COMMENT
LOWpyproject.toml541 "ignore: '_UnionGenericAlias' is deprecated and slated for removal:DeprecationWarning:google.genai",COMMENT
LOWpyproject.toml561 "ignore:The `local_dir_use_symlinks` argument is deprecated and ignored:UserWarning",COMMENT
LOWpydantic_ai_slim/pyproject.toml121# `websockets` is intentionally a direct dependency here (via `realtime`) even where a providerCOMMENT
LOWpydantic_ai_slim/pyproject.toml141# EvalsCOMMENT
LOWpydantic_ai_slim/pydantic_ai/run.py361COMMENT
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py901 else:COMMENT
LOWpydantic_ai_slim/pydantic_ai/tool_manager.py1141 )COMMENT
LOWpydantic_ai_slim/pydantic_ai/tools.py281 # `use_attribute_docstrings` config: that config is pushed while the *core* schema is built and nothingCOMMENT
LOWpydantic_ai_slim/pydantic_ai/mcp.py1181COMMENT
LOWpydantic_ai_slim/pydantic_ai/mcp.py1441 # A bare protocol-level `McpError` — e.g. a JSON-RPC validation rejection returnedCOMMENT
LOWpydantic_ai_slim/pydantic_ai/_tool_execution.py441 self.tool_calls_by_kind = tool_calls_by_kindCOMMENT
LOWpydantic_ai_slim/pydantic_ai/_json_schema.py141 # Only a `$defs` name can stay a `$ref` once the schema around it is inlined.COMMENT
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py1521 except exceptions.ModelRetry:COMMENT
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py1961 # two ways so `_first_new_message_index` can exclude it however capabilities/processorsCOMMENT
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py2421 if not tool_calls:COMMENT
LOWpydantic_ai_slim/pydantic_ai/_agent_graph.py2521COMMENT
LOWpydantic_ai_slim/pydantic_ai/ui/_event_stream.py321 # Close any pending tool calls before emitting the error,COMMENT
LOW…ntic_ai_slim/pydantic_ai/ui/vercel_ai/_event_stream.py341 part = event.partCOMMENT
LOW…ntic_ai_slim/pydantic_ai/ui/vercel_ai/_event_stream.py441 # `UnexpectedModelBehavior` with no prior `final_result`). The base class thenCOMMENT
LOWpydantic_ai_slim/pydantic_ai/ui/_web/api.py21COMMENT
LOWpydantic_ai_slim/pydantic_ai/capabilities/abstract.py1541 # Stable, so duplicates the application order does not distinguish keep their tree order.COMMENT
LOW…c_ai_slim/pydantic_ai/capabilities/image_generation.py441 if isinstance(self.fallback_image_model, str) and ':' not in self.fallback_image_model:COMMENT
LOW…antic_ai_slim/pydantic_ai/capabilities/_tool_search.py161 def get_ordering(self) -> CapabilityOrdering:COMMENT
LOW…antic_ai_slim/pydantic_ai/capabilities/_tool_search.py181 # Assumes no local implementation of bm25/regex exists — if we ever port eitherCOMMENT
LOWpydantic_ai_slim/pydantic_ai/capabilities/mcp.py81 self.url = urlCOMMENT
LOW…_slim/pydantic_ai/capabilities/process_event_stream.py121 # it can legitimately be resumed elsewhere (a `StreamedRunResult` consumed in another task,COMMENT
LOW…ydantic_ai/capabilities/_deferred_capability_loader.py41 # Deliberately lists EVERY deferred capability on every turn, including ones the modelCOMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/moonshotai.py61 return self._clientCOMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/mistral.py21# Models with adjustable reasoning via `reasoning_effort` (opt-in, unlike always-on `magistral`):COMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/vllm.py101 )COMMENT
LOW…dantic_ai_slim/pydantic_ai/providers/github_copilot.py81 overlay = OpenAIModelProfile(COMMENT
LOW…dantic_ai_slim/pydantic_ai/providers/github_copilot.py101 # probes found they emit none: `gpt-5.4` and `kimi-k3` answer with `content`/`padding`/`role`COMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/openai.py61 # OpenAI-compatible endpoints (Azure, OpenRouter, vLLM, ...) that speak the Responses API withoutCOMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/openai.py81 if profile.get('openai_supports_prompt_cache_breakpoints')COMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/deepseek.py61 # passed back in every subsequent request. See https://api-docs.deepseek.com/guides/thinking_mode.COMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/anthropic.py101 def model_profile(model_name: str) -> ModelProfile | None:COMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/bedrock.py41 'Please install the `boto3` package to use the Bedrock provider, 'COMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py721 self._root_capability = CombinedCapability(capabilities)COMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py1821 _set_run_context_instrumentation(COMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py3261 # Prepend `Instrumentation` (outermost, so its spans wrap everything) unless the user alreadyCOMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py3281 # there to count before binding. It was never bound either, since `for_run` is all it gets.COMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py3641 # `RealtimeSession`; run-lifecycle hooks have no per-exchange boundary on which to build them.COMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py3881 # local tool when the native tool IS supported, and raise the shared `UserError` (suggestingCOMMENT
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py4401 # unchanged would make `RunCancelled.all_messages()` (and a resume from it) silentlyCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/__init__.py1021 # `None` means "no definitions to validate against, render as recorded": the bareCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/__init__.py1041 #COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/__init__.py1361 except ModelAPIError as e:COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/__init__.py2821 transformed: list[ModelMessage] = []COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/openai.py2981 model_request_parameters: ModelRequestParameters,COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/openai.py3621 ) -> tuple[str | None, list[ModelMessage]]:COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/openai.py5121 if maybe_event is not None: # pragma: no branchCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/anthropic.py321)COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/anthropic.py1681 # real tokens. This undercounts the prompt by the server tools' definitions, but it's theCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/anthropic.py2241 # Reading the deferred tools rather than the presence of a `ToolSearchTool` is deliberate:COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/anthropic.py2261 # name still lives in history; it just isn't worth replaying as a tool reference.COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/anthropic.py2301 # response. Rendering an interleaved entry after sibling user content isCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/anthropic.py2321 self._add_cache_control_to_last_param(COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/_continuation.py421 f'{self.max_generation_continuations} times'COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/_continuation.py641 connection) open until garbage collection.COMMENT
207 more matches not shown…
Modern Structural Boilerplate194 hits · 193 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/retries.py62__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/_instrumentation.py696def set_error_status(span: Span, error: BaseException, *, include_content: bool) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_event_registry.py103def set_replay_isolation_guard(guard: Callable[[], bool]) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py22__all__ = ['safe_download']CODE
LOWpydantic_ai_slim/pydantic_ai/mcp.py1150 def set_sampling_model(self, model: models.Model) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/template.py13__all__ = ['TemplateStr']CODE
LOWpydantic_ai_slim/pydantic_ai/_utils.py926def _update_mapped_json_schema_refs(s: dict[str, Any], name_mapping: dict[str, str]) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_adapter.py53__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/ui/__init__.py12__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_utils.py13def set_ui_message_id(message: ModelMessage, ui_message_id: str) -> None:CODE
LOW…ntic_ai_slim/pydantic_ai/ui/vercel_ai/_event_stream.py87__all__ = ['VercelAIEventStream']CODE
LOWpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py118__all__ = ['VercelAIAdapter']CODE
LOWpydantic_ai_slim/pydantic_ai/ui/vercel_ai/__init__.py13__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_utils.py45__all__ = []CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_web/__init__.py6__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/ui/ag_ui/_interrupt.py63__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/ui/ag_ui/_event_stream.py85__all__ = [CODE
LOW…dantic_ai_slim/pydantic_ai/ui/ag_ui/_forward_compat.py29__all__ = ['skip_unknown_tagged_items']CODE
LOWpydantic_ai_slim/pydantic_ai/ui/ag_ui/_adapter.py157__all__ = ['AGUIAdapter']CODE
LOWpydantic_ai_slim/pydantic_ai/ui/ag_ui/__init__.py7__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/embeddings/__init__.py22__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/__init__.py106__all__ = [CODE
LOW…antic_ai_slim/pydantic_ai/native_tools/_tool_search.py34__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/images/__init__.py26__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/providers/gateway.py296def _set_google_ws_gateway_auth(client: GoogleClient, api_key: str) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/mistral.py123 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/openai_codex.py578 def _set_http_client(self, http_client: _OpenAIHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/sambanova.py27__all__ = ['SambaNovaProvider']CODE
LOW…dantic_ai_slim/pydantic_ai/providers/bedrock_mantle.py222 def _set_http_client(self, http_client: _OpenAIHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/__init__.py107 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/google.py94 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/system_one.py74 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOW…ic_ai_slim/pydantic_ai/providers/_openai_compatible.py54 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/typesafe.py92 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/groq.py154 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/anthropic.py198 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/github.py144 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/providers/cohere.py91 def _set_http_client(self, http_client: AsyncHTTPClient) -> None:CODE
LOW⚡pydantic_ai_slim/pydantic_ai/agent/__init__.py4657def _set_run_context_instrumentation(ctx: RunContext[Any], settings: InstrumentationSettings | None) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py4215 def set_mcp_sampling_model(self, model: models.Model | models.KnownModelName | str | None = None) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py4233 def _set_sampling_model(toolset: AbstractToolset[AgentDepsT]) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/agent/spec.py25__all__ = ['CapabilitySpec'] # re-exported from _specCODE
LOWpydantic_ai_slim/pydantic_ai/models/wrapper.py27__all__ = ['WrapperModel']CODE
LOWpydantic_ai_slim/pydantic_ai/models/openai.py4756 def _set_state(self, status: ResponseStatus | None) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/models/xai.py1013 def _update_response_state(self, response: chat_types.Response) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/models/_continuation.py51__all__ = [CODE
LOWpydantic_ai_slim/pydantic_ai/models/fallback.py517 def _set_span_attributes(self, model: Model, model_request_parameters: ModelRequestParameters) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/durable_exec/__init__.py43__all__ = [CODE
LOW⚡…slim/pydantic_ai/durable_exec/_capability_operation.py184def set_durable_operation_marker(obj: object, marker: Marker) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/durable_exec/_utils.py28__all__ = [CODE
LOW…lim/pydantic_ai/durable_exec/temporal/_event_stream.py31__all__ = [CODE
LOW…_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py47__all__ = [CODE
LOW…ic_ai_slim/pydantic_ai/durable_exec/temporal/_model.py45__all__ = [CODE
LOW…ntic_ai_slim/pydantic_ai/durable_exec/dbos/__init__.py17__all__ = ['DBOSAgent', 'DBOSDurability', 'DBOSModel', 'DBOSOperationNamer', 'DBOSParallelExecutionMode', 'StepConfig']CODE
LOW…c_ai_slim/pydantic_ai/durable_exec/prefect/__init__.py18__all__ = [CODE
LOW…antic_ai_slim/pydantic_ai/realtime/_instrumentation.py359 def set_output_type(self, output_type: Literal['speech', 'text']) -> None:CODE
LOW…antic_ai_slim/pydantic_ai/realtime/_instrumentation.py369 def set_conversation_id(self, conversation_id: str) -> None:CODE
LOW⚡pydantic_ai_slim/pydantic_ai/realtime/openai_live.py708 def set_message_history(self, message_history: Callable[[], Sequence[ModelMessage]]) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/realtime/openai_live.py1439 def _settle_delegation(self, delegation: _Delegation, *, gave_up: bool) -> None:CODE
LOWpydantic_ai_slim/pydantic_ai/realtime/_session.py4218 def _settle_deferred_response(self) -> None:CODE
134 more matches not shown…
AI Structural Patterns193 hits · 159 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/tools.py360CODE
LOWpydantic_ai_slim/pydantic_ai/mcp.py881CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_adapter.py591CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_adapter.py704CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_adapter.py780CODE
LOWpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py189CODE
LOWpydantic_ai_slim/pydantic_ai/ui/vercel_ai/_adapter.py223CODE
LOWpydantic_ai_slim/pydantic_ai/ui/_web/app.py165CODE
LOW…c_ai_slim/pydantic_ai/capabilities/image_generation.py328CODE
LOW…c_ai_slim/pydantic_ai/capabilities/image_generation.py612CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/hooks.py795CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/web_fetch.py50CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/capability.py177CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/capability.py198CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/capability.py247CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/capability.py268CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/mcp.py54CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/mcp.py226CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/web_search.py58CODE
LOWpydantic_ai_slim/pydantic_ai/capabilities/x_search.py92CODE
LOWpydantic_ai_slim/pydantic_ai/providers/google_cloud.py29CODE
LOW…dantic_ai_slim/pydantic_ai/providers/bedrock_mantle.py130CODE
LOW…dantic_ai_slim/pydantic_ai/providers/bedrock_mantle.py143CODE
LOWpydantic_ai_slim/pydantic_ai/providers/azure.py228CODE
LOWpydantic_ai_slim/pydantic_ai/providers/bedrock.py632CODE
LOWpydantic_ai_slim/pydantic_ai/providers/bedrock.py645CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py477CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py505CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py532CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py684CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py712CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py739CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py855CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py883CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py911CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1185CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1212CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1238CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1369CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1396CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1422CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1558CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1585CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1613CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1744CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1787CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1904CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py1940CODE
LOWpydantic_ai_slim/pydantic_ai/agent/abstract.py2241CODE
LOWpydantic_ai_slim/pydantic_ai/agent/wrapper.py145CODE
LOWpydantic_ai_slim/pydantic_ai/agent/wrapper.py172CODE
LOWpydantic_ai_slim/pydantic_ai/agent/wrapper.py199CODE
LOWpydantic_ai_slim/pydantic_ai/agent/wrapper.py350CODE
LOWpydantic_ai_slim/pydantic_ai/agent/wrapper.py393CODE
LOWpydantic_ai_slim/pydantic_ai/agent/wrapper.py444CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py569CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py593CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py616CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py886CODE
LOWpydantic_ai_slim/pydantic_ai/agent/__init__.py912CODE
133 more matches not shown…
Dead Code86 hits · 150 pts
SeverityFileLineSnippetContext
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py646CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py655CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py664CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py677CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py685CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py693CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py701CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py711CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py720CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py730CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py740CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py749CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py761CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py770CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py779CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py788CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py797CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py806CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py815CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py824CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py833CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py842CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py854CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py863CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py872CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py884CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py893CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py902CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py914CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py927CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py942CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py954CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/_event_stream.py963CODE
MEDIUM…ntic_ai_slim/pydantic_ai/ui/vercel_ai/_event_stream.py177CODE
MEDIUM…ntic_ai_slim/pydantic_ai/ui/vercel_ai/_event_stream.py316CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/ag_ui/_event_stream.py211CODE
MEDIUMpydantic_ai_slim/pydantic_ai/ui/ag_ui/_event_stream.py270CODE
MEDIUMpydantic_ai_slim/pydantic_ai/agent/abstract.py1740CODE
MEDIUMpydantic_ai_slim/pydantic_ai/agent/abstract.py1785CODE
MEDIUMpydantic_ai_slim/pydantic_ai/agent/abstract.py1929CODE
MEDIUMpydantic_ai_slim/pydantic_ai/agent/abstract.py1968CODE
MEDIUMpydantic_ai_slim/pydantic_ai/models/__init__.py776CODE
MEDIUMpydantic_ai_slim/pydantic_ai/models/__init__.py1443CODE
MEDIUMpydantic_ai_slim/pydantic_ai/models/mcp_sampling.py86CODE
MEDIUM…dantic_ai_slim/pydantic_ai/durable_exec/dbos/_agent.py1037CODE
MEDIUMpydantic_ai_slim/pydantic_ai/realtime/codec.py532CODE
MEDIUMtests/test_ui.py989CODE
MEDIUMtests/test_ui.py993CODE
MEDIUMtests/test_ui.py997CODE
MEDIUMtests/test_ui.py1001CODE
MEDIUMtests/test_ui.py1005CODE
MEDIUMtests/test_ui.py1012CODE
MEDIUMtests/test_ui.py1016CODE
MEDIUMtests/test_ui.py1180CODE
MEDIUMtests/test_capability_hooks.py460CODE
MEDIUMtests/test_ag_ui.py554CODE
MEDIUMtests/graph/builder/test_graph_execution.py709CODE
MEDIUMtests/graph/builder/test_graph_iteration.py638CODE
MEDIUMtests/models/test_continuation_stream.py664CODE
MEDIUMtests/models/test_continuation_stream.py1089CODE
26 more matches not shown…
Fake / Example Data106 hits · 117 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/output.py408 #> {'name': 'John Doe', 'age': 30}STRING
LOWtests/test_agent.py289 {'name': 'John Doe'},CODE
LOWtests/test_agent.py302 Person(name='John Doe'),CODE
LOWtests/test_agent.py2420 args_json = '{"name": "John Doe", "age": 30}'STRING
LOWtests/test_agent.py2430 assert result.output == snapshot({'name': 'John Doe', 'age': 30})STRING
LOWtests/import_examples.py10os.environ.update(OPENAI_API_KEY='fake-key', GEMINI_API_KEY='fake-key', GROQ_API_KEY='fake-key')CODE
LOWtests/test_examples.py881 args={'response': ['Matching client:', {'id': 1234, 'name': 'Jane Doe'}]},CODE
LOWtests/test_examples.py991 args={'name': 'John Doe', 'age': 30},CODE
LOWtests/test_examples.py1607 tool_name='get_user_by_name', args={'name': 'John Doe'}, tool_call_id='pyd_ai_tool_call_id'CODE
LOW⚡tests/models/test_anthropic.py3487- Content source: Wikipedia article on "John Doe"CODE
LOWtests/models/test_anthropic.py3467The document explains the use of **placeholder names like "John Doe" and "Jane Doe"** in legal and everyday contexts.CODE
LOWtests/models/test_anthropic.py3467The document explains the use of **placeholder names like "John Doe" and "Jane Doe"** in legal and everyday contexts.CODE
LOW⚡tests/models/test_anthropic.py34402. **Body text**: Multiple paragraphs of **Lorem Ipsum** placeholder text - this is dummy text commonly used in design aSTRING
LOW⚡tests/models/test_anthropic.py3447The Lorem Ipsum text itself has no actual meaning - it's derived from Latin but is intentionally scrambled to serve as nSTRING
LOWtests/models/test_bedrock.py1771An example text describing the use of "John Doe" as a placeholder name in legal cases, hospitals, and other contexts wheSTRING
LOWtests/models/test_bedrock.py1771An example text describing the use of "John Doe" as a placeholder name in legal cases, hospitals, and other contexts wheSTRING
LOW⚡tests/models/test_google.py892 'The main content of the TXT file is an explanation of the placeholder name "John Doe" (and related variations) STRING
LOW⚡tests/models/test_openai_responses.py1279 'The main content of this document is an example of a TXT file type, with an explanation of the use of placeholdSTRING
LOW⚡tests/models/test_openai_responses.py1279 'The main content of this document is an example of a TXT file type, with an explanation of the use of placeholdSTRING
LOW⚡…_google/test_google_model_text_document_url_input.yaml25 The names "John Doe" for males, "Jane Doe" or "Jane Roe" for females, or "Jonnie Doe" and "Janie Doe" for childrCODE
LOW⚡…_google/test_google_model_text_document_url_input.yaml25 The names "John Doe" for males, "Jane Doe" or "Jane Roe" for females, or "Jonnie Doe" and "Janie Doe" for childrCODE
LOW⚡…_google/test_google_model_text_document_url_input.yaml29 Similarly, a child or baby whose identity is unknown may be referred to as Baby Doe. A notorious murder case in CODE
LOW…_google/test_google_model_text_document_url_input.yaml115 The main content of the TXT file is an explanation of the placeholder name "John Doe" (and related variatiCODE
LOW⚡…ettes/test_anthropic/test_text_document_url_input.yaml49 The names "John Doe" for males, "Jane Doe" or "Jane Roe" for females, or "Jonnie Doe" and "Janie Doe" for childrCODE
LOW⚡…ettes/test_anthropic/test_text_document_url_input.yaml49 The names "John Doe" for males, "Jane Doe" or "Jane Roe" for females, or "Jonnie Doe" and "Janie Doe" for childrCODE
LOW⚡…ettes/test_anthropic/test_text_document_url_input.yaml53 Similarly, a child or baby whose identity is unknown may be referred to as Baby Doe. A notorious murder case in CODE
LOW⚡…ettes/test_anthropic/test_text_document_url_input.yaml98 The names "John Doe" for males, "Jane Doe" or "Jane Roe" for females, or "Jonnie Doe" and "Janie Doe" foCODE
LOW⚡…ettes/test_anthropic/test_text_document_url_input.yaml98 The names "John Doe" for males, "Jane Doe" or "Jane Roe" for females, or "Jonnie Doe" and "Janie Doe" foCODE
LOW⚡…ettes/test_anthropic/test_text_document_url_input.yaml102 Similarly, a child or baby whose identity is unknown may be referred to as Baby Doe. A notorious murder CODE
LOW…ettes/test_anthropic/test_text_document_url_input.yaml206 data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"placeholder"} }CODE
LOW…direct-url_force_download-document-google_vertex].yaml656 The content of the document consists of several paragraphs of **Lorem Ipsum** placeholder text. The layoutCODE
LOW…_matrix[tool_return_content-url-document-mistral].yaml164 3. **Placeholder Text**: The majority of the document consists of **Lorem Ipsum** text, which is commonly usCODE
LOW…ix[tool_return_content-url-document-bedrock_nova].yaml461 of **multiple paragraphs** filled with **Lorem Ipsum placeholder text**. Lorem Ipsum is commonly used as dCODE
LOW…ix[tool_return_content-url-document-bedrock_nova].yaml463 appears to be **standard Lorem Ipsum**, which is typically a scrambled version of sections from \"De FinibCODE
LOW…ix[tool_return_content-url-document-bedrock_nova].yaml475 PDF\"**. It contains **Lorem Ipsum placeholder text** organized into multiple paragraphs. The document is CODE
LOW…ool_return_content-url-document-openai_responses].yaml226 I retrieved a PDF file (labelled in the text as "Sample PDF"). Its extracted text contains a short header liCODE
LOW…ect-url_force_download-document-openai_responses].yaml600 - Content: about a dozen paragraphs of placeholder-style text (a mix of typical "Lorem ipsum" filler and EngCODE
LOW…ix[direct-url_force_download-document-google_2_5].yaml521 simple PDF file. Fun fun fun." The content of the document is placeholder "Lorem Ipsum" text, divided intoCODE
LOW…x[tool_return_content-url-document-google_vertex].yaml297 * **Body Text:** The document contains four paragraphs of "Lorem ipsum" text, which is standard Latin plCOMMENT
LOW…ool_return_matrix[direct-url-document-google_2_5].yaml521 document contains several paragraphs of "Lorem ipsum" placeholder text.CODE
LOW…_matrix[tool_return_content-url-document-xai].xai.yaml121 followed by several paragraphs of standard Lorem Ipsum placeholder textCODE
LOW…atrix[tool_return_content-url-document-anthropic].yaml319 data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Lorem Ipsum) that discuss"} CODE
LOW…atrix[tool_return_content-url-document-anthropic].yaml343 data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" ipsum dolor sit amet, consecCODE
LOW…atrix[tool_return_content-url-document-anthropic].yaml424 data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" of Lorem Ipsum text"} CODE
LOW…rix[tool_return_content-url-document-openai_chat].yaml552 - Title/first lines (from page 1): "Sample PDF" followed by "This is a simple PDF file. Fun fun fun." and thCODE
LOW…rix[tool_return_content-url-document-openai_chat].yaml553 - Content summary: the page is a sample/placeholder document made up of multiple paragraphs of lorem ipsum aCODE
LOW…rn_content-url_force_download-document-anthropic].yaml413 data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" ipsum dolor sit amet, consecCODE
LOW⚡…irect-url_force_download-document-google_gemini3].yaml652 of **\"Lorem ipsum\"** placeholder text, commonly used in publishing and graphic design to demonstrate theCODE
LOW⚡…irect-url_force_download-document-google_gemini3].yaml655 *\"Lorem ipsum dolor sit amet...\"*\n* **Format:** A standard text document layout with clean margins anCOMMENT
LOW⚡…irect-url_force_download-document-google_gemini3].yaml655 *\"Lorem ipsum dolor sit amet...\"*\n* **Format:** A standard text document layout with clean margins anCOMMENT
LOW…ent-url_force_download-document-openai_responses].yaml599 I retrieved a PDF file titled "Sample PDF." It contains only plain text (no images or special formatting) --CODE
LOW…return_matrix[direct-url-document-google_gemini3].yaml662 * **Body Text:** The document contains four paragraphs of "Lorem Ipsum" placeholder text. This is standaCOMMENT
LOW…l_tool_return_matrix[direct-url-document-xai].xai.yaml159 \ PDF file. Fun fun fun.\" followed by extensive Lorem ipsum dummy text\CODE
LOW…l_tool_return_matrix[direct-url-document-xai].xai.yaml163 \ not substantive or meaningful—purely sample/lorem ipsum filler spanning\CODE
LOW…ontent-url_force_download-document-google_vertex].yaml657 contains four paragraphs of \"Lorem ipsum\" placeholder text. \n* **Layout:** It features a clean, minimCODE
LOW⚡…atrix[direct-url_force_download-document-xai].xai.yaml181 \ consists of standard **Lorem Ipsum** placeholder text (dummy Latin-like\CODE
LOW⚡…atrix[direct-url_force_download-document-xai].xai.yaml185 \ phrases like:\n - \"Lorem ipsum dolor sit amet, consectetuer adipiscing\CODE
LOW⚡…atrix[direct-url_force_download-document-xai].xai.yaml185 \ phrases like:\n - \"Lorem ipsum dolor sit amet, consectetuer adipiscing\CODE
LOW⚡…ntent-url_force_download-document-bedrock_claude].yaml473 - The main body consists of Lorem Ipsum text, which is commonly used placeholder text in publishing and deCODE
LOW⚡…ntent-url_force_download-document-bedrock_claude].yaml475 - The text is formatted in multiple paragraphs containing standard Lorem Ipsum passagesCODE
46 more matches not shown…
Redundant / Tautological Comments35 hits · 54 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py454 # Check if hostname is already an IP addressCOMMENT
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py499 # Check if it's an absolute URL (has scheme) or protocol-relative URL (has netloc but no scheme)COMMENT
LOWpydantic_ai_slim/pydantic_ai/_ssrf.py754 # Check if we need to follow a redirectCOMMENT
LOWpydantic_ai_slim/pydantic_ai/function_signature.py730 # Check if this is object with properties + nullCOMMENT
LOWpydantic_ai_slim/pydantic_ai/mcp.py1963 # Check if variable exists in environmentCOMMENT
LOWpydantic_ai_slim/pydantic_ai/providers/litellm.py72 # Check if model name contains a provider prefix (e.g., "anthropic/claude-3")COMMENT
LOWpydantic_ai_slim/pydantic_ai/models/__init__.py936 # Check if output mode is supportedCOMMENT
LOWpydantic_ai_slim/pydantic_ai/models/openai.py1879 # Check if thinking came from a custom field from the same providerCOMMENT
LOW…ic_ai_slim/pydantic_ai/durable_exec/temporal/_model.py314 # Check if this model instance is already registeredCOMMENT
LOW…tic_ai_slim/pydantic_ai/durable_exec/prefect/_model.py134 # Check if we're in a flow contextCOMMENT
LOWpydantic_ai_slim/pydantic_ai/_cli/__init__.py206 # Check if this is a web command - route to web parser if soCOMMENT
LOWpydantic_ai_slim/pydantic_ai/profiles/openai.py443 # Check if the model supports web search (only specific search-preview models)COMMENT
LOWtests/capability_models.py68 # Check if there's already a tool return in messages (i.e., tool was called)COMMENT
LOWtests/test_capability_hooks.py3990 # Check if we already got a tool return (second call succeeded)COMMENT
LOWtests/test_uuid.py48 # Set counter to max so the next same-ms call overflowsCOMMENT
LOWtests/evals/test_evaluators.py229 # Check if the answer is correct based on expected outputCOMMENT
LOWtests/evals/test_llm_as_a_judge.py479 # Check if 'model' kwarg is passed, its value will be the default model or NoneCOMMENT
LOWtests/evals/test_llm_as_a_judge.py598 # Check if 'model' kwarg is passed, its value will be the default model or NoneCOMMENT
LOWtests/evals/test_llm_as_a_judge.py706 # Check if 'model' kwarg is passed, its value will be the default model or NoneCOMMENT
LOWtests/evals/test_llm_as_a_judge.py742 # Check if 'model' kwarg is passed, its value will be the default model or NoneCOMMENT
LOWtests/evals/test_llm_as_a_judge.py862 # Check if 'model' kwarg is passed, its value will be the default model or NoneCOMMENT
LOWtests/evals/test_llm_as_a_judge.py893 # Check if 'model' kwarg is passed, its value will be the default model or NoneCOMMENT
LOWtests/graph/builder/test_graph_iteration.py453 # Check if we're about to execute step2COMMENT
LOWtests/models/test_openai.py6306 # Set profile to use URI encodingCOMMENT
LOWtests/models/test_openai.py6362 # Set profile to use URI encodingCOMMENT
LOWtests/durable_exec/temporal/test_durability.py451 # Check if we already have a tool resultCOMMENT
LOWpydantic_evals/pydantic_evals/evaluators/evaluator.py93 # Check if value matches any of the target types, handling bool as a special caseCOMMENT
LOW.github/workflows/pr-guard.yml383 # Check if the existing PR has the Stale labelCOMMENT
LOW⚡pydantic_graph/pydantic_graph/graph_builder.py770 # Check if this join has any intermediate joins that are also active reducersCOMMENT
LOW⚡pydantic_graph/pydantic_graph/graph_builder.py778 # Check if the intermediate join is also an active reducer with matching fork runCOMMENT
LOW⚡pydantic_graph/pydantic_graph/graph_builder.py781 # Check if they share the same fork run for this join's parent forkCOMMENT
LOWpydantic_graph/pydantic_graph/graph_builder.py229 # Check if this join appears in any other join's intermediate_join_nodesCOMMENT
LOWpydantic_graph/pydantic_graph/graph_builder.py1089 # Check if any of the tasks in the graph have this fork_run_id in their fork_stackCOMMENT
LOWpydantic_graph/pydantic_graph/graph_builder.py1819 # Check if this node has any outgoing edgesCOMMENT
LOWpydantic_graph/pydantic_graph/graph_builder.py2054 # Check if this intermediate node is also a joinCOMMENT
Overly Generic Function Names49 hits · 32 pts
SeverityFileLineSnippetContext
LOWpydantic_ai_slim/pydantic_ai/retries.py195 def handle_request(self, request: httpx2.Request) -> httpx2.Response:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py210 def handle_request(req: httpx2.Request) -> httpx2.Response:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py381 def handle_request(self, request: Request) -> Response:CODE
LOWpydantic_ai_slim/pydantic_ai/retries.py396 def handle_request(req: Request) -> Response:CODE
LOWtests/test_images.py797 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py987 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1046 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1080 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1112 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1162 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1209 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1264 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1360 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1454 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1602 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1642 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1679 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1709 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1750 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1779 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1809 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py1901 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py2023 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py3932 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py4036 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py4247 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_images.py4315 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_ui.py2456 def do_something(x: int) -> int:CODE
LOW⚡tests/test_ssrf.py1138 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOW⚡tests/test_ssrf.py1156 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_ssrf.py745 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_ssrf.py833 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_ssrf.py995 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/test_ssrf.py1194 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/typed_agent.py354 def my_method(self) -> bool:CODE
LOW⚡tests/test_tools.py4976 def do_stuff(x: int) -> None:CODE
LOW⚡tests/test_tools.py4986 def do_stuff(x: int):CODE
LOWtests/test_mcp.py339 async def handle_request(request: Any) -> Any:CODE
LOWtests/test_mcp.py362 async def handle_request(request: Any) -> Any:CODE
LOWtests/graph/builder/test_util.py35 def my_function():CODE
LOWtests/models/test_download_item.py64 def handle_request(request: httpx2.Request) -> httpx2.Response:CODE
LOWtests/models/test_xai.py1028 async def process_data(data: str) -> str:CODE
LOWtests/harness/dynamic_workflow/test_dynamic_workflow.py870 def helper() -> str:CODE
LOWtests/harness/dynamic_workflow/test_dynamic_workflow.py892 def helper() -> str:CODE
LOWtests/harness/code_mode/test_speculation.py620 skip_shapes = 'def helper():\n return search(query="never")\nfn = lambda: search(query="never")\n'CODE
LOWtests/harness/code_mode/test_speculation.py737 'def helper():\n return search(query="inner")\n'CODE
LOWpydantic_evals/pydantic_evals/online.py22async def my_function(x: int) -> int:STRING
LOWpydantic_evals/pydantic_evals/online.py890 async def my_function(x: int) -> int:STRING
LOWpydantic_evals/pydantic_evals/_task_run.py37def run_task() -> Generator[Callable[[], dict[str, Any]]]:CODE
Structural Annotation Overuse11 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡pydantic_ai_slim/pydantic_ai/models/__init__.py1174 # Step 3: fill `context_window` from genai-prices when no provider or partial user layer set it.COMMENT
LOW⚡pydantic_ai_slim/pydantic_ai/models/__init__.py1184 # Step 4: user overrideCOMMENT
LOW⚡pydantic_ai_slim/pydantic_ai/models/__init__.py1197 # Step 5: native tools intersection — profile's allowed tools & model's implemented toolsCOMMENT
LOW⚡tests/test_toolsets.py525 # Step 1: Prefix each FunctionToolset individuallyCOMMENT
LOW⚡tests/test_toolsets.py530 # Step 2: Combine the prefixed toolsetsCOMMENT
LOW⚡tests/test_toolsets.py533 # Step 3: Filter tools based on user role and advanced flag, now using prefixed namesCOMMENT
LOW⚡tests/test_toolsets.py545 # Step 4: Apply prepared toolset to modify descriptions (add user role annotation)COMMENT
LOW⚡tests/test_toolsets.py553 # Step 5: Test the fully composed toolsetCOMMENT
LOW.claude/skills/testing-skill/SKILL.md25### Step 1: Record cassettesCOMMENT
LOW.claude/skills/testing-skill/SKILL.md36### Step 2: Verify recordingsCOMMENT
LOW.claude/skills/testing-skill/SKILL.md43### Step 3: Review snapshotsCOMMENT
Verbosity Indicators8 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡pydantic_ai_slim/pydantic_ai/models/__init__.py1174 # Step 3: fill `context_window` from genai-prices when no provider or partial user layer set it.COMMENT
LOW⚡pydantic_ai_slim/pydantic_ai/models/__init__.py1184 # Step 4: user overrideCOMMENT
LOW⚡pydantic_ai_slim/pydantic_ai/models/__init__.py1197 # Step 5: native tools intersection — profile's allowed tools & model's implemented toolsCOMMENT
LOW⚡tests/test_toolsets.py525 # Step 1: Prefix each FunctionToolset individuallyCOMMENT
LOW⚡tests/test_toolsets.py530 # Step 2: Combine the prefixed toolsetsCOMMENT
LOW⚡tests/test_toolsets.py533 # Step 3: Filter tools based on user role and advanced flag, now using prefixed namesCOMMENT
LOW⚡tests/test_toolsets.py545 # Step 4: Apply prepared toolset to modify descriptions (add user role annotation)COMMENT
LOW⚡tests/test_toolsets.py553 # Step 5: Test the fully composed toolsetCOMMENT
Slop Phrases6 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMtests/typed_deps.py39# Ensure that you can use tools with deps that are supertypes of the agent's depsCOMMENT
MEDIUMtests/models/test_groq.py861It's worth noting that the weather in San Francisco can be quite variable, and the temperature can drop significantly atCODE
MEDIUMtests/models/test_groq.py1104It's worth noting that the weather in San Francisco can be quite variable, and the temperature can drop significantly atCODE
MEDIUM…_matrix[tool_return_content-url-document-xai].xai.yaml125 The content appears to be purely for demonstration purposes and lacksCODE
MEDIUM…turn_content-url_force_download-document-mistral].yaml539 This PDF appears to be a template or test file, likely used for demonstration purposes.CODE
MEDIUM…ssettes/test_groq/test_groq_model_web_search_tool.yaml52 it is not expected to significantly impact San Francisco.\n\nIt's worth noting that the weather in San FrancCODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpydantic_evals/pydantic_evals/dataset.py1185 # However, I've added this because it affects the details of the otel span, and passing `escaped=True`COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/pydantic_ai_harness/scripts/run-mutmut.sh11# Usage:COMMENT