derivation_suggest_next
Rank candidate formulas and operations for a mathematical derivation by relevance to the goal and current expression, returning ordered suggestions to advance the derivation.
Instructions
Rank candidate next steps for a derivation by relevance.
Retrieval-augmented: you supply ``candidates`` retrieved from open sources
(``formula_search`` over Wikidata/BioModels/SciPy, the session's formulas,
or generic operations); this tool ranks them by how well they advance the
derivation. A candidate scores highest when it defines a symbol currently
in ``current_expression`` (so it can be substituted in) and matches the
goal's terms.
Args:
goal: What the derivation is trying to reach (natural language).
current_expression: The expression derived so far, e.g. "C0*exp(-k*t)".
candidates: Each ``{"id", "expression"?, "description"?, "kind"?,
"provides"?}`` — a formula, modification, or operation.
Returns:
``{"success", "goal", "suggestions": [{"id", "score", "kind",
"expression", "rationale"}]}`` ordered best-first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| candidates | Yes | ||
| current_expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||