box_ai_extract_freeform_tool
Extract structured data from Box files using AI by providing a freeform prompt, enabling precise information retrieval from documents in a JSON format.
Instructions
Extract data from files in Box using AI with a freeform prompt. Args: ctx (Context): The context object containing the request and lifespan context. file_ids (List[str]): The IDs of the files to read. prompt (str): The freeform prompt to guide the AI extraction. ai_agent_id (Optional[str]): The ID of the AI agent to use for processing. Returns: dict: The extracted data in a json string format.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ai_agent_id | No | ||
file_ids | Yes | ||
prompt | Yes |
Input Schema (JSON Schema)
{
"properties": {
"ai_agent_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ai Agent Id"
},
"file_ids": {
"items": {
"type": "string"
},
"title": "File Ids",
"type": "array"
},
"prompt": {
"title": "Prompt",
"type": "string"
}
},
"required": [
"file_ids",
"prompt"
],
"title": "box_ai_extract_freeform_toolArguments",
"type": "object"
}