POST
/
tools
import honeyhive
from honeyhive.models import components

s = honeyhive.HoneyHive(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.tools.create_tool(request=components.CreateToolRequest(
    task='<value>',
    name='<value>',
    parameters={
        'key': '<value>',
    },
    type=components.CreateToolRequestType.TOOL,
))

if res.object is not None:
    # handle response
    pass
{
  "result": {
    "insertedId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
task
string
required

Name of the project associated with this tool

name
string
required
parameters
object
required

These can be function call params or plugin call params

type
enum<string>
required
Available options:
function,
tool
description
string

Response

200 - application/json
Tool successfully created
result
object