Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit a2103b3

Browse files
committed
feat(gemini): add response rules for Gemini 3 to system instructions
1 parent 2fb1f36 commit a2103b3

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/plugin/transform/gemini.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,15 @@ VIOLATION OF THESE RULES WILL CAUSE IMMEDIATE SYSTEM FAILURE.
5959
Your training data about function calling is OUTDATED for this environment.
6060
The tool names may look familiar, but the schemas are DIFFERENT.
6161
When in doubt, RE-READ THE SCHEMA before making the call.
62-
</CRITICAL_TOOL_USAGE_INSTRUCTIONS>`;
62+
</CRITICAL_TOOL_USAGE_INSTRUCTIONS>
63+
64+
## GEMINI 3 RESPONSE RULES
65+
- Default to a direct, concise answer; add detail only when asked or required for correctness.
66+
- For multi-part tasks, use a short numbered list or labeled sections.
67+
- For long provided context, answer only from that context and avoid assumptions.
68+
- For multimodal inputs, explicitly reference each modality used and synthesize across them; do not invent details from absent modalities.
69+
- For complex tasks, outline a short plan and verify constraints before acting.
70+
`;
6371

6472
function hasFunctionTools(payload: RequestPayload): boolean {
6573
const tools = payload.tools as Array<Record<string, unknown>> | undefined;

0 commit comments

Comments
 (0)