pipeline

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package pipeline provides the deterministic observation extraction pipeline. Level 0 processing: no LLM required, rule-based classification and extraction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClassifyEvent

func ClassifyEvent(toolName, toolInput, toolResult string) models.ObservationType

ClassifyEvent determines the observation type from a raw tool event. Rule-based classification achieving ~80% accuracy vs LLM.

func ExtractConcepts

func ExtractConcepts(toolName, toolInput, toolResult string) []string

ExtractConcepts extracts keyword-based concepts from the event. Returns deduplicated concept tags.

func ExtractFacts

func ExtractFacts(toolName, toolInput, toolResult string) []string

ExtractFacts extracts diff-based facts from tool events.

func ExtractFilePaths

func ExtractFilePaths(toolInput, toolResult string) []string

ExtractFilePaths extracts file paths from tool input and output.

func FormatEmbeddingText

func FormatEmbeddingText(obs *models.Observation) string

FormatEmbeddingText creates compact text for embedding from an observation.

func GenerateTitle

func GenerateTitle(toolName, toolInput string) string

GenerateTitle creates a template-based title for the observation.

func ShouldSkipTool

func ShouldSkipTool(toolName string) bool

ShouldSkipTool checks if a tool should be skipped for observation extraction. Exported version of the filter from sdk/processor.go.

func ShouldSkipTrivial

func ShouldSkipTrivial(toolName, toolInput, toolResult string) bool

ShouldSkipTrivial checks if the operation is too trivial to process. Exported version of the filter from sdk/processor.go.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL