Skip to main content

Module result_metadata

Module result_metadata 

Source
Expand description

Tool result metadata and quality scoring

Provides metadata about tool result quality, confidence, and usefulness. This allows the agent to make informed decisions about result reliability and prioritize high-quality results in context windows.

Core types (ResultCompleteness, ResultMetadata, EnhancedToolResult, ResultScorer) are defined in vtcode-commons::tool_types and re-exported here for backward compatibility. This module retains the scorer implementations that depend on tool_intent.

Structs§

CodeSearchScorer
Scorer for bounded code search results.
EnhancedToolResult
Enhanced tool result with metadata
FindScorer
Scorer for file finding results
ResultMetadata
Quality metadata for tool results
ScorerRegistry
Registry for result scorers
ShellScorer
Scorer for shell command results

Enums§

ResultCompleteness
Result completeness level

Traits§

ResultScorer
Trait for scoring tool results

Type Aliases§

CompactStr
Compact inline string – stack-allocated for strings up to 24 bytes. Drop-in replacement for String with zero heap allocation for short strings.