HTTP API reference
App: mechaharness.api.app:app
Stability: evolving (v1)
Python helper: mechaharness.factory.run uses the same RunRequest / RunResponse (mechaharness.core.contract).
Routes
Method |
Path |
Description |
|---|---|---|
|
|
Liveness + version |
|
|
Configured inference backends |
|
|
Configured harness families |
|
|
Run a prompt through a harness |
POST /v1/run
Request body
Field |
Type |
Notes |
|---|---|---|
|
string |
Required |
|
string? |
Defaults from settings |
|
string? |
Defaults from settings |
|
string? |
Defaults from settings |
|
string? |
Optional override |
|
string? |
Optional override |
|
string? |
Optional |
|
int |
Default |
|
float? |
Optional |
Response body
Field |
Type |
Notes |
|---|---|---|
|
string? |
Model’s final answer |
|
int |
Loop iterations used |
|
object[] |
Full transcript |
|
object[] |
Turn / tool observability events |
Example
curl -s http://127.0.0.1:8080/v1/run \
-H 'content-type: application/json' \
-d '{
"prompt": "What is 2+2?",
"backend": "lmstudio",
"family": "tool_loop",
"model": "local-model"
}'