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.
- C#
- VB.NET
public class SmartTool
Public Class SmartTool
Constructors
SmartTool(target, method)
Initializes a new instance of the SmartTool class with the specified target and method.
| Name | Type | Description |
|---|---|---|
| target | Object | The target object on which the method will be invoked. |
| method | MethodInfo | The method to be invoked on the target object. |
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