Skip to main content

role_for_tool

Function role_for_tool 

Source
pub fn role_for_tool(tool_name: &str) -> Option<ModelRole>
Expand description
Unstable (feature: role-switching) — may change or be removed
Map a tool name to the role it should run under, if it declares one.

Currently only the commit tool declares a role (ModelRole::Commit). Adding a tool→role binding here is the single place to extend tool-driven switching.