Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 20 additions & 18 deletions LICENSE-THIRD-PARTY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-----------

The following npm package may be included in this product:
The following npm packages may be included in this product:

- statuses@2.0.1
- statuses@2.0.2

This package contains the following license:
These packages each contain the following license:

The MIT License (MIT)

Expand Down Expand Up @@ -371,11 +372,12 @@ THE SOFTWARE.

-----------

The following npm package may be included in this product:
The following npm packages may be included in this product:

- http-errors@2.0.0
- http-errors@2.0.1

This package contains the following license:
These packages each contain the following license:

The MIT License (MIT)

Expand Down Expand Up @@ -1931,7 +1933,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The following npm packages may be included in this product:

- body-parser@1.20.3
- body-parser@1.20.4
- type-is@1.6.18

These packages each contain the following license:
Expand Down Expand Up @@ -2813,7 +2815,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

The following npm packages may be included in this product:

- @cypress/request@3.0.9
- @cypress/request@3.0.10
- aws-sign2@0.7.0
- forever-agent@0.6.1
- tunnel-agent@0.6.0
Expand Down Expand Up @@ -3136,12 +3138,11 @@ Apache-2.0

-----------

The following npm packages may be included in this product:
The following npm package may be included in this product:

- qs@6.13.0
- qs@6.14.0
- qs@6.14.2

These packages each contain the following license:
This package contains the following license:

BSD 3-Clause License

Expand Down Expand Up @@ -4147,7 +4148,7 @@ OTHER DEALINGS IN THE SOFTWARE.

The following npm package may be included in this product:

- basic-ftp@5.0.5
- basic-ftp@5.2.0

This package contains the following license:

Expand Down Expand Up @@ -4858,7 +4859,7 @@ IN THE SOFTWARE.

The following npm package may be included in this product:

- lodash@4.17.21
- lodash@4.17.23

This package contains the following license:

Expand Down Expand Up @@ -5234,6 +5235,7 @@ The following npm packages may be included in this product:
- csv-stringify@6.6.0
- degenerator@5.0.1
- isarray@1.0.0
- keychain@1.5.0
- netmask@2.0.2
- tr46@0.0.3
- undici-types@5.26.5
Expand Down Expand Up @@ -6719,7 +6721,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The following npm package may be included in this product:

- diff@4.0.2
- diff@4.0.4

This package contains the following license:

Expand Down Expand Up @@ -6906,8 +6908,8 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

The following npm packages may be included in this product:

- minimatch@5.1.6
- minimatch@9.0.5
- minimatch@5.1.9
- minimatch@9.0.9

These packages each contain the following license:

Expand Down Expand Up @@ -7057,7 +7059,7 @@ The following npm packages may be included in this product:
- ini@1.3.8
- isexe@2.0.0
- json-stringify-safe@5.0.1
- minimatch@3.1.2
- minimatch@3.1.5
- mute-stream@0.0.8
- mute-stream@2.0.0
- once@1.4.0
Expand Down Expand Up @@ -7445,7 +7447,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The following npm package may be included in this product:

- raw-body@2.5.2
- raw-body@2.5.3

This package contains the following license:

Expand Down Expand Up @@ -8113,7 +8115,7 @@ THE SOFTWARE.

The following npm package may be included in this product:

- ajv@6.12.6
- ajv@6.14.0

This package contains the following license:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Avatar URL: 'https://app.box.com/api/avatar/large/77777'
<!-- commands -->
# Command Topics

* [`box ai`](docs/ai.md) - Sends an AI request to supported LLMs and returns an answer
* [`box ai`](docs/ai.md) - Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.
* [`box autocomplete`](docs/autocomplete.md) - Display autocomplete installation instructions
* [`box collaboration-allowlist`](docs/collaboration-allowlist.md) - List collaboration allowlist entries
* [`box collaborations`](docs/collaborations.md) - Manage collaborations
Expand Down
20 changes: 11 additions & 9 deletions docs/ai.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
`box ai`
========

Sends an AI request to supported LLMs and returns an answer
Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.

