> For the complete documentation index, see [llms.txt](https://doc.afarensis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.afarensis.com/gong-ju/supported-files.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
