Skip to main content
POST
/
api
/
strategies
/
similar
Find similar strategies
curl --request POST \
  --url https://api.example.com/api/strategies/similar \
  --header 'Content-Type: application/json' \
  --data '
{
  "goal_ids": [
    123
  ],
  "tool_names": [
    "<string>"
  ],
  "result_types": [
    "<string>"
  ],
  "context_hash": 123,
  "agent_id": 123,
  "limit": 123,
  "min_score": 123
}
'
{
  "score": 123
}
Use this endpoint when your agent is stuck and needs to find a successful “recipe” from a similar task. This is how you share learned behavior across different agents.

Request body

goal_ids
integer[]
default:"[]"
Goal IDs to match against.
tool_names
string[]
default:"[]"
Tool names to match against.
result_types
string[]
default:"[]"
Result types to match against.
context_hash
integer
Context fingerprint. Set to null to skip.
agent_id
integer
Filter by agent. Set to null to search across all agents.
limit
integer
default:"10"
Maximum number of results.
min_score
number
Minimum similarity score. Set to null to return all results.

Example request

{
  "goal_ids": [101],
  "tool_names": ["search_api"],
  "result_types": [],
  "context_hash": null,
  "agent_id": null,
  "limit": 5,
  "min_score": 0.7
}

Response

Returns an array of SimilarStrategyResponse objects — the same as StrategyResponse with an additional score field.
score
number
Similarity score (0.01.0).
All other fields are identical to Get agent strategies.