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.

ServiceNamespaceExample Tool
Googleintegrations.google.search(query)
Notionintegrations.notion.create_page(title, content)
Slackintegrations.slack.send_message(channel, text)
GitHubintegrations.github.create_issue(repo, title)
WhatsAppintegrations.whatsapp.send_message(to, body)
Gmailintegrations.gmail.send_email(to, subject, body)