# KnowledgePacket

- File ID: file:hjtala:knowledgepacket-cs
- Path: NexusReader.Application/DTOs/AI/KnowledgePacket.cs
- Role: dto
- Layer: application

## 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.

## Key Details

Records are annotated with JsonPropertyName for stable JSON shape; KnowledgePacket composes multiple DTOs and references GraphDataDto from Queries.Graph.

## Symbols

- KnowledgePacket: 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.
- KeyConcept: Represents a key concept with a title and description for JSON serialization.
- QuizQuestion: Represents a quiz question with options and the index of the correct answer.
- KnowledgeUnitDto: Represents a single knowledge unit with optional metadata.
- KnowledgeLinkDto: Represents a directed relation/link between two knowledge units.
- KnowledgePacket: Aggregates concepts, quizzes, units, links, optional graph data, and a summary into a single serializable package.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Unresolved References

- dependency-target: NexusReader.Application/Queries/Graph/GraphDataDto.cs

## Coverage

- Symbols: 6
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 6
- Unresolved references: 1
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### KnowledgePacket Neighborhood

```mermaid
flowchart LR
    class_1h9lza8_knowledgepacket("KnowledgePacket")
    file_hjtala_knowledgepacket_cs("KnowledgePacket")
    type_11qfbw_knowledgepacket[/"KnowledgePacket"/]
    type_1bqutxs_knowledgeunitdto[/"KnowledgeUnitDto"/]
    type_1nt1924_quizquestion[/"QuizQuestion"/]
    type_1rne00x_knowledgelinkdto[/"KnowledgeLinkDto"/]
    type_uvv2sw_keyconcept[/"KeyConcept"/]
```

## Diagram Validation

- Status: pass
