Documentation
¶
Index ¶
- type AWSAgent
- type Action
- type Agent
- type AgentConfig
- type AgentManager
- type AgentStatus
- type AzureAgent
- type BaseAgent
- func (b *BaseAgent) GetCapabilities() []string
- func (b *BaseAgent) GetConfiguration() *AgentConfig
- func (b *BaseAgent) GetName() string
- func (b *BaseAgent) GetStatus() *AgentStatus
- func (b *BaseAgent) GetType() string
- func (b *BaseAgent) IsHealthy() bool
- func (b *BaseAgent) Query(ctx context.Context, query *Query) (*Response, error)
- func (b *BaseAgent) Start() error
- func (b *BaseAgent) Stop() error
- func (b *BaseAgent) UpdateConfiguration(config *AgentConfig) error
- type GCPAgent
- type GeneralAgent
- type KubernetesAgent
- type MonitoringAgent
- type OpenAIAgent
- type Query
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSAgent ¶
type AWSAgent struct {
*BaseAgent
}
AWSAgent specializes in AWS-related queries
func (*AWSAgent) GetCapabilities ¶
GetCapabilities returns the capabilities of the AWS agent
type Action ¶
type Action struct {
Type string `json:"type"`
Description string `json:"description"`
Command string `json:"command"`
Parameters map[string]interface{} `json:"parameters"`
Risk string `json:"risk"`
}
Action represents an actionable item from the AI response
type Agent ¶
type Agent interface {
GetName() string
GetType() string
Query(ctx context.Context, query *Query) (*Response, error)
GetCapabilities() []string
GetStatus() *AgentStatus
GetConfiguration() *AgentConfig
UpdateConfiguration(config *AgentConfig) error
Start() error
Stop() error
IsHealthy() bool
}
Agent represents an AI agent interface
type AgentConfig ¶
type AgentConfig struct {
Model string `json:"model"`
MaxTokens int `json:"max_tokens"`
Temperature float64 `json:"temperature"`
APIKey string `json:"api_key"`
Endpoint string `json:"endpoint"`
}
AgentConfig represents the configuration of an AI agent
type AgentManager ¶
type AgentManager struct {
// contains filtered or unexported fields
}
AgentManager manages multiple AI agents
func NewAgentManager ¶
func NewAgentManager() *AgentManager
NewAgentManager creates a new agent manager
func (*AgentManager) AddAgent ¶
func (m *AgentManager) AddAgent(agent Agent) error
AddAgent adds an agent to the manager
func (*AgentManager) GetAgent ¶
func (m *AgentManager) GetAgent(name string) (Agent, error)
GetAgent retrieves an agent by name
func (*AgentManager) ListAgents ¶
func (m *AgentManager) ListAgents() []Agent
ListAgents returns a list of all agents
func (*AgentManager) ProcessQuery ¶
ProcessQuery processes a query using available agents
func (*AgentManager) RemoveAgent ¶
func (m *AgentManager) RemoveAgent(name string) error
RemoveAgent removes an agent from the manager
type AgentStatus ¶
type AgentStatus struct {
State string `json:"state"`
LastActivity time.Time `json:"last_activity"`
Health string `json:"health"`
Uptime time.Duration `json:"uptime"`
}
AgentStatus represents the status of an AI agent
type AzureAgent ¶
type AzureAgent struct {
*BaseAgent
}
AzureAgent specializes in Azure-related queries
func (*AzureAgent) GetCapabilities ¶
func (az *AzureAgent) GetCapabilities() []string
GetCapabilities returns the capabilities of the Azure agent
func (*AzureAgent) GetModel ¶
func (az *AzureAgent) GetModel() string
GetModel returns the AI model being used
func (*AzureAgent) ProcessQuery ¶
func (az *AzureAgent) ProcessQuery(query string) (*Response, error)
ProcessQuery processes a query for the Azure agent
type BaseAgent ¶
type BaseAgent struct {
// contains filtered or unexported fields
}
BaseAgent provides common functionality for all agents
func (*BaseAgent) GetCapabilities ¶
GetCapabilities returns the agent capabilities
func (*BaseAgent) GetConfiguration ¶
func (b *BaseAgent) GetConfiguration() *AgentConfig
GetConfiguration returns the agent configuration
func (*BaseAgent) GetStatus ¶
func (b *BaseAgent) GetStatus() *AgentStatus
GetStatus returns the agent status
func (*BaseAgent) UpdateConfiguration ¶
func (b *BaseAgent) UpdateConfiguration(config *AgentConfig) error
UpdateConfiguration updates the agent configuration
type GCPAgent ¶
type GCPAgent struct {
*BaseAgent
}
GCPAgent specializes in GCP-related queries
func (*GCPAgent) GetCapabilities ¶
GetCapabilities returns the capabilities of the GCP agent
type GeneralAgent ¶
type GeneralAgent struct {
*BaseAgent
}
GeneralAgent handles general IT infrastructure questions
func (*GeneralAgent) GetCapabilities ¶
func (g *GeneralAgent) GetCapabilities() []string
GetCapabilities returns the capabilities of the general agent
func (*GeneralAgent) GetModel ¶
func (g *GeneralAgent) GetModel() string
GetModel returns the AI model being used
func (*GeneralAgent) GetType ¶
func (g *GeneralAgent) GetType() string
GetType returns the agent type
func (*GeneralAgent) ProcessQuery ¶
func (g *GeneralAgent) ProcessQuery(query string) (*Response, error)
ProcessQuery processes a query for the general agent
type KubernetesAgent ¶
type KubernetesAgent struct {
*BaseAgent
}
KubernetesAgent specializes in Kubernetes-related queries
func (*KubernetesAgent) GetCapabilities ¶
func (k *KubernetesAgent) GetCapabilities() []string
GetCapabilities returns the capabilities of the Kubernetes agent
func (*KubernetesAgent) GetModel ¶
func (k *KubernetesAgent) GetModel() string
GetModel returns the AI model being used
func (*KubernetesAgent) GetType ¶
func (k *KubernetesAgent) GetType() string
GetType returns the agent type
func (*KubernetesAgent) ProcessQuery ¶
func (k *KubernetesAgent) ProcessQuery(query string) (*Response, error)
ProcessQuery processes a query for the Kubernetes agent
type MonitoringAgent ¶
type MonitoringAgent struct {
*BaseAgent
}
MonitoringAgent specializes in monitoring and observability
func (*MonitoringAgent) GetCapabilities ¶
func (m *MonitoringAgent) GetCapabilities() []string
GetCapabilities returns the capabilities of the monitoring agent
func (*MonitoringAgent) GetModel ¶
func (m *MonitoringAgent) GetModel() string
GetModel returns the AI model being used
func (*MonitoringAgent) GetType ¶
func (m *MonitoringAgent) GetType() string
GetType returns the agent type
func (*MonitoringAgent) ProcessQuery ¶
func (m *MonitoringAgent) ProcessQuery(query string) (*Response, error)
ProcessQuery processes a query for the monitoring agent
type OpenAIAgent ¶
type OpenAIAgent struct {
*BaseAgent
// contains filtered or unexported fields
}
OpenAIAgent implements the Agent interface using OpenAI's GPT models
func NewOpenAIAgent ¶
func NewOpenAIAgent(cfg config.Agent, agentType string) (*OpenAIAgent, error)
NewOpenAIAgent creates a new OpenAI-powered agent
func (*OpenAIAgent) GetCapabilities ¶
func (o *OpenAIAgent) GetCapabilities() []string
GetCapabilities returns the capabilities of the OpenAI agent
type Response ¶
type Response struct {
Text string `json:"text"`
Content string `json:"content"`
Type string `json:"type"`
Confidence float64 `json:"confidence"`
Metadata map[string]interface{} `json:"metadata"`
Suggestions []string `json:"suggestions"`
Actions []Action `json:"actions"`
Timestamp time.Time `json:"timestamp"`
}
Response represents an AI agent response