Skip to main content

Spice Framework

Modern Multi-LLM Orchestration Framework for Kotlin 🌶️

Why Spice? 🌶️

🚀

Simple yet Powerful

Get started in minutes, scale to complex multi-agent systems

🛡️

Type-Safe

Leverage Kotlin's type system for compile-time safety

Async-First

Built on coroutines for efficient concurrent operations

Clean DSL

Intuitive API that reads like natural language

🔌

Extensible

Easy to add custom agents, tools, and integrations

🤖

Multi-LLM Support

OpenAI, Anthropic, Google Vertex AI, and more

Quick Start

Create your first agent in seconds

// Create your first agent
val assistant = buildAgent {
    id = "assistant-1"
    name = "AI Assistant"
    description = "A helpful AI assistant"

    // Add tools
    tool("greet") {
        description = "Greet someone"
        parameter("name", "string", "Person's name")
        execute { params ->
            ToolResult.success("Hello, ${params["name"]}! 👋")
        }
    }

    // Handle messages
    handle { comm ->
        SpiceResult.success(
            comm.reply("How can I help you today?", id)
        )
    }
}

Ready to spice up your AI applications? 🌶️

Join the growing community of developers building with Spice Framework