Skip to content

Hello World - Core Concepts ​

examples/01-hello.halo

Agent (LLM config), Pipeline (execution pipeline), Pipeline stages

Open in the playground →

halo
// ============================================================
// STEP 1: Hello World - Core Concepts
// Learn: Agent (LLM config), Pipeline (execution pipeline), Pipeline stages
// ============================================================

// 1. Define the Agent (the LLM to use)
agent Greeter [gemini-3-1-pro, temp: 0.7]

// 2. Define the Pipeline (execution pipeline)
pipeline HelloWorld(name: String) -> Result:
  name
    // Stage 1: Pass name to LLM prompt
    |> Greeter.prompt("Write a warm, one-sentence 'Hello World' greeting for this person.")
    // Stage 2: Print result to stdout
    |> System.Print()

curl -fsSL https://halolang.com/install.sh | sh