paper-with-me

Papers

Monadic Context Engineering

2025-12-27 · Yifan Zhang, Yang Yuan, Mengdi Wang, Andrew Chi-Chih Yao arxiv

The proliferation of Large Language Models (LLMs) has catalyzed a shift towards autonomous agents capable of complex reasoning and tool use. However, current agent architectures are frequently constructed using imperative, ad hoc patterns. This results in brittle systems plagued by difficulties in state management, error handling, and concurrency. This paper introduces Monadic Context Engineering (MCE), a novel architectural paradigm leveraging the algebraic structures of Functors, Applicative Functors, and Monads to provide a formal foundation for agent design. MCE treats agent workflows as computational contexts where cross-cutting concerns, such as state propagation, short-circuiting error handling, and asynchronous execution, are managed intrinsically by the algebraic properties of the abstraction. We demonstrate how Monads enable robust sequential composition, how Applicatives provide a principled structure for parallel execution, and crucially, how Monad Transformers allow for the systematic composition of these capabilities. This layered approach enables developers to construct complex, resilient, and efficient AI agents from simple, independently verifiable components. We further extend this framework to describe Meta-Agents, which leverage MCE for generative orchestration, dynamically creating and managing sub-agent workflows through metaprogramming.

📄 PDF Abstract BibTeX arXiv:2512.22431

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Containment in Monadic Disjunctive Datalog, MMSNP, and Expressive Description Logics

2020-10-22 · Pierre Bourhis, Carsten Lutz

We study query containment in three closely related formalisms: monadic disjunctive Datalog (MDDLog), MMSNP (a logical generalization of constraint satisfaction problems), and ontology-mediated queries (OMQs) based on ex…

Linguistic Analysis, Description, and Typological Exploration with Categorial Grammar (TheBench Guide)

2024-06-03 · Cem Bozsahin

TheBench is a tool to study monadic structures in natural language. It is for writing monadic grammars to explore analyses, compare diverse languages through their categories, and to train models of grammar from form-mea…

Second Position Clitics and Monadic Second-Order Transduction

2012-04-01 · WS 2012 4 · Neil Ashton
Position

Monadic Pavlovian associative learning in a backpropagation-free photonic network

2020-11-30 · James Y. S. Tan, Zengguang Cheng, Johannes Feldmann, Xuan Li 외

Over a century ago, Ivan P. Pavlov, in a classic experiment, demonstrated how dogs can learn to associate a ringing bell with food, thereby causing a ring to result in salivation. Today, it is rare to find the use of Pav…

To React or not to React: End-to-End Visual Pose Forecasting for Personalized Avatar during Dyadic Conversations

2019-10-05 · Chaitanya Ahuja, Shugao Ma, Louis-Philippe Morency, Yaser Sheikh

Non verbal behaviours such as gestures, facial expressions, body posture, and para-linguistic cues have been shown to complement or clarify verbal messages. Hence to improve telepresence, in form of an avatar, it is impo…