You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-q, --quiet Suppress any non-error output to stderr
128
+
-s, --save Save report to default reports folder on disk
129
+
-t, --token=<value> Provide a token to perform this call
130
+
-v, --verbose Show verbose output, which can be helpful for debugging
131
+
-y, --yes Automatically respond yes to all confirmation prompts
132
+
--as-user=<value> Provide an ID for a user
133
+
--bulk-file-path=<value> File path to bulk .csv or .json objects
134
+
--csv Output formatted CSV
135
+
--fields=<value> Comma separated list of fields to show
136
+
--items=<value>... (required) The items for the AI request
137
+
--json Output formatted JSON
138
+
--no-color Turn off colors for logging
139
+
--prompt=<value> (required) The prompt for the AI request
140
+
--ai-agent=<value> The AI agent to be used for structured extraction
141
+
--save-to-file-path=<value> Override default file path to save report
142
+
143
+
DESCRIPTION
144
+
Sends an AI request to supported LLMs and returns metadata in form of key-value pairs.
145
+
146
+
EXAMPLES
147
+
$ box ai:extract-structured --items="id=12345,type=file" --fields "key=firstName,type=string,description=Person first name,prompt=What is the first name?,displayName=First name" --fields "key=lastName,type=string,description=Person last name,prompt=What is the last name?,displayName=Last name" --ai-agent \'{"type":"ai_agent_extract_structured","basicText":{"llmEndpointParams":{"type":"openai_params","frequencyPenalty": 1.5,"presencePenalty": 1.5,"stop": "<|im_end|>","temperature": 0,"topP": 1},"model": "azure__openai__gpt_4o_mini","numTokensForCompletion": 8400,"promptTemplate": "It is, consider these travel options and answer the.","systemMessage": "You are a helpful travel assistant specialized in budget travel"},"longText":{"embeddings":{ "model": "azure__openai__text_embedding_ada_002","strategy":{"id": "basic","numTokensPerChunk": 64}},"llmEndpointParams":{"type":"openai_params","frequencyPenalty": 1.5,"presencePenalty": 1.5,"stop": "<|im_end|>","temperature": 0,"topP": 1},"model":"azure__openai__gpt_4o_mini","numTokensForCompletion":8400,"promptTemplate":"It is , consider these travel options and answer the.","systemMessage":"You are a helpful travel assistant specialized in budget travel"}}\'
0 commit comments