Documentation
¶
Index ¶
- func CreateAWSCommands() *cobra.Command
- func EnsureVPCInternetGatewayAndDefaultRoute(ctx context.Context, opts CLIExecOptions, vpcID string, w io.Writer, ...) (string, error)
- func EscapeJMES(s string) string
- func ExtractELBv2SubnetsFromArgs(args []string) []string
- func FindAttachedInternetGatewayForVPC(ctx context.Context, opts CLIExecOptions, vpcID string, run CLIRunner) (string, error)
- func GetLLMAnalysisPrompt(question string) string
- func MaybeEnsureHTTPSViaCloudFront(ctx context.Context, bindings map[string]string, opts CLIExecOptions, ...) error
- func ShortStableHash(s string) string
- func WaitForCloudFrontDistributionDeployed(ctx context.Context, id, profile string, run CLIRunner) error
- type AIProfile
- type BackendAWSCredentials
- type CLIExecOptions
- type CLIRunner
- type Client
- func NewClient(ctx context.Context) (*Client, error)
- func NewClientWithCredentials(ctx context.Context, creds *BackendAWSCredentials, debug bool) (*Client, error)
- func NewClientWithProfile(ctx context.Context, profile string) (*Client, error)
- func NewClientWithProfileAndDebug(ctx context.Context, profile string, debug bool) (*Client, error)
- func (c *Client) ExecCLI(ctx context.Context, args []string) (string, error)
- func (c *Client) ExecuteOperation(ctx context.Context, toolName string, input map[string]interface{}) (string, error)
- func (c *Client) ExecuteOperations(ctx context.Context, operations []LLMOperation) (string, error)
- func (c *Client) ExecuteOperationsConcurrently(ctx context.Context, operations []LLMOperation, aiProfile string) (string, error)
- func (c *Client) ExecuteOperationsWithAWSProfile(ctx context.Context, operations []LLMOperation, awsProfile, region string) (string, error)
- func (c *Client) GetAIProfiles() map[string]AIProfile
- func (c *Client) GetRecentAlarms(ctx context.Context) (string, error)
- func (c *Client) GetRelevantContext(ctx context.Context, question string) (string, error)
- type LLMAnalysis
- type LLMOperation
- type LLMOperationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAWSCommands ¶
CreateAWSCommands creates the AWS command tree for static commands
func EnsureVPCInternetGatewayAndDefaultRoute ¶ added in v0.0.3
func EscapeJMES ¶ added in v0.0.3
func ExtractELBv2SubnetsFromArgs ¶ added in v0.0.3
func FindAttachedInternetGatewayForVPC ¶ added in v0.0.3
func GetLLMAnalysisPrompt ¶
GetLLMAnalysisPrompt returns the prompt for LLM to analyze what AWS operations are needed
func MaybeEnsureHTTPSViaCloudFront ¶ added in v0.0.3
func ShortStableHash ¶ added in v0.0.3
Types ¶
type AIProfile ¶
type AIProfile struct {
Provider string `mapstructure:"provider"`
AWSProfile string `mapstructure:"aws_profile"`
Model string `mapstructure:"model"`
Region string `mapstructure:"region"`
APIKeyEnv string `mapstructure:"api_key_env"`
}
AIProfile represents an AI provider configuration
func GetAIProfile ¶
GetAIProfile returns the AI configuration for the given provider name
type BackendAWSCredentials ¶ added in v0.0.3
type BackendAWSCredentials struct {
AccessKeyID string
SecretAccessKey string
Region string
SessionToken string
}
BackendAWSCredentials represents AWS credentials from the backend
type CLIExecOptions ¶ added in v0.0.3
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithCredentials ¶ added in v0.0.3
func NewClientWithCredentials(ctx context.Context, creds *BackendAWSCredentials, debug bool) (*Client, error)
NewClientWithCredentials creates a new AWS client using explicit credentials from the backend
func NewClientWithProfile ¶
func (*Client) ExecuteOperation ¶
func (c *Client) ExecuteOperation(ctx context.Context, toolName string, input map[string]interface{}) (string, error)
ExecuteOperation exposes the default single-operation execution helper.
func (*Client) ExecuteOperations ¶
ExecuteOperations exposes the default batch execution helper.
func (*Client) ExecuteOperationsConcurrently ¶
func (c *Client) ExecuteOperationsConcurrently(ctx context.Context, operations []LLMOperation, aiProfile string) (string, error)
ExecuteOperationsConcurrently executes multiple AWS operations concurrently for LLM processing
func (*Client) ExecuteOperationsWithAWSProfile ¶
func (c *Client) ExecuteOperationsWithAWSProfile(ctx context.Context, operations []LLMOperation, awsProfile, region string) (string, error)
ExecuteOperationsWithAWSProfile executes multiple AWS operations concurrently using a direct AWS profile
func (*Client) GetAIProfiles ¶
GetAIProfiles returns all AI profiles from the configuration
func (*Client) GetRecentAlarms ¶
GetRecentAlarms gets recent CloudWatch alarm information
type LLMAnalysis ¶
type LLMAnalysis struct {
Operations []LLMOperation `json:"operations"`
Analysis string `json:"analysis"`
}
LLMAnalysis represents the LLM's analysis of what AWS operations are needed
type LLMOperation ¶
type LLMOperation struct {
Operation string `json:"operation"`
Reason string `json:"reason"`
Parameters map[string]interface{} `json:"parameters"`
}
LLMOperation represents an AWS operation requested by the LLM