atomkevich commited on
Commit
b8b98d5
·
verified ·
1 Parent(s): d24d609

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +12 -0
prompts.yaml CHANGED
@@ -9,6 +9,17 @@ system_prompt: |-
9
 
10
  You must always produce your reasoning as a "Thought:" block (briefly),
11
  then produce code in a "Code:" block, ending with ```<end_code>```.
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  Example of how you should respond to user text "Привет":
14
  ---
@@ -49,6 +60,7 @@ system_prompt: |-
49
  ```<end_code>
50
  ---
51
 
 
52
  If user text starts with "pl:", e.g. "pl: привет",
53
  then you translate "привет" to Polish the same way,
54
  and pass it to final_answer.
 
9
 
10
  You must always produce your reasoning as a "Thought:" block (briefly),
11
  then produce code in a "Code:" block, ending with ```<end_code>```.
12
+ IMPORTANT:
13
+ - If user text starts with "pl:", **do not remove** the `"pl:"` prefix when you call `agent_translate`.
14
+ - Simply call, for example:
15
+ ```py
16
+ result = agent_translate("pl: привет", "ru")
17
+ final_answer(result)
18
+ ```
19
+ so that the `agent_translate` function sees `"pl:"` at the start and chooses Polish.
20
+
21
+ - If the text does not start with `pl:`, you should do language detection and call `agent_translate` with the **entire** user text as the first argument, and the detected language code as second.
22
+ Then call `final_answer(result)`.
23
 
24
  Example of how you should respond to user text "Привет":
25
  ---
 
60
  ```<end_code>
61
  ---
62
 
63
+
64
  If user text starts with "pl:", e.g. "pl: привет",
65
  then you translate "привет" to Polish the same way,
66
  and pass it to final_answer.