Class: Ecoportal::API::GraphQL::Base::AiSummaryVersion

Inherits:
Logic::BaseModel show all
Defined in:
lib/ecoportal/api/graphql/base/ai_summary_version.rb

Overview

One generation version of an AI page summary — the item of generatePageSummary.

★ Corrected 2026-07-30 against the live schema. The previous declarations (prompt, inputTokens, outputTokens, totalTokens, resourceType, ratings) do not exist on AiSummaryVersion and always read nil. The real fields are: aiSummary, alreadyRated, createdAt, dataFieldLogs, generationErrors, id, pagePatchVer, status.

dataFieldLogs / generationErrors / createdAt are left unmodelled until their own shapes are verified — select and model them deliberately rather than by assumption.

Direct Known Subclasses

Model::AiSummaryVersion

Constant Summary

Constants included from Common::GraphQL::Model::Diffable

Common::GraphQL::Model::Diffable::DIFF_CLASS

Method Summary

Methods included from Concerns::SnakeCamelAccess

#method_missing, #respond_to_missing?

Methods included from Common::GraphQL::Model::AsInput

#as_input, included

Methods included from Common::GraphQL::Model::Diffable

#as_update, #dirty?

Methods included from Common::GraphQL::ClassHelpers

included

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ecoportal::API::GraphQL::Concerns::SnakeCamelAccess