Documentation
¶
Overview ¶
Package compiler provides the core compilation logic for llm-compiler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// OutputDir is the directory where the binary will be placed.
OutputDir string
// OutputName overrides the output binary name.
// If empty, uses the input filename (without extension).
OutputName string
// SkipBuild generates the Go code but skips compilation.
// Use with KeepSource to inspect generated code.
SkipBuild bool
// KeepSource saves the generated .go file alongside the binary.
// Useful for debugging or inspection.
KeepSource bool
// Verbose enables detailed output during compilation.
Verbose bool
}
Options configures the compilation process.
type Result ¶
type Result struct {
// SourceFile is the path to the generated Go source file.
// Only set if KeepSource was true or SkipBuild was true.
SourceFile string
// BinaryFile is the path to the compiled binary.
// Empty if SkipBuild was true.
BinaryFile string
// Workflows contains the parsed workflow definitions.
Workflows []workflow.Workflow
}
Result contains the results of a successful compilation.
Click to show internal directories.
Click to hide internal directories.