Skip to content

Commit e303644

Browse files
authored
docs: Update descriptions for ai commands (#646)
1 parent 310b2f6 commit e303644

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Avatar URL: 'https://app.box.com/api/avatar/large/77777'
198198
<!-- commands -->
199199
# Command Topics
200200

201-
* [`box ai`](docs/ai.md) - Sends an AI request to supported LLMs and returns an answer
201+
* [`box ai`](docs/ai.md) - Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.
202202
* [`box autocomplete`](docs/autocomplete.md) - Display autocomplete installation instructions
203203
* [`box collaboration-allowlist`](docs/collaboration-allowlist.md) - List collaboration allowlist entries
204204
* [`box collaborations`](docs/collaborations.md) - Manage collaborations

docs/ai.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
`box ai`
22
========
33

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

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

1111
## `box ai:ask`
1212

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

1515
```
1616
USAGE
@@ -39,7 +39,7 @@ FLAGS
3939
--save-to-file-path=<value> Override default file path to save report
4040
4141
DESCRIPTION
42-
Sends an AI request to supported LLMs and returns an answer
42+
Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.
4343
4444
EXAMPLES
4545
$ box ai:ask --items=id=12345,type=file --prompt "What is the status of this document?"
@@ -49,7 +49,7 @@ _See code: [src/commands/ai/ask.js](https://github.com/box/boxcli/blob/v4.5.0/sr
4949

5050
## `box ai:extract`
5151

52-
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs
52+
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.
5353

5454
```
5555
USAGE
@@ -79,7 +79,8 @@ FLAGS
7979
--save-to-file-path=<value> Override default file path to save report
8080
8181
DESCRIPTION
82-
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs
82+
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs. This
83+
is intended for direct use, not by AI agents.
8384
8485
EXAMPLES
8586
$ box ai:extract --items=id=12345,type=file --prompt "firstName, lastName, location, yearOfBirth, company"
@@ -91,7 +92,7 @@ _See code: [src/commands/ai/extract.js](https://github.com/box/boxcli/blob/v4.5.
9192

9293
## `box ai:extract-structured`
9394

94-
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.
95+
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.
9596

9697
```
9798
USAGE
@@ -124,7 +125,7 @@ FLAGS
124125
DESCRIPTION
125126
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value
126127
pairs. For this request, you either need a metadata template or a list of fields you want to extract. Input is either
127-
a metadata template or a list of fields to ensure the structure.
128+
a metadata template or a list of fields to ensure the structure. This is intended for direct use, not by AI agents.
128129
129130
EXAMPLES
130131
$ 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"
@@ -136,7 +137,7 @@ _See code: [src/commands/ai/extract-structured.js](https://github.com/box/boxcli
136137

137138
## `box ai:text-gen`
138139

139-
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.
140+
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.
140141

141142
```
142143
USAGE
@@ -165,7 +166,8 @@ FLAGS
165166
--save-to-file-path=<value> Override default file path to save report
166167
167168
DESCRIPTION
168-
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.
169+
Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text. This is
170+
intended for direct use, not by AI agents.
169171
170172
EXAMPLES
171173
$ 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?"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@box/cli",
3-
"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.",
3+
"description": "Official command line interface for the Box API.",
44
"keywords": [
55
"box",
66
"cli",
@@ -88,6 +88,7 @@
8888
"/src"
8989
],
9090
"oclif": {
91+
"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.",
9192
"commands": "./src/commands",
9293
"bin": "box",
9394
"additionalHelpFlags": [

src/commands/ai/ask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AiAskCommand extends BoxCommand {
2929
}
3030

3131
AiAskCommand.description =
32-
'Sends an AI request to supported LLMs and returns an answer';
32+
'Sends a request to supported LLMs using Box AI. This is intended for direct use, not by AI agents.';
3333
AiAskCommand.examples = [
3434
'box ai:ask --items=id=12345,type=file --prompt "What is the status of this document?"',
3535
];

src/commands/ai/extract-structured.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AiExtractStructuredCommand extends BoxCommand {
4141
}
4242

4343
AiExtractStructuredCommand.description =
44-
'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.';
44+
'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.';
4545
AiExtractStructuredCommand.examples = [
4646
'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"',
4747
'box ai:extract-structured --items="id=12345,type=file" --metadata-template="type=metadata_template,scope=enterprise,template_key=test" --ai-agent \'{"type":"ai_agent_extract_structured","basic_text":{"model":"azure__openai__gpt_4o_mini","prompt_template":"Answer using the provided content"}}\'',

src/commands/ai/extract.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AiExtractCommand extends BoxCommand {
2727
}
2828

2929
AiExtractCommand.description =
30-
'Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs';
30+
'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.';
3131
AiExtractCommand.examples = [
3232
'box ai:extract --items=id=12345,type=file --prompt "firstName, lastName, location, yearOfBirth, company"',
3333
'box ai:extract --prompt "firstName, lastName, location, yearOfBirth, company" --items "id=12345,type=file" --ai-agent \'{"type":"ai_agent_extract","basic_text":{"model":"azure__openai__gpt_4o_mini"}}\'',

src/commands/ai/text-gen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AiTextGenCommand extends BoxCommand {
2626
}
2727

2828
AiTextGenCommand.description =
29-
'Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.';
29+
'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.';
3030
AiTextGenCommand.examples = [
3131
'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?"',
3232
];

0 commit comments

Comments
 (0)