Documentation
¶
Index ¶
- Variables
- func CloseDB() error
- func InitDB(path string) error
- func ToJSON(v interface{}) string
- type ParamInfo
- type Registry
- func (r *Registry) Call(name string, args map[string]interface{}) (interface{}, error)
- func (r *Registry) Count() int
- func (r *Registry) Get(name string) (*ToolInfo, bool)
- func (r *Registry) GetDocumentation() string
- func (r *Registry) List() []string
- func (r *Registry) ListTools() []*ToolInfo
- func (r *Registry) Register(info *ToolInfo) error
- func (r *Registry) Unregister(name string) bool
- type ToolCallResult
- type ToolFunc
- type ToolInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
DB is the global database connection
View Source
var DBPath string
DBPath stores the path to the database file
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages all available tools
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry creates a new tool registry with all SQLite tools registered
func (*Registry) GetDocumentation ¶
GetDocumentation returns formatted documentation for all tools
func (*Registry) Unregister ¶
Unregister removes a tool from the registry
type ToolCallResult ¶
ToolCallResult represents the result of a tool invocation
Click to show internal directories.
Click to hide internal directories.