Skip to main content

SmartTool

Namespace: Wisej.AI

Assembly: Wisej.AI

Represents a tool that can be used to perform operations on a target object using a specified method.

public class SmartTool

Constructors​

SmartTool(target, method)​

Initializes a new instance of the SmartTool class with the specified target and method.

NameTypeDescription
targetObjectThe target object on which the method will be invoked.
methodMethodInfoThe method to be invoked on the target object.

Throws:

Properties​

Description​

String: Gets the description of the method.

FullName​

String: Gets the full name of the method including the namespace.

Name​

String: Gets the name of the method.

Namespace​

String:

NamespaceDescription​

String: Gets the description of the namespace.

Parameters​

Parameter[]: Gets the parameters of the method.

ReturnType​

Type: Gets the return type of the method.

Target​

Object: Gets the object containing this tool.

Methods​

GetParametersSchema()​

Returns a JSON schema representing the tool's parameters or null when the function doesn't have arguments.

Returns: Object. JSON schema object