AI Integration
ErikrafT treats AI as a first-class citizen with built-in primitives for LLM communication and agent management.
AI Chat
let response = await ai.chat("What is the capital of France?")
Autonomous Agents
let agent = ai.agent("Coder", {
capabilities: ["code_gen", "terminal"]
})
await agent.do("Fix the bug in main.erik")
capabilities: ["code_gen", "terminal"]
})
await agent.do("Fix the bug in main.erik")