> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/kits/inventorkit/aiupgrade/aigate.md).

# 芝麻閘門

![](https://kittenbothk.readthedocs.io/en/latest/_images/extra_gate_render.png)

### 組裝說明書下載

[組裝說明書下載](https://drive.google.com/drive/folders/1vPB1nm2KgCbI8fHl_VWVD3YiAxTgYQWc?usp=sharing)

![](https://kittenbothk.readthedocs.io/en/latest/_images/extra_gate_wire.png)

### 參考程式

#### 訓練程式

{% embed url="<https://makecode.microbit.org/_07uAyKV7sdYU>" %}

[參考程式下載](https://makecode.microbit.org/_07uAyKV7sdYU)

#### 主程式

{% embed url="<https://makecode.microbit.org/_ieEEXA7po2Tb>" %}

[參考程式下載](https://makecode.microbit.org/_ieEEXA7po2Tb)

### 模型玩法

首先用訓練程式，按A錄下開閘，按B錄下關閘。按A+B儲存模型。

然後使用辨認程式，對KOI說出指令就會打開或關上閘門。


---

# 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://sharinghub.kittenbot.hk/kits/inventorkit/aiupgrade/aigate.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.
