---
title: "POST /model-hub/eval-templates/composite/execute-adhoc/"
method: POST
path: "/model-hub/eval-templates/composite/execute-adhoc/"
tags: ["model-hub"]
---

# POST /model-hub/eval-templates/composite/execute-adhoc/

`POST /model-hub/eval-templates/composite/execute-adhoc/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/eval-templates/composite/execute-adhoc/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Execute a composite eval configuration without persisting it. Used by
the eval create page so users can test a composite (selected children +
aggregation settings) before clicking Save. Builds an unsaved parent
template and unsaved child links in memory and reuses
`execute_composite_children_sync` so semantics match the persisted path.

## Request body

- CompositeEvalAdhocExecuteRequest
  - `mapping` object, required
  - `model` string, nullable
  - `config` object
  - `error_localizer` boolean
  - `input_data_types` object
  - `span_context` object, nullable
  - `trace_context` object, nullable
  - `session_context` object, nullable
  - `call_context` object, nullable
  - `row_context` object, nullable
  - `child_template_ids` string[], required
  - `aggregation_enabled` boolean
  - `aggregation_function` 'weighted_avg' | 'avg' | 'min' | 'max' | 'pass_rate'
  - `composite_child_axis` '' | 'pass_fail' | 'percentage' | 'choices' | 'code'
  - `child_weights` object, nullable
  - `child_configs` object, nullable
  - `pass_threshold` number

## Response `200`

OK

- CompositeEvalExecuteResponse
  - `status` boolean, required
  - `result` CompositeEvalExecuteResponseResult, required
    - `composite_id` string, nullable
    - `composite_name` string, required
    - `aggregation_enabled` boolean, required
    - `aggregation_function` string, nullable
    - `aggregate_score` number, nullable
    - `aggregate_pass` boolean, nullable
    - `children` CompositeChildResult[], required
      - `child_id` string, uuid, required
      - `child_name` string, required
      - `order` integer, required
      - `score` number, nullable
      - `output` object, nullable
      - `reason` string, nullable
      - `output_type` string, nullable
      - `status` string, required
      - `error` string, nullable
      - `log_id` string, nullable
      - `weight` number
      - `error_localizer_result` object, nullable
    - `summary` string, nullable
    - `error_localizer_results` object, nullable
    - `total_children` integer, required
    - `completed_children` integer, required
    - `failed_children` integer, required
    - `evaluation_id` string, nullable

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
