知识、问答与呈现
Kit · 可选业务库 · 返回本层目录
| 符号 | 类别 | 用途 |
|---|---|---|
AnswerCheck | interface | Result of one local or review check over a generated answer. |
AnswerChecker | interface | One named check applied to a generated answer value. |
AnswerFlowDefinition | interface | Static handlers and limits; signal, diagnostics and App dependencies arrive at run. |
Answering | constant | |
AnswerIssue | interface | Validation problem produced while checking a generated answer. |
AnswerItem | interface | One unit an answer batch must produce. |
AnswerReader | interface | App-owned reader that gathers evidence for one task. |
AnswerResult | interface | Final outcome for one item. |
AnswerTaskDefinition | interface | Static binding of one answerable task. |
AnswerTaskPorts | interface | Registries a task catalog validates its references against. |
CompiledReplyFormat | interface | A resolved format with its checks bound; callers only inspect replies using it. |
defineAnswerCheckCatalog | function | Compile a checker catalog. A checker may return a replacement value; it is threaded into the next checker, so the selected ids behave like an ordered chain rather than independent assertions. |
defineAnswerFlow | function | Compile a reusable answer workflow. Reusable answer workflow. Requests own cells and repair budgets; models remain caller-owned. The flow runs at most maxRepairs + 1 rounds: one generation pass, then one repair round per failing item set, and finally an explicit accepted/fallback/blocked result per item. |
defineAnswerReaderCatalog | function | Compile a reader catalog. |
defineAnswerTaskCatalog | function | Compile the answer task catalog from its declarations and shared ports. Task ids, schemas, readers, outputs and checks have one compiled authority: a task can only reference a reader or check that the ports actually registered, and metadata is cloned and frozen so later mutation by the caller cannot change a registered task. |
defineKnowledgeCatalog | function | Compile a knowledge catalog from document declarations. Reads are declarative: document returns the whole text, self returns exactly the named sections and subtree includes their nested sections. Section ids are validated up front, so a typo fails at read time instead of silently returning partial content. |
defineKnowledgePublication | function | Compile a publication lifecycle over one App-owned atomic record. Candidate preparation and publication share the same compiler and an App-owned atomic revision. propose compiles and validates a candidate but leaves published documents alone; publish re-verifies sources and the base revision before swapping, so a stale candidate can never overwrite newer content. |
defineOutputCatalog | function | Compile output definitions into one catalog. Compilation is where most mistakes surface: group membership is checked for cycles, master templates must have exactly one slot per field, and every bound/semantic field must name a registered provider. Composition then trusts the compiled catalog. |
defineReplyFormats | function | Compile reply formats so that checks run only for templates the current turn uses. |
defineSemanticSlots | function | Models select public semantic keys; hosts retain private values and selection policy. A text is valid when it uses at most maxOccurrences namespaced slots, every name is a declared key, and no malformed {{namespace remnant is left behind — the last check stops partial or misspelled placeholders from reaching the template engine. |
defineTextTemplate | function | The program owns the master; inserted model text is a value and is substituted once only. Substitution is single-pass String.replace: a value that itself contains {{slot}} is left as literal text, so a slot value cannot inject further substitutions. |
Knowledge | constant | |
KnowledgeCandidate | interface | A proposed document awaiting publish or reject. |
KnowledgeCatalog | interface | Compiled catalog of knowledge documents. |
KnowledgeCatalogOptions | interface | Catalog construction options. |
KnowledgeDocument | interface | One versioned document as supplied by the App. |
KnowledgePart | type | Document content: a text leaf or a nested section. |
KnowledgePublication | interface | Compiled publication workflow. |
knowledgePublicationOperations | constant | |
KnowledgePublicationOptions | interface | App-owned guards, store and limits for a publication workflow. |
KnowledgePublicationRecord | interface | Stored publication state: one published revision plus pending candidates. |
KnowledgePublicationStore | interface | Single-writer store for the publication record. |
KnowledgeRead | interface | A request for one document selection. |
KnowledgeSection | interface | A named section that may contain text and further sections. |
KnowledgeSnapshot | interface | Materialized read result. |
KnowledgeSourceReference | interface | Citation of the material a candidate was derived from. |
mergeReplyBubbles | function | Normalize a reply that has no declared format: drop blank bubbles and merge overflow into the last allowed one. Text content is preserved. |
OutputCatalogOptions | interface | Catalog construction options. |
OutputComposeInput | interface | Input for composing one output: model values plus program-assigned group members. |
OutputDefinition | interface | One output shape. |
OutputField | interface | One field of an output definition. |
OutputIssue | interface | Output problem with a guaranteed field path. |
OutputProvider | interface | App-owned value provider for bound and semantic fields. |
OutputResult | interface | Composed output value. |
parseKnowledgeDocument | function | Paired, nestable anchors are one text adapter. Other sources supply the same document contract directly. |
Presentation | constant | |
ReplyFormatCheck | interface | One check a template declares, evaluated against the rendered bubbles. |
replyFormatChecks | constant | |
ReplyFormatDefinition | interface | A template-bound reply format, matched against per-turn facts. |
ReplyFormatOptions | interface | Declaration input for defineReplyFormats. |
resolvePreference | function | Resolve the preferred candidate. Highest priority wins; order breaks ties with the later entry first, so recency can be encoded without touching priority. The input array is copied before sorting. |
SectionSelection | type | Which part of a document a read returns. |
selectVariant | function | Pick one variant, avoiding an immediate repeat when alternatives exist. When every candidate equals previous, the full list is used again, so a single-value set still yields a result instead of failing. |
SemanticSlotDefinition | interface | Declares the {{namespace:key}} slots a model may use, and how often. |
TextTemplateOptions | interface | Text template construction options. |
validateAnswerBatch | function | Validate that one batch is well formed and fully covered. |