Documentation Index
Fetch the complete documentation index at: https://koreai-v2-agent-platform-dev.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Examples by Pattern
Complete, runnable ABL examples organized by agent pattern. Each example includes the full ABL definition, an explanation of key constructs, and guidance on when to use that pattern.Tip: Copy any example into the ABL Studio visual editor to see the flow graph rendered in real time.
Simple Agent
An agent uses LLM intelligence to decide what to do at each turn by default. It does not follow a fixed flow graph — instead, the model interprets the user’s intent, picks tools, gathers data, and formulates responses dynamically. When to use: Open-ended conversations where the user’s path cannot be predicted in advance — advisory, search, Q&A, and exploratory interactions.- No
FLOWsection — the agent uses LLM reasoning by default to select tools and responses each turn. GATHER— declares information the agent should collect, but the LLM decides when and how to ask.LIMITATIONS— hard boundaries the LLM must respect in every response.COMPLETE— conditions that signal the conversation has reached a successful end state.
Agent with Structured Steps
An agent with a FLOW section follows a deterministic step graph. Each step defines what to say, what data to collect, what tool to call, and which step comes next. The path through the conversation is explicit and predictable. When to use: Regulated processes, data collection forms, step-by-step wizards, and any workflow where the order of operations matters.FLOWsection — adding a FLOW section gives the agent a fixed step graph.entry_point/steps— declares the step sequence and starting point.THEN:— explicit transitions between steps.REASONING: false— disables LLM reasoning within a step (deterministic execution).CALL— invokes a tool with specific parameters.GATHERwithin a step — collects input before moving to the next step.
Agent with HTTP Tools
HTTP tools connect your agent to external APIs. You declare the endpoint, method, authentication, and expected response shape directly in the ABL definition. When to use: Any agent that needs to read or write data from REST APIs — CRM lookups, payment processing, inventory checks, and third-party service calls.type: http— marks the tool as an HTTP API call.endpoint— the full URL of the API.method— HTTP method (GET,POST,PUT,DELETE).auth: bearer— the runtime injects a Bearer token from the project’s credential store.hints— optional metadata that helps the runtime optimize tool execution:cacheable— whether results can be cached across turns.latency— expected response time (fast,medium,slow).timeout— maximum wait time in milliseconds.side_effects— whether the call modifies external state.
Agent with Code Sandbox
Code sandbox tools run arbitrary code in a secure, isolated environment. The runtime provides amemory API so sandbox code can read and write agent session state.
When to use: Complex calculations, data transformations, custom formatting, or any logic that is easier to express in code than in tool parameters.
- Sandbox tools are declared with a signature but no
type: httportype: mcp— the runtime resolves them from Project Tools (code files uploaded to the project). - The
memoryAPI is injected automatically. Sandbox code can read session state withmemory.get_content()and persist results withmemory.set_content(). - Sandbox execution is isolated — the code cannot access the network, filesystem, or other sessions.
Agent with MCP Integration
MCP (Model Context Protocol) tools connect your agent to external tool servers. This is useful for browser automation, database access, file system operations, and any capability exposed via an MCP server. When to use: When you need to interact with tools provided by an MCP server — browser automation, IDE integration, specialized data sources, or third-party MCP-compatible services.type: mcp— routes the tool call through an MCP server instead of direct HTTP.server: "crawler"— identifies which MCP server to connect to (configured in the project’s MCP settings).tool: "navigate"— the specific tool name on the MCP server.- MCP tools support the full range of ABL tool features: parameters, return types,
hints,on_resulthandlers.
Cross-reference: See the MCP Configuration Guide for details on registering MCP servers with your project.
Multi-Agent with Supervisor
A supervisor agent routes incoming requests to specialist agents based on intent. It does not handle domain logic itself — it classifies the user’s need and hands off to the right agent, with optional context passing. When to use: Any application with multiple distinct capabilities — customer service with different departments, enterprise platforms with specialized functions, or any system where one agent cannot handle all request types.SUPERVISOR:— declares this agent as a supervisor (router) rather than a domain agent.HANDOFF— ordered list of routing rules. Each entry specifies the target agent, trigger condition, context to pass, and whether control returns after the handoff.CONTEXT.pass— array of session variables forwarded to the child agent.CONTEXT.summary— human-readable description of why the handoff is happening.RETURN: true/RETURN: false— whether the supervisor regains control after the child completes.ON_RETURN— what to do when control returns (e.g., check if the customer has additional needs).ESCALATE— system-level triggers for transferring to a human supervisor.
Agent with Knowledge Base (RAG)
A RAG (Retrieval-Augmented Generation) agent uses semantic search over a knowledge base to answer questions grounded in your documents. ABL supports hybrid search (vector + keyword), vocabulary resolution for domain terms, and source attribution. When to use: Policy Q&A, product documentation, FAQ bots, compliance advisors, and any agent that needs to answer questions from a corpus of documents.vocabulary_resolve— maps user terms to structured metadata filters before searching.search_hybrid— combines vector similarity with keyword matching for high precision.search_vector— fallback for broader semantic search when hybrid returns few results.INSTRUCTIONS— step-by-step guidance for the reasoning LLM on how to use the tools.- Always include source attribution so users can verify answers against original documents.
Cross-reference: See the SearchAI Guide for knowledge base ingestion, indexing, and search strategy configuration.
Agent with Guardrails
Guardrails enforce safety checks on inputs and outputs. They run before or after every turn to detect PII, block harmful content, redact sensitive data, or enforce content policies. When to use: Any production agent that handles user input — especially in regulated industries (finance, healthcare, insurance) where data protection and content safety are mandatory.GUARDRAILS— a named map of safety checks applied to inputs, outputs, or both.kind: input/kind: output/kind: both— when the check runs.check— the validation expression. Supports regex patterns (not_matches_pattern), content checks (not_contains_harmful_instructions), and length checks.action— what happens when the check fails:redact— removes the sensitive content and continues.block— stops the message entirely.warn— logs a warning but allows the message through.escalate— routes to human review.
priority— lower numbers run first. Priority 0 guardrails are non-negotiable.
Agent with Memory and Recall
ABL supports three memory scopes: session (in-memory, per-conversation), user (persistent, per-user), and project (shared across all users). Theremember and recall blocks control when data flows between scopes.
When to use: Personalization, returning-user detection, preference learning, and any agent that improves over time by remembering past interactions.
session— ephemeral key-value pairs that exist only during the conversation.persistentwithSCOPE: user— data stored per-user in the persistent fact store.persistentwithSCOPE: project— shared data visible to all agents and users in the project.ACCESS: read/ACCESS: readwrite— controls whether the agent can modify persistent data.remember— rules that copy session data to persistent storage on specific triggers.recall— rules that load persistent data into the session at specific lifecycle events.TTL: 90d— time-to-live for persisted data; automatically cleaned up after expiration.
Agent with Human-in-the-Loop
Human-in-the-loop agents pause execution at critical decision points and wait for a human operator to approve, reject, or override before proceeding. TheESCALATE block defines when and how to involve humans.
When to use: High-value transactions, compliance decisions, content moderation, and any workflow where automated decisions need human oversight.
ESCALATE.triggers— conditions that pause the agent and route to a human operator.PRIORITY— controls queue priority:critical,high,medium,low.TAGS— metadata tags that help the routing system match the right human agent.context_for_human— data forwarded to the human agent’s interface.routing.queue— the human agent queue to route to.on_human_complete— what the agent does when the human completes their review.
Full Reference: Complete Agent
This comprehensive example demonstrates every major ABL construct for an agent without a FLOW section. The LLM reasons through each turn, selecting tools and formulating responses dynamically. It is based on the wire transfer specialist from the platform’s reference examples.
Source file: examples/reference/agent_complete.agent.abl
GOAL, PERSONA, LIMITATIONS, INSTRUCTIONS, TOOLS (HTTP with hints), GATHER (with validation, inference, and extraction hints), MEMORY (session + persistent), CONSTRAINTS (labeled groups such as always + pre_action; labels are organizational only), DELEGATE (synchronous sub-agent calls), HANDOFF (with context, priority, return mapping), ESCALATE (with routing and human completion handlers), COMPLETE (multiple conditions), ON_START, ON_ERROR, EXECUTION, TEMPLATES (multi-format), GUARDRAILS, NLU (intents, entities, glossary), HOOKS, and MESSAGES.
Full Reference: Complete Agent with Flow
This comprehensive example demonstrates every major ABL construct for an agent with a FLOW section. It follows the same wire transfer scenario but uses a deterministic step graph instead of relying solely on LLM reasoning.
Source file: examples/reference/agent_with_flow_complete.agent.abl
| Construct | Purpose |
|---|---|
FLOW / entry_point / steps | Declares the step graph and starting point |
THEN: | Explicit transition to the next step |
REASONING: false | Disables LLM reasoning for deterministic steps |
CALL ... WITH ... AS | Tool call with named parameters and result binding |
ON_RESULT / IF / ELSE | Conditional branching based on tool results |
SET | Assign session variables |
CLEAR | Reset session variables between flows |
GATHER within a step | Collect user input with validation |
ON_INPUT | Branch based on user response content |
CORRECTIONS: true | Allow users to correct previously entered values |
global_digressions | Intents handled at any step (cancel, help, transfer) |
FORMAT_CURRENCY, MASK, ADD, SUB | Built-in expression functions |
Next Steps
- Browse industry-specific examples for real-world implementations.
- Study orchestration patterns for multi-agent coordination strategies.
- Follow integration recipes for connecting agents to external services.
- See the ABL Language Reference for complete syntax documentation.