Documentation
¶
Index ¶
- type Claw
- func (c *Claw) AgentDir(name string) string
- func (c *Claw) CreateAgent(name string) error
- func (c *Claw) DeleteAgent(name string) error
- func (c *Claw) GetAgent(name string) *agent.Agent
- func (c *Claw) Init() error
- func (c *Claw) ListAgents() ([]string, error)
- func (c *Claw) Run(ctx context.Context) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claw ¶
type Claw struct {
// contains filtered or unexported fields
}
Claw is the main orchestrator — the Go equivalent of nanoclaw's index.ts. It connects channels to explicitly registered agents.
func (*Claw) CreateAgent ¶
CreateAgent registers a new agent by creating its directory structure and loading it. Returns an error if the agent already exists.
func (*Claw) DeleteAgent ¶
DeleteAgent removes a registered agent and its data.
func (*Claw) Init ¶
Init loads all registered agents from the memory store. Must be called before Run.
func (*Claw) ListAgents ¶
ListAgents returns the names of all registered agents.
Click to show internal directories.
Click to hide internal directories.