Ana içeriğe atla
GET
/
user
/
tools
/
{id}
Arama içi aracı getir
curl --request GET \
  --url https://app.whattalk.ai/api/user/tools/{id} \
  --header 'Accept: <accept>' \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "id": 1,
  "name": "get_weather",
  "description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
  "endpoint": "https://api.openweathermap.org/data/2.5/weather",
  "method": "GET",
  "timeout": 10,
  "headers": [
    {
      "name": "Content-Type",
      "value": "application/json"
    },
    {
      "name": "Authorization",
      "value": "Bearer sk_..."
    }
  ],
  "schema": [
    {
      "name": "city",
      "type": "string",
      "description": "The city name to get weather for"
    },
    {
      "name": "temperature",
      "type": "number",
      "description": "Current temperature value"
    },
    {
      "name": "is_raining",
      "type": "boolean",
      "description": "Whether it is currently raining"
    }
  ],
  "created_at": "2025-10-10T12:00:00.000000Z",
  "updated_at": "2025-10-10T12:00:00.000000Z"
}
Bu endpoint, belirli bir arama içi araç hakkında ayrıntılı bilgi almanızı sağlar.

Başlıklar

Authorization
string
gerekli
Kimlik doğrulama için Bearer token
Content-Type
string
gerekli
application/json olmalıdır
Accept
string
gerekli
application/json olmalıdır

Yol Parametreleri

id
integer
gerekli
Aracın benzersiz tanımlayıcısı

Yanıt alanları

id
integer
Aracın benzersiz tanımlayıcısı
name
string
Aracın adı (alt çizgi ile küçük harfler)
description
string
Yapay zekanın bu aracı ne zaman ve nasıl kullanması gerektiğinin ayrıntılı açıklaması
endpoint
string
Çağrılacak API endpoint URL’si
method
string
HTTP yöntemi (GET, POST, PUT, PATCH, DELETE)
timeout
integer
Saniye cinsinden istek zaman aşımı (1-30)
headers
array
İstekle birlikte gönderilecek HTTP başlıkları
schema
array
Yapay zekanın çıkaracağı ve endpoint’e göndereceği parametreler
created_at
string
Aracın oluşturulma ISO 8601 zaman damgası
updated_at
string
Aracın son güncellenme ISO 8601 zaman damgası
{
  "id": 1,
  "name": "get_weather",
  "description": "Use this tool to get the current weather in a specific city. Call this when the customer asks about weather conditions.",
  "endpoint": "https://api.openweathermap.org/data/2.5/weather",
  "method": "GET",
  "timeout": 10,
  "headers": [
    {
      "name": "Content-Type",
      "value": "application/json"
    },
    {
      "name": "Authorization",
      "value": "Bearer sk_..."
    }
  ],
  "schema": [
    {
      "name": "city",
      "type": "string",
      "description": "The city name to get weather for"
    },
    {
      "name": "temperature",
      "type": "number",
      "description": "Current temperature value"
    },
    {
      "name": "is_raining",
      "type": "boolean",
      "description": "Whether it is currently raining"
    }
  ],
  "created_at": "2025-10-10T12:00:00.000000Z",
  "updated_at": "2025-10-10T12:00:00.000000Z"
}

Araçları Asistanlara Atama

Bu aracı bir asistanla kullanmak için bakınız: