Versions in this module Expand all Collapse all v0 v0.0.5 Jan 27, 2025 Changes in this version + type DefaultNilService struct + func (d *DefaultNilService) Probe() error + func (s *DefaultNilService) GetName() (*string, error) + func (s *DefaultNilService) GetParameters() (ToolParameters, error) + func (s *DefaultNilService) Handle(ctx ToolContext) error + type DefaultUnimplementedService struct + func (d *DefaultUnimplementedService) Probe() error + func (s *DefaultUnimplementedService) GetName() (*string, error) + func (s *DefaultUnimplementedService) GetParameters() (*ToolParameters, error) + func (s *DefaultUnimplementedService) Handle(ctx ToolContext) error + type RpcClient struct + func (rc *RpcClient) GetName() (string, error) + func (rc *RpcClient) GetParameters() (*ToolParameters, error) + func (rc *RpcClient) Handle(ctx *ToolContext) error + func (rc *RpcClient) Probe() error + type RpcServer struct + func (rs *RpcServer) GetName(_ struct{}, resp *string) error + func (rs *RpcServer) GetParameters(_ struct{}, resp *ToolParameters) error + func (rs *RpcServer) Handle(ctx *ToolContext, resp *error) error + func (rs *RpcServer) Probe(_ struct{}, resp *error) error + type ToolContext struct + Arguments map[string]any + func (c *ToolContext) GetBool(name string) (bool, error) + func (c *ToolContext) GetInt(name string) (int, error) + func (c *ToolContext) GetString(name string) (string, error) + func (c *ToolContext) ToFloat(name string) (float64, error) + type ToolParameters struct + Description string + Properties []ToolProperty + ReturnType string + type ToolPlugin struct + Service ToolService + func (p *ToolPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (p *ToolPlugin) Server(*plugin.MuxBroker) (interface{}, error) + type ToolProperty struct + Description string + Enum []string + Name string + Required bool + Type string + type ToolService interface + GetName func() (string, error) + GetParameters func() (*ToolParameters, error) + Handle func(ctx *ToolContext) error + Probe func() error