calculator

package
v0.59.13 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

type Calculator struct{}

Calculator implements the tools.Tool interface for basic arithmetic calculations

func (*Calculator) Definition

func (c *Calculator) Definition() mcp.Tool

Definition returns the tool's definition for MCP registration

func (*Calculator) Execute

func (c *Calculator) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcp.CallToolResult, error)

Execute executes the calculator's logic

func (*Calculator) ProvideExtendedInfo

func (c *Calculator) ProvideExtendedInfo() *tools.ExtendedHelp

ProvideExtendedInfo implements the ExtendedHelpProvider interface for the Calculator tool

Jump to

Keyboard shortcuts

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