{
  "schema_version": "1.0",
  "name": "Tutorial node test \u00b7 Agent calculator",
  "nodes": [
    {
      "id": "start",
      "type": "nudge",
      "position": {
        "x": 0,
        "y": 100
      },
      "data": {
        "label": "Start the calculator test",
        "kind": "trigger.manual",
        "eyebrow": "manual",
        "icon": "globe",
        "tone": "teal",
        "config": {}
      }
    },
    {
      "id": "agent",
      "type": "nudge",
      "position": {
        "x": 320,
        "y": 100
      },
      "data": {
        "label": "Calculate a sample total",
        "kind": "action.agent",
        "eyebrow": "agent",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "use_connected_nodes": true,
          "instructions": "Evaluate 125 * 4 + 80 with the calculator tool. Return only the required JSON object: {\"total\": <calculated number>}. This is fictional demonstration data.",
          "system_message": "You are a calculator assistant. Use the calculator tool. Your final answer must be a JSON object with exactly one numeric field named total. Do not use Markdown fences, explanations, or prose."
        }
      }
    },
    {
      "id": "model",
      "type": "nudge",
      "position": {
        "x": 160,
        "y": 380
      },
      "data": {
        "label": "Gemini model",
        "kind": "agent.model",
        "eyebrow": "model",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "credential_source": "platform"
        },
        "provider_id": "gemini",
        "model_id": "gemini-3.5-flash-lite"
      }
    },
    {
      "id": "tools",
      "type": "nudge",
      "position": {
        "x": 410,
        "y": 380
      },
      "data": {
        "label": "Calculator tool",
        "kind": "agent.tools",
        "eyebrow": "tools",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "tools": [
            "calculator"
          ],
          "http_tools": [],
          "knowledge": ""
        }
      }
    },
    {
      "id": "output",
      "type": "nudge",
      "position": {
        "x": 660,
        "y": 380
      },
      "data": {
        "label": "Typed total",
        "kind": "agent.output",
        "eyebrow": "output",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "output_format": "json",
          "output_fields": [
            {
              "name": "total",
              "type": "number",
              "required": true
            }
          ]
        }
      }
    }
  ],
  "edges": [
    {
      "id": "main",
      "source": "start",
      "target": "agent"
    },
    {
      "id": "model",
      "source": "model",
      "target": "agent",
      "source_handle": "resource",
      "target_handle": "agent-model"
    },
    {
      "id": "tools",
      "source": "tools",
      "target": "agent",
      "source_handle": "resource",
      "target_handle": "agent-tools"
    },
    {
      "id": "output",
      "source": "output",
      "target": "agent",
      "source_handle": "resource",
      "target_handle": "agent-output"
    }
  ],
  "settings": {}
}
