102 lines
3.8 KiB
YAML
102 lines
3.8 KiB
YAML
# ThinkingMode - LLM thinking mode configuration class
|
|
#
|
|
# Created: 2026-01-16
|
|
# Migration: thinking_mode slot → has_or_had_mode + ThinkingMode class
|
|
# Per slot_fixes.yaml, Rule 53/56
|
|
#
|
|
# Rule compliance: 0b (class wrapping enum), 37 (specificity), 50 (ontology mapping)
|
|
|
|
id: https://nde.nl/ontology/hc/class/ThinkingMode
|
|
name: thinking_mode_class
|
|
title: Thinking Mode Class
|
|
|
|
prefixes:
|
|
linkml: https://w3id.org/linkml/
|
|
hc: https://nde.nl/ontology/hc/
|
|
schema: http://schema.org/
|
|
prov: http://www.w3.org/ns/prov#
|
|
|
|
default_prefix: hc
|
|
|
|
imports:
|
|
- linkml:types
|
|
- ../enums/ThinkingModeEnum
|
|
- ../slots/has_or_had_label
|
|
- ../slots/has_or_had_description
|
|
- ../slots/specificity_annotation
|
|
- ../slots/has_or_had_score # was: template_specificity - migrated per Rule 53 (2026-01-17)
|
|
- ./SpecificityAnnotation
|
|
- ./TemplateSpecificityScore # was: TemplateSpecificityScores - migrated per Rule 53 (2026-01-17)
|
|
|
|
- ./TemplateSpecificityType
|
|
|
|
- ./TemplateSpecificityTypes
|
|
|
|
classes:
|
|
ThinkingMode:
|
|
class_uri: schema:PropertyValue
|
|
description: |
|
|
LLM thinking mode configuration for API requests.
|
|
|
|
**DEFINITION**:
|
|
|
|
ThinkingMode represents the operational mode for LLM reasoning during inference.
|
|
This class wraps ThinkingModeEnum to provide extensibility and structured metadata.
|
|
|
|
**GLM 4.7 Thinking Modes** (https://docs.z.ai/guides/capabilities/thinking-mode):
|
|
|
|
1. **enabled** - Thinking enabled, model reasons before responding
|
|
2. **disabled** - Thinking disabled, faster responses without reasoning_content
|
|
3. **interleaved** - Think between tool calls (default since GLM-4.5)
|
|
4. **preserved** - Retain reasoning across turns (Coding Plan default)
|
|
|
|
**Ontological Alignment**:
|
|
- Maps to `schema:PropertyValue` for configuration settings
|
|
- Enables future extension with timing, tokens, confidence metadata
|
|
|
|
**Migration Note**:
|
|
Created 2026-01-16 to replace bespoke `thinking_mode` slot per Rule 53/56.
|
|
The enum ThinkingModeEnum is preserved; this class adds structure.
|
|
exact_mappings:
|
|
- schema:PropertyValue
|
|
close_mappings:
|
|
- prov:Plan
|
|
slots:
|
|
- has_or_had_label
|
|
- has_or_had_description
|
|
- specificity_annotation
|
|
- has_or_had_score # was: template_specificity - migrated per Rule 53 (2026-01-17)
|
|
attributes:
|
|
mode_value:
|
|
description: |
|
|
The thinking mode enum value.
|
|
One of: enabled, disabled, interleaved, preserved.
|
|
range: ThinkingModeEnum
|
|
required: true
|
|
slot_usage:
|
|
has_or_had_label:
|
|
description: Human-readable label for the thinking mode.
|
|
examples:
|
|
- value: Preserved Thinking
|
|
description: Multi-turn reasoning preservation mode
|
|
has_or_had_description:
|
|
description: Detailed description of the thinking mode configuration.
|
|
examples:
|
|
- value: Retains reasoning_content from previous assistant turns in context for improved performance.
|
|
description: Preserved mode explanation
|
|
annotations:
|
|
specificity_score: 0.75
|
|
specificity_rationale: Highly specific to LLM API configuration domain
|
|
custodian_types: '["D"]'
|
|
custodian_types_rationale: Applies to Digital Platform custodians using LLM APIs
|
|
examples:
|
|
- value:
|
|
mode_value: preserved
|
|
has_or_had_label: Preserved Thinking
|
|
has_or_had_description: Retains reasoning across conversation turns for improved accuracy.
|
|
description: GLM 4.7 Preserved Thinking mode for multi-turn agents
|
|
- value:
|
|
mode_value: interleaved
|
|
has_or_had_label: Interleaved Thinking
|
|
has_or_had_description: Default mode - thinks between tool calls.
|
|
description: Default GLM 4.5+ interleaved thinking mode
|