{
  "schemaVersion": 1,
  "id": "com.jazz.plugins.jev",
  "name": "Jev decision provider",
  "version": "0.5.0",
  "hostApi": 1,
  "artifact": "/jazz/library/plugins/com.jazz.plugins.jev/0.5.0/faba1c7067d073e5649efe0084ab68d64db3866f92e4aea51c76d4f81bc571f3.mjs",
  "sha256": "faba1c7067d073e5649efe0084ab68d64db3866f92e4aea51c76d4f81bc571f3",
  "hooks": [
    "route.skills",
    "compact.tools",
    "classify.page",
    "route.snapshot",
    "gate.memory-pass"
  ],
  "policyHooks": [
    "classify.command-risk"
  ],
  "decisionProviders": [
    "typesafe-jev"
  ],
  "tools": [
    {
      "name": "classify",
      "description": "Triage, sort, or label many emails, messages, receipts, files, or photos with Jev, a fast decision model. Use it for 15 or more items, for items saved as files or images, or when you need each label's probability. Pass saved items as paths, with `files` or an item's `file`. Returns each item's label, every label's probability, Jev's confidence, and `uncertain` when the label's probability is under 0.5. Every label set also offers \"none of these\". Example uses: emails into urgent/reply/newsletter/junk, receipts into business/personal, photos into contains-passport/other.",
      "parameters": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "description": "The items, in order. Results name each item by its id, its file path, or its 1-based position.",
            "items": {
              "type": [
                "string",
                "object"
              ],
              "description": "An item as text, or an object with text, a text file, or an image, plus an optional id.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "A name for the item that results use, such as an email subject or a listing URL."
                },
                "text": {
                  "type": "string",
                  "description": "The item's text."
                },
                "file": {
                  "type": "string",
                  "description": "Path to a text file holding the item, such as a saved email or a note."
                },
                "image": {
                  "type": "string",
                  "description": "Path to a PNG or JPEG image of the item."
                }
              },
              "additionalProperties": false
            }
          },
          "files": {
            "type": "array",
            "description": "Paths or glob patterns, such as \"inbox/*.eml\". Each matched file becomes one item named by its path; PNG and JPEG files are read as images, others as text.",
            "items": {
              "type": "string"
            }
          },
          "labels": {
            "type": "array",
            "description": "The labels to choose from. Give each a short description of what belongs in it.",
            "items": {
              "type": [
                "string",
                "object"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The label."
                },
                "description": {
                  "type": "string",
                  "description": "What an item needs to get this label."
                }
              },
              "additionalProperties": false
            }
          },
          "instructions": {
            "type": "string",
            "description": "What to judge about each item, such as \"by what the user needs to do with it\"."
          },
          "context": {
            "type": "string",
            "description": "Background every item is judged against, such as the user's preferences or situation."
          },
          "keep": {
            "type": "array",
            "description": "Label names to return; other items are counted under `omitted`. Use it to keep only the urgent emails, for example.",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "labels"
        ],
        "additionalProperties": false
      },
      "riskLevel": "read-only",
      "egress": true
    },
    {
      "name": "rank",
      "description": "Rank, shortlist, or prioritize many options, such as apartments, offers, tasks, or photos, by a criterion with Jev, a fast decision model. Use it for 15 or more items, for items saved as files or images, or when you need a score per item. Pass saved items as paths, with `files` or an item's `file`. Returns the items best first, each with a 0-1 score, the nearest level on the scale, and Jev's confidence. Example uses: apartments, job offers, restaurants, tasks by importance, photos by quality.",
      "parameters": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "description": "The items, in order. Results name each item by its id, its file path, or its 1-based position.",
            "items": {
              "type": [
                "string",
                "object"
              ],
              "description": "An item as text, or an object with text, a text file, or an image, plus an optional id.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "A name for the item that results use, such as an email subject or a listing URL."
                },
                "text": {
                  "type": "string",
                  "description": "The item's text."
                },
                "file": {
                  "type": "string",
                  "description": "Path to a text file holding the item, such as a saved email or a note."
                },
                "image": {
                  "type": "string",
                  "description": "Path to a PNG or JPEG image of the item."
                }
              },
              "additionalProperties": false
            }
          },
          "files": {
            "type": "array",
            "description": "Paths or glob patterns, such as \"inbox/*.eml\". Each matched file becomes one item named by its path; PNG and JPEG files are read as images, others as text.",
            "items": {
              "type": "string"
            }
          },
          "criterion": {
            "type": "string",
            "description": "What makes an item better, stated concretely, such as \"fits a family of 4, under 2000 EUR a month, near a metro\"."
          },
          "levels": {
            "type": "array",
            "description": "Optional scale from worst to best, 2 to 10 level names. Defaults to poor fit, weak fit, partial fit, good fit, excellent fit.",
            "items": {
              "type": "string"
            }
          },
          "context": {
            "type": "string",
            "description": "Background every item is judged against, such as the user's preferences or situation."
          },
          "top": {
            "type": "integer",
            "minimum": 1,
            "description": "How many of the best items to return; the rest are counted under `omitted`."
          }
        },
        "required": [
          "criterion"
        ],
        "additionalProperties": false
      },
      "riskLevel": "read-only",
      "egress": true
    }
  ],
  "commands": [],
  "personas": [],
  "skills": [],
  "lifecycleHooks": [],
  "workspace": false,
  "claimsNotifications": false,
  "network": {
    "destinations": [
      "api.typesafe.ai"
    ]
  },
  "dataSent": [
    "current page origin, title, and interactive element roles and labels (never the page body, path, or query)",
    "current turn request text",
    "installed skill names and one-line descriptions",
    "items, labels, criteria, and context the agent passes to the classify and rank tools, including the text and image files it names",
    "proposed shell command text",
    "tool call names and result previews during compaction",
    "your messages and the assistant's replies (never tool output) before a memory pass, to skip passes with nothing to remember"
  ],
  "secrets": [
    {
      "name": "apiKey",
      "env": "TYPESAFE_API_KEY",
      "required": true,
      "description": "TypeSafe API key used only for POST requests to api.typesafe.ai"
    }
  ]
}
