Complete the core operation execution cutover

This commit is contained in:
2026-11-25 16:17:59 +00:00
parent b6a3638d70
commit 7d96c69a32
73 changed files with 891 additions and 1065 deletions

View File

@@ -58,24 +58,6 @@ type InputAdapter interface {
Parse(ctx context.Context, req ParseRequest) (*source.SourceDocument, error)
}
type ChunkRequest struct {
Operation ProducerOperation[source.ChunkPlan] `json:"-"`
Source *source.SourceDocument `json:"-"`
SourceInput LLMInputMaterial `json:"source_input,omitempty"`
SessionID string `json:"session_id,omitempty"`
References ReferenceSet `json:"references,omitempty"`
LLMProfile string `json:"llm_profile,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
type ChunkPlanResult struct {
// Fallback is an optional module-owned algorithm for deterministic rejection.
Fallback func(context.Context) (source.ChunkPlan, error) `json:"-"`
Outcome ProducerOutcome `json:"outcome"`
Plan source.ChunkPlan `json:"plan"`
Diagnostics []ProducerDiagnostic `json:"diagnostics,omitempty"`
}
type Chunker interface {
Key() string
ReferenceSlots() []ReferenceSlot