Documentation
¶
Index ¶
- func Unframe(text string) string
- type Claw
- func (c *Claw) AgentDir(name string) string
- func (c *Claw) AgentState(name string) ([]agent.Message, agent.Usage, bool)
- func (c *Claw) Close()
- func (c *Claw) CreateAgent(name string) error
- func (c *Claw) DeleteAgent(name string) error
- func (c *Claw) Init() error
- func (c *Claw) ListAgents() ([]string, error)
- func (c *Claw) Run(ctx context.Context) error
- func (c *Claw) Send(ctx context.Context, msg channel.Message) iter.Seq2[agent.Message, error]
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Claw ¶
type Claw struct {
// contains filtered or unexported fields
}
func (*Claw) AgentState ¶ added in v0.9.1
func (*Claw) CreateAgent ¶
func (*Claw) DeleteAgent ¶
func (*Claw) ListAgents ¶
type Config ¶
type Config struct {
AssistantName string
AgentConfig *agent.Config
MCP *mcp.Manager
Tools []tool.Tool
Instructions string
Memory *memory.Store
Channels []channel.Channel
// Authorize gates inbound messages; nil allows everything.
Authorize func(msg channel.Message) bool
}
func DefaultConfig ¶
Click to show internal directories.
Click to hide internal directories.