curl --request POST \
--url https://api.trugen.ai/v1/ext/tool \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "tool.api",
"schema": {
"type": "function",
"name": "start_cloud_browser_session",
"description": "Starts the dashboard page with logged in session.",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"request_config": {
"method": "GET",
"url": "https://www.example.com/information",
"headers": {}
},
"event_messages": {
"on_start": {
"message": "<string>"
},
"on_success": {
"message": "<string>"
},
"on_delay": {
"delay": 123,
"message": "<string>"
},
"on_error": {
"message": "<string>"
}
}
}
'Creates a new tool details for use within the Trugen AI system.
curl --request POST \
--url https://api.trugen.ai/v1/ext/tool \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "tool.api",
"schema": {
"type": "function",
"name": "start_cloud_browser_session",
"description": "Starts the dashboard page with logged in session.",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"request_config": {
"method": "GET",
"url": "https://www.example.com/information",
"headers": {}
},
"event_messages": {
"on_start": {
"message": "<string>"
},
"on_success": {
"message": "<string>"
},
"on_delay": {
"delay": 123,
"message": "<string>"
},
"on_error": {
"message": "<string>"
}
}
}
'