feat(assistant): align resource tool visibility with read audiences
This commit is contained in:
@@ -24,7 +24,6 @@ const MAX_OPENAI_TOOL_DEFINITIONS = 128;
|
||||
|
||||
const ALWAYS_INCLUDED_TOOL_NAMES = new Set([
|
||||
"get_current_user",
|
||||
"search_resources",
|
||||
"get_resource",
|
||||
"search_projects",
|
||||
"get_project",
|
||||
@@ -238,12 +237,14 @@ const PLANNING_READ_TOOLS = new Set([
|
||||
|
||||
/** Tools that require broad people-directory visibility because the backing routes expose resource-linked counts. */
|
||||
const RESOURCE_OVERVIEW_TOOLS = new Set([
|
||||
"search_resources",
|
||||
"get_country",
|
||||
"list_org_units",
|
||||
]);
|
||||
|
||||
/** Tools that follow controllerProcedure access rules in the main API. */
|
||||
const CONTROLLER_ONLY_TOOLS = new Set([
|
||||
"search_by_skill",
|
||||
"search_projects",
|
||||
"get_project",
|
||||
"search_estimates",
|
||||
|
||||
Reference in New Issue
Block a user