Files
Nexus.Reader/src/.documentation/cache/summaries/NexusReader.Application__DTOs__AI__KnowledgePacket.cs.json
T
2026-05-25 14:02:56 +02:00

1 line
5.7 KiB
JSON

{"path":"NexusReader.Application/DTOs/AI/KnowledgePacket.cs","purpose":"Defines data transfer objects (records) used to represent AI knowledge artifacts (concepts, quiz questions, knowledge units/links, and aggregated knowledge packets) for serialization across the Application layer.","classification":{"role":"dto","layer":"application","confidence":0.9,"evidence":["DTO/view-model naming pattern","Namespace NexusReader.Application.DTOs.AI (line 3)","Records and JsonPropertyName attributes used for JSON serialization (lines 5-26)"]},"className":"KnowledgePacket","methods":[],"types":[{"name":"KeyConcept","kind":"dto","line":5,"purpose":"Represents a key concept with a title and description for JSON serialization.","fields":[{"name":"Title","type":"string","required":true,"line":6,"description":"Concept title (serialized as 'title')"},{"name":"Description","type":"string","required":true,"line":7,"description":"Concept description (serialized as 'description')"}]},{"name":"QuizQuestion","kind":"dto","line":10,"purpose":"Represents a quiz question with options and the index of the correct answer.","fields":[{"name":"Question","type":"string","required":true,"line":11,"description":"The quiz question text (serialized as 'question')"},{"name":"Options","type":"List<string>","required":true,"line":12,"description":"List of answer options (serialized as 'options')"},{"name":"CorrectIndex","type":"int","required":true,"line":13,"description":"Index of the correct option (serialized as 'correct_index')"}]},{"name":"KnowledgeUnitDto","kind":"dto","line":16,"purpose":"Represents a single knowledge unit with optional metadata.","fields":[{"name":"Id","type":"string","required":true,"line":16,"description":"Identifier of the knowledge unit"},{"name":"Type","type":"string","required":true,"line":16,"description":"Type/category of the unit"},{"name":"Content","type":"string","required":true,"line":16,"description":"Payload/content of the unit"},{"name":"Metadata","type":"Dictionary<string, object>?","required":false,"line":16,"description":"Optional metadata dictionary"}]},{"name":"KnowledgeLinkDto","kind":"dto","line":17,"purpose":"Represents a directed relation/link between two knowledge units.","fields":[{"name":"Source","type":"string","required":true,"line":17,"description":"Source unit identifier"},{"name":"Target","type":"string","required":true,"line":17,"description":"Target unit identifier"},{"name":"Relation","type":"string","required":true,"line":17,"description":"Relation type/name"}]},{"name":"KnowledgePacket","kind":"dto","line":19,"purpose":"Aggregates concepts, quizzes, units, links, optional graph data, and a summary into a single serializable package.","fields":[{"name":"Concepts","type":"List<KeyConcept>","required":true,"line":21,"description":"Collection of key concepts (serialized as 'concepts')"},{"name":"Quizzes","type":"List<QuizQuestion>","required":true,"line":22,"description":"Collection of quiz questions (serialized as 'quizzes')"},{"name":"Units","type":"List<KnowledgeUnitDto>","required":true,"line":23,"description":"Knowledge units included in the packet (serialized as 'units')"},{"name":"Links","type":"List<KnowledgeLinkDto>","required":true,"line":24,"description":"Links/relations between units (serialized as 'links')"},{"name":"Graph","type":"NexusReader.Application.Queries.Graph.GraphDataDto?","required":false,"line":25,"description":"Optional graph representation (nullable) referenced from Queries.Graph namespace (serialized as 'graph')"},{"name":"Summary","type":"string?","required":false,"line":26,"description":"Optional textual summary (serialized as 'summary')"}]}],"serviceRegistrations":[],"startupActions":[],"dependencies":["NexusReader.Application/Queries/Graph/GraphDataDto.cs"],"patterns":["DTO","Record"],"domainConcepts":["Knowledge","Concept","Quiz","Graph"],"keyDetails":"Records are annotated with JsonPropertyName for stable JSON shape; KnowledgePacket composes multiple DTOs and references GraphDataDto from Queries.Graph.","orchestrationMethods":[],"typedContracts":[{"name":"KeyConcept","kind":"dto","line":5,"fieldCount":2,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"name":"QuizQuestion","kind":"dto","line":10,"fieldCount":3,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"name":"KnowledgeUnitDto","kind":"dto","line":16,"fieldCount":4,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"name":"KnowledgeLinkDto","kind":"dto","line":17,"fieldCount":3,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"name":"KnowledgePacket","kind":"dto","line":19,"fieldCount":6,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]}],"persistenceInteractions":[],"externalInteractions":[],"evidenceAnchors":[{"kind":"typed-contract","label":"KeyConcept","line":5,"summary":"dto with 2 fields.","confidence":0.8,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"kind":"typed-contract","label":"QuizQuestion","line":10,"summary":"dto with 3 fields.","confidence":0.8,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"kind":"typed-contract","label":"KnowledgeUnitDto","line":16,"summary":"dto with 4 fields.","confidence":0.8,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]},{"kind":"typed-contract","label":"KnowledgeLinkDto","line":17,"summary":"dto with 3 fields.","confidence":0.8,"evidencePaths":["NexusReader.Application/DTOs/AI/KnowledgePacket.cs"]}],"cacheMetadata":{"schemaVersion":2,"analysisVersion":"2026-05-23.cache-v1","contentChecksum":"01a2d7ff776d433e525a17e845e87a211adae9f5a794c4bbc87c649cf207ac34","sourceByteSize":1273,"analyzedAt":"2026-05-23T16:19:39.097Z","technology":"dotnet"}}