Build it yourself or use an offer? (Pyfio Router)
build_or_useDetermines whether to build a task or use a measured Pyfio tool within budget, privacy and deadline constraints; returns recommendation, costs, quality, latency and call schema.
Instructions
Ask before you build: for a task (at most 500 characters) this says, from a table of measurements and not from a model, whether to build it yourself, use a measured Pyfio tool, or whether it is free anyway. Returns recommendation (use, build, free), the category, the measured self-build (USD, minutes, error rate, date, source), the offer (price per call, context tokens, quality with sample and date, latency), the call to make (tool name and argument schema), and reasons made of fixed text blocks. The task is assigned to a category locally by keywords and is not stored or sent anywhere; only the category and the budget level are counted. An unknown task answers "no measurement, build". Offers over the budget, not meeting the privacy level or slower than the deadline are rejected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"budget_usd": "<budget_usd>"
},
"name": "build_or_use"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What you want to get done, in one or two sentences | |
| privacy | No | Where data may go: local (nowhere but the target), EU, or any (default) | |
| budget_usd | Yes | What this task may cost you in USD | |
| deadline_s | No | Seconds until you need the answer |