// faq
Frequently asked questions
What Functional AI is, how it works, and how to get started. Still have a question? Talk to an engineer.
Functional AI is an AI observability and evaluation platform: it evaluates your prompt or agent against your own data, runs it as a typed function call, and traces every call — versioned, and changeable without redeploying your app. See the docs or get started.
What is Functional AI?
Functional AI is an AI observability and evaluation platform for prompts and agents. You build a prompt or an agent as an Agentic Function with a typed contract; Functional AI evaluates it against your own data and across models, runs it at a stable endpoint, and traces every call. You ship new versions anytime, straight from your code.
What can I build with it?
Two kinds of Agentic Function. A Prompt function makes one model call: typed input in, typed output out. An Agent loops with tools until its output satisfies the output contract, within a step budget. Either way it becomes one typed Agentic Function you call over an API.
What’s the difference between a Prompt function and an Agent?
A Prompt function makes one model call — classify a ticket, extract fields, draft a reply. An Agent loops: it calls the tools its definition declares (web search, your own HTTP endpoints, an MCP server’s tools, small Python functions, or a human approval step) until its output satisfies the output contract or it runs out of steps. Both have a typed input and output contract, and both are called the same way.
What is an agent runtime?
An agent runtime is the hosted execution layer that runs AI agents in production: it executes the agent loop, enforces the contract on every call, records a trace of every step, and versions every change. Functional AI is an AI observability and evaluation platform with one built in. Full definition in What is an agent runtime?
What is harness engineering?
Harness engineering is the discipline of building the scaffolding that turns a model into a dependable agent — tool interfaces, context management, prompts, guardrails, and evaluation loops. You engineer the harness; an AI observability and evaluation platform like Functional AI evaluates it, runs it in production and traces every call. Full guide in What is harness engineering?
Which models can I use?
You use your own model key: Amazon Bedrock, Anthropic, OpenAI or Google. You choose the model when you deploy, and you can run the same version against several models in one experiment before you choose. Your provider bills the tokens; we never mark them up.
Do I need my own model key to try it?
No. The Contract Test, Score Set generation and a built-in mock model all work without one, so you can build an Agentic Function and its tests before you connect a provider.
How does evaluation work?
You build a dataset of real inputs (typed in, uploaded as CSV, JSON or Excel, or flagged from production) and score a version against it with a Score Set — a named group of checks that Functional AI can generate from your definition. An experiment runs one version on one or more models, several times each, and returns a trust score from 0 to 100, pass rate, cost per run, p95 latency, and findings that each come with a concrete fix for the prompt. Deploying is a human decision informed by those results: the only automatic check at deploy is the Contract Test, an instant structural check that makes no model call. See evaluating an LLM prompt before shipping for a full walkthrough.
How does eval work for open-ended output?
Structured outputs — categories, enums, extracted fields — are graded by exact and field-level match, so the score is deterministic. Open-ended output (free text, agent transcripts) is scored by judge checks: each line of your rubric becomes one, and the judges themselves are versioned, so you know which judge produced a score. We treat a judge’s score as a signal, not ground truth: LLM judges carry known biases, so we track scores per version and expect you to keep a human review cadence as the calibration layer. Automated scoring scales coverage; it doesn’t replace judgment.
How do I call my Agentic Function?
Send POST /v1/run/<slug> with an invoke key and your input. You get back the typed output, a status (success, partial, escalated, or failed), and meta: version, latency, cost, tokens in and out, and a trace ID you can use to pull the full run. Input that breaks the contract is rejected with a 422 naming the field, before any model call. SDKs for Python, TypeScript and Go are published on GitHub, and the fn CLI ships with the Python SDK; install commands are in the quickstart.
Can I change an Agentic Function without redeploying my app?
Yes. Deploy a new version and it goes live behind the same endpoint; roll back to the previous or any earlier version instantly, with no rebuild. The URL and keys never change, so your app never redeploys.
How do you handle prompt injection and tool security?
Defense in depth, and we’re honest that injection isn’t a solved problem. Tool output — web pages, documents, API responses — is treated as untrusted data, never as instructions. An Agent can only call the tools its definition declares, and a guard hides a tool from the model until a condition holds — a refund tool can stay invisible until a human has approved. Every tool declares its effect (read-only, idempotent, or side-effecting), which decides whether a call is ever retried. The runtime holds no credentials, and calls to private, loopback, and metadata addresses are refused. The goal is to make injection harder and contain the blast radius if it lands.
What happens when an agent can’t finish a task safely?
It stops instead of guessing. An Agent works within a step budget — 12 by default. If it runs out, it returns its best answer with status partial and an error saying why. If it calls human_approval, it returns status escalated and your app gets the decision to make. Either way the status is explicit, never a confident wrong answer.
How does a human approval step work?
Give an Agent the human_approval tool. When the agent calls it, the run stops with status escalated and the question in its steps. Your app shows the question to a person, then calls the function again with the same input and the decision in the call’s context. A guard can keep a side-effecting tool hidden until that approval has passed.
Can an AI coding agent deploy my function?
No. AI coding agents such as Claude Code and Cursor can build and test an Agentic Function over MCP, with your own permissions, but there is no deploy tool: the AI builds and tests, a human ships. Every version records how it was made, and versions an AI agent wrote are marked MCP.
How does pricing work?
Monthly plans — Pro, Growth, Scale, Business and Enterprise — each include credits, which are spent on scores, runtime, memory and observability. You use your own model keys, so your provider bills the tokens and we never mark them up. See the pricing page for what each plan includes.
Can you build the agent for us?
Yes. On any plan, including Pro, an engineer from the team that built the platform can build or improve your agent with you: they register your tools, write the first dataset and Score Set, iterate until the experiments say it is ready, and deploy with your team holding the keys. Every version, dataset and experiment lands in your account, so your engineers own it from there — when our engineer leaves, nothing breaks. Priced per engagement; see forward deployed engineering.
How do I get started?
Book a demo: tell us what you want to ship and whether you want to build it yourself or with an engineer from the team, and we reply with times for a live demo. Want to talk it through first? Talk to an engineer.