ToolExpression class
Constructors
- ToolExpression.new({String name = "expression", String description = """ Can be used to evaluate math or logic expressions. i.e. sin(pow(4/3, 2.5)), or even 4 * 12 < sin(4). The following functions are available: sin(radians), pow(a, b), min(a, b), max(a, b), abs(a), sqrt(a), log(a), exp(a), tan(radians), cos(radians), asin(radians), acos(radians), atan(radians), atan2(aradians, bradians), ceil(a), floor(a), round(a), deg2rad(degrees), rad2deg(radians), lerp(a,b,f), pi, e, ln10, ln2, log2e Please remember that if the user is talking in degrees you will need to convert to radians when using trig functions! """})
Properties
- description → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
schema
→ Map<
String, dynamic> -
no setteroverride
- toolSchema → ToolSchema
-
no setterinherited
Methods
-
call(
{required Agent agent, required Map< String, dynamic> arguments}) → Future<String> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited