Metadata-Version: 2.4
Name: ilang-protocol
Version: 1.0.1
Summary: The iLang loader: fetches the official iLang runtime, verifies it, caches it and puts it in front of any model's context. Don't learn iLang. Your AI should.
Author: Long Quan Zhu
License: MIT
Project-URL: Homepage, https://ilang.ai
Project-URL: Source, https://github.com/ilang-ai/ilang
Project-URL: Specification, https://github.com/ilang-ai/ilang-spec
Keywords: ilang,iLang,ai,llm,prompt,protocol,agent,openai,anthropic,gemini,deepseek
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# ilang-protocol

**Don't learn iLang. Your AI should.**

The Python loader for [iLang](https://ilang.ai). It fetches the official iLang runtime from the canon repository, checks its sha256, keeps a verified copy on disk and adds it to any model's messages.

```bash
pip install ilang-protocol
```

```python
import ilang

messages = ilang.wrap([{"role": "user", "content": "帮我分析这个问题"}])   # OpenAI-style messages
system = ilang.system()                                                     # Anthropic, Gemini
print(ilang.status())
```

Updates are checked at most once an hour; without a network the last verified copy is used, and with no copy at all the messages go out unchanged unless `strict=True`. Pin an exact runtime with `version=` for reproducible runs; add `extensions=["media"]` for image, video and audio work. The core runtime is about 27,000 tokens, so enable your provider's prompt caching.

Standard library only, Python 3.9+. Source, JavaScript version and documentation: [github.com/ilang-ai/ilang](https://github.com/ilang-ai/ilang). MIT.
