compute

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedCalculatorTool

type AdvancedCalculatorTool struct {
	*tools.BaseTool
	// contains filtered or unexported fields
}

AdvancedCalculatorTool 高级计算器工具

支持更多数学函数

func NewAdvancedCalculatorTool

func NewAdvancedCalculatorTool(operations CalculatorOperations) *AdvancedCalculatorTool

NewAdvancedCalculatorTool 创建高级计算器工具

type CalculatorOperations

type CalculatorOperations struct {
	Add      bool // 加法
	Subtract bool // 减法
	Multiply bool // 乘法
	Divide   bool // 除法
	Power    bool // 幂运算
	Sqrt     bool // 平方根
	Abs      bool // 绝对值
}

CalculatorOperations 支持的计算操作类型

type CalculatorTool

type CalculatorTool struct {
	*tools.BaseTool
}

CalculatorTool 计算器工具

支持基本的数学运算

func NewCalculatorTool

func NewCalculatorTool() *CalculatorTool

NewCalculatorTool 创建计算器工具

Jump to

Keyboard shortcuts

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