Docs

/

Guides

Academy

Learn Frags

A guided path from a local runtime to production-ready plans. Work through the tracks in order, or jump straight to the lesson you need.

15

Lessons

3

Tracks

~97

Minutes

Track 03

Blueprints

06

6 min read

Anatomy of a blueprint

The four things every Blueprint declares — tools, parameters, sessions, and typed schema — walked through on one complete example.

Read guide
07

6 min read

Build a hello-world blueprint

Write your first FML Blueprint from scratch — a single session with a schema — then grow it with parameters, prompt phases, and connected sessions.

Read guide
08

7 min read

Anatomy of a session

Every part of a session, top to bottom — name, tools, PreCalls, context, and the key prePrompt (+) vs prompt (-) distinction that turns gathered context into typed output.

Read guide
09

6 min read

Design your output schemas

Shape a session's typed output — field syntax, comments the model reads as instructions, flat-vs-nested structure, scalar shorthand, and reusable $Component refs.

Read guide
10

7 min read

Data flow: params, vars & context

How data moves through a Blueprint across the three namespaces — caller inputs, working memory, and session outputs — and the rule for reading context safely.

Read guide
11

6 min read

Templates and expressions

Go templates always make strings; $(...) preserves real types. Learn the three expression positions and never hand a tool a stringified array again.

Read guide
12

8 min read

PreCalls deep-dive

Run tools deterministically before prompts — global vs session PreCalls, tool vs code invocations, and routing output into vars or context.

Read guide
13

8 min read

Connect Frags to your data

Pull live data into a Blueprint— run a web search, call an MCP server (Slack), and query a database (Postgres) with PreCalls, transformers, and context routing.

Read guide
14

9 min read

Control the flow of a blueprint

Order, gate, and fan out sessions with after, target, expect, and iterate — the declarative flow controls Frags runs for you.

Read guide
15

5 min read

Generate an apicp from an OpenAPI spec

Map an OpenAPI operation into an apicp.yaml mapping and expose it as a focused MCP server a Blueprint can call with require apicp.

Read guide