mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 06:17:27 +00:00
chore: remove unused isMinimal param from buildSkillsSection
Address review feedback: isMinimal is no longer referenced after the early-return guard was removed in the parent commit.
This commit is contained in:
@@ -17,11 +17,7 @@ import { sanitizeForPromptLiteral } from "./sanitize-for-prompt.js";
|
|||||||
export type PromptMode = "full" | "minimal" | "none";
|
export type PromptMode = "full" | "minimal" | "none";
|
||||||
type OwnerIdDisplay = "raw" | "hash";
|
type OwnerIdDisplay = "raw" | "hash";
|
||||||
|
|
||||||
function buildSkillsSection(params: {
|
function buildSkillsSection(params: { skillsPrompt?: string; readToolName: string }) {
|
||||||
skillsPrompt?: string;
|
|
||||||
isMinimal: boolean;
|
|
||||||
readToolName: string;
|
|
||||||
}) {
|
|
||||||
const trimmed = params.skillsPrompt?.trim();
|
const trimmed = params.skillsPrompt?.trim();
|
||||||
if (!trimmed) {
|
if (!trimmed) {
|
||||||
return [];
|
return [];
|
||||||
@@ -392,7 +388,6 @@ export function buildAgentSystemPrompt(params: {
|
|||||||
];
|
];
|
||||||
const skillsSection = buildSkillsSection({
|
const skillsSection = buildSkillsSection({
|
||||||
skillsPrompt,
|
skillsPrompt,
|
||||||
isMinimal,
|
|
||||||
readToolName,
|
readToolName,
|
||||||
});
|
});
|
||||||
const memorySection = buildMemorySection({
|
const memorySection = buildMemorySection({
|
||||||
|
|||||||
Reference in New Issue
Block a user