cognitive.execute_task
One-call orchestration: identify → gate → guide → solve → verify → report.
Parameters:
- task: Dict containing:
- task_structure (or loose definition: name, entities, constraints, etc.)
- raw (optional): Domain-specific execution payload. If omitted, returns
status='guidance_only' with 'recommended_action'='supply_raw' and
an 'expected_raw_formats' object detailing valid schemas.
Supported problem types for task.raw:
* scheduling: {"workers": [{"id": "w1", "eligible_shifts": ["s1"], "max_shifts": 1}],
"shifts": [{"id": "s1", "required_workers": 1}]}
* allocation: {"consumers": [{"id": "c1", "demands": {"r1": 1}}],
"resources": [{"id": "r1", "capacity": 2}]}
* graph: {"nodes": ["A", "B"], "edges": [["A", "B"]]}
* graph_coloring: {"nodes": ["A", "B"], "edges": [["A", "B"]], "colors": ["red", "blue"]}
* shortest_path: {"nodes": ["A", "B"], "edges": [["A", "B"]], "weights": {"A->B": 1.0}, "start": "A", "target": "B"}
* math: {"math": {"question": "...", "quantities": {...}, "equations": [...], "target_variable": "x", "ground_truth": 42.0}}
* code: {"code": {"code": "def solution()...", "tests": ["assert ..."]}}
* pddl: {"pddl": {"plan": [...], "init": {...}, "goal": {...}}}
Returns a single envelope with status (completed / guidance_only /
blocked_until_clarified / no_applicable_guidance / refused_infeasible /
failed), solution, score, assumptions, failure reasons, and expected_raw_formats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| task | No | ||
| environment | No | ||
| model_family | No | generic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||