Program Synthesis

105 public types in this namespace, organized by kind.

Models & Types (73)

Type Summary
CodeAstEdge Represents a relationship between two AST nodes (typically parent/child).
CodeAstNodePath Represents a stable, structured path to an AST node.
CodeAstPathSegment A structured segment in an AST node path.
CodeBERT<T> CodeBERT is a bimodal pre-trained model for programming and natural languages.
CodeBugDetectionRequest Request for identifying potential bugs and issues in code.
CodeBugDetectionResult
CodeBugFixingRequest Request for repairing code issues.
CodeBugFixingResult
CodeCallGraphEdge
CodeCloneDetectionRequest Request for clone detection over a corpus.
CodeCloneDetectionResult
CodeCloneGroup
CodeCloneInstance
CodeCompletionCandidate
CodeCompletionRequest Request for code completion.
CodeCompletionResult
CodeComplexityMetrics
CodeCorpusDocument A code document that may be searched or used for clone detection.
CodeCorpusReference Defines a corpus either by embedding the documents in the request, or by referencing an indexed corpus in Serving.
CodeDependency
CodeDocumentationRequest Request for generating or improving code documentation.
CodeDocumentationResult
CodeEditOperation A machine-applicable edit operation for code transforms.
CodeExecutionTelemetry Minimal execution telemetry for sandboxed runs.
CodeFixSuggestion
CodeGenerationRequest Request for code generation from a description and/or examples.
CodeGenerationResult
CodeHotspot
CodeIssue Represents a structured issue found in code.
CodeLocation Location information for an item within code.
CodePosition Represents a position in source text.
CodeProvenance Provenance metadata for a result hit when an indexed corpus is used.
CodeRefactoringRequest Request for refactoring code without changing behavior.
CodeRefactoringResult
CodeReviewRequest Request for structured code review output.
CodeReviewResult
CodeSearchHit
CodeSearchRequest Request for searching code using a query against a corpus.
CodeSearchResult
CodeSecurityHotspot
CodeSpan Represents a span in source text.
CodeSummarizationRequest Request for summarizing code into natural language.
CodeSummarizationResult
CodeSymbol
CodeSynthesisArchitecture<T> Defines the architecture configuration for code synthesis and understanding models.
CodeT5<T> CodeT5 is an encoder-decoder model for code understanding and generation.
CodeTaskTelemetry Telemetry captured during a code task execution.
CodeTestGenerationRequest Request for generating tests for code.
CodeTestGenerationResult
CodeTokenizationPipeline Default implementation of ICodeTokenizationPipeline.
CodeTokenizationResult Represents the result of code-aware tokenization, including token IDs and token-to-source spans.
CodeTransformDiff Structured diff for code transforms.
CodeTranslationRequest Request for translating code from one language to another.
CodeTranslationResult
CodeUnderstandingRequest Request for structured code understanding output.
CodeUnderstandingResult
CompilationDiagnostic
GraphCodeBERT<T> GraphCodeBERT extends CodeBERT by incorporating data flow analysis.
NeuralProgramSynthesizer<T> Neural network-based program synthesizer that generates programs from specifications.
ProcessProgramExecutionEngine Runs an untrusted candidate program in an isolated, resource-limited child process.
ProgramEvaluateIoRequest
ProgramEvaluateIoResponse
ProgramEvaluateIoTestResult
ProgramExecuteRequest
ProgramExecuteResponse
ProgramInputOutputExample Represents a single input-output example for program synthesis.
ProgramInput<T> Represents the input specification for program synthesis.
ProgramSynthesisServingClient
Program<T> Represents a synthesized program with its source code and metadata.
ServingProgramExecutionEngine Program execution engine that delegates sandboxed execution to an AiDotNet.Serving instance.
SqlExecuteRequest
SqlExecuteResponse
SqlValue

Base Classes (3)

Type Summary
CodeModelBase<T> Base class for code models that provides shared tokenization, task dispatch, and structured outputs.
CodeTaskRequestBase Base type for all code task execution requests.
CodeTaskResultBase Base type for structured results returned from code tasks.

Interfaces (7)

Type Summary
ICodeModel<T> Represents a code understanding model capable of processing and analyzing source code.
ICodeSyntaxProvider Parses source code for the program synthesizer and the code-tokenization pipeline: syntax validation and abstract-syntax-tree extraction.
ICodeTokenizationPipeline Defines a code tokenization pipeline that builds on the core tokenizer stack and adds code-oriented metadata.
IProgramExecutionEngine Defines an execution boundary for running synthesized programs against inputs.
IProgramSynthesisServingClient Sends program-synthesis work to an AiDotNet.Serving host instead of running it in-process: code tasks, sandboxed program execution and evaluation, and sandboxed SQL.
IProgramSynthesizer<T> Represents a program synthesis engine capable of automatically generating programs.
ISqlSyntaxValidator Validates whether a string is syntactically valid SQL, used by the program synthesizer to reject malformed candidate SQL programs.

Enums (15)

Type Summary
CodeCloneType Standard clone taxonomy (Type-1..Type-4).
CodeEditOperationType
CodeIssueCategory
CodeIssueSeverity
CodeMatchType
CodeSymbolKind
CodeTask Defines the different types of code-related tasks that can be performed.
CompilationDiagnosticSeverity
ProgramExecuteErrorCode Classifies program execution failures in a structured, machine-readable way.
ProgramLanguage Defines the programming languages that can be synthesized or processed.
ProgramSynthesisModelKind Defines the built-in program synthesis model implementations that can be configured via the primary builder/result APIs.
SqlDialect Supported SQL dialects for ProgramLanguage.SQL execution and evaluation.
SqlExecuteErrorCode Classifies SQL execution failures in a structured, machine-readable way.
SqlValueKind
SynthesisType Defines the different types of program synthesis approaches available.

Options & Configuration (4)

Type Summary
CodeTokenizationPipelineOptions Options for CodeTokenizationPipeline that control optional structural extraction.
NeuralProgramSynthesizerOptions Configuration options for the NeuralProgramSynthesizer.
ProgramSynthesisOptions Configuration options for enabling Program Synthesis / Code Tasks via the primary builder/result APIs.
ProgramSynthesisServingClientOptions Configuration for calling an AiDotNet.Serving instance for Program Synthesis operations.

Helpers & Utilities (3)

Type Summary
CodeAstNode Represents a node in an abstract syntax tree (AST) for a piece of source code.
ProgramSynthesisTokenizerFactory Creates safe, code-aware default tokenizers for ProgramLanguage values.
SqlSyntaxValidation Global registration point for the optional precise SQL syntax validator used by NeuralProgramSynthesizer.