mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
remove tools from chat meta
This commit is contained in:
@@ -15,6 +15,7 @@ Execution mode:
|
|||||||
|
|
||||||
Actions:
|
Actions:
|
||||||
- Use tool calls when actions or memory updates are needed.
|
- Use tool calls when actions or memory updates are needed.
|
||||||
|
- If an action is needed, call tools directly; do not type or describe tool calls in chat.
|
||||||
- Respect safety limits, lock policies, cooldowns, and blocked tools.
|
- Respect safety limits, lock policies, cooldowns, and blocked tools.
|
||||||
- Do not invent tools.
|
- Do not invent tools.
|
||||||
- Ask a question only if a required action parameter is missing.
|
- Ask a question only if a required action parameter is missing.
|
||||||
|
|||||||
@@ -54,8 +54,9 @@ function buildModelMessages({ systemPrompt, stateUpdate, memorySummary, conversa
|
|||||||
const metadataSections = [];
|
const metadataSections = [];
|
||||||
metadataSections.push(`STATE_UPDATE\n${stateUpdate}`);
|
metadataSections.push(`STATE_UPDATE\n${stateUpdate}`);
|
||||||
if (memorySummary) metadataSections.push(`MEMORY_UPDATE\n${memorySummary}`);
|
if (memorySummary) metadataSections.push(`MEMORY_UPDATE\n${memorySummary}`);
|
||||||
metadataSections.push(`available_tools:\n${availableTools.map((tool) => `- ${tool}`).join('\n') || '- none'}`);
|
metadataSections.push(
|
||||||
metadataSections.push(`blocked_tools:\n${blockedTools.map((entry) => `- ${entry.tool} reason=${entry.reason}`).join('\n') || '- none'}`);
|
`tool_constraints:\n${blockedTools.map((entry) => `- blocked: ${entry.tool} reason=${entry.reason}`).join('\n') || '- none'}`,
|
||||||
|
);
|
||||||
messages.push({ role: 'user', content: metadataSections.join('\n\n') });
|
messages.push({ role: 'user', content: metadataSections.join('\n\n') });
|
||||||
(conversationMessages || []).forEach((message) => {
|
(conversationMessages || []).forEach((message) => {
|
||||||
if (!message || !message.role || !message.content) return;
|
if (!message || !message.role || !message.content) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user