new AIManager(client)
+ + + + + + + + + + + + + + +Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
client |
+
+
+ + + +BoxClient + + + + | + + + + + +The Box API Client that is responsible for making calls to the API | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + + + + + + + +
Classes
+ +-
+
- AIManager + +
Methods
+ + + + + + + +ask(body, optionsopt, callbackopt) → {Promise.<schemas.AiResponse>}
+ + + + + + +Parameters:
+ + +Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
body |
+
+
+ + + +schemas.AiAsk + + + + | + + ++ + + + + + | + + + + ++ |
options |
+
+
+ + + +object + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Options for the request | +
callback |
+
+
+ + + +function + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Passed the result if successful, error otherwise | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + + + + + + + +
Returns:
+ + +-
+
- + Type + +
- + +Promise.<schemas.AiResponse> + + + +
ask(body, optionsopt, callbackopt) → {Promise.<schemas.AiResponse>}
+ + + + + + +Parameters:
+ + +Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
body |
+
+
+ + + +schemas.AiAsk + + + + | + + ++ + + + + + | + + + + ++ |
options |
+
+
+ + + +object + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Options for the request | +
callback |
+
+
+ + + +function + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Passed the result if successful, error otherwise | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + + + + + + + +
Returns:
+ + +-
+
- + Type + +
- + +Promise.<schemas.AiResponse> + + + +
textGen(body, optionsopt, callbackopt) → {Promise.<schemas.AiResponse>}
+ + + + + + +Parameters:
+ + +Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
body |
+
+
+ + + +schemas.AiTextGen + + + + | + + ++ + + + + + | + + + + ++ |
options |
+
+
+ + + +object + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Options for the request | +
callback |
+
+
+ + + +function + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Passed the result if successful, error otherwise | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + + + + + + + +
Returns:
+ + +-
+
- + Type + +
- + +Promise.<schemas.AiResponse> + + + +
textGen(body, optionsopt, callbackopt) → {Promise.<schemas.AiResponse>}
+ + + + + + +Parameters:
+ + +Name | + + +Type | + + +Attributes | + + + + +Description | +
---|---|---|---|
body |
+
+
+ + + +schemas.AiTextGen + + + + | + + ++ + + + + + | + + + + ++ |
options |
+
+
+ + + +object + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Options for the request | +
callback |
+
+
+ + + +function + + + + | + + +
+
+ <optional> + + + + + + |
+
+
+
+
+ Passed the result if successful, error otherwise | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- + + + + + + + +
Returns:
+ + +-
+
- + Type + +
- + +Promise.<schemas.AiResponse> + + + +