A Monitor Target wires a Monitor to a specific production surface and tells the runtime how often to sample it. A Monitor is inert until at least one target is attached and the Monitor’s status isDocumentation Index
Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt
Use this file to discover all available pages before exploring further.
ACTIVE.
Target types
target_type | What it watches |
|---|---|
intent | Every chat completion request that lands on this Intent (across all applications using this intent type) |
workflow | Every completed workflow_run for this Workflow |
agent | Every completed root agent_request for this Agent (sub-agent steps are not double-counted) |
Attaching a target
In the Monitor detail page, open the Targets tab and click Attach Target. Pick the resource type, search for the target, and set:- Sample rate —
0–100. The runtime takes a uniform random roll on each completion; a sample rate of5.0means roughly 5% of invocations will fire amonitor_run. Set to100to evaluate every invocation. - Enabled — toggles sampling for this attachment without detaching it.
intent: order_intake at 5% and workflow: order-intake-workflow at 100% is a normal pattern.
Sampling decision
When a production event completes (chat request, workflow run, or agent request), the runtime:- Looks up active Monitors attached to that target
- For each, takes a uniform random roll vs the target’s
sample_rate - If the roll passes, dispatches a runner invocation (model / workflow / direct) on the latest published version of the Monitor
- Inserts a
monitor_runrow with the verdict + decorated trace
Editing a target
From the Targets tab you can:- Update the sample rate (raise it during incident triage, lower it once the Monitor is stable)
- Disable a target (sampling stops; history is preserved)
- Re-enable a previously disabled target
- Detach a target entirely (soft-delete; history is preserved but no new runs)