Letta · Schema

ToolSearchRequest

Request model for searching tools using semantic search.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
query object Text query for semantic search.
search_mode string Search mode: vector, fts, or hybrid.
tool_types object Filter by tool types (e.g., 'custom', 'letta_core').
tags object Filter by tags (match any).
limit integer Maximum number of results to return.
View JSON Schema on GitHub

JSON Schema

letta-toolsearchrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolSearchRequest",
  "title": "ToolSearchRequest",
  "properties": {
    "query": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Query",
      "description": "Text query for semantic search."
    },
    "search_mode": {
      "type": "string",
      "enum": [
        "vector",
        "fts",
        "hybrid"
      ],
      "title": "Search Mode",
      "description": "Search mode: vector, fts, or hybrid.",
      "default": "hybrid"
    },
    "tool_types": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Types",
      "description": "Filter by tool types (e.g., 'custom', 'letta_core')."
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags",
      "description": "Filter by tags (match any)."
    },
    "limit": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "title": "Limit",
      "description": "Maximum number of results to return.",
      "default": 50
    }
  },
  "additionalProperties": false,
  "type": "object",
  "description": "Request model for searching tools using semantic search."
}