Skip to main content

Module types

Module types 

Source
Expand description

Transport / DTO types used at port boundaries.

These types live in the application layer (not domain) because they model the wire shape — OpenAI-compatible chat envelopes, vector-search hits, rerank responses — rather than the invariants the domain layer enforces.

Re-exports§

pub use chat_request::ChatRequest;
pub use chat_response::ChatResponse;
pub use enrichment_messages::ChatMessageDto;
pub use enrichment_messages::ContentPart;
pub use enrichment_messages::EnrichmentMessages;
pub use enrichment_messages::MessageContent;
pub use enrichment_messages::ToolCallDto;
pub use enrichment_messages::ToolCallFunction;
pub use enrichment_messages::enrichment_messages_from_json;
pub use enrichment_messages::enrichment_messages_to_json;
pub use merge_result::MergeResult;
pub use rerank_result::RerankResult;
pub use search_hit::SearchHit;
pub use search_hit::SearchHitMetadata;

Modules§

chat_request
OpenAI-compatible chat-completion request envelope.
chat_response
OpenAI-compatible chat-completion response envelope.
enrichment_messages
Typed OpenAI-compatible chat-message DTOs used by the enrichment pipeline (§3 + §4 + H-5 refactor).
merge_result
Merge-result DTO (POC smos/models.py:140-159).
rerank_result
Rerank-result DTO (POC smos/models.py:133-139).
search_hit
Vector-search hit DTO.

Structs§

MergeCandidate
One pool member that survived the cosine merge threshold.
NliResult
Full NLI verdict for a fact pair.
NliScores
Per-label softmax scores produced by an NLI classifier.