utils

package
v0.0.0-...-52cc1ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentLoader

type AgentLoader struct {
	// contains filtered or unexported fields
}

AgentLoader handles loading agents from the filesystem

func NewAgentLoader

func NewAgentLoader(agentsDir string) *AgentLoader

NewAgentLoader creates a new agent loader

func (*AgentLoader) ListAgents

func (al *AgentLoader) ListAgents() ([]string, error)

ListAgents returns a list of available agents in the agents directory

func (*AgentLoader) LoadAgent

func (al *AgentLoader) LoadAgent(agentName string) (core.BaseAgent, error)

LoadAgent loads an agent from the specified directory Supports the following structures: 1. agents_dir/{agent_name}/agent.go - compiled as plugin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL