SmartTool
Wisej.AI.SmartTool
Namespace: Wisej.AI
Assembly: Wisej.AI (3.5.0.0)
Represents a tool that can be used to perform operations on a target object using a specified method.
public class SmartToolPublic Class SmartToolConstructors
SmartTool(target, method)
Initializes a new instance of the SmartTool class with the specified target and method.
Throws:
ArgumentNullException Thrown when the method is null.
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
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
Last updated
