Events
Datapoints
Datasets
Projects
Experiments
Tools
Create a new tool
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
Tool successfully created
The response is of type object
.
Was this page helpful?
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>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.