# Supported files

Afarensis 助手API支持多种文件格式，以便在代码解释器和知识检索功能中使用。以下表格详细列出了支持的文件格式、对应的MIME类型，以及它们是否支持代码解释器和知识检索功能。

文本和编程语言文件 文件格式 MIME类型 代码解释器支持 知识检索支持 .c text/x-c ✓ ✓ .cs text/x-csharp ✓ ✓ .cpp text/x-c++ ✓ ✓ .csv application/csv ✓ ✓ .html text/html ✓ ✓ .java text/x-java ✓ ✓ .json application/json ✓ ✓ .md text/markdown ✓ ✓ .php text/x-php ✓ ✓ .py text/x-python / text/x-script.python ✓ ✓ .rb text/x-ruby ✓ ✓ .tex text/x-tex ✓ ✓ .txt text/plain ✓ ✓ .css text/css ✓ ✓ .js text/javascript ✓ ✓ .sh application/x-sh ✓ ✓ .ts application/typescript ✓ ✓ .xml application/xml 或 text/xml ✓ ✓ 文档和演示文件 文件格式 MIME类型 代码解释器支持 知识检索支持 .doc application/msword ✓ .docx application/vnd.openxmlformats-officedocument.wordprocessingml.document ✓ .pdf application/pdf ✓ .pptx application/vnd.openxmlformats-officedocument.presentationml.presentation ✓ .xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ✓ 压缩和图像文件 文件格式 MIME类型 代码解释器支持 知识检索支持 .jpeg image/jpeg .jpg image/jpeg .gif image/gif .png image/png .tar application/x-tar .zip application/zip 请注意，对于文本/ MIME 类型，编码必须是utf-8、utf-16或ascii之一。此外，图像类型文件（如 .jpeg、.jpg、.gif 和 .png）当前可能不直接支持处理，但可以通过文件引用和注释等方式间接使用。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.afarensis.com/gong-ju/supported-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
