Documentation
¶
Overview ¶
Package agent provides error definitions for agent operations.
Package agent provides high-level APIs for agent management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidAgentID is returned when agent ID is empty or invalid. ErrInvalidAgentID = errors.New("invalid agent ID") // ErrAgentNotFound is returned when agent does not exist. ErrAgentNotFound = errors.New("agent not found") // ErrAgentAlreadyExists is returned when trying to create duplicate agent. ErrAgentAlreadyExists = errors.New("agent already exists") )
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
Status Status `json:"status"`
CreatedAt int64 `json:"created_at"`
}
Agent represents an AI agent with session management.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides agent management operations.
func NewService ¶
func NewService(memoryMgr memory.MemoryManager) *Service
NewService creates a new agent service instance. Args: memoryMgr - memory manager for session and task management. Returns new agent service instance.
func (*Service) CreateAgent ¶
CreateAgent creates a new agent with default configuration. Args: ctx - operation context. agentID - unique identifier for the agent. Returns new agent instance or error.
func (*Service) DeleteAgent ¶
DeleteAgent deletes an agent and its associated data. Args: ctx - operation context. agentID - agent identifier. Returns error if deletion fails.