curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/recommend-strategy' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"complexity": 0.7,
"domain": "SCAN",
"is_compositional": true,
"requires_logic": true,
"requires_patterns": true,
"sequence_length": 10,
"vocabulary_size": 50
}'
{
"alternatives": [
"symbolic_first",
"neural_first"
],
"confidence": 0.92,
"strategy": "hybrid_weighted"
}
Get strategy recommendation for a task
Required scope: write
POST
/
api
/
v1
/
nsr
/
recommend-strategy
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/recommend-strategy' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"complexity": 0.7,
"domain": "SCAN",
"is_compositional": true,
"requires_logic": true,
"requires_patterns": true,
"sequence_length": 10,
"vocabulary_size": 50
}'
{
"alternatives": [
"symbolic_first",
"neural_first"
],
"confidence": 0.92,
"strategy": "hybrid_weighted"
}
Required scope:
write
Request body
TaskCharacteristicsRequest
number (double)
required
Task complexity (0.0 to 1.0)
string
Domain name (optional)
boolean
Whether the task is compositional
boolean
Whether the task requires logical reasoning
boolean
Whether the task requires pattern matching
integer
Input sequence length
integer
Vocabulary size
Response
StrategyRecommendationResponse
string[]
required
Alternative strategies
number (double)
required
Confidence in the recommendation
string
required
Recommended strategy
Status codes
| Code | Meaning |
|---|---|
200 | Strategy recommendation |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
503 | Metacognition not enabled |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/recommend-strategy' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"complexity": 0.7,
"domain": "SCAN",
"is_compositional": true,
"requires_logic": true,
"requires_patterns": true,
"sequence_length": 10,
"vocabulary_size": 50
}'
{
"alternatives": [
"symbolic_first",
"neural_first"
],
"confidence": 0.92,
"strategy": "hybrid_weighted"
}
Last modified on August 31, 2026