Finish a use case run
helix_foundry_finish_use_case_runFinish a run of a Foundry use case with the agent's final answer, and its initial request if the run was started without it. A finished run records nothing more. Finishing again with the same answer is no error. A run that made calls with its id is assessed for how much the ontology helped; one that made none isn't, and counts apart as not using the ontology.
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": {
"ontology_id": "<ontology_id>",
"use_case_id": "<use_case_id>",
"run_id": "<run_id>",
"output": "<output>"
},
"name": "helix_foundry_finish_use_case_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | The run's initial request, at most 64 KiB: required unless the run was started with it. | |
| output | Yes | The agent's final answer, at most 256 KiB. | |
| run_id | Yes | The run, as helix_foundry_start_use_case_run returned it. | |
| ontology_id | Yes | Foundry ontology identifier. | |
| use_case_id | Yes | The run's use case. | |
| workspace_id | No | Helix workspace identifier. May be empty when the caller has only one workspace (a service key always does). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| next | No | ||
| input | No | ||
| counts | Yes | ||
| output | No | ||
| status | Yes | ||
| assessment | No | Its assessment, once it finished: how much what it read made its answer. A run that made no call to the ontology has none: it isn't assessed. | |
| started_at | Yes | ||
| finished_at | No | ||
| use_case_id | Yes | ||
| content_trust | Yes | ||
| from_workflow_run_id | No | For a run Foundry started: the workflow run it records (helix_foundry_get_workflow_run's run_id; its use case's workflow names the workflow). Not a use_case_run_id: this run's own id is id. |