මේ post එකෙන් ළමයිට කියලා දෙන්නේ software agents team එකක් එකතු වෙලා, මුල්ම idea එකේ ඉඳන් Internet එකේ live website එකක් හදනකම් වැඩේ කරන විදිහයි. මෙතනදී අපි පාඩම් දෙකක් එකතු කරනවා. Unit 13 (Emerging Trends in ICT) පාඩමේ තියෙන agent ideas වලින් කරන්නේ Unit 10 (Web Development) පාඩමේ වැඩ කොටසයි.
මේ post එකේ කොටස් පහක් තියෙනවා:
- එකතු කරන පාඩම් දෙක: software agents සහ multi-agent systems, ඒ වගේම Unit 10 web steps (1 සහ 2 කොටස්).
- Team එක හදන හැටි: එක agent කෙනෙක් ප්රමාණවත් නොවෙන්නේ ඇයි, agent team එක සහ agents කතා කරන හැටි (3 ඉඳන් 5 වෙනකම් කොටස්).
- Website එක live වෙන හැටි: localhost එකේ ඉඳන් live server එකකට deployment කරන හැටි සහ ඊට පස්සේ maintain කරන හැටි (6 කොටස).
- Team එක run කරන හැටි: centralized හෝ decentralized control, Waterfall හෝ Agile, ඒ වගේම වාසි සහ risks (7 ඉඳන් 9 වෙනකම් කොටස්).
- Exam එකේදී test කරන හැටි: agents ගැන past paper ප්රශ්න (10 කොටස).
1. Software agents සහ multi-agent systems
Software agent කෙනෙක් වැඩ කරන්නේ user කෙනෙක් වෙනුවෙන්. Multi-agent system එකක් කියන්නේ එකතු වෙලා ප්රශ්නයක් විසඳන agentsලාගේ team එකක්.
Software agent
Software agent කෙනෙක් කියන්නේ human user කෙනෙක් වෙනුවෙන් හෝ වෙන program එකක් වෙනුවෙන් වැඩ කරන software එකක්. Teachers' Guide එක කියන්නේ agent කෙනෙක් වැඩ කරන්නේ "autonomously and continuously in a particular environment" කියලා (Teachers' Guide 13.2, page 110) (ගුරු අත්පොත 13.2, පිටුව 111). සිංහල ගුරු අත්පොත ඒක ලියන්නේ "ස්වායත්ත සහ අඛණ්ඩ" කියලා.
සිංහල පොත් දෙක "agent" කියන වචනයට වෙනස් වචන පාවිච්චි කරනවා. සිංහල ගුරු අත්පොතේ පටුන සහ definitions වල තියෙන්නේ "මෘදුකාංග කාරක" සහ "බහු කාරක පද්ධති" කියලා. හැබැයි ඒ පිටුවේම තියෙන level title එකේ තියෙන්නේ "නියෝජිත" කියලා (ගුරු අත්පොත 13.2, පිටුව 111). සිංහල Resource Book එකේ තියෙන්නේ "මෘදුකාංග නියෝජිත" සහ "බහු නියෝජිත පද්ධති" කියලා (Resource Book 13.2, පිටුව 162). "Agent" කියන English වචනය ඉගෙන ගන්න, මොකද මාධ්ය දෙකටම ඒක එක සමානයි.
Resource Book එකේ software agent කෙනෙක්ගේ characteristics විදිහට මේවා දෙනවා (Resource Book 13.2, page 145) (Resource Book 13.2, පිටුව 162):
- Autonomous: human user නැතුව decisions ගන්නවා. සිංහල පොත මේකට කියන්නේ "ස්වාධීන බව (independence)" කියලා.
- Proactive: environment එකට actions පටන් ගන්නවා. සිංහල පොත මේකට කියන්නේ "ක්රියාශීලීත්වය" කියලා.
- Reactive: environment එකේ වෙන events වලට react කරනවා. සිංහල පොත මේකට කියන්නේ "ප්රතික්රියාශීලීත්වය" කියලා.
- Cooperative: අනිත් agentsලා එක්ක සහ humansලා එක්ක එකතු වෙලා වැඩ කරනවා. සිංහල පොත මේකට කියන්නේ "සහයෝගයෙන් වැඩ කළ හැකි බව" කියලා.
- Able to learn: observation, experience සහ data වලින් ඉගෙන ගන්නවා. සිංහල පොත මේකට කියන්නේ "ඉගෙන ගත හැකි වීම" කියලා.
- Social ability: අනිත් අය එක්ක communicate කරනවා, rules පිළිපදිනවා. සිංහල පොත මේකට කියන්නේ "සමාජ හැකියාවන් සහිත වීම" කියලා.
මේ list එකේ සිංහල Resource Book එකේ misprint එකක් තියෙනවා. ඒකේ English වචනය print කරලා තියෙන්නේ "corporativeness" කියලා. හරි වචනය "cooperativeness" (Resource Book 13.2, පිටුව 162).
Program එකක තියෙන සාමාන්ය object එකකට වඩා agent කෙනෙක් වෙනස් වෙන්නේ මේ characteristics නිසයි (Resource Book 13.2, page 145) (Resource Book 13.2, පිටුව 162).
Multi-agent system (MAS)
Multi-agent system එකක් කියන්නේ එක unit එකක් විදිහට වැඩ කරන agentsලා group එකක්. සංකීර්ණ ප්රශ්නයක් තනියම විසඳන්න එක agent කෙනෙකුට බැරි නිසා agentsලා එකතු වෙලා වැඩ කරනවා (Resource Book 13.2, page 145) (Resource Book 13.2, පිටුව 163). MAS එකක හැම agent කෙනෙක්ම (Resource Book 13.2, page 146) (Resource Book 13.2, පිටුව 163):
- autonomous වෙනවා: සිංහල පොත කියන්නේ "ස්වාධීන වීම (independence)" කියලා,
- තියෙන්නේ local view එකක් විතරයි: තමන්ගේ වැඩ කොටස විතරයි දන්නේ ("දේශීය දර්ශනයක් පමණක් සහිත වීම"),
- වැඩ කරන්නේ decentralized විදිහට ("විමධ්යගත ආකාරයකට කටයුතු කිරීම").
Resource Book එකේ Figure 5.4 පෙන්නන්නේ user කෙනෙක්, interface agent කෙනෙක්, broker agent කෙනෙක් සහ information agentsලා කට්ටියක් (Resource Book 13.2, page 146) (Resource Book 13.2, පිටුව 164). සිංහල figure එකේ label කරලා තියෙන්නේ "පරිශීලක", "නියෝජිත අතුරුමුහුණත", "තැරැව්කාර නියෝජිත" සහ "තොරතුරු නියෝජිත" කියලා. මේ figure එක මතක තියාගන්න. මේ post එකේ web project team එකත් පාවිච්චි කරන්නේ ඒ shape එකමයි.
2. Unit 10 web development steps
Syllabus එකේ web project එකකට steps හයක් තියෙනවා, website එක Internet එකට දාන්නේ අන්තිම step එකෙන් විතරයි.
- Need එක සහ website type එක හොයාගන්නවා (10.1).
- Users ගේ requirements analyse කරනවා (10.2).
- HTML වලින් pages හදනවා (10.3, 10.4).
- CSS වලින් look එක වෙනස් කරනවා (10.5).
- PHP සහ MySQL වලින් dynamic pages හදනවා (10.7).
- Website එක publish කරලා maintain කරනවා (10.8).
ගොඩක් ළමයි step 5 න් නවතිනවා. Website එක localhost එකේ වැඩ කරනවා. හැබැයි localhost කියන්නේ developer ගේම computer එක විතරයි. Internet එකේ කිසිම කෙනෙකුට ඒක පේන්නේ නෑ. Website එක live කරන්නේ step 6 වලින්.
3. එක agent කෙනෙක් ප්රමාණවත් නොවෙන්නේ ඇයි?
සම්පූර්ණ website එකකට එක job එකකට වඩා වෙනස් skills ගොඩක් ඕන වෙන නිසා එක agent කෙනෙක් ප්රමාණවත් වෙන්නේ නෑ.
ඒ skills තමයි requirements, design, HTML සහ CSS, PHP, SQL, testing, security, servers සහ domain names. මේ ඔක්කොම tasks තියෙන එක agent කෙනෙකුට තියෙන්නේ හරිම ලොකු job එකක්. ලේසියෙන්ම කොටසක් අමතක වෙන්න හෝ කොටස් පටලවගන්න පුළුවන්.
වැඩේ බෙදලා දුන්නම, හැම agent කෙනෙකුටම තියෙන්නේ පොඩි, පැහැදිලි job එකක්. Section 1 එකේ තිබ්බ "local view" කියන්නේ මේකටයි. හැම agent කෙනෙක්ම එක දෙයකට දක්ෂයි. Team එක එකතු වෙලා සම්පූර්ණ ප්රශ්නයම විසඳනවා.
4. Web development agent team එක
Team එකේ agentsලා දහදෙනෙක් ඉන්නවා, හැම agent කෙනෙකුටම එක job එකක් තියෙනවා. මේ numbers වලින් පෙන්නන්නේ ඒ job එක එන syllabus competency level එකයි.
- Interface agent. Client (human user) එක්ක කතා කරනවා. Client ගේ needs එකතු කරගෙන, results client ට පෙන්නනවා. Figure 5.4 එකේ තියෙන interface agent ගේ role එකම තමයි.
- Orchestrator agent. Plan එක හදනවා. හරි agent ට අදාළ task එක දෙනවා. Outputs එකතු කරලා ඒවා check කරනවා. Figure 5.4 එකේ broker agent ගේ role එකම තමයි.
- Requirements agent (10.2, 7.5, 7.6). Functional සහ non-functional requirements ලියනවා. උදාහරණයක් විදිහට: "Student කෙනෙක්ට register වෙන්න පුළුවන්", "Page එකක් තත්පර 3කට අඩුවෙන් open වෙනවා".
- Design agent (7.7, 8.4, 8.5, 8.6, 8.7). Page structure, navigation සහ database design කරනවා. ER diagram එක ඇඳලා tables normalize කරනවා.
- Front-end agent (10.3, 10.4, 10.5). HTML pages සහ CSS style sheets ලියනවා.
- Back-end agent (10.7). PHP code එක, forms (
GETසහPOST) සහ MySQL database එකට අදාළ SQL ලියනවා. - Test agent (7.8). මුලින්ම හැම unit එකක්ම, ඊළඟට full system එක test කරනවා. හැම error එකක්ම ඒක හදපු agent ට ආපහු යවනවා.
- Security review agent (6.11). Security issues හොයනවා. උදාහරණයක් විදිහට: passwords නිකන් plain text විදිහට store කරලා තියෙනවද, නැත්නම් form input කෙලින්ම SQL statement එකකට යනවද කියලා බලනවා.
- Deployment agent (10.8, 7.9). Website එක live web server එකකට දානවා.
- Monitor and maintain agent (10.8). Live website එක දිහා බලාගෙන ඉන්නවා, backups ගන්නවා, problems ගැන report කරනවා.
5. Agents කතා කරන හැටි
Agentsලා communicate කරන්නේ ක්රම දෙකකටයි: messages සහ shared workspace එකක්. මෙයාලට එක මොළයක් නෑ.
- Messages. Orchestrator agent කෙනෙකුට task එකක් යවනවා. Agent result එකක් හෝ problem එකක් ආපහු යවනවා. මේක තමයි "cooperative" සහ "social ability" characteristic එක.
- Shared workspace එකක්. හැම output එකක්ම එකම තැනකට යනවා: requirements document එක, designs, source code එක සහ test results. සාමාන්යයෙන් මේක version control store එකක්. හැම agent කෙනෙක්ම තමන්ට ඕන parts කියවනවා. හැම agent කෙනෙක්ම ලියන්නේ තමන්ගේම part එක විතරයි.
Shared workspace එක නිසා full team එකටම එක project එකක් පේන ගමන්, හැම agent කෙනෙක්ටම තමන්ගේ local view එක තියාගන්න පුළුවන්. ඒ වගේම history එකක් තියාගන්නවා. Agent කෙනෙක් නරක change එකක් කළොත්, team එකට පුළුවන් අන්තිමට තිබ්බ හොඳ version එකට ආපහු යන්න.
6. Localhost ඉඳන් live වෙනකම් website එකක් deploy කරන හැටි
Deployment agent website එක web server එකක publish කළාම ඒක live වෙනවා, ඒ වගේම monitor agent ඒක maintain කළොත් විතරයි ඒක දිගටම useful වෙන්නේ. ගොඩක් notes වල මේ part එක නෑ. Resource Book එකේ website එකක් publish කරන්න ක්රම දෙකක් දෙනවා (Resource Book 10.8, page 123) (Resource Book 10.8, පිටුව 135):
- Local publishing. Developer ගේම computer එක තමයි web server එක. ඒකට හොඳ Internet connection එකක් සහ ISP ගෙන් static IP address එකක් ඕන වෙනවා. Router එකෙන් traffic එක port 80 ට යවන්න ඕනේ. Firewall එකෙන් web server එකට port 80 use කරන්න දෙන්න ඕනේ. Apache වගේ web server program එකකුත් ඕන වෙනවා. සිංහල පොත static IP address එකකට "ස්ථිතික IP ලිපිනයක්", port 80 වලට "කෙවෙනි 80" සහ firewall වලට "ගිනි පවුර" කියලා කියනවා.
- Web hosting company එකක්. Company එකෙන් website owner වෙනුවෙන් web server එක, connection එක සහ security එක බලාගන්නවා. සිංහල පොත මේකට කියන්නේ "සත්කාරක (hosting)" company එකක් කියලා.
Teachers' Guide එකේ free සහ paid hosting, ඒ වගේම shared සහ dedicated hosting ගැනත් කියනවා (Teachers' Guide 10.8, page 96) (ගුරු අත්පොත 10.8, පිටුව 96). සිංහල ගුරු අත්පොත free සහ paid වලට "නොමිලයේ සහ මුදල් ගෙවා" කියලත්, shared සහ dedicated වලට "සාමූහික සහ එක් පාර්ශ්වයකට පමණක් සීමා වූ" කියලත් කියනවා.
Deployment agent කරන්නේ මේ steps එකින් එක කරන එකයි:
- Hosting එක තෝරනවා. Shared, dedicated හෝ වෙන type එකක්. මේ decision එකට සල්ලි යන නිසා, human කෙනෙක් approve කරනවා.
- Domain name එකක් අරගෙන DNS වලින් server එකට connect කරනවා (6.9).
- Server එක ready කරනවා. Web server, PHP සහ MySQL install කරනවා.
- Secrets safe තියාගන්නවා. Database password එක දාන්නේ server එකේ settings file එකකට. ඒක source code එකට දාන්නේ නෑ.
- Live database එක හදනවා. Design එකෙන් tables හදනවා. Test data copy කරන්නේ නෑ.
- Website files server එකට copy කරනවා.
- Browser එක සහ server එක අතර data encrypt වෙන්න certificate එකක් එක්ක HTTPS on කරනවා (6.11).
- Smoke test එකක් කරනවා. Live address එක open කරනවා. Test user කෙනෙක් register කරනවා. Main pages වැඩ කරනවද කියලා බලනවා.
- ආපහු යන්න පාරක් තියාගන්නවා. අලුත් version එක fail වුණොත්, අන්තිමට තිබ්බ හොඳ version එකට ආපහු යනවා.
Unit 7 (7.9) පාඩමේ තියෙන deployment methods use කරන්නත් deployment agent ට පුළුවන්. උදාහරණයක් විදිහට, අලුත් version එක මුලින්ම usersලාගෙන් පොඩි කොටසකට දාන්න පුළුවන් (pilot), නැත්නම් එක පාරටම ඔක්කොම මාරු කරන්න පුළුවන් (direct).
Website එක live වුණාට පස්සේ
Publish කරා කියලා වැඩේ ඉවර වෙන්නේ නෑ, මොකද website එක regularly maintain කරන්න ඕනේ (Resource Book 10.8, page 123) (Resource Book 10.8, පිටුව 135). සිංහල පොත කියන්නේ "වෙබ් අඩවිය නිරතුරු ව පවත්වාගෙන යා යුතු ය" කියලා. Monitor and maintain agent කරන්නේ මේ වැඩ ටිකයි:
- scheduled backups ගන්නවා.
- Bugs සහ security problems හදන software updates දානවා.
- Broken links සහ pages හොයාගන්නවා (Resource Book 10.8, page 123) (Resource Book 10.8, පිටුව 135).
- Site statistics එකතු කරනවා, උදාහරණයක් විදිහට visitorsලා ගණන (Resource Book 10.8, page 123) (Resource Book 10.8, පිටුව 136). සිංහල පොත මේවට කියන්නේ "සංඛ්යාලේඛන (statistics)" කියලා.
- Performance එක check කරනවා: download speed, concurrent users සහ errors (Teachers' Guide 10.8, page 96) (ගුරු අත්පොත 10.8, පිටුව 96).
Problem එකක් හෝ අලුත් need එකක් ආවම, ඒක orchestrator ට යවනවා. ඊට පස්සේ ආයෙත් cycle එක පටන් ගන්නවා.
7. Centralized ද නැත්නම් decentralized MAS එකක්ද?
Resource Book එක MAS එකක් decentralized කියලා විස්තර කළත්, web project team එකක් හොඳටම වැඩ කරන්නේ centralized MAS එකක් විදිහටයි.
මේවා use කරන්නේ මෙහෙමයි. Decentralized MAS එකකදී කිසිම agent කෙනෙක් අනිත් අයව control කරන්නේ නෑ. Agentsලා තමන් අතරේ agree වෙනවා. Centralized MAS එකකදී එක agent කෙනෙක් (broker කෙනෙක් හෝ orchestrator කෙනෙක්) flow එක control කරනවා. හැබැයි හැම agent කෙනෙක්ම තමන්ගේ task එක ඇතුළේ තාමත් autonomous.
Web project එකක stages වල පැහැදිලි order එකක් තියෙනවා: requirements මුලින්ම, ඊළඟට design, ඊට පස්සේ code, ඊළඟට test, අන්තිමට deploy. ඒ නිසා orchestrator කෙනෙක් ඉන්න centralized design එකක් control කරන්න ලේසියි. Section 4 එකේ team එකට orchestrator කෙනෙක් දැම්මේ ඒ නිසයි. 2023 paper එකෙත් broker agent කෙනෙක් ඉන්න centralized control තියෙන MAS එකක් ගැන අහනවා (2023 (held 2024) Paper II, B, Q7(b)(iv) සහ (v)).
8. Agentsලා එක්ක Waterfall ද නැත්නම් Agile ද?
Agent team එකට වෙනස් SDLC models (7.3) follow කරන්න පුළුවන්, ඒ අතරේ වෙනස් වෙන්නේ orchestrator ගේ plan එක විතරයි.
- Waterfall. හැම agent කෙනෙක්ම තමන්ගේ stage එක ඉවර කරනවා. ඊට පස්සේ ඊළඟ agent පටන් ගන්නවා. Orchestrator වැඩේ එක stage එකක ඉඳන් ඊළඟ stage එකට ගෙනියනවා.
- Agile. Team එක පොඩි working part එකක් හදනවා, live කරනවා, client ගෙන් feedback ගන්නවා, ඊළඟ පොඩි part එක කරනවා. Agentsලා fast නිසා ගොඩක් short cycles කරන්න පුළුවන්.
Models දෙකේදීම agentsලා එකමයි.
9. Multi-agent systems වල වාසි සහ risks
MAS එකකින් specialistsලා සහ parallel work ලැබෙනවා, හැබැයි controls ඕන වෙන risks එනවා.
වාසි
- හැම agent කෙනෙක්ම එක job එකකට specialist කෙනෙක්.
- Agentsලාට එකම වෙලාවේ වැඩ කරන්න (work at the same time) පුළුවන්. උදාහරණයක් විදිහට, front-end agent සහ back-end agent parallel වැඩ කරනවා.
- එක agent කෙනෙක් fail වුණාම, team එක ඒ agent ව විතරක් replace කරනවා හෝ හදනවා. අනිත් agentsලා දිගටම වැඩ කරනවා.
- අලුත් agent කෙනෙක් එකතු කරන්න ලේසියි. උදාහරණයක් විදිහට, website එක Sinhala සහ Tamil වලට translate කරන agent කෙනෙක්.
Risks
- Agent කෙනෙකුට confident පිට වැරදි තොරතුරු දෙන්න පුළුවන්. දෙවෙනි agent කෙනෙක් (test agent) ඒ වැඩේ check කරන්නම ඕනේ.
- Agentsලා cooperate නොකරනකොට, වැඩේ නවතිනවා නැත්නම් parts හරියට join වෙන්නේ නෑ.
- Deploy කරන්න පුළුවන් agent කෙනෙකුට live website එක කඩන්න හෝ live data මකන්නත් පුළුවන්.
- Database password එකක් වගේ secret එකක් agent කෙනෙක් වැරදි තැනක දැම්මොත් leak වෙන්න පුළුවන්.
10. Agents ගැන past paper ප්රශ්න
නව syllabus එකේ 2019 ඉඳන් 2026 වෙනකම් හැම paper එකකම agent technology (13.2) ආවා, ගොඩක් වෙලාවට Paper II, Part B, Question 7 එකේ. ප්රශ්නවලින් ගොඩක් වෙලාවට අහන්නේ MAS diagram එකක් අඳින්න, interface agent කෙනෙක් හොයාගන්න, නැත්නම් autonomy compare කරන්නයි.
2023 ලකුණ 10 කියන්නේ estimate එකක්, මොකද කිසිම official marking scheme එකක ඒ ගාණ නෑ. 2022 සහ 2024 marks ලැබෙන්නේ විභාග දෙපාර්තමේන්තුව publish නොකරපු answer keys වලින්. ඒ නිසා මේ අවුරුදු තුනේ real marks ටිකක් වෙනස් වෙන්න පුළුවන්.
2026 paper එක මේ post එකට ගොඩක් ලඟින් යන්නේ. Software company එකක් client කෙනෙක්ගේ project එකක SDLC එක automate කරන්න MAS එකක් use කරනවා (2026 Paper II, B, Q7(b)). ඒකේ agentsලා හතර දෙනෙක් ඉන්නවා: requirements analysis, system design, implementation and testing, සහ deployment and maintenance. මේ post එකෙන් උත්තරය දෙන්නේ නෑ. මුලින්ම diagram එක අඳින්න. ඊට පස්සේ 1, 4 සහ 7 sections එක්ක උත්තරය check කරන්න.
තවත් practice වෙන්න:
- 2025 Paper II, B, Q7(b): MAS diagram, එක ලොකු program එකකට වඩා තියෙන advantages, වැරදි තොරතුරු ලැබීමේ risks.
- 2023 (held 2024) Paper II, B, Q7(b): cooperation, broker agent, centralized control.
- 2021 (held 2022) Paper II, B, Q7(b): agent interaction diagram එකක් අඳින්න.
- 2025 Paper II, B, Q10(d) ඉඳන් (f) වෙනකම් සහ 2024 Paper I, Q47: web hosting සහ publishing (10.8).
