Skip to content

Chat Tools

Operations Summary

Method Endpoint Description
POST /api/chat-tools/execute/ Execute a tool and return the result

Execute a tool and return the result

Execute a tool and return the result.

1
2
3
4
5
http \
  POST \
  https://api.example.com/api/chat-tools/execute/ \
  Authorization:"Token YOUR_API_TOKEN" \
  tool="string-value"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.tool_execute_request import ToolExecuteRequest # (1)
from waldur_api_client.api.chat_tools import chat_tools_execute # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = ToolExecuteRequest(
    tool="string-value"
)
response = chat_tools_execute.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: ToolExecuteRequest
  2. API Source: chat_tools_execute
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { chatToolsExecute } from 'waldur-js-client';

try {
  const response = await chatToolsExecute({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "tool": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required Description
tool string Name of the tool to execute.
arguments any Tool arguments.

200 -