Documentation
¶
Index ¶
- type Agent
- type CreateRequest
- type Manager
- func (m *Manager) Create(ctx context.Context, orgID string, req *CreateRequest) (*Agent, error)
- func (m *Manager) Delete(ctx context.Context, orgID, agentID string) error
- func (m *Manager) Get(ctx context.Context, orgID, agentID string) (*Agent, error)
- func (m *Manager) GetStats(ctx context.Context, orgID, agentID string) (*Stats, error)
- func (m *Manager) List(ctx context.Context, orgID string) ([]*Agent, error)
- func (m *Manager) UpdateLastActive(ctx context.Context, agentID string)
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
ID string `json:"id"`
OrgID string `json:"org_id"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Config map[string]interface{} `json:"config,omitempty"`
CreatedAt time.Time `json:"created_at"`
LastActiveAt *time.Time `json:"last_active_at,omitempty"`
}
Agent represents a registered agent
type CreateRequest ¶
type CreateRequest struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Config map[string]interface{} `json:"config,omitempty"`
}
CreateRequest is the request body for registering an agent
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles agent CRUD
func NewManager ¶
NewManager creates a new agent manager
type Stats ¶
type Stats struct {
AgentID string `json:"agent_id"`
MemoryCount int `json:"memory_count"`
Memories24h int `json:"memories_24h"`
Errors24h int `json:"errors_24h"`
SessionCount int `json:"session_count"`
ActiveSessions int `json:"active_sessions"`
LastActiveAt *time.Time `json:"last_active_at,omitempty"`
MemoryTypes map[string]int `json:"memory_types"`
}
Stats represents memory statistics for an agent
Click to show internal directories.
Click to hide internal directories.