-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support Box AI endpoints (box/box-openapi#416) (#170)
- Loading branch information
1 parent
fa9cbca
commit febd8d0
Showing
6 changed files
with
794 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "engineHash": "afd7974", "specHash": "1698c95", "version": "0.5.3" } | ||
{ "engineHash": "afd7974", "specHash": "63d1af0", "version": "0.5.3" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# AiManager | ||
|
||
- [Send AI Ask request](#send-ai-ask-request) | ||
- [Send AI Text Gen request](#send-ai-text-gen-request) | ||
|
||
## Send AI Ask request | ||
|
||
Sends an AI request to supported LLMs and returns an answer specifically focused on the user's question given the provided context. | ||
|
||
This operation is performed by calling function `createAiAsk`. | ||
|
||
See the endpoint docs at | ||
[API Reference](https://developer.box.com/reference/post-ai-ask/). | ||
|
||
_Currently we don't have an example for calling `createAiAsk` in integration tests_ | ||
|
||
### Arguments | ||
|
||
- requestBody `AiAsk` | ||
- Request body of createAiAsk method | ||
- optionalsInput `CreateAiAskOptionalsInput` | ||
- | ||
|
||
### Returns | ||
|
||
This function returns a value of type `AiResponse`. | ||
|
||
A successful response including the answer from the LLM. | ||
|
||
## Send AI Text Gen request | ||
|
||
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text. | ||
|
||
This operation is performed by calling function `createAiTextGen`. | ||
|
||
See the endpoint docs at | ||
[API Reference](https://developer.box.com/reference/post-ai-text-gen/). | ||
|
||
_Currently we don't have an example for calling `createAiTextGen` in integration tests_ | ||
|
||
### Arguments | ||
|
||
- requestBody `AiTextGen` | ||
- Request body of createAiTextGen method | ||
- optionalsInput `CreateAiTextGenOptionalsInput` | ||
- | ||
|
||
### Returns | ||
|
||
This function returns a value of type `AiResponse`. | ||
|
||
A successful response including the answer from the LLM. |
Oops, something went wrong.