Skip to content
English

上下文与日志 ​

Core · 接口与运行保证 · 返回本层目录

符号类别用途
assembleContextPlanfunctionBuild the model input for a context plan.
assembleFragmentsfunctionBuild the model input from fragments. Metadata remains program-side: data never becomes a system instruction.
BuiltContextinterfaceAssembled context plus the accounting needed to explain the budget decision.
ContextFragmentinterfaceOne piece of model-visible input before assembly.
ContextFragmentUsageinterfaceAccounting entry reported for one fragment that actually entered the context.
ContextJournalclassRequest-local context projection of execution receipts; not a separate persistent log store.
ContextLifetimetypeDeclared validity window of a fragment's content.
ContextPlaninterfaceUnassembled input; App-side nodes may process it before the Core budget boundary.
ContextRecordtypeOne journal entry: a model call, a tool request or a tool result. The three variants are distinguished by type; value/input stay unknown because their domain meaning belongs to the App.
ContextTrusttypeWho produced the content, and therefore how much it may influence the model.
validateContextBudgetfunctionEnforce the character budget of the whole model input.
validateContextFragmentfunctionValidate one fragment and return the text it contributes to the model input.

接口参考、使用示例与开发指南。