Skip to content
Get started

Nodes: many places, one dashboard

Use with an AI tool

An app often asks Curva in several places: a refund gate, a spam filter, a ticket router. Give each place a name and it becomes a node. Every node decides on its own, and the dashboard shows each one separately.

import curva
refunds = curva.Node("refund-gate", {"refund": "The customer asks for a refund?"})
spam = curva.Node("spam-filter", {"spam": "Is this message spam?"}, model="@groq/qwen/qwen3.8-27b")
router = curva.Node("ticket-router", {"team": ["billing", "technical", "sales"]})
refunds.decide(ticket).refund
spam.decide(message).spam
router.decide(ticket).team

A node keeps its questions and options (model, project, deadline and so on), so each call is just node.decide(state). Without Node, pass node="refund-gate" to any decide.

  • Its own line on the dashboard. The overview has a By node table with each node’s decisions, spend and speed, and the Decisions view shows which node asked.
  • Its own history. client.audit(node="refund-gate") lists that node’s decisions.
  • Independent decisions. One node’s request never changes another’s answer.

Nodes learn from feedback per question. Two nodes that ask the very same question in the same project share what Curva has learned for it, which is what you want; nodes with different questions share nothing.

A node name is 1 to 64 characters from letters, digits and ._:-.

Nodes and projects are different levels: a project is one app or customer, a node is one place inside it. One dashboard shows every project, and inside a project every node.