agents

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchitectureAnalysis

type ArchitectureAnalysis struct {
	Services       []ServiceRequirement  `json:"services"`
	Networking     NetworkRequirement    `json:"networking"`
	Storage        StorageRequirement    `json:"storage"`
	Security       SecurityRequirement   `json:"security"`
	Monitoring     MonitoringRequirement `json:"monitoring"`
	Estimated_Cost string                `json:"estimated_cost"`
}

ArchitectureAnalysis represents the analysis result

type ArchitectureAnalyzer

type ArchitectureAnalyzer struct {
	*llm.MCPAgent
}

ArchitectureAnalyzer analyzes input and extracts infrastructure requirements

func NewArchitectureAnalyzer

func NewArchitectureAnalyzer(mcpClient *llm.MCPClient, runtime *shared.RuntimeContext) *ArchitectureAnalyzer

NewArchitectureAnalyzer creates a new architecture analyzer

func (*ArchitectureAnalyzer) Analyze

func (a *ArchitectureAnalyzer) Analyze(input map[string]string) (*ArchitectureAnalysis, error)

Analyze performs architecture analysis

type DatabaseRequirement

type DatabaseRequirement struct {
	Type   string `json:"type"`
	Engine string `json:"engine"`
	Size   string `json:"size"`
	Backup bool   `json:"backup"`
}

type FileStorageRequirement

type FileStorageRequirement struct {
	Type        string `json:"type"`
	AccessLevel string `json:"access_level"`
	Encryption  bool   `json:"encryption"`
}

type GeneratedProject

type GeneratedProject struct {
	ProjectFiles map[string]string `json:"project_files"`
	Dependencies []string          `json:"dependencies"`
	Instructions string            `json:"instructions"`
}

GeneratedProject represents the generated Pulumi project

type InfrastructureValidator

type InfrastructureValidator struct {
	*llm.MCPAgent
}

InfrastructureValidator validates the generated infrastructure code

func NewInfrastructureValidator

func NewInfrastructureValidator(mcpClient *llm.MCPClient, runtime *shared.RuntimeContext) *InfrastructureValidator

NewInfrastructureValidator creates a new infrastructure validator

func (*InfrastructureValidator) Validate

Validate performs validation on the generated project

type MonitoringRequirement

type MonitoringRequirement struct {
	CloudWatch bool `json:"cloudwatch"`
	Logging    bool `json:"logging"`
	Alerting   bool `json:"alerting"`
}

type NetworkRequirement

type NetworkRequirement struct {
	VPC          bool     `json:"vpc"`
	Subnets      []string `json:"subnets"`
	LoadBalancer bool     `json:"load_balancer"`
	CDN          bool     `json:"cdn"`
}

type PulumiGenerator

type PulumiGenerator struct {
	*llm.MCPAgent
}

PulumiGenerator generates Pulumi TypeScript code

func NewPulumiGenerator

func NewPulumiGenerator(mcpClient *llm.MCPClient, runtime *shared.RuntimeContext) *PulumiGenerator

NewPulumiGenerator creates a new Pulumi code generator

func (*PulumiGenerator) Generate

func (g *PulumiGenerator) Generate(analysis *ArchitectureAnalysis, projectConfig map[string]string) (*GeneratedProject, error)

Generate creates Pulumi project code

type SecurityRequirement

type SecurityRequirement struct {
	IAMRoles     []string `json:"iam_roles"`
	Encryption   bool     `json:"encryption"`
	VPCEndpoints bool     `json:"vpc_endpoints"`
	WAF          bool     `json:"waf"`
}

type ServiceRequirement

type ServiceRequirement struct {
	Name          string                 `json:"name"`
	Type          string                 `json:"type"`
	Description   string                 `json:"description"`
	Dependencies  []string               `json:"dependencies"`
	Configuration map[string]interface{} `json:"configuration"`
}

type StorageRequirement

type StorageRequirement struct {
	Databases   []DatabaseRequirement    `json:"databases"`
	FileStorage []FileStorageRequirement `json:"file_storage"`
}

type ValidationResult

type ValidationResult struct {
	IsValid       bool     `json:"is_valid"`
	Issues        []string `json:"issues"`
	Suggestions   []string `json:"suggestions"`
	SecurityRisks []string `json:"security_risks"`
}

ValidationResult represents the result of the validation

Jump to

Keyboard shortcuts

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