bx-ai-chatting

Installation
SKILL.md

bx-ai: Chatting with AI

BoxLang is the AI-native software productivity platform for building, modernizing and running applications, with developers and AI agents working together.

Core BIF: aiChat()

// Signature
aiChat( messages, params={}, options={}, headers={} )
  • messages: string, a message struct, an array of message structs, or an aiMessage() object
  • params: model parameters sent to the provider (temperature, max_tokens, model, top_p, stop, etc.)
  • options: provider, apiKey, timeout (seconds, module default 90), returnFormat, logRequest, logResponse, logRequestToConsole, logResponseToConsole
  • headers: struct of extra HTTP headers for the request
  • Returns: the message content string by default (returnFormat: "single")

Simple Usage

Installs
18
First Seen
Apr 15, 2026