Development tools for Converge.
This crate provides tooling for developing Converge applications:
- [
gherkin]: Gherkin spec validation (business sense, compilability, conventions)
Gherkin Validation
The Gherkin validator uses LLMs to check specs for:
- Business Sense: Does the spec describe a meaningful invariant?
- Compilability: Can this be translated to a Rust invariant?
- Conventions: Does it follow Converge's Gherkin patterns?
Example
use converge_tool::gherkin::{GherkinValidator, ValidationConfig};
use converge_core::llm::MockProvider;
use std::sync::Arc;
let provider = Arc::new(MockProvider::constant("Valid spec", 0.9));
let validator = GherkinValidator::new(provider, ValidationConfig::default());
let result = validator.validate_file("specs/growth_strategy.feature")?;
println!("Valid: {}", result.is_valid);