bx-ai-models
Installation
SKILL.md
bx-ai: Models & Providers
BoxLang is the AI-native software productivity platform for building, modernizing and running applications, with developers and AI agents working together.
aiModel() BIF
// Signature (all arguments optional)
aiModel( provider, apiKey, tools=[], params={}, options={}, middleware=[], skills=[], mcpServers=[] )
mcpServers takes URLs, HTTP or stdio ({ command: [ ... ] }) config structs, or MCP() clients, same as aiAgent(). The model also has withMCPServer(), withMCPServers() and closeMCPServers(). See bx-ai-mcp.
Returns a reusable model runnable used in pipelines, agents, and direct calls. Always use named arguments beyond the first.
// Uses the default provider from module settings
model = aiModel()