Complete the core operation execution cutover
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user