Letta · Schema

ParentToolRule

A ToolRule that only allows a child tool to be called if the parent has been called.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
tool_name string The name of the tool. Must exist in the database for the user's organization.
type string
prompt_template object Optional template string (ignored).
children array The children tools that can be invoked.
View JSON Schema on GitHub

JSON Schema

letta-parenttoolrule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ParentToolRule",
  "title": "ParentToolRule",
  "properties": {
    "tool_name": {
      "type": "string",
      "title": "Tool Name",
      "description": "The name of the tool. Must exist in the database for the user's organization."
    },
    "type": {
      "type": "string",
      "const": "parent_last_tool",
      "title": "Type",
      "default": "parent_last_tool"
    },
    "prompt_template": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prompt Template",
      "description": "Optional template string (ignored)."
    },
    "children": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Children",
      "description": "The children tools that can be invoked."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "tool_name",
    "children"
  ],
  "description": "A ToolRule that only allows a child tool to be called if the parent has been called."
}