Getting Started
How to create and configure AI agents — from simple assistants to full-featured agents with custom models, tools, and v3.0 skills.
Basic Agent
// Simple agent with default settings
agent = aiAgent(
name: "Assistant",
description: "A helpful AI assistant",
instructions: "Be concise and friendly"
)
response = agent.run( "What is BoxLang?" )
println( response )Agent with a Custom Model
// Agent with a specific AI model
model = aiModel( provider: "claude" )
agent = aiAgent(
name : "Claude Assistant",
model : model,
params: { temperature: 0.7 }
)Agent with Tools
Agent with Skills (v3.0+)
Agent with MCP Servers (v3.0+)
Fluent Configuration
⚙️ Constructor Parameters
Parameter
Type
Description
📤 Return Formats
single (Default)
single (Default)all
allraw
rawjson / xml
json / xmlAgent Introspection
Set Appropriate Parameters
Related Pages
Last updated