{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "reasoning-effort-vue",
  "title": "Reasoning Effort (Vue)",
  "description": "How hard the model thinks, as a row of levels with a mark that slides to the chosen one.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/vue@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup",
    "@kind-ui/internal-segmented-control-vue"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/vue/reasoning-effort.ts",
      "content": "import { type ReasoningEffortControlState, reasoningEffortPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/vue/primitive\";\nimport { defineComponent, h } from \"vue\";\nimport {\n  KindSegmentedControl,\n  KindSegmentedControlIndicator,\n  KindSegmentedControlItem,\n} from \"./internal/segmented-control\";\n\nconst parts = createParts(reasoningEffortPrimitive, { root: \"div\" });\n\n/**\n * How hard the model thinks, as a row of levels with a mark that slides to the chosen one. A default slot replaces the\n * mark and the levels, inside the Segmented Control.\n */\nexport const ReasoningEffort = defineComponent({\n  name: \"ReasoningEffort\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Root, attrs, {\n        ...slots,\n        default: ({ state }: { state: ReasoningEffortControlState }) =>\n          // Hidden from agents, which use the Reasoning Effort's own `setValue`.\n          h(\n            KindSegmentedControl,\n            {\n              controller: state.controller,\n              defaultValue: state.defaultValue,\n              disabled: state.disabled,\n              \"aria-label\": state[\"aria-label\"],\n              \"data-agent-hidden\": \"\",\n            },\n            () =>\n              slots.default\n                ? slots.default()\n                : [\n                    h(ReasoningEffortIndicator),\n                    ...state.levels.map((level) =>\n                      h(ReasoningEffortItem, { key: level.value, value: level.value }, () => level.label),\n                    ),\n                  ],\n          ),\n      });\n  },\n}) as unknown as typeof parts.Root;\n\n/** The mark behind the chosen level. */\nexport const ReasoningEffortIndicator = KindSegmentedControlIndicator;\n\n/** A level, whose `value` is what the host receives. */\nexport const ReasoningEffortItem = KindSegmentedControlItem;\n",
      "type": "registry:ui",
      "target": "@ui/vue/reasoning-effort.ts"
    }
  ],
  "meta": {
    "layer": "vue"
  },
  "type": "registry:ui"
}
