You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -109,11 +110,9 @@ export async function buildAgentSystemPrompt(
109
110
DEFAULT_AGENT_SYSTEM_PROMPT,
110
111
`ADMIN_BASE_PATH: ${adminBasePath}`,
111
112
`List of resources:\n${formatResources(visibleResources)}`,
112
-
primarySkills.length>0
113
-
? `You have primary skills set:\n${formatSkills(primarySkills,"skill_name")}`
113
+
skills.length>0
114
+
? `You have skills set:\n${formatSkills(skills,"skill_name")}`
114
115
: "",
115
-
"You have next default skills which you can fallback to if primary skill set does not provide a good skill:\n"+
116
-
formatSkills(defaultSkills,"skill_name"),
117
116
"Before using any skill, call fetch_skill to load its full instructions.",
118
117
"The fetched skill response starts with 'Tools mentioned in this skill'. Read that list first.",
119
118
"You can use get_resource immediately to inspect resource structure and column names.",
@@ -123,8 +122,8 @@ export async function buildAgentSystemPrompt(
123
122
"If a fetched skill lists a non-base tool you need, call fetch_tool_schema for it immediately instead of telling the user the tool is unavailable.",
124
123
"For example: for record creation load mutate_data, read its tool list, call fetch_tool_schema for create_record, and then use create_record after confirmation.",
125
124
"When fetch_tool_schema succeeds, that tool becomes available on the next step.",
126
-
"All admin links must be relative paths and must start with ADMIN_BASE_PATH.",
127
-
"Build record links as ADMIN_BASE_PATH + resource/{resourceId}/show/{primary key}. Do not prepend any extra slash before resource.",
125
+
"All admin links must be root-relative and start with '/'.",
126
+
"Build record links as '/resource/{resourceId}/show/{primary key}'. Never use bare 'resource/{resourceId}/show/{primary key}' without the leading slash.",
128
127
"Try to call as many tools as possible in parallel in one step.",
0 commit comments