DeepFellow DOCS

Create a new tool for specific toolbox

POST
/toolboxes/{toolbox_id}/tools

Create a new tool.

Needs user bearer token in authorization header.

Authorization

headerAuthorizationBearer <token>

Path Parameters

toolbox_id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Request Body

application/json
  1. body
type?string
Default"file_search"
vector_store_ids*array<>

List of vector store IDs to search

filters?||

Filter to apply to results

max_num_results?integer

Maximum number of results

Range1 <= value <= 50
Default25
ranking_options?|

Ranking options

Response Body

Successful Response

application/json
  1. response

Model for output of tool db.

id?|null
definition*|||||
toolbox_id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
created_at?integer
Example Request
curl -X POST 'https://deepfellow-server-host/toolboxes/5eb7cf5a86d9755df3a6c593/tools' \  -H 'Content-Type: application/json' \  -d '{  "vector_store_ids": [    "5eb7cf5a86d9755df3a6c593"  ]}'
Example Response
{  "id": "5eb7cf5a86d9755df3a6c593",  "definition": {    "type": "file_search",    "vector_store_ids": [      "5eb7cf5a86d9755df3a6c593"    ],    "filters": {      "filters": [        {          "key": "string",          "type": "eq",          "value": "string"        }      ],      "type": "and"    },    "max_num_results": 25,    "ranking_options": {      "ranker": "auto",      "score_threshold": 0    }  },  "toolbox_id": "5eb7cf5a86d9755df3a6c593",  "created_at": 0}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.