glam/schemas/20251121/linkml/modules/classes/Token.yaml

73 lines
2.1 KiB
YAML

id: https://nde.nl/ontology/hc/class/Token
name: token_class
title: Token Class
version: 1.1.0
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
dcterms: http://purl.org/dc/terms/
prov: http://www.w3.org/ns/prov#
crm: http://www.cidoc-crm.org/cidoc-crm/
skos: http://www.w3.org/2004/02/skos/core#
rdfs: http://www.w3.org/2000/01/rdf-schema#
org: http://www.w3.org/ns/org#
xsd: http://www.w3.org/2001/XMLSchema#
imports:
- linkml:types
- ../slots/has_description
- ../slots/identified_by
- ../slots/has_label
- ../slots/has_quantity
- ../slots/has_type
default_prefix: hc
classes:
Token:
class_uri: schema:QuantitativeValue
description: "Token count representation for LLM API usage tracking."
exact_mappings:
- schema:QuantitativeValue
slots:
- identified_by
- has_label
- has_description
- has_type
- has_quantity
slot_usage:
identified_by:
# range: string # uriorcurie
required: false
examples:
- value: https://nde.nl/ontology/hc/token/llm-response-001-cached
has_type:
# range: string # uriorcurie
required: false
# inlined: true # CANNOT inline string
examples:
- value:
identified_by: hc:TokenType/CACHED
has_label: Cached Token
- value:
identified_by: hc:TokenType/REASONING
has_label: Reasoning Token
has_quantity:
range: integer
required: false
# inlined: true # CANNOT inline integer
examples:
- value:
has_description: Tokens served from cache
has_label:
# range: string
required: false
examples:
- value: Cached tokens for context window
has_description:
# range: string
required: false
examples:
- value: 50 prompt tokens served from provider KV cache
annotations:
specificity_score: 0.1
specificity_rationale: Generic utility class/slot created during migration
custodian_types: "['*']"