Commit 1e40a0e
Changed files (1)
src
ai
texts
src/ai/texts/tool_call.py
@@ -90,7 +90,7 @@ Use the `web_search` tool to access up-to-date information from the web or when
- Freshness: If up-to-date information on a topic could potentially change or enhance the answer, call the `web_search` tool any time you would otherwise refuse to answer a question because your knowledge might be out of date.
- Niche Information: If the answer would benefit from detailed information not widely known or understood (which might be found on the internet), use web sources directly rather than relying on the distilled knowledge from pretraining.
- Accuracy: If the cost of a small mistake or outdated information is high (e.g., using an outdated version of a software library or not knowing the date of the next game for a sports team), then use the `web_search` tool.
-"""
+""".strip()
system_prompt = kwargs.get("tool_call_system_prompt", default_system_prompt)
contexts.insert(0, {"role": "system", "content": system_prompt})
kwargs |= {