Skip to main content

Crate intent_implement

Crate intent_implement 

Source
Expand description

AI-powered full implementation generation from IntentLang specifications.

This crate translates parsed .intent specs into complete, working implementations using an LLM. It builds on intent-codegen (skeleton stubs) and intent-gen (LLM client) to produce contract-aware code.

The generation pipeline:

  1. Format the spec, generate skeleton code, extract contracts
  2. Send to LLM with implementation-focused system prompt
  3. Validate the output (expected names, balanced delimiters, no stubs)
  4. Retry with error feedback if validation fails

Re-exports§

pub use validate::ImplementError;

Modules§

context
Build rich context from a parsed intent AST for the LLM prompt.
prompt
Prompt construction for AI-powered implementation generation.
validate
Output validation and generate-check-retry loop.

Structs§

ImplementOptions
Options for implementation generation.

Enums§

Language
Target language for code generation.

Functions§

implement
Generate a full implementation from a parsed .intent AST.