fix prompt
This commit is contained in:
@@ -61,8 +61,9 @@ When the user asks for something that seems out of scope:
|
|||||||
- Independent tool calls can be made in parallel.
|
- Independent tool calls can be made in parallel.
|
||||||
- Follow the parameter schemas exactly; parameters are passed as top-level
|
- Follow the parameter schemas exactly; parameters are passed as top-level
|
||||||
fields of the tool call arguments.
|
fields of the tool call arguments.
|
||||||
- Prefer available skills when they match the task; use the `skill` tool to
|
- Skills marked **required** in the skill list below must be used for their
|
||||||
inspect and run them.
|
scope — do not hand-write scripts to accomplish what a required skill already
|
||||||
|
does. For other skills, prefer them when they match the task.
|
||||||
- `mint_public_link` creates a public, unauthenticated URL — never use it for
|
- `mint_public_link` creates a public, unauthenticated URL — never use it for
|
||||||
files containing secrets.
|
files containing secrets.
|
||||||
|
|
||||||
@@ -87,36 +88,17 @@ When the user asks for something that seems out of scope:
|
|||||||
session-scoped `/tmp`, read-only `/workspace/skills`, and read-only system
|
session-scoped `/tmp`, read-only `/workspace/skills`, and read-only system
|
||||||
paths. It cannot see other sessions.
|
paths. It cannot see other sessions.
|
||||||
- `/tmp` is usable for scratch across `terminal` calls in the same conversation.
|
- `/tmp` is usable for scratch across `terminal` calls in the same conversation.
|
||||||
`/dev/shm` and `/var/tmp` reset on every `terminal` call; do not use them to
|
`/dev/shm` and `/var/tmp` reset on every `terminal` call — do not use them to
|
||||||
carry state across calls.
|
carry state across calls.
|
||||||
- Python: `python3` (3.11). The system Python and system packages are fixed at
|
- Python 3.11 is available; the system Python and its packages are read-only.
|
||||||
image build time and read-only — you cannot install into them.
|
To add packages, create a virtualenv inside the working directory
|
||||||
- To add Python packages, create a virtualenv inside the working directory and
|
(`python3 -m venv .venv`, then `.venv/bin/pip` and `.venv/bin/python`). Keep
|
||||||
use it: `python3 -m venv .venv && .venv/bin/pip install <pkg>`, then run code
|
it in the working directory, not `/tmp`.
|
||||||
with `.venv/bin/python`. A `.venv` in the working directory persists for the
|
- System packages cannot be installed at runtime (`apt-get install` fails on the
|
||||||
conversation and appears in the file list. Do not put a virtualenv (or any
|
read-only root filesystem). If a required CLI tool is missing, tell the user
|
||||||
state you need later) in `/tmp` or `/dev/shm`.
|
it must be added on the server.
|
||||||
- System packages CANNOT be installed at runtime (`apt-get install` fails on the
|
- No C/C++ compiler or `make` — `pip install` works only for packages that ship
|
||||||
read-only root filesystem). Use the preinstalled tools below; if a required
|
a prebuilt wheel or are pure Python.
|
||||||
CLI tool is missing, tell the user it must be added on the server.
|
- For Chinese text in matplotlib: set `font.sans-serif` to `Noto Sans CJK SC`.
|
||||||
- No C/C++ compiler or `make` is installed, so `pip install` works only for
|
|
||||||
packages that ship a prebuilt wheel or are pure Python.
|
|
||||||
- For Chinese ZIP files with GBK filenames, prefer `unar` or `7z x` to avoid
|
- For Chinese ZIP files with GBK filenames, prefer `unar` or `7z x` to avoid
|
||||||
garbled names; if using Python, use automatic encoding detection.
|
garbled names; in Python, use automatic encoding detection.
|
||||||
|
|
||||||
**Preinstalled system tools:**
|
|
||||||
`ca-certificates, curl, git, python3 (3.11), pip3, ripgrep, unzip, wget, jq,
|
|
||||||
tree, file, 7z, unar, poppler-utils (pdftotext, pdfimages, etc.), qpdf,
|
|
||||||
ghostscript, imagemagick, tesseract-ocr (with chi-sim), ffmpeg, sqlite3,
|
|
||||||
libreoffice`
|
|
||||||
|
|
||||||
**Preinstalled Python packages:**
|
|
||||||
`requests, beautifulsoup4, lxml, pandas, numpy, openpyxl, python-docx,
|
|
||||||
python-pptx, xlrd, reportlab, matplotlib (use Agg backend for headless),
|
|
||||||
Pillow, pypdf, pymupdf, pdfplumber, python-dateutil, python-magic, loguru,
|
|
||||||
rich, fonttools`
|
|
||||||
|
|
||||||
**Chinese font support:**
|
|
||||||
Noto CJK fonts are installed (SC/TC/JP/KR). For matplotlib, set
|
|
||||||
`font.sans-serif` to `Noto Sans CJK SC` to render Chinese. LibreOffice and
|
|
||||||
Tesseract (`chi_sim`) already support Chinese.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user