community: Add SpecTestGeneratorTool and APIGovernorTool#499
Open
akz4ol wants to merge 1 commit intolangchain-ai:mainfrom
Open
community: Add SpecTestGeneratorTool and APIGovernorTool#499akz4ol wants to merge 1 commit intolangchain-ai:mainfrom
akz4ol wants to merge 1 commit intolangchain-ai:mainfrom
Conversation
Add two new tools to langchain-community: ## SpecTestGeneratorTool Converts PRDs (Product Requirements Documents) into formal requirements and test cases with stable, traceable IDs. Uses fingerprint-based IDs that persist across regeneration. Features: - PRD parsing from markdown - Requirements generation with stable IDs (REQ-xxxx) - Test case generation linked to requirements (TEST-xxxx) - Multiple output formats: markdown, json, gherkin Requires: pip install spec-test-generator ## APIGovernorTool Validates OpenAPI specifications against governance policies. Performs automated API governance checks including security validation, naming conventions, and documentation requirements. Features: - Policy-driven linting (lenient, standard, strict) - Security validation - Naming convention checks - Multiple output formats: markdown, json, sarif Requires: pip install api-governor ## Testing Added unit tests for both tools verifying initialization and schema. --- This PR was developed with assistance from AI agents (Claude Code).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add two new tools to langchain-community for requirements/test generation and API governance:
SpecTestGeneratorTool
Converts PRDs (Product Requirements Documents) into formal requirements and test cases with stable, traceable IDs. Uses fingerprint-based IDs that persist across regeneration.
Features:
Requires:
pip install spec-test-generatorLinks:
APIGovernorTool
Validates OpenAPI specifications against governance policies. Performs automated API governance checks including security validation, naming conventions, and documentation requirements.
Features:
Requires:
pip install api-governorLinks:
Why These Tools?
These tools enable LangChain agents to:
Testing
Added unit tests for both tools verifying initialization, schema, and graceful handling when underlying packages are not installed.
Checklist
BaseTool__init__.pyThis PR was developed with assistance from AI agents (Claude Code).