* [`box ai:ask`](#box-aiask)
* [`box ai:extract`](#box-aiextract)
Expand All @@ -10,7 +10,7 @@ Sends an AI request to supported LLMs and returns an answer

## `box ai:ask`

Sends an AI request to supported LLMs and returns an answer
Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.

```
USAGE
Expand Down Expand Up @@ -39,7 +39,7 @@ FLAGS
--save-to-file-path=<value> Override default file path to save report

DESCRIPTION
Sends an AI request to supported LLMs and returns an answer
Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.

EXAMPLES
$ box ai:ask --items=id=12345,type=file --prompt "What is the status of this document?"
Expand All @@ -49,7 +49,7 @@ _See code: [src/commands/ai/ask.js](https://github.com/box/boxcli/blob/v4.5.0/sr

## `box ai:extract`

Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs. This is intended for direct use, not by AI agents.

```
USAGE
Expand Down Expand Up @@ -79,7 +79,8 @@ FLAGS
--save-to-file-path=<value> Override default file path to save report

DESCRIPTION
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs. This
is intended for direct use, not by AI agents.

EXAMPLES
$ box ai:extract --items=id=12345,type=file --prompt "firstName, lastName, location, yearOfBirth, company"
Expand All @@ -91,7 +92,7 @@ _See code: [src/commands/ai/extract.js](https://github.com/box/boxcli/blob/v4.5.

## `box ai:extract-structured`

Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs. For this request, you either need a metadata template or a list of fields you want to extract. Input is either a metadata template or a list of fields to ensure the structure.
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs. For this request, you either need a metadata template or a list of fields you want to extract. Input is either a metadata template or a list of fields to ensure the structure. This is intended for direct use, not by AI agents.

```
USAGE
Expand Down Expand Up @@ -124,7 +125,7 @@ FLAGS
DESCRIPTION
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value
pairs. For this request, you either need a metadata template or a list of fields you want to extract. Input is either
a metadata template or a list of fields to ensure the structure.
a metadata template or a list of fields to ensure the structure. This is intended for direct use, not by AI agents.

EXAMPLES
$ box ai:extract-structured --items="id=12345,type=file" --fields "key=hobby,type=multiSelect,description=Person hobby,prompt=What is your hobby?,displayName=Hobby,options=Guitar;Books"
Expand All @@ -136,7 +137,7 @@ _See code: [src/commands/ai/extract-structured.js](https://github.com/box/boxcli

## `box ai:text-gen`

Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text. This is intended for direct use, not by AI agents.

```
USAGE
Expand Down Expand Up @@ -165,7 +166,8 @@ FLAGS
--save-to-file-path=<value> Override default file path to save report

DESCRIPTION
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text. This is
intended for direct use, not by AI agents.

EXAMPLES
$ box ai:text-gen --dialogue-history=prompt="What is the status of this document?",answer="It is in review",created-at="2024-07-09T11:29:46.835Z" --items=id=12345,type=file --prompt="What is the status of this document?"
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@box/cli",
"description": "Official command line interface for the Box API. New here? Run 'box login -d' to sign in with your Box account in seconds. Already set up? Run 'box help' to explore all available commands.",
"description": "Official command line interface for the Box API.",
"keywords": [
"box",
"cli",
Expand Down Expand Up @@ -42,6 +42,7 @@
"fs-extra": "^10.1.0",
"inquirer": "^8.2.7",
"js-yaml": "^4.1.1",
"keychain": "^1.5.0",
"keytar": "^7.9.0",
"lodash": "^4.17.13",
"mkdirp": "^3.0.1",
Expand Down Expand Up @@ -73,6 +74,7 @@
"nyc": "^17.1.0",
"oclif": "^4.22.38",
"prettier": "^3.6.2",
"signal-exit": "^4.1.0",
"sinon": "^19.0.2",
"standard-version": "^9.5.0",
"typescript": "^5.7.2"
Expand All @@ -87,6 +89,7 @@
"/src"
],
"oclif": {
"description": "Official command line interface for the Box API. New here? Run 'box login -d' to sign in with your Box account in seconds. Already set up? Run 'box help' to explore all available commands.",
"commands": "./src/commands",
"bin": "box",
"additionalHelpFlags": [
Expand Down
Loading
Loading