Skip to main content
GET
/
ai
/
qakb
/
algorithms
/
{algorithm_key}
/
recipe
Get Haiqu Algorithm Recipe
curl --request GET \
  --url 'https://api.example.com/ai/qakb/algorithms/{algorithm_key}/recipe?HAIQU_API_KEY='
{
  "algorithm": "<string>",
  "code": "<string>",
  "note": "<string>",
  "language": "python",
  "steps": [
    {
      "id": "<string>",
      "title": "<string>",
      "intent": "<string>",
      "render_before": [
        "<string>"
      ],
      "render_after": [
        "<string>"
      ]
    }
  ]
}

Authorizations

HAIQU_API_KEY
string
query
required

Path Parameters

algorithm_key
string
required

Response

Successful Response

A self-contained, runnable Python script for one algorithm, plus a per-algorithm demo orchestration plan.

algorithm
string
required

Algorithm key the recipe is for.

code
string
required

Complete, copy-pasteable Python script. Runs locally and on Haiqu.

note
string
required

How to run it + which variants need a Haiqu API key.

language
string
default:python

Source language of the recipe.

steps
RecipeStep · object[]

Ordered demo plan. The orchestrating LLM should walk these in order, rendering the indicated artifacts inline. The plan is algorithm-agnostic in shape; algorithm-specific render content comes from sandbox-side hooks the recipe defines (compute_results, format_headline).