File size: 2,968 Bytes
01c0d79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "24b811ea-7714-4c2d-947d-1fb1b2ec980d",
   "metadata": {
   "collapsed": false,
    "deletable": false,
    "editable": false,
    "jupyter": {
     "outputs_hidden": false
    }},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "2025-04-27 16:56:51.233 | INFO     | metagpt_yusin.const:get_metagpt_yusin_package_root:29 - Package root set to /data\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "382ee0ae87fd4555959704f7f29aa79b",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "HBox(children=(VBox(children=(VBox(children=(Label(value='Select data sources and LLM models (or Submit defaul…"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from metagpt_yusin.geoagent import GeoAgent; GeoAgent().default()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "bf9d8a3f-ee15-490b-8ecf-ba58836d2bc2",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "62f50c92-c051-4650-988b-c84b9f22a130",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "161e81a7-680a-431b-af6c-772fe827afd3",
   "metadata": {},
   "source": [
    "# Decomposing the overall task into tasks!"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c3a17761-7ddd-47b8-91b5-40d4e382a816",
   "metadata": {},
   "outputs": [],
   "source": [
    "[\n",
    "    {\n",
    "        \"task_id\": \"1\",\n",
    "        \"dependent_task_ids\": [],\n",
    "        \"instruction\": \"Design ASCII rabbit art\",\n",
    "        \"task_type\": \"other\"\n",
    "    },\n",
    "    {\n",
    "        \"task_id\": \"2\",\n",
    "        \"dependent_task_ids\": [\"1\"],\n",
    "        \"instruction\": \"Create function to plot ASCII rabbit\",\n",
    "        \"task_type\": \"other\"\n",
    "    },\n",
    "    {\n",
    "        \"task_id\": \"3\",\n",
    "        \"dependent_task_ids\": [\"2\"],\n",
    "        \"instruction\": \"Test the plotting function\",\n",
    "        \"task_type\": \"other\"\n",
    "    }\n",
    "]\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "538d829b-61d1-42a2-8c9a-553c5ff45dfa",
   "metadata": {},
   "source": [
    "# Here is the code part!"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}