glam/schemas/20251121/linkml/modules/classes/LLMResponse.yaml
kempersc fcd1c21c63 Add aliases and enhance slot definitions across various modules
- Added new aliases for existing slots to improve clarity and usability, including:
  - has_deadline: has_embargo_end_date
  - has_extent: has_extent_text
  - has_fonds: has_fond
  - has_laboratory: conservation_lab
  - has_language: has_iso_code639_1, has_iso_code639_3
  - has_legal_basis: legal_basis
  - has_light_exposure: max_light_lux
  - has_measurement_unit: has_unit
  - has_note: has_custodian_observation
  - has_occupation: occupation
  - has_operating_hours: has_operating_hours
  - has_position: position
  - has_quantity: has_artwork_count, link_count
  - has_roadmap: review_date
  - has_skill: skill
  - has_speaker: speaker_label
  - has_specification: specification_url
  - has_statement: rights_statement_url, rights_statement
  - has_type: custodian_only
  - has_user_category: serves_visitors_only
  - hold_record_set: record_count
  - identified_by: has_index_number
  - in_period: has_period
  - in_place: has_place
  - in_series: has_series
  - measure: has_measurement
  - measured_on: measurement_date
  - organized_by: has_organizer
  - originate_from: has_origin
  - part_of: suborganization_of
  - published_on: has_publication_date
  - receive_investment: has_investment
  - related_to: connection_heritage_type
  - require: preservation_requirement
  - safeguarded_by: current_keeper, record_holder_note
  - state: states_or_stated
  - take_comission: takes_or_took_comission
  - take_place_at: takes_or_took_place_at
  - transmit_through: transmits_or_transmitted_through
  - warrant: warrants_or_warranted

- Introduced a new slot definition for evaluated_through to capture evaluation methodologies and review statuses.
2026-02-14 14:41:49 +01:00

124 lines
3 KiB
YAML

id: https://nde.nl/ontology/hc/class/LLMResponse
name: llm_response_class
title: LLM Response Class
version: 1.0.0
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
prov: http://www.w3.org/ns/prov#
dct: http://purl.org/dc/terms/
xsd: http://www.w3.org/2001/XMLSchema#
imports:
- ./ReasoningContent
- ./ThinkingMode
- ./CeaseEvent
- ./Token
- linkml:types
- ../enums/FinishReasonEnum
- ../enums/LLMProviderEnum
- ../enums/ThinkingModeEnum
- ../metadata
- ../slots/consume
# - ../slots/20260202_matang/new/content
- ../slots/has_expense
- ../slots/begin_of_the_begin
- ../slots/has_mode
- ../slots/has_score
- ../slots/has_token
- ../slots/ceased_by
- ../slots/has_latency
- ../slots/generated_by
- ../slots/preserve
- ../slots/has_reasoning_content
- ../slots/identified_by
# default_range: string
classes:
LLMResponse:
class_uri: prov:Activity
description: "Provenance metadata for LLM API responses."
exact_mappings:
- prov:Activity
close_mappings:
- schema:Action
- schema:CreativeWork
slots:
- has_token
- preserve
# - content
- has_expense
- begin_of_the_begin
- ceased_by
- has_latency
- generated_by
- has_reasoning_content
- identified_by
- has_score
- has_mode
- consume
slot_usage:
# content:
# # range: string
# required: true
# examples:
# - value: The Rijksmuseum is a national museum in Amsterdam dedicated to Dutch arts and history.
has_reasoning_content:
# range: string
required: false
examples:
- value: 'The user is asking about Dutch heritage institutions...'
generated_by:
# range: string
required: true
examples:
- value: glm-4.7
identified_by:
identifier: true # range: string
required: true
examples:
- value: req_8f3a2b1c4d5e6f7g
begin_of_the_begin:
range: datetime
required: true
examples:
- value: '2025-12-23T10:30:00Z'
consume:
range: integer
minimum_value: 0
examples:
- value: 600
has_token:
range: Token
multivalued: true
inlined: true
inlined_as_list: true
required: false
ceased_by:
range: CeaseEvent
inlined: true
required: false
has_latency:
range: integer
minimum_value: 0
required: false
examples:
- value: 1250
has_expense:
range: float
minimum_value: 0.0
required: false
examples:
- value: 0.0
- value: 0.015
has_mode:
range: ThinkingMode
required: false
preserve:
range: ReasoningContent
inlined: true
multivalued: true
required: false
annotations:
specificity_score: 0.1
specificity_rationale: Generic utility class/slot created during migration
custodian_types: "['*']"