HiveLang v4
Standard Library
Built-in tools and integrations available to all Hivelang bots.
AI Namespace
Core AI inference capabilities.
ai.generate(prompt, options?)Generate text using the configured LLM.
ai.embed(text)Generate vector embeddings for semantic search.
ai.classify(text, labels)Classify text into predefined categories.
Database Namespace
Key-value storage for persistent memory.
db.get(key)Retrieve a value from persistent storage.
db.set(key, value)Store a value in persistent storage.
db.delete(key)Remove a value from storage.
HTTP Namespace
Make external HTTP requests.
http.get(url, params?, headers?)Perform a GET request.
http.post(url, body, headers?)Perform a POST request with JSON body.
Integrations Namespace
Pre-built integrations with popular services. Enable them in your Dashboard.
| Service | Namespace | Example Tool |
|---|---|---|
| integrations.google | .search(query) | |
| Notion | integrations.notion | .create_page(title, content) |
| Slack | integrations.slack | .send_message(channel, text) |
| GitHub | integrations.github | .create_issue(repo, title) |
| integrations.whatsapp | .send_message(to, body) | |
| Gmail | integrations.gmail | .send_email(to, subject, body) |