{
	"nodes": [
		{
			"parameters": {},
			"type": "n8n-nodes-base.manualTrigger",
			"typeVersion": 1,
			"position": [0, 0],
			"id": "trigger-id",
			"name": "When clicking 'Execute workflow'"
		},
		{
			"parameters": {
				"promptType": "define",
				"text": "Ask the sub agent what 2+2 is"
			},
			"type": "@n8n/n8n-nodes-langchain.agent",
			"typeVersion": 3.1,
			"position": [220, 0],
			"id": "parent-agent-id",
			"name": "Parent Agent"
		},
		{
			"parameters": {
				"model": {
					"__rl": true,
					"mode": "id",
					"value": "gpt-4o-mini"
				},
				"options": {}
			},
			"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
			"typeVersion": 1.2,
			"position": [220, 200],
			"id": "parent-model-id",
			"name": "Parent Model",
			"credentials": {
				"openAiApi": {
					"id": "123",
					"name": "OpenAi account"
				}
			}
		},
		{
			"parameters": {
				"toolDescription": "A sub agent that can answer math questions",
				"promptType": "define",
				"text": "={{ $json.input }}"
			},
			"type": "@n8n/n8n-nodes-langchain.agentTool",
			"typeVersion": 3,
			"position": [400, 0],
			"id": "sub-agent-id",
			"name": "SubAgent"
		},
		{
			"parameters": {
				"model": {
					"__rl": true,
					"mode": "id",
					"value": "gpt-4o-mini"
				},
				"options": {}
			},
			"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
			"typeVersion": 1.2,
			"position": [400, 200],
			"id": "child-model-id",
			"name": "Child Model",
			"credentials": {
				"openAiApi": {
					"id": "123",
					"name": "OpenAi account"
				}
			}
		}
	],
	"connections": {
		"When clicking 'Execute workflow'": {
			"main": [
				[
					{
						"node": "Parent Agent",
						"type": "main",
						"index": 0
					}
				]
			]
		},
		"Parent Model": {
			"ai_languageModel": [
				[
					{
						"node": "Parent Agent",
						"type": "ai_languageModel",
						"index": 0
					}
				]
			]
		},
		"SubAgent": {
			"ai_tool": [
				[
					{
						"node": "Parent Agent",
						"type": "ai_tool",
						"index": 0
					}
				]
			]
		},
		"Child Model": {
			"ai_languageModel": [
				[
					{
						"node": "SubAgent",
						"type": "ai_languageModel",
						"index": 0
					}
				]
			]
		}
	}
}
