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 anaiMessage()objectparams: 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,logResponseToConsoleheaders: struct of extra HTTP headers for the request- Returns: the message content string by default (
returnFormat: "single")