{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,2]],"date-time":"2026-04-02T17:14:41Z","timestamp":1775150081252,"version":"3.50.1"},"reference-count":38,"publisher":"Springer Science and Business Media LLC","issue":"8","license":[{"start":{"date-parts":[[2024,10,30]],"date-time":"2024-10-30T00:00:00Z","timestamp":1730246400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2024,10,30]],"date-time":"2024-10-30T00:00:00Z","timestamp":1730246400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"FAIR-Future Artificial Intelligence Research, Spoke 8 \u201cPervasive AI\u201d, NextGeneration EU","award":["PNRR, M4C2, Investimento 1.3, Partenariato Esteso PE00000013"],"award-info":[{"award-number":["PNRR, M4C2, Investimento 1.3, Partenariato Esteso PE00000013"]}]},{"name":"WOOD4.0 - Woodworking Machines for Industry 4.0","award":["call 2022, art. 6\u00a0L.R. N. 14\/2014"],"award-info":[{"award-number":["call 2022, art. 6\u00a0L.R. N. 14\/2014"]}]},{"name":"Azienda Unit\u00e0 Sanitaria Locale (AUSL) della Romagna","award":["PNRR M4C2, Investimento 3.3 DM 352\/2022"],"award-info":[{"award-number":["PNRR M4C2, Investimento 3.3 DM 352\/2022"]}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["SN COMPUT. SCI."],"abstract":"<jats:title>Abstract<\/jats:title><jats:p>The popularity of multi-paradigm languages is on the rise, enabling developers to select the most appropriate paradigm for each task. While object-oriented and functional programming are commonly combined, other paradigms can also be hybridized. This paper introduces JaKtA, an internal Domain-Specific Language designed to support the definition of Belief-Desire-Intention agents in Kotlin. Our work represents an initial exploration into blending Agent-Oriented Programming with other prevalent paradigms, emphasizing the potential benefits of using internal Domain-Specific Languages. We demonstrate, through JaKtA, how this approach facilitates the creation of compact and expressive Belief-Desire-Intention agents that seamlessly integrate with the host language, its libraries, and tooling.<\/jats:p>","DOI":"10.1007\/s42979-024-03244-y","type":"journal-article","created":{"date-parts":[[2024,10,30]],"date-time":"2024-10-30T15:23:28Z","timestamp":1730301808000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":5,"title":["Blending BDI Agents with Object-Oriented and Functional Programming with JaKtA"],"prefix":"10.1007","volume":"5","author":[{"given":"Martina","family":"Baiardi","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Samuele","family":"Burattini","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1841-8996","authenticated-orcid":false,"given":"Giovanni","family":"Ciatto","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Danilo","family":"Pianini","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"297","published-online":{"date-parts":[[2024,10,30]]},"reference":[{"key":"3244_CR1","first-page":"42","volume":"3","author":"X Leroy","year":"2021","unstructured":"Leroy X, Doligez D, Frisch A, Garrigue J, R\u00e9my D, Vouillon J. The ocaml system: documentation and user\u2019s manual. INRIA. 2021;3:42.","journal-title":"INRIA"},{"issue":"OOPSLA","key":"3244_CR2","doi-asserted-by":"publisher","first-page":"85","DOI":"10.1145\/3133909","volume":"1","author":"D Mazinanian","year":"2017","unstructured":"Mazinanian D, Ketkar A, Tsantalis N, Dig D. Understanding the use of lambda expressions in java. Proc ACM Program Lang. 2017;1(OOPSLA):85\u201318531. https:\/\/doi.org\/10.1145\/3133909.","journal-title":"Proc ACM Program Lang"},{"key":"3244_CR3","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4842-3036-7","volume-title":"Practical scala DSLs: real-world applications using domain specific languages","author":"P Riti","year":"2018","unstructured":"Riti P. Practical scala DSLs: real-world applications using domain specific languages. Berkeley: Apress; 2018. https:\/\/doi.org\/10.1007\/978-1-4842-3036-7."},{"issue":"4","key":"3244_CR4","doi-asserted-by":"publisher","first-page":"76","DOI":"10.1145\/2591013","volume":"57","author":"M Odersky","year":"2014","unstructured":"Odersky M, Rompf T. Unifying functional and object-oriented programming with scala. Commun ACM. 2014;57(4):76\u201386. https:\/\/doi.org\/10.1145\/2591013.","journal-title":"Commun ACM"},{"key":"3244_CR5","unstructured":"Rao AS, Georgeff MP. Modeling rational agents within a bdi-architecture. In: Allen JF, Fikes R, Sandewall E. editors. Proceedings of the 2nd International Conference on Principles of Knowledge Representation and Reasoning (KR\u201991), 1991; pp. 473\u2013484. Morgan Kaufmann, Cambridge, MA, USA."},{"key":"3244_CR6","unstructured":"Bordini RH, H\u00fcbner JF, Wooldridge MJ. Programming Multi-Agent Systems in AgentSpeak Using Jason, p. 292. John Wiley & Sons, Ltd, USA 2007; http:\/\/eu.wiley.com\/WileyCDA\/WileyTitle\/productCd-0470029005.html. Accessed 27 Sept 2024."},{"key":"3244_CR7","doi-asserted-by":"publisher","unstructured":"Collier RW, Russell SE, Lillis D. Reflecting on agent programming with AgentSpeak(L). In: PRIMA 2015: Principles and Practice of Multi-Agent Systems. Lecture Notes in Computer Science, 2015; pp. 351\u2013366. Springer, Bertinoro, Italy. https:\/\/doi.org\/10.1007\/978-3-319-25524-8_22.","DOI":"10.1007\/978-3-319-25524-8_22"},{"key":"3244_CR8","doi-asserted-by":"publisher","first-page":"119","DOI":"10.1007\/978-0-387-89299-3_4","volume-title":"Multi-agent programming: languages, tools and applications","author":"KV Hindriks","year":"2009","unstructured":"Hindriks KV. Programming rational agents in GOAL. In: El Fallah Seghrouchni A, Dix J, Dastani M, Bordini RH, editors. Multi-agent programming: languages, tools and applications. Boston: Springer; 2009. p. 119\u201357. https:\/\/doi.org\/10.1007\/978-0-387-89299-3_4."},{"key":"3244_CR9","doi-asserted-by":"publisher","unstructured":"Baiardi M, Burattini S, Ciatto G, Pianini D. Jakta: BDI agent-oriented programming in pure kotlin. In: Malvone V, Murano A. editors. Multi-agent systems\u201420th European Conference (EUMAS 2023). Lecture Notes in Computer Science, 2023; vol. 14282, pp. 49\u201365. Springer, Naples, Italy. https:\/\/doi.org\/10.1007\/978-3-031-43264-4_4.","DOI":"10.1007\/978-3-031-43264-4_4"},{"key":"3244_CR10","volume-title":"The C++ programming language","author":"B Stroustrup","year":"1997","unstructured":"Stroustrup B. The C++ programming language. 3rd ed. Addison-Wesley; 1997.","edition":"3"},{"key":"#cr-split#-3244_CR11.1","unstructured":"Ciatto G, Calegari R, Siboni E, Denti E, Omicini A. 2P-Kt: logic programming with objects & functions in Kotlin. In: Calegari R, Ciatto G, Denti E, Omicini A, Sartor G. editors. WOA 2020-21th Workshop \"From Objects to Agents\". CEUR Workshop Proceedings, vol. 2706, pp. 219-236. Sun SITE Central Europe, RWTH Aachen University, Aachen, Germany 2020"},{"key":"#cr-split#-3244_CR11.2","unstructured":"21st Workshop \"From Objects to Agents\" (WOA 2020), Bologna, Italy, 14-16\u00a0September\u00a02020. Proceedings. http:\/\/ceur-ws.org\/Vol-2706\/paper14.pdf"},{"key":"3244_CR12","volume-title":"Intention, plans, and practical reason","author":"M Bratman","year":"1987","unstructured":"Bratman M, et al. Intention, plans, and practical reason, vol. 10. Cambridge: Harvard University Press; 1987."},{"issue":"2\u20133","key":"3244_CR13","doi-asserted-by":"publisher","first-page":"213","DOI":"10.1016\/0004-3702(90)90055-5","volume":"42","author":"PR Cohen","year":"1990","unstructured":"Cohen PR, Levesque HJ. Intention is choice with commitment. Artif Intell. 1990;42(2\u20133):213\u201361. https:\/\/doi.org\/10.1016\/0004-3702(90)90055-5.","journal-title":"Artif Intell"},{"issue":"3","key":"3244_CR14","doi-asserted-by":"publisher","first-page":"432","DOI":"10.1007\/s10458-008-9053-x","volume":"17","author":"A Omicini","year":"2008","unstructured":"Omicini A, Ricci A, Viroli M. Artifacts in the a &a meta-model for multi-agent systems. Auton Agents Multi Agent Syst. 2008;17(3):432\u201356. https:\/\/doi.org\/10.1007\/s10458-008-9053-x.","journal-title":"Auton Agents Multi Agent Syst"},{"issue":"2","key":"3244_CR15","doi-asserted-by":"publisher","first-page":"158","DOI":"10.1007\/s10458-010-9140-7","volume":"23","author":"A Ricci","year":"2011","unstructured":"Ricci A, Piunti M, Viroli M. Environment programming in multi-agent systems\u2014an artifact-based perspective. Auton Agent Multi-Agent Syst. 2011;23(2):158\u201392. https:\/\/doi.org\/10.1007\/s10458-010-9140-7.","journal-title":"Auton Agent Multi-Agent Syst"},{"key":"3244_CR16","unstructured":"Georgeff MP, Lansky AL. Reactive reasoning and planning In: AAAI. 1987;87:677\u201382."},{"key":"3244_CR17","series-title":"Tributes","first-page":"565","volume-title":"The goals of cognition. Essays in Honor of Cristiano Castelfranchi","author":"A Omicini","year":"2012","unstructured":"Omicini A. Agents writing on walls: cognitive stigmergy and beyond. In: Paglieri F, Tummolini L, Falcone R, Miceli M, editors. The goals of cognition. Essays in Honor of Cristiano Castelfranchi, vol. 20. Tributes. London: College Publications; 2012. p. 565\u201378 (Chap. 30)."},{"issue":"1","key":"3244_CR18","doi-asserted-by":"publisher","first-page":"75","DOI":"10.1016\/S0166-3615(03)00123-4","volume":"53","author":"K Hadeli","year":"2004","unstructured":"Hadeli K, Valckenaers P, Kollingbaum MJ, Brussel HV. Multi-agent coordination and control using stigmergy. Comput Ind. 2004;53(1):75\u201396. https:\/\/doi.org\/10.1016\/S0166-3615(03)00123-4.","journal-title":"Comput Ind"},{"issue":"1","key":"3244_CR19","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1007\/S10458-006-0012-0","volume":"14","author":"D Weyns","year":"2007","unstructured":"Weyns D, Omicini A, Odell J. Environment as a first class abstraction in multiagent systems. Auton Agents Multi Agent Syst. 2007;14(1):5\u201330. https:\/\/doi.org\/10.1007\/S10458-006-0012-0.","journal-title":"Auton Agents Multi Agent Syst"},{"key":"3244_CR20","doi-asserted-by":"publisher","unstructured":"Omicini A, Ricci A, Viroli M, Castelfranchi C, Tummolini L. Coordination artifacts: Environment-based coordination for intelligent agents. In: 3rd International Joint Conference on autonomous agents and multiagent systems (AAMAS 2004), 2004; pp. 286\u2013293. IEEE Computer Society, New York, NY, USA. https:\/\/doi.org\/10.1109\/AAMAS.2004.10070.","DOI":"10.1109\/AAMAS.2004.10070"},{"issue":"2","key":"3244_CR21","doi-asserted-by":"publisher","first-page":"89","DOI":"10.1111\/1467-8640.00184","volume":"18","author":"B Chaib-draa","year":"2002","unstructured":"Chaib-draa B, Dignum F. Trends in agent communication language. Comput Intell. 2002;18(2):89\u2013101. https:\/\/doi.org\/10.1111\/1467-8640.00184.","journal-title":"Comput Intell"},{"key":"3244_CR22","doi-asserted-by":"publisher","unstructured":"Finin T, Fritzson R, McKay D, McEntire R. KQML as an agent communication language. In: Proceedings of the Third International Conference on information and knowledge management. CIKM \u201994, 1994; pp. 456\u2013463. Association for Computing Machinery, New York, NY, USA. https:\/\/doi.org\/10.1145\/191246.191322.","DOI":"10.1145\/191246.191322"},{"key":"3244_CR23","doi-asserted-by":"publisher","unstructured":"Traum DR. Speech acts for dialogue agents. In: Wooldridge, M., Rao, A. (eds) Foundations of rational agency. Springer, Dordrecht, 1999. vol. 14. https:\/\/doi.org\/10.1007\/978-94-015-9204-8_1","DOI":"10.1007\/978-94-015-9204-8_1"},{"issue":"1","key":"3244_CR24","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1007\/s10458-020-09478-3","volume":"35","author":"R Calegari","year":"2021","unstructured":"Calegari R, Ciatto G, Mascardi V, Omicini A. Logic-based technologies for multi-agent systems: a systematic literature review. Auton Agent Multi-Agent Syst. 2021;35(1):1\u20131167. https:\/\/doi.org\/10.1007\/s10458-020-09478-3.","journal-title":"Auton Agent Multi-Agent Syst"},{"key":"3244_CR25","doi-asserted-by":"publisher","unstructured":"Palanca J, Rincon JA, Carrascosa C, Juli\u00e1n V, Terrasa A. A flexible agent architecture in SPADE. In: Dignum F, Mathieu P, Corchado JM, Prieta F. editors. Advances in practical applications of agents, multi-agent systems, and complex systems simulation. The PAAMS Collection - 20th International Conference, PAAMS. Lecture Notes in Computer Science, vol. 13616, pp. 320\u2013331. Springer, L\u2019Aquila, Italy 2022; https:\/\/doi.org\/10.1007\/978-3-031-18192-4_26.","DOI":"10.1007\/978-3-031-18192-4_26"},{"key":"3244_CR26","unstructured":"D\u2019Urso F, Longo CF, Santoro C. Programming intelligent iot systems with a python-based declarative tool. In: Savaglio C, Fortino G, Ciatto G, Omicini A. editors. Proceedings of the 1st Workshop on Artificial Intelligence and Internet of Things; Co-located with the 18th International Conference of the Italian Association for Artificial Intelligence (AI*IA 2019). CEUR Workshop Proceedings, 2019; vol. 2502, pp. 68\u201381. CEUR-WS.org, Rende (CS), Italy. https:\/\/ceur-ws.org\/Vol-2502\/paper5.pdf. Accessed 27 Sept 2024."},{"key":"3244_CR27","doi-asserted-by":"publisher","unstructured":"Winikoff M. JACKTM intelligent agents: an industrial strength platform. vol. 15, pp. 175\u2013193. https:\/\/doi.org\/10.1007\/0-387-26350-0_7.","DOI":"10.1007\/0-387-26350-0_7"},{"key":"3244_CR28","doi-asserted-by":"publisher","first-page":"149","DOI":"10.1007\/0-387-26350-0_6","volume-title":"Agent and multi-agent systems: technologies and applications. Lecture Notes in Computer Science","author":"A Pokahr","year":"2005","unstructured":"Pokahr A, Braubach L, Lamersdorf W. Jadex: a BDI reasoning engine. In: H\u00e5kansson A, Nguyen NT, Hartung RL, Howlett RJ, Jain LC, editors. Agent and multi-agent systems: technologies and applications. Lecture Notes in Computer Science, vol. 5559. Berlin: Springer; 2005. p. 149\u201374. https:\/\/doi.org\/10.1007\/0-387-26350-0_6."},{"issue":"6","key":"3244_CR29","doi-asserted-by":"publisher","first-page":"776","DOI":"10.1017\/S1471068422000102","volume":"22","author":"P K\u00f6rner","year":"2022","unstructured":"K\u00f6rner P, Leuschel M, Barbosa J, Costa VS, Dahl V, Hermenegildo MV, Morales JF, Wielemaker J, Diaz D, Abreu S. Fifty years of prolog and beyond. Theory Pract Log Program. 2022;22(6):776\u2013858. https:\/\/doi.org\/10.1017\/S1471068422000102.","journal-title":"Theory Pract. Log. Program."},{"key":"3244_CR30","doi-asserted-by":"publisher","unstructured":"Bergenti F, Monica S, Petrosino G. A comprehensive presentation of the jadescript agent-oriented programming language. In: Malvone V, Murano, A. editors. Multi-agent systems- 20th European Conference, (EUMAS 2023). Lecture Notes in Computer Science, vol. 14282, pp. 100\u2013115. Springer, Naples, Italy 2023; https:\/\/doi.org\/10.1007\/978-3-031-43264-4_7.","DOI":"10.1007\/978-3-031-43264-4_7"},{"key":"3244_CR31","doi-asserted-by":"crossref","unstructured":"Busetta P, Howden N, R\u00f6nnquist R, Hodgson A. Structuring bdi agents in functional clusters. In: International Workshop on Agent Theories, Architectures, and Languages, 1999; pp. 277\u2013289. Springer.","DOI":"10.1007\/10719619_21"},{"key":"3244_CR32","doi-asserted-by":"publisher","unstructured":"Johann P, Polonsky A. Higher-kinded data types: Syntax and semantics. In: 34th Annual ACM\/IEEE Symposium on Logic in Computer Science, LICS 2019, pp. 1\u201313. IEEE, Vancouver, BC, Canada 2019. https:\/\/doi.org\/10.1109\/LICS.2019.8785657.","DOI":"10.1109\/LICS.2019.8785657"},{"key":"3244_CR33","doi-asserted-by":"publisher","unstructured":"Baiardi Martina, Ciatto G, Pianini D. Semantic Release Bot: jakta-bdi\/jakta: v0.3.0. Zenodo 2023. https:\/\/doi.org\/10.5281\/zenodo.7900584.","DOI":"10.5281\/zenodo.7900584"},{"key":"3244_CR34","doi-asserted-by":"publisher","unstructured":"Ciatto G, Calegari R, Omicini A. 2P- Kt: a logic-based ecosystem for symbolic AI. SoftwareX. 2021;16:100817\u201311008177. https:\/\/doi.org\/10.1016\/j.softx.2021.100817.","DOI":"10.1016\/j.softx.2021.100817"},{"issue":"2","key":"3244_CR35","doi-asserted-by":"publisher","first-page":"167","DOI":"10.1007\/s002360050117","volume":"35","author":"S Andrei","year":"1998","unstructured":"Andrei S, Masalagiu C. About the Collatz conjecture. Acta Inform. 1998;35(2):167\u201379. https:\/\/doi.org\/10.1007\/s002360050117.","journal-title":"Acta Inform"},{"issue":"1","key":"3244_CR36","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1007\/S10515-011-0088-X","volume":"19","author":"LA Dennis","year":"2012","unstructured":"Dennis LA, Fisher M, Webster MP, Bordini RH. Model checking agent programming languages. Autom Softw Eng. 2012;19(1):5\u201363. https:\/\/doi.org\/10.1007\/S10515-011-0088-X.","journal-title":"Autom Softw Eng"},{"key":"3244_CR37","unstructured":"Baiardi M. JACOP: Programming BDI agents with pluggable concurrency model. Master\u2019s thesis, University of Bologna 2023."}],"container-title":["SN Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s42979-024-03244-y.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s42979-024-03244-y\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s42979-024-03244-y.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,10,30]],"date-time":"2024-10-30T15:26:59Z","timestamp":1730302019000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s42979-024-03244-y"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,10,30]]},"references-count":38,"journal-issue":{"issue":"8","published-online":{"date-parts":[[2024,12]]}},"alternative-id":["3244"],"URL":"https:\/\/doi.org\/10.1007\/s42979-024-03244-y","relation":{},"ISSN":["2661-8907"],"issn-type":[{"value":"2661-8907","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,10,30]]},"assertion":[{"value":"1 February 2024","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"19 August 2024","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"30 October 2024","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare they have no financial or personal relationship with any third party whose interests could be positively or negatively influenced by the article\u2019s content.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}},{"value":"Not applicable.","order":3,"name":"Ethics","group":{"name":"EthicsHeading","label":"Research Involving Human and\/or Animals"}},{"value":"Not applicable.","order":4,"name":"Ethics","group":{"name":"EthicsHeading","label":"Informed Consent"}}],"article-number":"1003"}}