sim

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeSource

func AnalyzeSource(ctx context.Context, llm LLMChat, systemPrompt string, source scannedSource) (*domain.SimulationSourceReport, error)

func MergeSynthesis

func MergeSynthesis(ctx context.Context, llm LLMChat, systemPrompt string, existing *domain.SimulationProfile, reports []domain.SimulationSourceReport) (*domain.SimulationSynthesis, error)

func Run

func Run(ctx context.Context, deps Deps, opts Options) (<-chan Event, error)

func RunImport

func RunImport(ctx context.Context, st *store.Store, path string) (<-chan Event, error)

Types

type Deps

type Deps struct {
	Store   *store.Store
	LLM     LLMChat
	Prompts Prompts
}

type Event

type Event struct {
	Time    time.Time
	Stage   Stage
	Current int
	Total   int
	Message string
	Err     error
}

type ImportResult

type ImportResult struct {
	ImportedSources int
	SkippedSources  int
	ProfilePath     string
}

func ImportProfile

func ImportProfile(ctx context.Context, st *store.Store, path string) (ImportResult, error)

type LLMChat

type LLMChat interface {
	Generate(ctx context.Context, messages []agentcore.Message, tools []agentcore.ToolSpec, opts ...agentcore.CallOption) (*agentcore.LLMResponse, error)
}

type Options

type Options struct {
	SourceDir string
}

type Prompts

type Prompts struct {
	Source string
	Merge  string
}

type Stage

type Stage string
const (
	StageScan    Stage = "scan"
	StageAnalyze Stage = "analyze"
	StageMerge   Stage = "merge"
	StageImport  Stage = "import"
	StageDone    Stage = "done"
	StageError   Stage = "error"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL