Skip to main content

Module tool_intent

Module tool_intent 

Source
Expand description

Pure tool-intent probes shared with surfaces that cannot use the full classifier.

vtcode-core::tools::tool_intent owns intent classification for dispatch, security, and execution. The probes here are the pure JSON subset a transcript needs to route display — session-action routing for the exec-session labels (crate::tool_headlines) — so the desktop app, which must not depend on vtcode-core, shares them instead of mirroring them. Core re-exports both probes, so every existing import path keeps working and dispatch call sites are untouched.

Functions§

command_session_action
Determine the action for command-session calls based on args.
has_indexed_command_parts
Whether the payload carries indexed command parts (command.0/command.1).