fix(assistant): align tool metadata with router audiences
This commit is contained in:
@@ -955,9 +955,16 @@ describe("assistant router tool gating", () => {
|
||||
expect(toolDescriptions.get("list_users")).toContain("Admin role");
|
||||
expect(toolDescriptions.get("list_assignable_users")).toContain("Manager or admin role");
|
||||
expect(toolDescriptions.get("get_current_user")).toContain("authenticated user's own profile");
|
||||
expect(toolDescriptions.get("search_resources")).toContain("Resource overview access required");
|
||||
expect(toolDescriptions.get("search_by_skill")).toContain("Controller/manager/admin access required");
|
||||
expect(toolDescriptions.get("list_notifications")).toContain("current user");
|
||||
expect(toolDescriptions.get("get_unread_notification_count")).toContain("current user");
|
||||
expect(toolDescriptions.get("list_tasks")).toContain("current user");
|
||||
expect(toolDescriptions.get("get_task_counts")).toContain("current user");
|
||||
expect(toolDescriptions.get("create_notification")).toContain("Manager or admin role");
|
||||
expect(toolDescriptions.get("create_task_for_user")).toContain("Manager or admin role");
|
||||
expect(toolDescriptions.get("send_broadcast")).toContain("Manager or admin role");
|
||||
expect(toolDescriptions.get("list_broadcasts")).toContain("Manager or admin role");
|
||||
expect(toolDescriptions.get("get_broadcast_detail")).toContain("Manager or admin role");
|
||||
expect(toolDescriptions.get("create_client")).toContain("manager or admin role");
|
||||
expect(toolDescriptions.get("update_client")).toContain("manager or admin role");
|
||||
|
||||
@@ -1912,7 +1912,7 @@ export const TOOL_DEFINITIONS: ToolDef[] = [
|
||||
type: "function",
|
||||
function: {
|
||||
name: "search_resources",
|
||||
description: "Search for resources (employees) by name, employee ID, chapter, country, metro city, org unit, or role. Returns a list of matching resources with key details.",
|
||||
description: "Search for resources (employees) by name, employee ID, chapter, country, metro city, org unit, or role. Resource overview access required. Returns a list of matching resources with key details.",
|
||||
parameters: {
|
||||
type: "object",
|
||||
properties: {
|
||||
@@ -2442,7 +2442,7 @@ export const TOOL_DEFINITIONS: ToolDef[] = [
|
||||
type: "function",
|
||||
function: {
|
||||
name: "search_by_skill",
|
||||
description: "Find resources that have a specific skill.",
|
||||
description: "Find resources that have a specific skill. Controller/manager/admin access required.",
|
||||
parameters: {
|
||||
type: "object",
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user