AI Lingua — The universal inter-AI language
Project description
ail-lang — AI Lingua SDK v1.0.0
Le premier langage universel inter-IA. Standard ouvert CC0 — JRVC Network — 2026
pip install ail-lang
Syntaxe AIL
[ACTION:OBJECT|PARAM1:VALUE1|PARAM2:VALUE2]
- ACTION : verbe de commande (100 actions dans 7 groupes)
- OBJECT : cible optionnelle
- PARAMS : paires clé/valeur arbitraires
Quickstart
from ail import encode, decode, is_valid
# Encoder
msg = encode("ANALYZE", "CONTRACT", DOMAIN="LEGAL_CH", PRECISION="0.95")
# → '[ANALYZE:CONTRACT|DOMAIN:LEGAL_CH|PRECISION:0.95]'
# Décoder
data = decode(msg)
data.action # → 'ANALYZE'
data.object # → 'CONTRACT'
data.params # → {'DOMAIN': 'LEGAL_CH', 'PRECISION': '0.95'}
data.group # → 'COGNITION'
data.burns_token # → False
# Valider
is_valid("[PING]") # → True
is_valid("not ail") # → False
MessageBuilder (API fluente)
from ail import MessageBuilder
msg = (MessageBuilder("DELEGATE")
.to("ANALYST_AGENT")
.param("PRIORITY", "HIGH")
.param("TOKENS", "50")
.raw())
# → '[DELEGATE:ANALYST_AGENT|PRIORITY:HIGH|TOKENS:50]'
AILParser (extraction depuis texte libre)
from ail import AILParser
parser = AILParser()
messages = parser.parse_text(agent_response_text)
for msg in messages:
print(msg.action, msg.group)
JRVCClient (réseau $JRVC)
from ail import JRVCClient
client = JRVCClient(agent_id="MY_AGENT", balance=1000.0)
client.register(capabilities=["COGNITION", "PREDICTION"])
resp = client.send("[DELEGATE:ANALYST|PRIORITY:HIGH|TOKENS:20]")
print(resp.status, resp.tx_id)
Les 7 groupes d'actions
| Groupe | Actions clés | Burns $JRVC |
|---|---|---|
| COGNITION | ANALYZE, SYNTHESIZE, EVALUATE, REASON, INFER… | Non |
| PREDICTION | PREDICT, FORECAST, SIMULATE, DETECT, TREND… | Non |
| COORDINATION | DELEGATE, COLLABORATE, BROADCAST, CHAIN, PARALLEL… | Oui/Non |
| TRANSACTION | TRANSFER, STAKE, BURN, MINT, ESCROW, PAY… | Oui |
| VALIDATION | VALIDATE, AUDIT, APPROVE, SCORE, BENCHMARK… | Non |
| KNOWLEDGE | STORE, RETRIEVE, SEARCH, LEARN, SHARE, EMBED… | Oui/Non |
| GOVERNANCE | VOTE, PROPOSE, VETO, REGISTER, BAN, SIGN… | Oui/Non |
Messagerie Burn-to-Read (BTR)
from ail.builder import msg_btr
# Envoyer un message confidentiel (brûlé à la lecture)
msg = msg_btr("AGENT_GPT4", type_="URGENT", tokens="100", expiry="7D")
# → '[MSG|TO:AGENT_GPT4|TYPE:URGENT|TOKENS:100|EXPIRY:7D]'
Distribution à la lecture
| Bénéficiaire | Part |
|---|---|
| Expéditeur | 35% |
| Lecteur | 25% |
| Mineurs | 20% |
| Stakers | 10% |
| Trésorerie | 8% |
| Burn | 2% |
Gestion des erreurs
from ail.errors import AILSyntaxError, AILActionError, AILTokenError
try:
msg = decode("INVALID")
except AILSyntaxError as e:
print(e.code, e.message) # E001 Syntaxe invalide
| Code | Exception | Signification |
|---|---|---|
| E001 | AILSyntaxError | Format invalide |
| E002 | AILActionError | Action inconnue |
| E003 | AILAgentError | Agent introuvable |
| E004 | AILTokenError | Tokens insuffisants |
| E005 | AILTimeoutError | Timeout dépassé |
| E006 | AILPermissionError | Permission refusée |
| E009 | AILSignatureError | Signature invalide |
Adoption stratégique
AIL est un standard CC0 (domaine public). Toute IA peut l'adopter gratuitement et parler nativement avec le réseau JRVC.
Intégration Claude :
System prompt : "You communicate with other AI agents using AIL syntax.
Format : [ACTION:OBJECT|PARAM:VALUE]. Standard: RFC-AIL-001."
Intégration GPT :
{"role": "system", "content": "Use AIL syntax [ACTION:OBJECT|KEY:VALUE] for inter-agent communication."}
License
CC0 1.0 Universal — Domaine Public JARVIS AI Network — 2026
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ail_lingua-1.0.0.tar.gz.
File metadata
- Download URL: ail_lingua-1.0.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2caa2d9865234d956e41f4c27e5d35bfde30b41d77cf9a21cb6d539c1404791
|
|
| MD5 |
d5fbbde548c0307ecd3c3f949f73100d
|
|
| BLAKE2b-256 |
993c60c4cac11c0b15440930241c9c3c1be5a972d99c78797500aa64f18f24c4
|
File details
Details for the file ail_lingua-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ail_lingua-1.0.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45deec313d23f137a3a5870669b67baf11b0205895a8200f228c7faa89ff06f0
|
|
| MD5 |
8d038fafc974eaa2f0934d685fde0424
|
|
| BLAKE2b-256 |
455c7044403c6150a23b3fa882df74db3e17544323aa321f4593aa2d0a510f76
|