Skip to main content

derive_tool_hints

Function derive_tool_hints 

Source
pub fn derive_tool_hints(
    semantic_kind: SemanticKind,
    is_public: bool,
    operation: ToolHintOperation,
) -> ToolHints
Expand description

Derive tool hints from symbol metadata and operation type.

Analyzes the semantic kind, visibility, and operation to determine appropriate behavioral flags for LLM guidance.

§Arguments

  • semantic_kind - The kind of symbol (function, type, trait, etc.)
  • is_public - Whether the symbol is publicly visible
  • operation - The type of operation being performed

§Returns

ToolHints with appropriate flags set based on static analysis