import requests
url = "http://localhost:3000/v1/integration/{integration_id}/tool/{tool_id}"
payload = {
"name": "<string>",
"description": "<string>",
"endpoint_path": "<string>",
"query": [
{
"name": "<string>",
"data_type": "string",
"description": "<string>",
"required": True,
"value_source": "llm",
"fixed_value": "<string>",
"properties": ["<unknown>"]
}
],
"body": [
{
"name": "<string>",
"data_type": "string",
"description": "<string>",
"required": True,
"value_source": "llm",
"fixed_value": "<string>",
"properties": ["<unknown>"]
}
],
"headers": {},
"method": "GET",
"timeout": 123,
"aprove_required": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"type": "HTTP",
"endpoint_path": "<string>",
"query": [],
"body": [],
"headers": {},
"method": "GET",
"timeout": 123,
"aprove_required": false
}Update a tool for an HTTP integration.
import requests
url = "http://localhost:3000/v1/integration/{integration_id}/tool/{tool_id}"
payload = {
"name": "<string>",
"description": "<string>",
"endpoint_path": "<string>",
"query": [
{
"name": "<string>",
"data_type": "string",
"description": "<string>",
"required": True,
"value_source": "llm",
"fixed_value": "<string>",
"properties": ["<unknown>"]
}
],
"body": [
{
"name": "<string>",
"data_type": "string",
"description": "<string>",
"required": True,
"value_source": "llm",
"fixed_value": "<string>",
"properties": ["<unknown>"]
}
],
"headers": {},
"method": "GET",
"timeout": 123,
"aprove_required": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"type": "HTTP",
"endpoint_path": "<string>",
"query": [],
"body": [],
"headers": {},
"method": "GET",
"timeout": 123,
"aprove_required": false
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the tool
The description given to the agent to understand the tool
The endopint path of the tool
The query parameters for the tool
Mostrar atributos secundarios
Parameter name without spaces
Data type of the parameter
string, integer, number, boolean, object Description of what the parameter does
Indicates if the parameter is required.
Source of the parameter value (llm or fixed)
llm, fixed Fixed value for the parameter when value_source is FIXED
Nested parameters for object/complex types
The body parameters for the tool
Mostrar atributos secundarios
Parameter name without spaces
Data type of the parameter
string, integer, number, boolean, object Description of what the parameter does
Indicates if the parameter is required.
Source of the parameter value (llm or fixed)
llm, fixed Fixed value for the parameter when value_source is FIXED
Nested parameters for object/complex types
The headers for the tool
The HTTP method for the tool
GET, POST, PUT, DELETE, PATCH Timeout for the API to send a response
If true, the agent will ask for confirmation before executing
Successful Response
The unique identifier for the tool
The name of the tool
The description given to the agent to understand the tool
"HTTP"The URL to the endpoint of the tool
The query parameters for the tool
Mostrar atributos secundarios
Parameter name without spaces
Data type of the parameter
string, integer, number, boolean, object Description of what the parameter does
Indicates if the parameter is required.
Source of the parameter value (llm or fixed)
llm, fixed Fixed value for the parameter when value_source is FIXED
Nested parameters for object/complex types
The body parameters for the tool
Mostrar atributos secundarios
Parameter name without spaces
Data type of the parameter
string, integer, number, boolean, object Description of what the parameter does
Indicates if the parameter is required.
Source of the parameter value (llm or fixed)
llm, fixed Fixed value for the parameter when value_source is FIXED
Nested parameters for object/complex types
The headers for the tool
The HTTP method for the tool
GET, POST, PUT, DELETE, PATCH Timeout for the API to send a response
If true, the agent will ask for confirmation before executing