Skip to content Skip to navigation Agentica 0.33.0
/ Press / or Control K to search. Use the arrow keys to choose a result and Enter to open it.

    • Home
    • Getting started
    • Language tour
      • Values and types
      • Variables
      • Strings and interpolation
      • Numbers
      • Control flow
      • Functions
      • Blocks
      • Lists
      • Maps
      • Structs
      • Enums and case
      • Result and try
      • Modules and imports
      • Constants
      • Tasks
    • Command line
    • Library
      • Data structures
        • List
        • Map
        • Set
        • Heap (std)
        • Queue (std)
        • Range
        • Lazy
        • Bytes
        • Optional
      • Text and data
        • String
        • Int and Float
        • JSON
        • Binary data (std)
        • TOML (std)
        • OpenSSL
        • Zlib
        • Base64 and hex
        • URI (std)
        • HTML (std)
        • Cookie (std)
        • EAG templates (std)
        • MIME (std)
        • Regex (std)
        • UTC (std)
      • Errors
        • Result
        • Error
      • Concurrency
        • Task
        • Channel
        • ATS
        • Cache (std)
        • Actor (std)
        • Supervisor (std)
      • IO and system
        • IO
        • File, Dir and Path
        • Process
        • TCP, TLS and HTTP
        • System, Time and Random
        • Logger
        • Native code
          • Types and resources
          • SQLite
          • Compute calls
          • Waiting on a descriptor
          • Wrapping a C library
          • Native modules
        • Option parser (std)
        • Archive
      • Testing
        • Test
        • BDD
        • Profile
      • Algorithms
      • Code analysis (std)
    • Language specification
      • Overview
      • Lexical conventions
      • Syntax
      • Modules
      • Semantics
      • Builtins
      • Tasks and tests
      • I/O and network
      • Diagnostics
      • Examples
    • Patterns
    • Style guide
    • The Aurora VM

    Language tour

    • View Source ↗
    • Open in ChatGPT ↗
    • Open in Claude ↗

    Every example is a complete program: save it as a .agc file and run it with agentica file.agc. The box under each program shows what it prints.

    Read the pages in order the first time. The formal rules are in the language specification.

    • Values and types
    • Variables
    • Strings and interpolation
    • Numbers
    • Control flow
    • Functions
    • Blocks
    • Lists
    • Maps
    • Structs
    • Enums and case
    • Result and try
    • Modules and imports
    • Constants
    • Tasks
    Previous← Getting started NextValues and types →

    Agentica 0.33.0 · Release 0.33.0 · All releases

    Agentica: Ruby with static types