The agent engineering platform
This report presents the forensic synthetic code analysis of langchain-ai/langchainjs, a TypeScript project with 17,939 GitHub stars. SynthScan v2.0 examined 483,903 lines of code across 2497 source files, recording 667 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 2.7 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 667 distinct pattern matches across 17 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 |
|---|---|---|---|---|
| HIGH | libs/create-langchain-integration/template/README.md | 46 | export <ADD_ENV_NAME_HERE>=your-api-key | CODE |
| HIGH | libs/providers/langchain-cohere/README.md | 46 | export COHERE_API_KEY=your-api-key | CODE |
| HIGH | libs/providers/langchain-cohere/src/chat_models.ts | 284 | * export COHERE_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-deepseek/src/chat_models.ts | 71 | * export DEEPSEEK_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-groq/src/chat_models.ts | 624 | * export GROQ_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-anthropic/README.md | 46 | export ANTHROPIC_API_KEY=your-api-key | CODE |
| HIGH | libs/providers/langchain-anthropic/src/chat_models.ts | 456 | * export ANTHROPIC_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-anthropic/src/utils/prompts.ts | 28 | * apiKey: 'your_api_key', | COMMENT |
| HIGH | libs/providers/langchain-openrouter/README.md | 46 | export OPENROUTER_API_KEY=your-api-key | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 25 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 86 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 98 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 115 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 137 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 158 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 184 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-ibm/README.md | 201 | watsonxAIApikey: "your-api-key", | CODE |
| HIGH | libs/providers/langchain-google/src/clients/node.ts | 99 | * apiKey: 'your-api-key' | COMMENT |
| HIGH | libs/providers/langchain-google/src/clients/node.ts | 215 | * apiKey: 'your-api-key' | COMMENT |
| HIGH | libs/providers/langchain-google/src/clients/index.ts | 132 | * apiKey: 'your-api-key' | COMMENT |
| HIGH | libs/providers/langchain-google/src/clients/index.ts | 217 | * apiKey: 'your-api-key' | COMMENT |
| HIGH | …providers/langchain-xai/src/chat_models/completions.ts | 236 | * export XAI_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-mistralai/README.md | 46 | export MISTRAL_API_KEY=your-api-key | CODE |
| HIGH | libs/providers/langchain-mistralai/src/chat_models.ts | 595 | * export MISTRAL_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-perplexity/README.md | 16 | export PERPLEXITY_API_KEY="your-api-key" | CODE |
| HIGH | libs/providers/langchain-fireworks/README.md | 21 | export FIREWORKS_API_KEY="your-api-key" | CODE |
| HIGH | libs/providers/langchain-fireworks/src/llms.ts | 48 | * export FIREWORKS_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-fireworks/src/embeddings.ts | 57 | * export FIREWORKS_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-fireworks/src/chat_models.ts | 55 | * export FIREWORKS_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-openai/README.md | 46 | export OPENAI_API_KEY=your-api-key | CODE |
| HIGH | …viders/langchain-openai/src/azure/chat_models/index.ts | 26 | * export AZURE_OPENAI_API_KEY="your-api-key" | COMMENT |
| HIGH | …bs/providers/langchain-openai/src/chat_models/index.ts | 63 | * export OPENAI_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-google-genai/README.md | 46 | export GOOGLE_API_KEY=your-api-key | CODE |
| HIGH | …bs/providers/langchain-google-genai/src/chat_models.ts | 230 | * export GOOGLE_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-together-ai/README.md | 18 | export TOGETHER_AI_API_KEY="your-api-key" | CODE |
| HIGH | libs/providers/langchain-together-ai/src/chat_models.ts | 62 | * export TOGETHER_AI_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-tavily/README.md | 27 | process.env.TAVILY_API_KEY = "YOUR_API_KEY"; | CODE |
| HIGH | libs/providers/langchain-tavily/src/tavily-search.ts | 306 | * tavilyApiKey: "YOUR_API_KEY" | COMMENT |
| HIGH | …/providers/langchain-tavily/src/tavily-get-research.ts | 71 | * tavilyApiKey: "YOUR_API_KEY" | COMMENT |
| HIGH | libs/providers/langchain-tavily/src/tavily-research.ts | 190 | * tavilyApiKey: "YOUR_API_KEY" | COMMENT |
| HIGH | libs/langchain-mcp-adapters/README.md | 163 | export OPENAI_API_KEY=<your_api_key> | CODE |
| HIGH | examples/openai_openapi.yaml | 33 | -H 'Authorization: Bearer YOUR_API_KEY' | CODE |
| HIGH | examples/openai_openapi.yaml | 102 | -H 'Authorization: Bearer YOUR_API_KEY' | CODE |
| HIGH | examples/openai_openapi.yaml | 150 | -H 'Authorization: Bearer YOUR_API_KEY' \ | CODE |
| HIGH | examples/openai_openapi.yaml | 239 | -H 'Authorization: Bearer YOUR_API_KEY' \ | CODE |
| HIGH | examples/openai_openapi.yaml | 315 | -H 'Authorization: Bearer YOUR_API_KEY' \ | CODE |
| HIGH | examples/openai_openapi.yaml | 386 | -H 'Authorization: Bearer YOUR_API_KEY' \ | CODE |
| HIGH | examples/openai_openapi.yaml | 455 | -H 'Authorization: Bearer YOUR_API_KEY' \ | CODE |
| HIGH | examples/openai_openapi.yaml | 519 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | examples/openai_openapi.yaml | 610 | -H 'Authorization: Bearer YOUR_API_KEY' \ | CODE |
| HIGH | examples/openai_openapi.yaml | 684 | -H 'Authorization: Bearer YOUR_API_KEY' | CODE |
| HIGH | examples/openai_openapi.yaml | 746 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | examples/openai_openapi.yaml | 807 | -H 'Authorization: Bearer YOUR_API_KEY' | CODE |
| HIGH | examples/openai_openapi.yaml | 852 | -H 'Authorization: Bearer YOUR_API_KEY' | CODE |
| HIGH | examples/openai_openapi.yaml | 902 | -H 'Authorization: Bearer YOUR_API_KEY' > file.jsonl | CODE |
| HIGH | examples/openai_openapi.yaml | 947 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | examples/openai_openapi.yaml | 1059 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | examples/openai_openapi.yaml | 1175 | -H "Authorization: Bearer YOUR_API_KEY" \ | CODE |
| HIGH | examples/openai_openapi.yaml | 1251 | -H 'Authorization: Bearer YOUR_API_KEY' | CODE |
| HIGH | examples/openai_openapi.yaml | 1320 | -H "Authorization: Bearer YOUR_API_KEY" | CODE |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ts/scripts/langchain/node/update_resolutions_latest.js | 33 | function rewritePackageWorkspaceDependencies(packageJsonPath) { | CODE |
| LOW | …ts/scripts/langchain/node/update_resolutions_lowest.js | 33 | function rewritePackageWorkspaceDependencies(packageJsonPath) { | CODE |
| LOW | …ain-core/src/structured_query/tests/functional.test.ts | 211 | function generateComparatorTestsForType( | CODE |
| LOW | libs/langchain-core/src/language_models/compat.ts | 54 | function extractImageBlocksFromToolOutputs(message: unknown): ContentBlock[] { | CODE |
| LOW | …angchain-core/src/language_models/tests/stream.test.ts | 161 | function providerThinkingStreamEvents(): ChatModelStreamEvent[] { | CODE |
| LOW | libs/langchain-core/src/messages/base.ts | 95 | function contentBlocksFromNonStringFirst( | CODE |
| LOW | libs/langchain-core/src/messages/base.ts | 572 | function hasMismatchedMergeableType(left: unknown, right: unknown): boolean { | CODE |
| LOW | libs/langchain-core/src/messages/utils.ts | 300 | export function coerceMessageLikeToMessage( | CODE |
| LOW | libs/langchain-core/src/messages/utils.ts | 450 | export function mapStoredMessageToChatMessage(message: StoredMessage) { | CODE |
| LOW | libs/langchain-core/src/messages/utils.ts | 488 | export function mapStoredMessagesToChatMessages( | CODE |
| LOW | libs/langchain-core/src/messages/utils.ts | 500 | export function mapChatMessagesToStoredMessages( | CODE |
| LOW | libs/langchain-core/src/messages/metadata.ts | 48 | function mergeModalitiesTokenDetails( | CODE |
| LOW | libs/langchain-core/src/messages/content/data.ts | 232 | export function convertToOpenAIImageBlock( | CODE |
| LOW | …ore/src/messages/block_translators/bedrock_converse.ts | 16 | function convertFileFormatToMimeType(format: string): string { | CODE |
| LOW | …ore/src/messages/block_translators/bedrock_converse.ts | 72 | function convertConverseDocumentBlock( | CODE |
| LOW | …ore/src/messages/block_translators/bedrock_converse.ts | 128 | function convertConverseImageBlock(block: ContentBlock): ContentBlock.Standard { | CODE |
| LOW | …ore/src/messages/block_translators/bedrock_converse.ts | 159 | function convertConverseVideoBlock(block: ContentBlock): ContentBlock.Standard { | CODE |
| LOW | …chain-core/src/messages/block_translators/anthropic.ts | 15 | function convertAnthropicAnnotation( | CODE |
| LOW | …angchain-core/src/messages/block_translators/openai.ts | 177 | function convertResponsesAnnotation( | CODE |
| LOW | libs/langchain-core/src/callbacks/base.ts | 325 | export function callbackHandlerPrefersStreaming(x: BaseCallbackHandler) { | CODE |
| LOW | libs/langchain-core/src/callbacks/base.ts | 337 | export function callbackHandlerPrefersChatModelStreamEvents( | CODE |
| LOW | libs/langchain-core/src/utils/async_caller.ts | 119 | function parseRetryAfterFromMessageMs( | CODE |
| LOW | libs/langchain-core/src/utils/event_source_parse.ts | 251 | export function convertEventStreamToIterableReadableDataStream( | CODE |
| LOW | libs/langchain-core/src/utils/types/zod.ts | 955 | function interopZodTransformInputSchemaImpl( | CODE |
| LOW | libs/langchain-core/src/utils/types/zod.ts | 1072 | export function interopZodTransformInputSchema( | CODE |
| LOW | …langchain-core/src/utils/tests/standard_schema.test.ts | 25 | function makeStandardJsonSchemaOnly() { | CODE |
| LOW | …langchain-core/src/utils/tests/standard_schema.test.ts | 47 | function makeCallableStandardSchema() { | CODE |
| LOW | …langchain-core/src/utils/tests/standard_schema.test.ts | 73 | function makeCallableSerializableSchema() { | CODE |
| LOW | …in-core/src/utils/zod-to-json-schema/parsers/object.ts | 76 | function decideAdditionalProperties(def: ZodObjectDef, refs: Refs) { | CODE |
| LOW | …angchain-core/src/utils/fast-json-patch/src/helpers.ts | 152 | function patchErrorMessageFormatter(message: String, args: Object): string { | CODE |
| LOW | …chain-core/src/utils/testing/openai_stream_fixtures.ts | 13 | export function openAITextOnlyChunksWithUsage( | CODE |
| LOW | …chain-core/src/utils/testing/openai_stream_fixtures.ts | 63 | export function openAIReasoningTextChunks( | CODE |
| LOW | …chain-core/src/utils/testing/openai_stream_fixtures.ts | 158 | export function sseResponseFromOpenAIChunks( | CODE |
| LOW | libs/langchain-core/src/runnables/config.ts | 33 | export async function getCallbackManagerForConfig(config?: RunnableConfig) { | CODE |
| LOW | …tput_parsers/openai_tools/json_output_tools_parsers.ts | 92 | export function convertLangChainToolCallToOpenAI(toolCall: ToolCall) { | CODE |
| LOW | libs/langchain-core/src/caches/index.ts | 9 | export function deserializeStoredGeneration( | CODE |
| LOW | libs/langchain/src/agents/utils.ts | 302 | export function validateLLMHasNoBoundTools(llm: LanguageModelLike): void { | CODE |
| LOW | libs/langchain/src/agents/responses.ts | 693 | export function hasSupportForJsonSchemaOutput( | CODE |
| LOW | libs/langchain/src/agents/middleware/toolCallLimit.ts | 42 | function buildFinalAIMessageContent( | CODE |
| LOW | libs/langchain/src/agents/middleware/llmToolSelector.ts | 37 | function createToolSelectionResponse(tools: StructuredToolInterface[]) { | CODE |
| LOW | libs/langchain/src/agents/middleware/llmToolSelector.ts | 124 | export function llmToolSelectorMiddleware(options: LLMToolSelectorConfig) { | CODE |
| LOW | …/langchain/src/agents/middleware/providerToolSearch.ts | 102 | export function providerToolSearchMiddleware( | CODE |
| LOW | …/langchain/src/agents/middleware/providerToolSearch.ts | 197 | function supportsProviderToolSearch( | CODE |
| LOW | …hain/src/agents/middleware/tests/summarization.test.ts | 16 | function createMockSummarizationModel() { | CODE |
| LOW | …angchain/src/agents/middleware/tests/toolRetry.test.ts | 50 | function createTemporaryFailureTool(failCount: number) { | CODE |
| LOW | …ain/src/agents/middleware/tests/contextEditing.test.ts | 24 | function createToolCallConversation() { | CODE |
| LOW | …/agents/middleware/provider/anthropic/promptCaching.ts | 166 | export function anthropicPromptCachingMiddleware( | CODE |
| LOW | …in/src/agents/middleware/provider/aws/promptCaching.ts | 170 | export function bedrockPromptCachingMiddleware( | CODE |
| LOW | …in/src/agents/middleware/provider/openai/moderation.ts | 255 | export function openAIModerationMiddleware( | CODE |
| LOW | libs/langchain/src/agents/nodes/utils.ts | 26 | export async function initializeMiddlewareStates( | CODE |
| LOW | libs/langchain/src/agents/tests/agent.bench.test.ts | 32 | function createLargeMessageHistory(count: number) { | CODE |
| LOW | libs/langchain/src/agents/transformers/tool-call.ts | 111 | export function createToolCallTransformer( | CODE |
| LOW | libs/langchain/src/agents/transformers/subagent.ts | 80 | export function createSubagentTransformer( | CODE |
| LOW | libs/langchain/src/storage/encoder_backed.ts | 87 | export function createDocumentStoreFromByteStore( | CODE |
| LOW | libs/langchain/src/hub/base.ts | 139 | export function generateOptionalImportMap( | CODE |
| LOW | libs/langchain/src/hub/node.ts | 45 | export function inferModelProviderFromNamespace( | CODE |
| LOW | …s/langchain-cloudflare/src/utils/event_source_parse.ts | 255 | export function convertEventStreamToIterableReadableDataStream( | CODE |
| LOW | …bs/providers/langchain-aws/src/utils/stream_timeout.ts | 18 | export function createStreamIdleTimeoutError(timeout: number) { | CODE |
| LOW | …bs/providers/langchain-aws/src/utils/stream_timeout.ts | 26 | export function createLinkedAbortController(signal?: AbortSignal) { | CODE |
| LOW | …s/providers/langchain-aws/src/utils/message_outputs.ts | 13 | export function convertConverseMessageToLangChainMessage( | CODE |
| 184 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 253 | // ─── Sub-Stream: Text ─────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 319 | // ─── Sub-Stream: Tool Calls ───────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 393 | // ─── Sub-Stream: Reasoning ────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 495 | // ─── Sub-Stream: Usage ────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 549 | // ─── ChatModelStream ──────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 42 | // ─── Message Lifecycle ────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 81 | // ─── Content Block Lifecycle ──────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 101 | // ─── Content Block Deltas ─────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 205 | // ─── Usage ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 217 | // ─── Provider Passthrough ─────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 232 | // ─── Error ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 245 | // ─── Union ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …-anthropic/src/tests/chat_models_stream_events.test.ts | 49 | // ─── Fixtures (native Anthropic SSE events) ───────────────────── | COMMENT |
| MEDIUM | …-anthropic/src/tests/chat_models_stream_events.test.ts | 242 | // ─── Tests ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 16 | // ─── Public API ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 43 | // ── Message lifecycle ────────────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 109 | // ── Content block lifecycle ─────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 153 | // ── Unhandled → provider passthrough ─────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 167 | // ─── Internal helpers ─────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 140 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 142 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 149 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 151 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 469 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 471 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 477 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | libs/providers/langchain-openrouter/src/api-types.ts | 479 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 8 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 10 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 21 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 23 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 183 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 185 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 214 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 216 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 261 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 263 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 278 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 280 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 300 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 302 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 321 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 323 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 341 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 343 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 363 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 365 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 413 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 415 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 456 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 458 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 531 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 533 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 552 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 554 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 585 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libs/providers/langchain-openrouter/src/api-types.ts | 587 | // ═══════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ngchain-openrouter/src/chat_models/tests/index.test.ts | 43 | // ─── Constructor ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ngchain-openrouter/src/chat_models/tests/index.test.ts | 218 | // ─── invocationParams ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ngchain-openrouter/src/chat_models/tests/index.test.ts | 369 | // ─── getLsParams ───────────────────────────────────────────────────── | COMMENT |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | environment_tests/test-exports-tsc/main.ts | 11 | ["placeholder", "{chat_history}"], | CODE |
| LOW | environment_tests/test-exports-tsc/main.ts | 13 | ["placeholder", "{agent_scratchpad}"], | CODE |
| LOW | libs/langchain-core/src/messages/base.ts | 749 | type: MessageType | "user" | "assistant" | "placeholder"; | CODE |
| LOW | …hain-core/src/runnables/tests/runnable_history.test.ts | 126 | ["placeholder", "{messages}"], | CODE |
| LOW⚡ | …chain-core/src/output_parsers/tests/structured.test.ts | 419 | '{"name": "John Doe", "biograph": "john doe is a cool dude"}'; | CODE |
| LOW⚡ | …chain-core/src/output_parsers/tests/structured.test.ts | 423 | expect(result).toHaveProperty("name", "John Doe"); | CODE |
| LOW⚡ | …chain-core/src/output_parsers/tests/structured.test.ts | 431 | '```json\n{"name": "John Doe", "biograph": "john doe is a cool dude"}```'; | CODE |
| LOW⚡ | …chain-core/src/output_parsers/tests/structured.test.ts | 435 | expect(result).toHaveProperty("name", "John Doe"); | CODE |
| LOW⚡ | …chain-core/src/output_parsers/tests/structured.test.ts | 443 | '{"name": "John Doe", "biograph": "john doe is a ```cool dude```"}'; | CODE |
| LOW⚡ | …chain-core/src/output_parsers/tests/structured.test.ts | 447 | expect(result).toHaveProperty("name", "John Doe"); | CODE |
| LOW | libs/langchain-core/src/prompts/chat.ts | 827 | messagePromptTemplateLike[0] === "placeholder" | CODE |
| LOW | libs/langchain-core/src/prompts/tests/chat.test.ts | 380 | ChatPromptTemplate.fromMessages([["placeholder", "foo"]]) | CODE |
| LOW | libs/langchain-core/src/prompts/tests/chat.test.ts | 385 | const prompt = ChatPromptTemplate.fromMessages([["placeholder", "{foo}"]]); | CODE |
| LOW | libs/langchain-core/src/prompts/tests/chat.test.ts | 396 | const prompt = ChatPromptTemplate.fromMessages([["placeholder", "{foo}"]]); | CODE |
| LOW | libs/langchain-core/src/prompts/tests/chat.test.ts | 441 | const prompt = ChatPromptTemplate.fromMessages([["placeholder", "{foo}"]]); | CODE |
| LOW | …langchain-core/src/prompts/tests/chat.mustache.test.ts | 157 | ["placeholder", "{{messages}}"], | CODE |
| LOW | libs/langchain/src/agents/index.ts | 138 | * // { name: 'John Doe', email: 'john@example.com', phone: '(555) 123-4567' } | COMMENT |
| LOW | libs/langchain/src/agents/middleware/piiRedaction.ts | 299 | * return { name: "John Doe", account: "active" }; | COMMENT |
| LOW | libs/langchain/src/agents/middleware/hitl.ts | 215 | * { name: "send_email", args: { to: "user@example.com", subject: "Hello" } } | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/pii.test.ts | 300 | expect(content).not.toContain("user@example.com"); | CODE |
| LOW | …n/src/agents/middleware/tests/piiRedaction.int.test.ts | 13 | name: "John Doe", | CODE |
| LOW | …n/src/agents/middleware/tests/piiRedaction.int.test.ts | 124 | name: "John Doe", | CODE |
| LOW | …iddleware/provider/aws/tests/promptCaching.int.test.ts | 20 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ".repeat(500); | CODE |
| LOW | …iddleware/provider/aws/tests/promptCaching.int.test.ts | 20 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ".repeat(500); | CODE |
| LOW | libs/langchain/src/agents/tests/middleware.int.test.ts | 16 | name: "Jane Doe", | CODE |
| LOW | libs/langchain/src/agents/tests/middleware.int.test.ts | 34 | expect(result.structuredResponse.name).toBe("Jane Doe"); | CODE |
| LOW | …cloudflare/src/tests/chat_models_stream_events.test.ts | 11 | cloudflareApiToken: "fake-token", | CODE |
| LOW | …ain-cohere/src/tests/chat_models_stream_events.test.ts | 46 | apiKey: "fake-key", | CODE |
| LOW | …n-deepseek/src/tests/chat_models_stream_events.test.ts | 39 | super({ apiKey: "fake-key", model: "deepseek-chat", streaming: true }); | CODE |
| LOW | …chain-groq/src/tests/chat_models_stream_events.test.ts | 26 | apiKey: "fake-key", | CODE |
| LOW | …s/providers/langchain-groq/src/tests/agent.int.test.ts | 19 | // ["placeholder", "{agent_scratchpad}"], | COMMENT |
| LOW | libs/providers/langchain-neo4j/README.md | 78 | properties: { name: "Acme Corp" }, | CODE |
| LOW | …-anthropic/src/tests/chat_models_stream_events.test.ts | 28 | super({ apiKey: "fake-key", model: "claude-sonnet-4-20250514" }); | CODE |
| LOW | …/langchain-anthropic/src/tests/chat_models.int.test.ts | 814 | ["placeholder", "{msgs}"], // <-- This is the changed part | CODE |
| LOW | …/langchain-anthropic/src/tests/chat_models.int.test.ts | 1864 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " + | CODE |
| LOW | …/langchain-anthropic/src/tests/chat_models.int.test.ts | 1864 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " + | CODE |
| LOW | …rc/chat_models/tests/chat_models_stream_events.test.ts | 13 | apiKey: "fake-key", | CODE |
| LOW | …oviders/langchain-ibm/src/embeddings/tests/ibm.test.ts | 9 | watsonxAIApikey: "fake_key", | CODE |
| LOW | …rc/chat_models/tests/chat_models_stream_events.test.ts | 120 | watsonxAIApikey: "fake-key", | CODE |
| LOW | …viders/langchain-ibm/src/chat_models/tests/ibm.test.ts | 24 | watsonxAIApikey: "fake_key", | CODE |
| LOW | …bs/providers/langchain-ibm/src/utils/tests/ibm.test.ts | 16 | watsonxAIApikey: "fake_key", | CODE |
| LOW | …bs/providers/langchain-ibm/src/utils/tests/ibm.test.ts | 45 | watsonxAIBearerToken: "fake_token", | CODE |
| LOW | …ngchain-ibm/src/document_compressors/tests/ibm.test.ts | 37 | watsonxAIApikey: "fake_key", | CODE |
| LOW | libs/providers/langchain-ibm/src/llms/tests/ibm.test.ts | 20 | watsonxAIApikey: "fake_key", | CODE |
| LOW | …rc/chat_models/tests/chat_models_stream_events.test.ts | 119 | apiKey: "fake-key", | CODE |
| LOW | …rc/chat_models/tests/chat_models_stream_events.test.ts | 13 | super({ apiKey: "fake-key", model: "grok-3", streaming: true }); | CODE |
| LOW | …dels/tests/chat_models_responses_stream_events.test.ts | 16 | process.env.XAI_API_KEY = "fake-key"; | CODE |
| LOW | …dels/tests/chat_models_responses_stream_events.test.ts | 23 | super({ apiKey: "fake-key", model: "grok-3", streaming: true }); | CODE |
| LOW | …-mistralai/src/tests/chat_models_stream_events.test.ts | 104 | apiKey: "fake-key", | CODE |
| LOW | …gchain-mistralai/src/utils/tests/stream_events.test.ts | 6 | apiKey: "fake-key", | CODE |
| LOW | …perplexity/src/tests/chat_models_stream_events.test.ts | 12 | apiKey: "fake-key", | CODE |
| LOW | …-fireworks/src/tests/chat_models_stream_events.test.ts | 40 | apiKey: "fake-key", | CODE |
| LOW | …rc/chat_models/tests/chat_models_stream_events.test.ts | 17 | super({ apiKey: "fake-key", model: "gpt-4o-mini", streaming: true }); | CODE |
| LOW | …ain-openai/src/chat_models/tests/responses.int.test.ts | 1251 | apiKey: process.env.OPENAI_API_KEY || "sk-fake-key", | CODE |
| LOW | …penai/src/chat_models/tests/index-extended.int.test.ts | 572 | ["placeholder", "{msgs}"], // <-- This is the changed part | CODE |
| LOW | …dels/tests/chat_models_responses_stream_events.test.ts | 14 | super({ apiKey: "fake-key", model: "gpt-4o-mini", streaming: true }); | CODE |
| LOW | …ogle-genai/src/tests/chat_models_stream_events.test.ts | 88 | apiKey: "fake-key", | CODE |
| LOW | …ogle-genai/src/tests/chat_models_stream_events.test.ts | 134 | apiKey: "fake-key", | CODE |
| LOW | …ogle-genai/src/tests/chat_models_stream_events.test.ts | 163 | apiKey: "fake-key", | CODE |
| LOW | …gchain-google-vertexai-web/src/tests/agent.int.test.ts | 13 | // ["placeholder", "{chat_history}"], | COMMENT |
| 55 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/langchain/src/agents/middleware/todoListMiddleware.ts | 118 | print("Hello World") | CODE |
| HIGH | …ain-textsplitters/src/tests/code_text_splitter.test.ts | 10 | print("Hello, World!") | CODE |
| HIGH | …ain-textsplitters/src/tests/code_text_splitter.test.ts | 260 | print("Hello, World!") | CODE |
| HIGH⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 24 | return False | CODE |
| HIGH⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 26 | return True | CODE |
| HIGH⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 28 | return False | CODE |
| HIGH⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 32 | return False | CODE |
| HIGH⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 34 | return True | CODE |
| HIGH⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 48 | print(helper()) | CODE |
| HIGH | …langchain-classic/src/tests/code_text_splitter.test.ts | 11 | print("Hello, World!") | CODE |
| HIGH | …langchain-classic/src/tests/code_text_splitter.test.ts | 261 | print("Hello, World!") | CODE |
| HIGH | libs/langchain-classic/src/agents/executor.ts | 752 | // Invalid tools won't be in the map, so we return False. | COMMENT |
| HIGH | …/src/langchain-classic/indexes/python_text_splitter.ts | 4 | print("Hello, World!") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dependency_range_tests/docker-compose.yml | 41 | - ./scripts:/scripts | COMMENT |
| LOW | dependency_range_tests/docker-compose.yml | 61 | # openai-lowest-deps: | COMMENT |
| LOW | dependency_range_tests/docker-compose.yml | 81 | # environment: | COMMENT |
| LOW | dependency_range_tests/docker-compose.yml | 101 | # working_dir: /app | COMMENT |
| LOW | dependency_range_tests/docker-compose.yml | 161 | - ./scripts:/scripts | COMMENT |
| LOW | environment_tests/test-exports-cf/tsconfig.json | 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory func | COMMENT |
| LOW | environment_tests/test-exports-cf/tsconfig.json | 41 | "checkJs": false /* Enable error reporting in type-checked JavaScript files. */, | COMMENT |
| LOW | environment_tests/test-exports-cf/tsconfig.json | 61 | // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their | COMMENT |
| LOW | environment_tests/test-exports-cf/tsconfig.json | 81 | // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. * | COMMENT |
| LOW | environment_tests/test-zod-compat/run.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | libs/create-langchain-integration/template/src/llms.ts | 81 | // text: chunk.response, | COMMENT |
| LOW | …eate-langchain-integration/template/src/chat_models.ts | 81 | } | COMMENT |
| LOW | …eate-langchain-integration/template/src/chat_models.ts | 101 | // }); | COMMENT |
| LOW | …ain-core/src/language_models/tests/chat_models.test.ts | 181 | }); | COMMENT |
| LOW | …s/langchain-core/src/messages/tests/messages.test-d.ts | 401 | // $MergeOutputVersion<"v0", MessageOutputVersion> | COMMENT |
| LOW | …src/messages/block_translators/tests/anthropic.test.ts | 401 | type: "url", | COMMENT |
| LOW | …src/messages/block_translators/tests/anthropic.test.ts | 461 | { | COMMENT |
| LOW | libs/langchain-core/src/utils/types/zod.ts | 21 | import { SerializableSchema } from "../standard_schema.js"; | COMMENT |
| LOW | libs/langchain-core/src/utils/types/zod.ts | 41 | // | COMMENT |
| LOW | …s/langchain-core/src/utils/fast-json-patch/src/core.ts | 681 | // of this software and associated documentation files (the "Software"), to deal | COMMENT |
| LOW | libs/langchain-core/src/utils/uuid/v1.ts | 101 | state.nsecs++; | COMMENT |
| LOW | …viders/langchain-aws/src/tests/chat_models.int.test.ts | 161 | const response = await model.invoke("Hell"); | COMMENT |
| LOW | …oviders/langchain-aws/src/tests/embeddings.int.test.ts | 61 | // const client = getClient(); | COMMENT |
| LOW | …s/providers/langchain-groq/src/tests/agent.int.test.ts | 1 | // import { AgentExecutor, createOpenAIToolsAgent } from "langchain/agents"; | COMMENT |
| LOW | …s/providers/langchain-groq/src/tests/agent.int.test.ts | 21 | // const currentWeatherTool = new DynamicStructuredTool({ | COMMENT |
| LOW | …s/providers/langchain-groq/src/tests/agent.int.test.ts | 41 | // const { output } = await agentExecutor.invoke({ input }); | COMMENT |
| LOW | …hain-anthropic/src/tests/chat_models-tools.int.test.ts | 841 | // const { createReactAgent } = await import("@langchain/langgraph/prebuilt"); | COMMENT |
| LOW | …chain-google-webauth/src/tests/chat_models.int.test.ts | 821 | required: ["greeterName"], | COMMENT |
| LOW | …chain-google-webauth/src/tests/chat_models.int.test.ts | 841 | // const backingStore = new BlobStoreGoogleCloudStorage({ | COMMENT |
| LOW | …chain-google-webauth/src/tests/chat_models.int.test.ts | 861 | // }, | COMMENT |
| LOW | …chain-google-webauth/src/tests/chat_models.int.test.ts | 881 | COMMENT | |
| LOW | …gchain-google-vertexai-web/src/tests/agent.int.test.ts | 1 | // import { test, expect } from "@jest/globals"; | COMMENT |
| LOW | …gchain-google-vertexai-web/src/tests/agent.int.test.ts | 21 | // llm, | COMMENT |
| LOW | …l/generative_agents/tests/generative_agent.int.test.ts | 121 | for (let i = 0; i < observations.length; i += 1) { | COMMENT |
| LOW | …l/generative_agents/tests/generative_agent.int.test.ts | 181 | // await interviewAgent( | COMMENT |
| LOW | …ain-classic/src/memory/tests/entity_memory.int.test.ts | 21 | // @ts-expect-error unused var | COMMENT |
| LOW | …ain-classic/src/memory/tests/entity_memory.int.test.ts | 81 | const res2 = await chain.call({ | COMMENT |
| LOW | …ain-classic/src/smith/tests/run_on_dataset.int.test.ts | 321 | // evaluationConfig: evaluation, | COMMENT |
| LOW | …agents/tests/create_openai_functions_agent.int.test.ts | 81 | // console.log(); | COMMENT |
| LOW | …s/langchain-classic/src/agents/openai/output_parser.ts | 1 | // console.warn([ | COMMENT |
| LOW | …ples/src/langchain-classic/models/llm/llm_debugging.ts | 21 | }); | COMMENT |
| LOW | …ples/src/langchain-classic/models/llm/llm_debugging.ts | 41 | // } | COMMENT |
| LOW | …es/src/langchain-classic/models/chat/chat_streaming.ts | 21 | // { token: '' } | COMMENT |
| LOW | …amples/src/langchain-classic/use_cases/sql/large_db.ts | 201 | // You can see a LangSmith trace of the above chain here: | COMMENT |
| LOW | .github/dependabot.yml | 21 | - "major" | COMMENT |
| LOW | .github/workflows/compatibility.yml | 81 | - name: Install dependencies | COMMENT |
| LOW | .github/workflows/compatibility.yml | 101 | # cache: "pnpm" | COMMENT |
| LOW | .github/workflows/compatibility.yml | 121 | # cache: "pnpm" | COMMENT |
| LOW | .github/workflows/compatibility.yml | 141 | # node-version: ${{ env.NODE_VERSION }} | COMMENT |
| LOW | .github/workflows/compatibility.yml | 161 | # node-version: ${{ env.NODE_VERSION }} | COMMENT |
| LOW | .github/workflows/compatibility.yml | 181 | # with: | COMMENT |
| LOW | .github/workflows/compatibility.yml | 201 | # with: | COMMENT |
| LOW | .github/workflows/compatibility.yml | 221 | # uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | COMMENT |
| LOW | .github/workflows/compatibility.yml | 241 | # uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | COMMENT |
| LOW | .github/workflows/benchmark-tests.yml | 1 | # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tes | COMMENT |
| LOW | .github/actions/people/app/main.py | 21 | # query Q($after: String, $category_id: ID) { | COMMENT |
| LOW | .github/actions/people/app/main.py | 41 | # url | COMMENT |
| LOW | .github/actions/people/app/main.py | 61 | # """ | COMMENT |
| LOW | .github/actions/people/app/main.py | 81 | # createdAt | COMMENT |
| LOW | .github/actions/people/app/main.py | 321 | logging.error(data["errors"]) | COMMENT |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …ain-classic/src/experimental/openai_assistant/index.ts | 111 | run = await this.client.beta.threads.runs.submitToolOutputs( | CODE |
| CRITICAL | …ain-classic/src/experimental/openai_assistant/index.ts | 135 | await this.client.beta.threads.messages.create(input.threadId, { | CODE |
| CRITICAL | …ain-classic/src/experimental/openai_assistant/index.ts | 146 | run = await this.client.beta.threads.runs.submitToolOutputs(input.runId, { | CODE |
| CRITICAL | …ain-classic/src/experimental/openai_assistant/index.ts | 238 | const run = this.client.beta.threads.runs.create(threadId, { | CODE |
| CRITICAL | …ain-classic/src/experimental/openai_assistant/index.ts | 277 | run = await this.client.beta.threads.runs.retrieve(runId, { | CODE |
| CRITICAL | …ain-classic/src/experimental/openai_assistant/index.ts | 304 | const messages = await this.client.beta.threads.messages.list(threadId, { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1413 | // Step 1: Initial invocation - should interrupt | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1428 | // Step 2: Get state before resume to see original order | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1442 | // Step 3: Resume with approvals - this is where the middleware processes decisions | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1454 | // Step 4: Check the messages returned by the resume | COMMENT |
| LOW | …langchain-anthropic/src/tools/tests/memory.int.test.ts | 229 | // Step 1: Ask to remember something | COMMENT |
| LOW | …langchain-anthropic/src/tools/tests/memory.int.test.ts | 258 | // Step 2: Ask to recall | COMMENT |
| LOW | libs/providers/langchain-redis/README.md | 70 | ### Step 1: Update Imports | COMMENT |
| LOW | libs/providers/langchain-redis/README.md | 84 | ### Step 2: Convert Metadata Schema | COMMENT |
| LOW | libs/providers/langchain-redis/README.md | 110 | ### Step 3: Update Configuration | COMMENT |
| LOW | libs/providers/langchain-redis/README.md | 146 | ### Step 4: Update Search Queries with Filters | COMMENT |
| LOW | libs/providers/langchain-redis/README.md | 186 | ### Step 5: Database Schema Migration | COMMENT |
| LOW | libs/providers/langchain-redis/README.md | 194 | ### Step 6: Update Application Code | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 1824 | // Step 1: Convert OpenAI response -> LangChain AIMessage | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 1840 | // Step 2: Convert LangChain AIMessage -> OpenAI Responses input (multi-turn) | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 2995 | // Step 1: Simulate a response with phase | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3024 | // Step 2: Convert response to AIMessage (phase on top-level content block) | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3029 | // Step 3: Convert AIMessage back to input via raw provider path | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 33 | // Step 1: Define low-level API tools (stubbed) | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 95 | // Step 2: Create specialized sub-agents with human-in-the-loop middleware | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 144 | // Step 3: Wrap sub-agents as tools for the supervisor | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 228 | // Step 4: Create the supervisor agent with checkpointer | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 246 | // Step 5: Demonstrate the complete workflow with human-in-the-loop | COMMENT |
| LOW | examples/src/createAgent/middleware/simpleHitl.ts | 67 | // Step 1: Initial invocation with incomplete information | COMMENT |
| LOW | examples/src/createAgent/middleware/simpleHitl.ts | 81 | // Step 2: Resume with the missing information | COMMENT |
| LOW | …amples/src/multi-agent/subagents-personal-assistant.ts | 14 | // Step 1: Define low-level API tools (stubbed) | COMMENT |
| LOW | …amples/src/multi-agent/subagents-personal-assistant.ts | 80 | // Step 2: Create specialized sub-agents | COMMENT |
| LOW | …amples/src/multi-agent/subagents-personal-assistant.ts | 145 | // Step 3: Wrap sub-agents as tools for the supervisor agent | COMMENT |
| LOW⚡ | …amples/src/multi-agent/subagents-personal-assistant.ts | 204 | // Step 4: Create the supervisor agent | COMMENT |
| LOW⚡ | …amples/src/multi-agent/subagents-personal-assistant.ts | 214 | // Step 5: Use the supervisor | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1413 | // Step 1: Initial invocation - should interrupt | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1428 | // Step 2: Get state before resume to see original order | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1442 | // Step 3: Resume with approvals - this is where the middleware processes decisions | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1454 | // Step 4: Check the messages returned by the resume | COMMENT |
| LOW | …in/src/agents/middleware/provider/openai/moderation.ts | 48 | * client may not yet be initialized, so we need to check if the model has a _getClientOptions method. | COMMENT |
| LOW | …langchain-anthropic/src/tools/tests/memory.int.test.ts | 229 | // Step 1: Ask to remember something | COMMENT |
| LOW | …langchain-anthropic/src/tools/tests/memory.int.test.ts | 258 | // Step 2: Ask to recall | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 1824 | // Step 1: Convert OpenAI response -> LangChain AIMessage | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 1840 | // Step 2: Convert LangChain AIMessage -> OpenAI Responses input (multi-turn) | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 2995 | // Step 1: Simulate a response with phase | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3024 | // Step 2: Convert response to AIMessage (phase on top-level content block) | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3029 | // Step 3: Convert AIMessage back to input via raw provider path | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 33 | // Step 1: Define low-level API tools (stubbed) | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 95 | // Step 2: Create specialized sub-agents with human-in-the-loop middleware | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 144 | // Step 3: Wrap sub-agents as tools for the supervisor | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 228 | // Step 4: Create the supervisor agent with checkpointer | COMMENT |
| LOW | examples/src/createAgent/supervisor.ts | 246 | // Step 5: Demonstrate the complete workflow with human-in-the-loop | COMMENT |
| LOW | examples/src/createAgent/middleware/simpleHitl.ts | 67 | // Step 1: Initial invocation with incomplete information | COMMENT |
| LOW | examples/src/createAgent/middleware/simpleHitl.ts | 81 | // Step 2: Resume with the missing information | COMMENT |
| LOW | …amples/src/multi-agent/subagents-personal-assistant.ts | 14 | // Step 1: Define low-level API tools (stubbed) | COMMENT |
| LOW | …amples/src/multi-agent/subagents-personal-assistant.ts | 80 | // Step 2: Create specialized sub-agents | COMMENT |
| LOW | …amples/src/multi-agent/subagents-personal-assistant.ts | 145 | // Step 3: Wrap sub-agents as tools for the supervisor agent | COMMENT |
| LOW⚡ | …amples/src/multi-agent/subagents-personal-assistant.ts | 204 | // Step 4: Create the supervisor agent | COMMENT |
| LOW⚡ | …amples/src/multi-agent/subagents-personal-assistant.ts | 214 | // Step 5: Use the supervisor | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …classic/src/experimental/masking/tests/masking.test.ts | 180 | // This is just for demonstration purposes and not a secure hashing method. | COMMENT |
| MEDIUM | libs/langchain-classic/src/memory/prompt.ts | 32 | You are designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth | CODE |
| MEDIUM | libs/langchain-classic/src/agents/chat_convo/prompt.ts | 3 | Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-d | CODE |
| MEDIUM | examples/src/createAgent/streaming.ts | 246 | * 🤖 Assistant: I'm unable to retrieve the weather data for New York City at the moment. Please try again later or check | COMMENT |
| MEDIUM | examples/src/createAgent/updateLongTermMemoryInTools.ts | 608 | * Let me know if you need more information or if there's anything else I can assist you with! | COMMENT |
| MEDIUM | …c/langchain-classic/memory/entity_memory_inspection.ts | 34 | res: "As an AI language model, I don't have an office in the traditional sense. I exist entirely in digital space an | CODE |
| LOW | …es/src/langchain-classic/prompts/use_with_llm_chain.ts | 28 | // Don't forget to include formatting instructions in the prompt! | COMMENT |
| LOW | .github/ISSUE_TEMPLATE/bug-report.yml | 112 | These will only surface LangChain.js packages, don't forget to include any other relevant | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | dependency_range_tests/scripts/create-mock-tsconfigs.sh | 32 | # partial-workspace harness has no project references and a strict mock tsconfig | COMMENT |
| MEDIUM | …assic/src/retrievers/tests/parent_document.int.test.ts | 123 | minSimilarityScore: 0.01, // Essentially no threshold | CODE |
| MEDIUM | …etrievers/parent_document_retriever_score_threshold.ts | 15 | minSimilarityScore: 0.01, // Essentially no threshold | CODE |
| MEDIUM | examples/src/langchain-classic/memory/summary_buffer.ts | 44 | // We can also utilize the predict_new_summary method directly. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/langchain/CHANGELOG.md | 471 | - [#9850](https://github.com/langchain-ai/langchainjs/pull/9850) [`b56bf9e`](https://github.com/langchain-ai/langchainjs | CODE |
| MEDIUM | libs/providers/langchain-neo4j/CHANGELOG.md | 99 | - [#10590](https://github.com/langchain-ai/langchainjs/pull/10590) [`ed8cda6`](https://github.com/langchain-ai/langchain | CODE |
| MEDIUM | libs/providers/langchain-neo4j/CHANGELOG.md | 99 | - [#10590](https://github.com/langchain-ai/langchainjs/pull/10590) [`ed8cda6`](https://github.com/langchain-ai/langchain | CODE |
| MEDIUM | libs/providers/langchain-xai/CHANGELOG.md | 202 | - [#9890](https://github.com/langchain-ai/langchainjs/pull/9890) [`e3ea086`](https://github.com/langchain-ai/langchainjs | CODE |
| MEDIUM | libs/providers/langchain-xai/CHANGELOG.md | 202 | - [#9890](https://github.com/langchain-ai/langchainjs/pull/9890) [`e3ea086`](https://github.com/langchain-ai/langchainjs | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | dependency_range_tests/scripts/create-mock-tsconfigs.sh | 119 | # Create a mock tsconfig.json at the expected langchain-core location to prevent vite from looking for it | COMMENT |
| MEDIUM | …ency_range_tests/scripts/with_standard_tests/shared.sh | 53 | # Create the top level monorepo directory | COMMENT |
| MEDIUM | …ic/indexes/vector_stores/opensearch/docker-compose.yml | 35 | OPENSEARCH_HOSTS: '["http://opensearch:9200"]' # Define the OpenSearch nodes that OpenSearch Dashboards will query | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dependency_range_tests/scripts/create-mock-tsconfigs.sh | 68 | # Check if this is the langchain package (needs JSON files included) | COMMENT |
| LOW | …ency_range_tests/scripts/with_standard_tests/shared.sh | 6 | # Check if this is a provider package or a regular package | COMMENT |
| LOW | .github/workflows/dev-release.yml | 49 | # Check if there are any changeset files (excluding README.md) | COMMENT |
| LOW | .github/workflows/unit-tests-integrations.yml | 61 | # Check if standard-tests has changes - if so, run tests on all packages | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | environment_tests/test-zod-compat/run.sh | 24 | # Usage: | COMMENT |
| LOW | …ples/src/createAgent/middleware/simpleSummarization.ts | 52 | // Example usage | COMMENT |
| LOW | examples/src/createAgent/middleware/promptCaching.ts | 4 | // Example usage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/langchain-anthropic/src/tests/chat_models.int.test.ts | 929 | // TODO: Add proper test with long tool content | COMMENT |
| LOW | libs/providers/langchain-openai/src/utils/output.ts | 113 | // TODO: implement `nullableStrategy` patch-fix (zod doesn't support openApi3 json schema target) | COMMENT |
| LOW | libs/providers/langchain-openai/src/utils/output.ts | 114 | // TODO: implement `openaiStrictMode` patch-fix (where optional properties without `nullable` are not supp | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …chain-anthropic/src/tools/tests/textEditor.int.test.ts | 44 | "src/utils.py": `def helper(): | CODE |