# xAPI

**xAPI**（体验API，也称为Tin Can API）是一种用于追踪学习体验的标准。Chamilo 既可以生成也可以消费 xAPI 语句。

## xAPI 的功能

xAPI 以**语句**的形式追踪学习活动，格式为：“执行者对对象执行了动作。”例如：

* “Jane 完成了模块 1”
* “John 在期末考试中得分 85%”
* “Maria 观看了介绍视频”

这些语句存储在\*\*学习记录存储（LRS）\*\*中，提供了学习活动的全面记录。

## 配置

1. 在平台设置中，配置 **LRS 端点**：
   * **LRS URL** — 您的学习记录存储的地址
   * **LRS 认证** — 向 LRS 发送数据所需的凭据
2. 为所需活动启用 xAPI 追踪

## Chamilo 通过 xAPI 追踪的内容

Chamilo 可以为以下内容生成 xAPI 语句：

* 课程访问和完成情况
* 练习尝试和得分
* 学习路径项目的进度
* 作品集项目

其他工具（如文档和论坛）目前无法通过插件作为 xAPI 事件发出。

## 使用场景

* **跨平台追踪** — 在单个 LRS 中追踪多个工具和平台上的学习活动
* **高级分析** — 使用 LRS 分析工具生成超出 Chamilo 内置报告的洞察
* **合规性报告** — 为监管要求生成培训完成的审计追踪


---

# 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://docs.chamilo.org/2.x-zh-cn/guan-li-zhi-nan/admin-guide/integrations/xapi.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.
