The agent engineering platform
This report summarizes scanner evidence for langchain-ai/langchainjs, a TypeScript project with 18,307 GitHub stars. SynthScan examined 517,624 lines of code across 2592 source files, recording 694 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 2.6 (Low 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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 420 finding(s).
Are imports declared and package/API names verified? 205 finding(s).
Are wrappers, guards, and repeated structures necessary? 335 finding(s).
Which changes need focused human review? 694 finding(s).
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.
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.
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.
The scanner identified 694 distinct pattern matches across 17 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.
| 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 | 502 | * 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 | 103 | * apiKey: 'your-api-key' | COMMENT |
| HIGH | libs/providers/langchain-google/src/clients/node.ts | 240 | * 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 | 58 | * export FIREWORKS_API_KEY="your-api-key" | COMMENT |
| HIGH | libs/providers/langchain-fireworks/src/chat_models.ts | 56 | * 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 | 27 | * export AZURE_OPENAI_API_KEY="your-api-key" | COMMENT |
| HIGH | …bs/providers/langchain-openai/src/chat_models/index.ts | 65 | * 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 | 231 | * 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 | 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 |
| HIGH | examples/openai_openapi.yaml | 1436 | -H "Authorization: Bearer YOUR_API_KEY" | CODE |
| 10 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 | internal/model-profiles/src/generator.ts | 69 | function hoistSharedArrayConstants(models: Record<string, ModelProfile>): { | 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 | 196 | 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 | 467 | export function mapStoredMessageToChatMessage(message: StoredMessage) { | CODE |
| LOW | libs/langchain-core/src/messages/utils.ts | 505 | export function mapStoredMessagesToChatMessages( | CODE |
| LOW | libs/langchain-core/src/messages/utils.ts | 517 | 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 | 121 | function parseRetryAfterFromMessageMs( | CODE |
| LOW | libs/langchain-core/src/utils/event_source_parse.ts | 251 | export function convertEventStreamToIterableReadableDataStream( | CODE |
| LOW | libs/langchain-core/src/utils/gateway.ts | 20 | function resolveLangSmithGatewayBaseURL( | CODE |
| LOW | libs/langchain-core/src/utils/gateway.ts | 33 | export function resolveLangSmithGatewayConfig({ | 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/chat_models/universal.ts | 43 | function getLangSmithChatModelParams({ | CODE |
| LOW | libs/langchain/src/agents/utils.ts | 302 | export function validateLLMHasNoBoundTools(llm: LanguageModelLike): void { | CODE |
| LOW | libs/langchain/src/agents/responses.ts | 697 | export function hasSupportForJsonSchemaOutput( | CODE |
| LOW | libs/langchain/src/agents/middleware/toolCallLimit.ts | 42 | function buildFinalAIMessageContent( | CODE |
| LOW | libs/langchain/src/agents/middleware/llmToolSelector.ts | 38 | function createToolSelectionResponse(tools: StructuredToolInterface[]) { | CODE |
| LOW | libs/langchain/src/agents/middleware/llmToolSelector.ts | 125 | 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 | 22 | function createMockSummarizationModel() { | CODE |
| LOW | …angchain/src/agents/middleware/tests/toolRetry.test.ts | 51 | 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 | …n/src/agents/middleware/provider/openai/modelRouter.ts | 40 | export function openAIModelRouterMiddleware( | 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 |
| 206 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 267 | // ─── Sub-Stream: Text ─────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 333 | // ─── Sub-Stream: Tool Calls ───────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 407 | // ─── Sub-Stream: Reasoning ────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 509 | // ─── Sub-Stream: Usage ────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/stream.ts | 563 | // ─── 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 | 232 | // ─── Usage ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 244 | // ─── Provider Passthrough ─────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 259 | // ─── Error ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | libs/langchain-core/src/language_models/event.ts | 272 | // ─── 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 | 343 | // ─── Tests ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 16 | // ─── Public API ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 44 | // ── Message lifecycle ────────────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 119 | // ── Content block lifecycle ─────────────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 165 | // ── Unhandled → provider passthrough ─────────────────── | COMMENT |
| MEDIUM | …oviders/langchain-anthropic/src/utils/stream_events.ts | 179 | // ─── 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 | 753 | 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 | 229 | * { 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 | 816 | ["placeholder", "{msgs}"], // <-- This is the changed part | CODE |
| LOW | …/langchain-anthropic/src/tests/chat_models.int.test.ts | 1892 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " + | CODE |
| LOW | …/langchain-anthropic/src/tests/chat_models.int.test.ts | 1892 | "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/handlers/tests/generate_content.test.ts | 496 | apiKey: "fake-key", | CODE |
| LOW | …s/langchain-mongodb/src/tests/chat_history.int.test.ts | 175 | sessionId: "placeholder", | 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 | 1513 | 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 |
| 57 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | .devcontainer/devcontainer.json | 21 | 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 | // invokeId: response.id, | COMMENT |
| LOW | …oviders/langchain-aws/src/tests/embeddings.int.test.ts | 61 | // const client = getClient(); | COMMENT |
| LOW | libs/providers/langchain-typesafe/src/classifier.ts | 181 | // directly would capture whatever is installed at construction time, | 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 | 861 | nextMessage, | COMMENT |
| LOW | …hain-anthropic/src/tests/chat_models-tools.int.test.ts | 881 | // const agent = createReactAgent({ | COMMENT |
| LOW | …langchain-google/src/converters/tests/messages.test.ts | 1381 | test("v1 contentBlocks (via ChatGoogleTranslator): preserves thought on a resent reasoning block", () => { | 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 | …chain-mcp-adapters/src/tests/agent.elicitation.test.ts | 181 | // with identical content have interchangeable answers anyway. | 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 | 41 | # npm — single workspace-aware entry. | 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@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | COMMENT |
| LOW | .github/workflows/compatibility.yml | 241 | # uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.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 |
| 10 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 | 1589 | // Step 1: Initial invocation - should interrupt | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1604 | // Step 2: Get state before resume to see original order | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1618 | // Step 3: Resume with approvals - this is where the middleware processes decisions | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1630 | // 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 | 2744 | // Step 1: Convert OpenAI response -> LangChain AIMessage | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 2760 | // Step 2: Convert LangChain AIMessage -> OpenAI Responses input (multi-turn) | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 3915 | // Step 1: Simulate a response with phase | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3944 | // Step 2: Convert response to AIMessage (phase on top-level content block) | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3949 | // 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 | 1589 | // Step 1: Initial invocation - should interrupt | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1604 | // Step 2: Get state before resume to see original order | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1618 | // Step 3: Resume with approvals - this is where the middleware processes decisions | COMMENT |
| LOW | libs/langchain/src/agents/middleware/tests/hitl.test.ts | 1630 | // 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 | 2744 | // Step 1: Convert OpenAI response -> LangChain AIMessage | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 2760 | // Step 2: Convert LangChain AIMessage -> OpenAI Responses input (multi-turn) | COMMENT |
| LOW | …angchain-openai/src/converters/tests/responses.test.ts | 3915 | // Step 1: Simulate a response with phase | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3944 | // Step 2: Convert response to AIMessage (phase on top-level content block) | COMMENT |
| LOW⚡ | …angchain-openai/src/converters/tests/responses.test.ts | 3949 | // 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 | 610 | - [#9850](https://github.com/langchain-ai/langchainjs/pull/9850) [`b56bf9e`](https://github.com/langchain-ai/langchainjs | CODE |
| MEDIUM | libs/providers/langchain-neo4j/CHANGELOG.md | 225 | - [#10590](https://github.com/langchain-ai/langchainjs/pull/10590) [`ed8cda6`](https://github.com/langchain-ai/langchain | CODE |
| MEDIUM | libs/providers/langchain-neo4j/CHANGELOG.md | 225 | - [#10590](https://github.com/langchain-ai/langchainjs/pull/10590) [`ed8cda6`](https://github.com/langchain-ai/langchain | CODE |
| MEDIUM | libs/providers/langchain-xai/CHANGELOG.md | 328 | - [#9890](https://github.com/langchain-ai/langchainjs/pull/9890) [`e3ea086`](https://github.com/langchain-ai/langchainjs | CODE |
| MEDIUM | libs/providers/langchain-xai/CHANGELOG.md | 328 | - [#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 | 63 | # 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 | 931 | // 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 |