⚙️🦀 Build modular and scalable LLM Applications in Rust
This report presents the forensic synthetic code analysis of 0xPlaygrounds/rig, a Rust project with 7,922 GitHub stars. SynthScan v2.0 examined 253,011 lines of code across 1376 source files, recording 617 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 3.3 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 617 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/rig-gemini-grpc/src/lib.rs | 1 | //! Google Gemini gRPC API client and Rig integration | COMMENT |
| LOW | crates/rig-mongodb/src/lib.rs | 81 | /// struct WordDefinition { | COMMENT |
| LOW | crates/rig-mongodb/src/lib.rs | 101 | /// | COMMENT |
| LOW | …tes/rig-neo4j/examples/vector_search_movies_consume.rs | 1 | //! This example demonstrates how to perform a vector search on a Neo4j database. | COMMENT |
| LOW | crates/rig-neo4j/src/lib.rs | 1 | //! A Rig vector store for Neo4j. | COMMENT |
| LOW | crates/rig-neo4j/src/lib.rs | 21 | //! The [Neo4jVectorStoreIndex](Neo4jVectorIndex) struct is designed to work with a pre-existing | COMMENT |
| LOW | crates/rig-neo4j/src/lib.rs | 41 | //! More examples can be found in the [/examples](https://github.com/0xPlaygrounds/rig/tree/main/crates/rig-neo4j/exampl | COMMENT |
| LOW | crates/rig-neo4j/src/lib.rs | 61 | //! let client = Neo4jClient::from_config( | COMMENT |
| LOW | crates/rig-derive/src/lib.rs | 41 | //<https://doc.rust-lang.org/reference/procedural-macros.html> | COMMENT |
| LOW | crates/rig-derive/src/lib.rs | 341 | /// A procedural macro that transforms a function into a `rig::tool::Tool` that can be used with a `rig::agent::Agent`. | COMMENT |
| LOW | crates/rig-derive/src/lib.rs | 361 | /// match operation.as_str() { | COMMENT |
| LOW | crates/rig-derive/src/lib.rs | 381 | /// } | COMMENT |
| LOW | crates/rig-fastembed/src/lib.rs | 1 | //! Local embedding model integration backed by `fastembed`. | COMMENT |
| LOW | crates/rig-fastembed/src/lib.rs | 61 | } | COMMENT |
| LOW | crates/rig-fastembed/src/lib.rs | 101 | /// // Initialize the Fastembed client | COMMENT |
| LOW | crates/rig-core/src/extractor.rs | 1 | //! This module provides high-level abstractions for extracting structured data from text using LLMs. | COMMENT |
| LOW | crates/rig-core/src/extractor.rs | 101 | /// | COMMENT |
| LOW | crates/rig-core/src/extractor.rs | 121 | /// The number of retries is determined by the `retries` field on the Extractor struct. | COMMENT |
| LOW | crates/rig-core/src/extractor.rs | 141 | /// if the model does not call the `submit` tool. | COMMENT |
| LOW | crates/rig-core/src/id.rs | 1 | //! Lightweight generation of short, unique, URL-safe identifiers. | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 1 | #![cfg_attr(docsrs, feature(doc_cfg))] | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 21 | //! - Full support for LLM completion and embedding workflows | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 41 | //! // Prompt the model and print its response | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 61 | //! | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 81 | //! The default in-process backend | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 101 | //! - MiniMax | COMMENT |
| LOW | crates/rig-core/src/lib.rs | 121 | //! - LanceDB: [`rig-lancedb`](https://github.com/0xPlaygrounds/rig/tree/main/crates/rig-lancedb) | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 1 | //! Conversation memory: Rig-managed persistent conversation history for agents. | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 21 | //! let openai = openai::Client::from_env()?; | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 81 | Self::Backend(source.into()) | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 181 | } | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 201 | /// lives in the `rig-memory` companion crate. | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 261 | } | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 281 | /// `carry_over` is the artifact produced by the previous compaction for | COMMENT |
| LOW | crates/rig-core/src/memory.rs | 301 | /// the adapter can keep a private copy as `carry_over` for the next | COMMENT |
| LOW | crates/rig-core/src/rerank.rs | 1 | //! Provider-agnostic reranking abstractions. | COMMENT |
| LOW | crates/rig-core/src/image_generation.rs | 1 | //! Everything related to core image generation abstractions in Rig. | COMMENT |
| LOW | crates/rig-core/src/transcription.rs | 1 | //! This module provides functionality for working with audio transcription models. | COMMENT |
| LOW | crates/rig-core/src/transcription.rs | 101 | /// ```no_run | COMMENT |
| LOW | crates/rig-core/src/transcription.rs | 121 | /// # } | COMMENT |
| LOW | crates/rig-core/src/provider_response.rs | 61 | /// The enum must have a `ProviderResponse(`[`ProviderResponseError`]`)` variant | COMMENT |
| LOW | crates/rig-core/src/provider_response.rs | 101 | /// The body is preserved as [`Self::ProviderResponse`] with | COMMENT |
| LOW | crates/rig-core/src/json_utils.rs | 41 | COMMENT | |
| LOW | crates/rig-core/src/streaming.rs | 81 | R: Clone, | COMMENT |
| LOW | crates/rig-core/src/streaming.rs | 121 | /// Provider-supplied reasoning block ID, when present. | COMMENT |
| LOW | crates/rig-core/src/streaming.rs | 581 | /// This trait provides an interface for streaming chat completions with support | COMMENT |
| LOW | crates/rig-core/src/streaming.rs | 601 | /// | COMMENT |
| LOW | crates/rig-core/src/streaming.rs | 1061 | Reasoning(Reasoning), | COMMENT |
| LOW | crates/rig-core/src/prelude.rs | 1 | //! The `rig` prelude. | COMMENT |
| LOW | crates/rig-core/src/wasm_compat.rs | 81 | } | COMMENT |
| LOW | crates/rig-core/src/audio_generation.rs | 1 | //! Everything related to audio generation (ie, Text To Speech). | COMMENT |
| LOW | crates/rig-core/src/audio_generation.rs | 21 | #[non_exhaustive] | COMMENT |
| LOW | crates/rig-core/src/embeddings/distance.rs | 1 | //! Distance and similarity helpers for embedding vectors. | COMMENT |
| LOW | crates/rig-core/src/embeddings/embedding.rs | 1 | //! The module defines the [EmbeddingModel] trait, which represents an embedding model that can | COMMENT |
| LOW | crates/rig-core/src/embeddings/embedding.rs | 21 | #[non_exhaustive] | COMMENT |
| LOW | crates/rig-core/src/embeddings/embed.rs | 1 | //! The module defines the [Embed] trait, which must be implemented for types | COMMENT |
| LOW | crates/rig-core/src/embeddings/embed.rs | 21 | } | COMMENT |
| LOW | crates/rig-core/src/embeddings/embed.rs | 41 | /// | COMMENT |
| LOW | crates/rig-core/src/embeddings/tool.rs | 21 | } | COMMENT |
| LOW | crates/rig-core/src/embeddings/tool.rs | 41 | /// #[error("Init error")] | COMMENT |
| 388 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | crates/rig-gemini-grpc/src/lib.rs | 12 | //! let client = Client::new("YOUR_API_KEY").await?; | COMMENT |
| HIGH | crates/rig-qdrant/examples/qdrant_vector_search.rs | 3 | // export OPENAI_API_KEY=<YOUR-API-KEY> | COMMENT |
| HIGH | crates/rig-qdrant/examples/qdrant_vector_search.rs | 3 | // export OPENAI_API_KEY=<YOUR-API-KEY> | COMMENT |
| HIGH | crates/rig-core/src/providers/perplexity.rs | 8 | //! let client = perplexity::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/zai.rs | 12 | //! let client = zai::Client::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/zai.rs | 21 | //! let client = zai::AnthropicClient::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/minimax.rs | 11 | //! let client = minimax::Client::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/minimax.rs | 20 | //! let client = minimax::AnthropicClient::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/xiaomimimo.rs | 11 | //! let client = xiaomimimo::Client::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/xiaomimimo.rs | 20 | //! let client = xiaomimimo::AnthropicClient::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/moonshot.rs | 8 | //! let client = moonshot::Client::new("YOUR_API_KEY").expect("Failed to build client"); | COMMENT |
| HIGH | crates/rig-core/src/providers/moonshot.rs | 20 | //! .api_key("YOUR_API_KEY") | COMMENT |
| HIGH | crates/rig-core/src/providers/mira.rs | 7 | //! let client = mira::Client::new("YOUR_API_KEY"); | COMMENT |
| HIGH | crates/rig-core/src/providers/groq.rs | 8 | //! let client = groq::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/hyperbolic.rs | 8 | //! let client = hyperbolic::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/cohere/mod.rs | 8 | //! let client = cohere::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/together/mod.rs | 8 | //! let client = together::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/gemini/mod.rs | 8 | //! let client = gemini::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/openrouter/mod.rs | 8 | //! let client = openrouter::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/xai/mod.rs | 8 | //! let client = xai::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/anthropic/mod.rs | 8 | //! let client = anthropic::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-core/src/providers/openai/mod.rs | 8 | //! let client = openai::Client::new("YOUR_API_KEY")?; | COMMENT |
| HIGH | crates/rig-sqlite/src/lib.rs | 1701 | /// let openai_client = Client::new("YOUR_API_KEY")?; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/rig-core/src/providers/voyageai.rs | 455 | crate::providers::voyageai::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/voyageai.rs | 457 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/perplexity.rs | 164 | crate::providers::perplexity::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/perplexity.rs | 166 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/zai.rs | 312 | let _client = crate::providers::zai::Client::new("dummy-key").expect("Client::new()"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/zai.rs | 314 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/zai.rs | 317 | let _anthropic_client = crate::providers::zai::AnthropicClient::new("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/zai.rs | 320 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/azure.rs | 1167 | result.name == "John Doe", | CODE |
| LOW⚡ | crates/rig-core/src/providers/minimax.rs | 317 | let _client = crate::providers::minimax::Client::new("dummy-key").expect("Client::new()"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/minimax.rs | 319 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/minimax.rs | 322 | let _anthropic_client = crate::providers::minimax::AnthropicClient::new("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/minimax.rs | 325 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/xiaomimimo.rs | 368 | crate::providers::xiaomimimo::Client::new("dummy-key").expect("Client::new()"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/xiaomimimo.rs | 370 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/xiaomimimo.rs | 373 | let _anthropic_client = crate::providers::xiaomimimo::AnthropicClient::new("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/xiaomimimo.rs | 377 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/moonshot.rs | 370 | crate::providers::moonshot::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/moonshot.rs | 372 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/moonshot.rs | 375 | let _anthropic_client = crate::providers::moonshot::AnthropicClient::new("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/moonshot.rs | 378 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/mira.rs | 468 | crate::providers::mira::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/mira.rs | 470 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/deepseek.rs | 840 | crate::providers::deepseek::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/deepseek.rs | 842 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/deepseek.rs | 884 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/deepseek.rs | 910 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/groq.rs | 490 | crate::providers::groq::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/groq.rs | 492 | crate::providers::groq::Client::builder().api_key("dummy-key"); | CODE |
| LOW | crates/rig-core/src/providers/hyperbolic.rs | 476 | crate::providers::hyperbolic::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/hyperbolic.rs | 478 | crate::providers::hyperbolic::Client::builder().api_key("dummy-key"); | CODE |
| LOW | crates/rig-core/src/providers/cohere/client.rs | 138 | crate::providers::cohere::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/cohere/client.rs | 140 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/together/client.rs | 124 | crate::providers::together::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/together/client.rs | 126 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/gemini/client.rs | 299 | let _client: Client = Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/gemini/client.rs | 301 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/gemini/completion.rs | 3152 | chat_history: OneOrMany::one(Message::user("placeholder")), | CODE |
| LOW⚡ | crates/rig-core/src/providers/openrouter/client.rs | 204 | crate::providers::openrouter::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/openrouter/client.rs | 206 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/openrouter/client.rs | 215 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/openrouter/client.rs | 235 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/openrouter/client.rs | 248 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/openrouter/client.rs | 265 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/openrouter/client.rs | 283 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/openrouter/client.rs | 293 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/xai/client.rs | 81 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/anthropic/client.rs | 265 | crate::providers::anthropic::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/anthropic/client.rs | 267 | .api_key("dummy-key") | CODE |
| LOW⚡ | crates/rig-core/src/providers/anthropic/client.rs | 275 | let _api_key = EnvVarGuard::set("ANTHROPIC_API_KEY", "dummy-key"); | CODE |
| LOW | crates/rig-core/src/providers/anthropic/client.rs | 294 | let _api_key = EnvVarGuard::set("ANTHROPIC_API_KEY", "dummy-key"); | CODE |
| LOW | crates/rig-core/src/providers/huggingface/client.rs | 239 | crate::providers::huggingface::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/huggingface/client.rs | 241 | .api_key("dummy-key") | CODE |
| LOW | crates/rig-core/src/providers/mistral/client.rs | 237 | crate::providers::mistral::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW | crates/rig-core/src/providers/mistral/client.rs | 239 | crate::providers::mistral::Client::builder().api_key("dummy-key"); | CODE |
| LOW | crates/rig-core/src/providers/mistral/transcription.rs | 243 | text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | CODE |
| LOW | crates/rig-core/src/providers/mistral/transcription.rs | 249 | text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | CODE |
| LOW | crates/rig-core/src/providers/mistral/transcription.rs | 266 | "Lorem Ipsum is simply dummy text of the printing and typesetting industry." | CODE |
| LOW⚡ | crates/rig-core/src/providers/openai/client.rs | 694 | crate::providers::openai::Client::new("dummy-key").expect("Client::new() failed"); | CODE |
| LOW⚡ | crates/rig-core/src/providers/openai/client.rs | 696 | .api_key("dummy-key") | CODE |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | README.md | 83 | - [Cairnify](https://cairnify.com/) - helps users find documents, links, and information instantly through an intelligen | CODE |
| MEDIUM⚡ | README.md | 88 | - [ilert](https://www.ilert.com/) - Incident management & alerting platform. Uses Rig as the multi-provider abstraction | CODE |
| MEDIUM⚡ | README.md | 89 | - [Archestra](https://github.com/archestra-ai/archestra) - MCP-native secure AI platform. Uses Rig in its agentic benchm | CODE |
| MEDIUM | crates/rig-core/README.md | 118 | - [Cairnify](https://cairnify.com/) - helps users find documents, links, and information instantly through an intelligen | CODE |
| MEDIUM | crates/rig-core/src/providers/moonshot.rs | 282 | /// Kimi K2.5 — Native multimodal agentic model with 256K context | COMMENT |
| MEDIUM | crates/rig-core/src/agent/hook.rs | 868 | // active_tools: set intersection (two narrowing guardrails compose as | COMMENT |
| MEDIUM | crates/rig-core/src/agent/hook.rs | 925 | /// guardrails that normalize, clamp, redirect, or inject scoped parameters | COMMENT |
| MEDIUM | crates/rig-core/src/agent/hook.rs | 949 | /// [`RewriteArgs`](Flow::RewriteArgs) — for guardrails that redact, truncate, | COMMENT |
| MEDIUM | crates/rig-core/src/agent/hook.rs | 1074 | /// for guardrails that redact, truncate, or normalize a tool's output: | COMMENT |
| MEDIUM | crates/rig-core/src/agent/runner.rs | 704 | // trace. (OpenAI Agents applies tool-output guardrails before tracing / | COMMENT |
| MEDIUM | tests/providers/ollama/cassette/agentic.rs | 1 | //! Ollama agentic structured-output coverage. | COMMENT |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM | tests/integrations/bedrock/embeddings.rs | 12 | #[ignore = "requires AWS credentials and Bedrock embedding model access"] | COMMENT |
| MEDIUM | examples/complex_agentic_loop_claude/src/main.rs | 158 | // Example query that will exercise the complex agentic loop | COMMENT |
| MEDIUM | examples/complex_agentic_loop_claude/src/main.rs | 178 | // Print the chat history to show the agentic loop | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/rig-core/src/completion/request.rs | 1024 | /// to still be able to leverage structured outputs. | COMMENT |
| MEDIUM | crates/rig-core/src/completion/request.rs | 1034 | /// to still be able to leverage structured outputs. | COMMENT |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM⚡ | …sts/cassettes/openrouter/models/list_models_smoke.yaml | 16 | body: '{"data":[{"architecture":{"input_modalities":["text","image"],"instruct_type":null,"modality":"text+image->text | CODE |
| MEDIUM | …rplexity/agent/completion_with_perplexity_options.yaml | 16 | body: '{"choices":[{"delta":{"content":"","role":"assistant"},"finish_reason":"stop","index":0,"message":{"content":"A | CODE |
| MEDIUM | examples/gemini_stream_kill_token_count/src/main.rs | 29 | //! To make that robust against all four shapes the consumer needs: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ssettes/deepseek/reasoning_roundtrip/nonstreaming.yaml | 33 | body: '{"choices":[{"finish_reason":"stop","index":0,"logprobs":null,"message":{"content":"After the slowdown, the tra | CODE |
| LOW | …settes/anthropic/reasoning_roundtrip/nonstreaming.yaml | 18 | body: '{"content":[{"signature":"signature_REDACTED_1","thinking":"Let me set up the problem. Train A leaves Station A | CODE |
| LOW | …settes/anthropic/reasoning_roundtrip/nonstreaming.yaml | 31 | body: '{"max_tokens":64000,"messages":[{"content":[{"text":"A train leaves Station A at 60 km/h. Another train leaves | CODE |
| LOW⚡ | …us_4_7/messages_adaptive_thinking_streaming_smoke.yaml | 111 | data: {"delta":{"text":"\n- Train B: 90 km/h → 80 km/h (after 150 km), starts 0.5 h later\n\n## Step 1: When does ea | CODE |
| LOW⚡ | …us_4_7/messages_adaptive_thinking_streaming_smoke.yaml | 120 | data: {"delta":{"text":"\n\nSo Train B slows down first.\n\n## Step 2: Positions at t = 13/6 h\n\n- Train A: 60 × 13 | CODE |
| LOW⚡ | …us_4_7/messages_adaptive_thinking_streaming_smoke.yaml | 123 | data: {"delta":{"text":" A\n- Train B: **150 km** from A \n- Gap between them: **20 km**\n\n(They haven't met yet.) | CODE |
| LOW | …4_7/messages_adaptive_thinking_nonstreaming_smoke.yaml | 18 | body: '{"content":[{"signature":"signature_REDACTED_1","thinking":"","type":"thinking"},{"text":"## Setting Up the Pro | CODE |
| LOW⚡ | …4_7/messages_adaptive_thinking_nonstreaming_smoke.yaml | 31 | body: '{"max_tokens":128000,"messages":[{"content":[{"text":"A train leaves Station A at 60 km/h. Another train leaves | CODE |
| LOW⚡ | …4_7/messages_adaptive_thinking_nonstreaming_smoke.yaml | 37 | body: '{"content":[{"signature":"signature_REDACTED_2","thinking":"","type":"thinking"},{"text":"## New Setup\n\nEach | CODE |
| LOW | …cassettes/openai/reasoning_roundtrip/nonstreaming.yaml | 33 | body: '{"background":false,"billing":{"payer":"developer"},"completed_at":0,"created_at":0,"error":null,"frequency_pen | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …settes/anthropic/reasoning_roundtrip/nonstreaming.yaml | 18 | body: '{"content":[{"signature":"signature_REDACTED_1","thinking":"Let me set up the problem. Train A leaves Station A | CODE |
| LOW | …settes/anthropic/reasoning_roundtrip/nonstreaming.yaml | 31 | body: '{"max_tokens":64000,"messages":[{"content":[{"text":"A train leaves Station A at 60 km/h. Another train leaves | CODE |
| LOW⚡ | …us_4_7/messages_adaptive_thinking_streaming_smoke.yaml | 111 | data: {"delta":{"text":"\n- Train B: 90 km/h → 80 km/h (after 150 km), starts 0.5 h later\n\n## Step 1: When does ea | CODE |
| LOW⚡ | …us_4_7/messages_adaptive_thinking_streaming_smoke.yaml | 120 | data: {"delta":{"text":"\n\nSo Train B slows down first.\n\n## Step 2: Positions at t = 13/6 h\n\n- Train A: 60 × 13 | CODE |
| LOW⚡ | …us_4_7/messages_adaptive_thinking_streaming_smoke.yaml | 123 | data: {"delta":{"text":" A\n- Train B: **150 km** from A \n- Gap between them: **20 km**\n\n(They haven't met yet.) | CODE |
| LOW | …4_7/messages_adaptive_thinking_nonstreaming_smoke.yaml | 18 | body: '{"content":[{"signature":"signature_REDACTED_1","thinking":"","type":"thinking"},{"text":"## Setting Up the Pro | CODE |
| LOW⚡ | …4_7/messages_adaptive_thinking_nonstreaming_smoke.yaml | 31 | body: '{"max_tokens":128000,"messages":[{"content":[{"text":"A train leaves Station A at 60 km/h. Another train leaves | CODE |
| LOW⚡ | …4_7/messages_adaptive_thinking_nonstreaming_smoke.yaml | 37 | body: '{"content":[{"signature":"signature_REDACTED_2","thinking":"","type":"thinking"},{"text":"## New Setup\n\nEach | CODE |
| LOW | …cassettes/openai/reasoning_roundtrip/nonstreaming.yaml | 33 | body: '{"background":false,"billing":{"payer":"developer"},"completed_at":0,"created_at":0,"error":null,"frequency_pen | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/rig-core/src/transcription.rs | 100 | /// Example usage: | COMMENT |
| LOW | crates/rig-core/src/completion/request.rs | 801 | /// Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/rig-core/src/agent/run/mod.rs | 1093 | // ── Streamed-turn entry points ────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ssettes/openrouter/multimodal/pdf_analysis_prompt.yaml | 16 | body: '{"choices":[{"finish_reason":"stop","index":0,"logprobs":null,"message":{"content":"I am sorry, but I scanned t | CODE |
| LOW | …/ollama/structured_output/structured_output_smoke.yaml | 16 | body: '{"created_at":"1970-01-01T00:00:00Z","done":true,"done_reason":"stop","eval_count":4142,"eval_duration":7367235 | CODE |