<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Quirino Brizi on Medium]]></title>
        <description><![CDATA[Stories by Quirino Brizi on Medium]]></description>
        <link>https://medium.com/@quirino-brizi?source=rss-f52d69230765------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8oKZOkYdcqxdFZkP</url>
            <title>Stories by Quirino Brizi on Medium</title>
            <link>https://medium.com/@quirino-brizi?source=rss-f52d69230765------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:43:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@quirino-brizi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Breaking the Monolith: Why the Single-LLM “Brain” Falls Short — and How a Multi-Brain Approach…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://quirino-brizi.medium.com/breaking-the-monolith-why-the-single-llm-brain-falls-short-and-how-a-multi-brain-approach-3c5b99425395?source=rss-f52d69230765------2"><img src="https://cdn-images-1.medium.com/max/1536/1*B3-rx3cN_JWXhhzZEINivw.png" width="1536"></a></p><p class="medium-feed-snippet">The future of agentic AI isn&#x2019;t one big brain&#x200A;&#x2014;&#x200A;it&#x2019;s many specialised minds working together.</p><p class="medium-feed-link"><a href="https://quirino-brizi.medium.com/breaking-the-monolith-why-the-single-llm-brain-falls-short-and-how-a-multi-brain-approach-3c5b99425395?source=rss-f52d69230765------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://quirino-brizi.medium.com/breaking-the-monolith-why-the-single-llm-brain-falls-short-and-how-a-multi-brain-approach-3c5b99425395?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c5b99425395</guid>
            <category><![CDATA[ai-architecture]]></category>
            <category><![CDATA[ai-ethics]]></category>
            <category><![CDATA[agentic-ai-architecture]]></category>
            <category><![CDATA[artifical-intellegence]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Sun, 26 Oct 2025 11:21:01 GMT</pubDate>
            <atom:updated>2025-10-26T11:24:37.951Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Extending Solution Architecture for Agentic AI with the APAC Protocol]]></title>
            <link>https://quirino-brizi.medium.com/extending-solution-architecture-for-agentic-ai-with-the-apac-protocol-02b92b97a13a?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/02b92b97a13a</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[collaborative-ai]]></category>
            <category><![CDATA[solution-architecture]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Wed, 18 Dec 2024 01:10:01 GMT</pubDate>
            <atom:updated>2025-04-19T06:33:32.522Z</atom:updated>
            <content:encoded><![CDATA[<p>As artificial intelligence systems progress in sophistication to address increasingly complex and collaborative tasks, the imperative for secure, adaptive, and resilient architectures becomes self-evident.</p><p>The article <a href="https://medium.com/@quirino-brizi/solution-architecture-for-agentic-ai-designing-adaptive-collaborative-systems-410a8a154235"><em>Solution Architecture for Agentic AI: Designing Adaptive, Collaborative Systems</em></a> introduced a foundational framework for orchestrating agent-based AI ecosystems, where autonomous agents interact to achieve shared objectives.</p><p>The <strong>Agent Protocol for Autonomous Communication (APAC) protocol</strong> introduced on the article <a href="https://medium.com/@quirino-brizi/advancing-agentic-ai-protocols-54432885767e"><em>Advancing Agentic AI Protocols</em></a> extends this foundational architecture by providing a standardised approach for agent interoperability, discovery, registration, governance and task management.</p><p>By leveraging <strong>APAC</strong>, the architecture improves security, resilience, and extensibility while fostering the foundational interactions necessary for autonomous registration and discovery. This enables communication autonomy, where agents self-organise and coordinate tasks without reliance on centralised oversight, enhancing both operational efficiency and system scalability amongst distributed AI ecosystems.</p><p>The diagram presented below describes how the Solution Architecture previously presented integrates APAC to enhance system capabilities while maintaining robustness, modularity, and scalability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3sAELhQuMaOKSbf_7yodg.png" /></figure><h3>The Extended Architecture</h3><p>The proposed architecture synergises the <em>Solution Architecture for Agentic AI</em><strong> </strong>with the <strong>APAC</strong> protocol through a refined orchestration of core components.</p><p>These components, collectively, create a system capable of adaptive intelligence while ensuring secure and resilient workflows.</p><h4>Key Components</h4><p><strong>Inbound API Gateway</strong></p><p>Facilitates secure and streamlined ingress of client requests, acting as an intermediary between external entities and backend services. For instance, a client request to initiate a task might pass through the gateway, where it is authenticated, validated, and routed to the appropriate service for processing. By routing requests through this gateway, the system ensures adherence to stringent security protocols while optimising the efficiency of incoming communications. It is a critical component for maintaining system integrity and enabling robust data handling.</p><p><strong>Onboarding Service</strong></p><p>Implements a standardised agent and sensor registration workflow in alignment with APAC, ensuring seamless extensibility and modularity. This service not only supports the addition of new system components but also validates their compatibility with existing workflows, enhancing the architecture’s adaptability to evolving requirements. Its ability to dynamically manage new agent capabilities underscores its role as a cornerstone of system scalability.</p><p><strong>Task Service</strong></p><p>Orchestrates task lifecycles by managing a fault-tolerant workflows execution while securing the interactions leveraging authentication.</p><p>This component ensures that every task is executed reliably, even in the presence of transient failures or resource constraints. Through error recovery mechanisms and real-time monitoring, it enables uninterrupted operations and mitigates risks of task abandonment.</p><p><strong>Outbound API Gateway</strong></p><p>Manages secure outbound communication with external systems and services, ensuring interoperability across distributed ecosystems.</p><p>Provides a seamless interface for integrating external dependencies while maintaining rigorous security and performance standards. This gateway enables the architecture to function as an extensible platform, capable of interacting with diverse external technologies.</p><p><strong>Central Operations Manager</strong></p><p>Acts as the core orchestrator for managing agent and client identities, facilitating validation and authorisation workflows.</p><p>By maintaining a comprehensive overview of system activities, the Central Operations Manager (COM) ensures that workflows are dynamically adjusted based on operational requirements and agent availability. This layer underpins the system’s capacity to execute long-running and complex workflows with high reliability.</p><p><strong>Identity Provider</strong></p><p>Establishes and maintains unique digital identities for agents, sensors, and clients, anchoring the system’s secure communication model.</p><p>Through robust identity verification processes, it enforces access control policies and supports the issuance of time-bound credentials to ensure operational security.</p><p>The Identity Provider’s integration with all other components guarantees that the security of the architecture avoiding unauthorised intrusions.</p><p><strong>Brains System</strong></p><p>Encompasses expert tools and decision-making systems that empower agents with advanced analytical and problem-solving capabilities.</p><p>These systems integrate artificial intelligence models, including machine learning algorithms, to provide insights that enhance task execution.</p><p>Whether it is predictive analytics or real-time decision-making, the Brains System ensures the architecture is not only reactive but also forward-thinking in its operations.</p><p><strong>Directors</strong></p><p>Functions as the operational coordinator, assigning and managing tasks based on agent capabilities and system priorities.</p><p>This component leverages contextual data and strategic insights to distribute workloads efficiently, optimising resource utilisation. Its integration with other components enables the seamless orchestration of tasks across distributed agents.</p><p><strong>Sensors</strong></p><p>Provide real-time external data, enabling agents to derive actionable insights for adaptive decision-making.</p><p>Sensors function as the system’s eyes and ears, collecting data from various sources such as IoT devices, APIs, and real-time data streams, and delivering it in structured formats. Their ability to continuously update information feeds ensures the architecture maintains an accurate and timely understanding of its operating environment.</p><p>The application UI client provides a client example; the main message is that benefits of APAC could be extended to clients as well. In the diagram the Application UI client can be see as a versatile interface enabling external systems to initiate task execution via API calls, serving as the external interaction layer. Its design prioritises user accessibility and system transparency, ensuring efficient initiation of workflows.</p><h3>How the APAC Protocol Enhances the Architecture</h3><p>The <strong>APAC</strong> protocol introduces a cohesive standard for agent onboarding, authentication, task management, communication, and monitoring. Its integration delivers several critical enhancements to the extended architecture:</p><p><strong>Secure Communication</strong></p><ul><li>The <strong>Identity Provider</strong> ensures agents, clients, and sensors are securely registered and authenticated, safeguarding against unauthorised access and potential malicious interference.</li><li>Communication channels leverage <strong>HTTPS</strong> for encryption and secure transmission, maintaining data integrity and confidentiality.</li></ul><p><strong>Resilience</strong></p><ul><li>The integration of <strong>Inbound and Outbound API Gateways</strong> enables the architecture to handle high concurrency and large-scale task requests while mitigating downtime.</li><li>The <strong>Task Service</strong> ensures reliability under substantial loads through lifecycle management and fault-tolerant execution mechanisms.</li></ul><p><strong>Extensibility</strong></p><ul><li>The <strong>Onboarding Service</strong> facilitates the incorporation of new agents, tools, and sensors seamlessly, thereby ensuring adaptability to evolving system requirements.</li><li>The modular architecture allows core components, such as the <strong>Brains System</strong> and <strong>Director</strong>, to be extended, replaced, or reconfigured with minimal impact on overall system stability.</li></ul><p><strong>Communication Autonomy</strong></p><ul><li>Minimal human intervention is required for agent registration and interaction, as the <strong>Director</strong> and <strong>Onboarding Services</strong> automate these processes efficiently.</li><li>API gateways ensure agents can operate autonomously while complying with the APAC communication standards, enabling decentralised and autonomous workflows by creating the basis for leveraging cell-based architecture.</li></ul><h3>Integration Considerations</h3><p>The successful integration of the <strong>APAC</strong> protocol with the Solution Architecture for Agentic AI requires addressing several critical factors:</p><p><strong>Technical Challenges</strong></p><ul><li>Legacy system compatibility: Older components might require adapters or updates to align with APAC protocols.</li><li>Performance trade-offs: Distributed systems must balance the computational overhead introduced by APAC with operational efficiency.</li></ul><p><strong>Scalability</strong></p><ul><li>APAC facilitates horizontal scaling across multi-agent systems, but careful planning is needed to ensure performance across global operations or cross-cloud implementations.</li></ul><p><strong>Interoperability</strong></p><ul><li>The protocol support for diverse frameworks enhances cross-platform functionality, allowing agents and components built on different technologies to collaborate effectively.</li></ul><p><strong>Governance and Monitoring</strong></p><ul><li><strong>APAC</strong> introduces robust governance mechanisms, enabling compliance with regulatory standards through auditing and operational transparency. These features are especially critical for industries like healthcare and finance.</li></ul><p><strong>Best Practices for Integration</strong></p><ul><li>Compatibility Validation: Establish a robust testing framework to ensure seamless interaction between <strong>APAC</strong> and existing architecture components.</li><li>Deployment Strategies: Leverage containerisation to streamline updates, maintain scalability, and minimise risks during implementation.</li></ul><h3>Benefits of the Extended Architecture</h3><p>The integration of the APAC protocol into the Agentic AI architecture offers a suite of transformative benefits:</p><ol><li><strong>Enhanced Security</strong><br>Secure registration, identity management, and encrypted communication ensure system integrity, minimising vulnerabilities to unauthorised access or malicious disruptions.</li><li><strong>Resilience and Scalability</strong><br>By leveraging API gateways and robust task management services, the architecture scales horizontally to meet growing workloads while maintaining system reliability and availability.</li><li><strong>System Extensibility</strong><br>The modular onboarding process and adaptable components support the seamless integration of new agents, tools, and sensors, ensuring continuous system evolution without architectural overhauls.</li><li><strong>Autonomous Communication</strong><br>Agents interact autonomously with limited external oversight, enabling efficient, decentralised workflows that drive system responsiveness and decision-making agility.</li></ol><h3>Real-World Applications</h3><p>The extended architecture finds applicability across diverse domains where adaptive, autonomous AI systems are critical:</p><ul><li><strong>Smart Manufacturing</strong>: Agents optimise production processes by coordinating workflows, analysing sensor data, and improving operational efficiency.</li><li><strong>Healthcare</strong>: Autonomous agents facilitate secure onboarding of new medical devices, monitor patient data, and enhance clinical decision-making workflows.</li><li><strong>Financial Services</strong>: Task management services and decision systems automate fraud detection, regulatory reporting, and risk assessment processes.</li><li><strong>Energy Management</strong>: Sensors provide grid insights, while agents coordinate load balancing, optimising energy distribution for resilience and efficiency.</li></ul><h3>Conclusion</h3><p>The integration of the APAC protocol within the existing Solution Architecture for Agentic AI represents a significant advancement towards secure, resilient, extensible, and autonomous AI ecosystems.</p><p>This enhanced architecture enables seamless scalability, efficient decentralised workflows, and robust security mechanisms, positioning organisations to innovate and adapt in dynamic technological landscapes.</p><p>By fostering a cohesive system for agent collaboration and communication, the architecture not only meets the demands of complex AI-driven applications but also ensures future-proof adaptability and operational excellence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02b92b97a13a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advancing Agentic AI Protocols]]></title>
            <link>https://quirino-brizi.medium.com/advancing-agentic-ai-protocols-54432885767e?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/54432885767e</guid>
            <category><![CDATA[collaborative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 01:27:26 GMT</pubDate>
            <atom:updated>2025-04-19T06:31:42.894Z</atom:updated>
            <content:encoded><![CDATA[<p>Building on my previous articles, here I introduce <a href="https://gitlab.com/iucteam/agent-protocol-for-autonomous-communication/-/wikis/home"><strong>Agent Protocol for Autonomous Communication (APAC)</strong></a> and present how it can facilitate the creation of distributed Agentic AI systems.</p><p>Inspired by cell-based architecture and serverless principles described on my previous <a href="https://medium.com/@quirino-brizi/solution-architecture-for-agentic-ai-designing-adaptive-collaborative-systems-410a8a154235"><em>Solution Architecture for Agentic AI: Designing Adaptive, Collaborative Systems</em></a>, this protocol offers the adaptability required to meet the demands of modern automation; achieving inter-agent communication, resilience, and scalability while integrating future-proof capabilities.</p><h3>Agentic AI Protocol: A Paradigm Shift</h3><p>As systems evolve from static APIs to autonomous, intelligent workflows, APAC lays the groundwork for collaboration among <strong>Directors</strong>, <strong>Sensors</strong>, <strong>Brains</strong>, and a <strong>Central Operation Manager (COM)</strong>.</p><p>These components form a modular architecture where intelligence is embedded across layers, ensuring adaptability and fault tolerance.</p><p>The key features proposed by APAC are:</p><ul><li><strong>Dynamic Discovery</strong>: Agents advertise capabilities, enabling adaptive workflows.</li><li><strong>Capability Negotiation</strong>: JSON schemas facilitate structured capability matching.</li><li><strong>Fault Tolerance</strong>: Automatic fallback mechanisms ensure continuity under failure.</li><li><strong>Extensibility</strong>: Support for multiple transport protocols and dynamic schema evolution.</li></ul><h3>Architectural Overview</h3><h4>Registration and Discovery</h4><p>The foundation of APAC lies in its <strong>registration and discovery mechanism</strong>, enabling seamless integration of agents into the system.</p><p>Agents (Directors or Sensors) initiate workflows by advertising their capabilities to the Central Operation Manager.</p><p>The Central Operation Manager handles dynamic registration using OpenID Connect’s secure credential exchange, ensuring interoperability between diverse frameworks.</p><p><strong>Agent Advertisement</strong></p><ul><li>Directors and Sensors advertise their capabilities to the Central Operation Manager using structured JSON payloads.</li><li>Each advertisement includes a manifest, specifying the registration endpoint, a token for secure credential exchange, and the agent&#39;s capabilities.</li></ul><p><strong>Registration</strong></p><ul><li>Following OpenID Connect’s dynamic registration protocol, the Central Operation Manager securely authenticates and registers agents.</li><li>This process ensures a unified framework for agents built with diverse technologies, enhancing interoperability.</li></ul><p><strong>Discovery</strong></p><ul><li>Once registered, the Central Operation Manager queries agents to fetch detailed schemas of their capabilities.</li><li>These schemas guide task allocation, ensuring the right agents are chosen for specific workflows.</li></ul><p><strong>Benefits</strong>:</p><ul><li><strong>Security</strong>: The use of OpenID standards ensures robust authentication and credential management.</li><li><strong>Scalability</strong>: By dynamically registering and deregistering agents, the system can scale with minimal overhead.</li><li><strong>Resilience</strong>: The discovery process validates operational readiness, reducing the likelihood of task failures.</li></ul><h4>Task Orchestration and Execution</h4><p>At the heart of APAC is the <strong>task orchestration mechanism. </strong>The Central Operation Manager receives requirements, defines workflows, and assigns tasks to Directors and Sensors.</p><p>Tasks can range from simple data retrieval to complex decision-making, powered by Brains.</p><p><strong>Workflow Planning</strong></p><ul><li>Upon receiving a client request, the Central Operation Manager dynamically constructs a workflow.</li><li>Directors act as strategic orchestrators, while Sensors handle granular operations.</li></ul><p><strong>Task Execution</strong></p><ul><li>Tasks are delegated based on agents’ advertised capabilities.</li><li>For synchronous tasks, Sensors return results directly. For asynchronous tasks, the Central Operation Manager polls for updates, <em>future work will introduce WebSocket streams</em>.</li></ul><p><strong>Response Aggregation</strong></p><ul><li>Results from agents are aggregated and returned to the client.</li><li>This modular execution approach allows easy substitution or scaling of individual agents without affecting the larger workflow.</li></ul><p><strong>Benefits</strong>:</p><ul><li><strong>Flexibility</strong>: Dynamic workflows adapt to real-time requirements, eliminating rigid, pre-defined processes.</li><li><strong>Efficiency</strong>: Tasks are executed by the most suitable agents, ensuring optimal resource utilisation.</li><li><strong>Extensibility</strong>: The system supports diverse task types, from data retrieval to complex ML-powered analytics.</li></ul><h4>Monitoring and Fault Tolerance</h4><p>Monitoring ensures operational integrity. Heartbeat mechanisms track agent availability.</p><p>If an agent becomes unresponsive, the Central Operation Manager may reallocates tasks, maintaining workflow integrity.</p><p><strong>Heartbeat Mechanism</strong></p><ul><li>Periodic heartbeat requests validate the status of agents.</li><li>Agents report their health, failure reasons, or readiness to resume operations.</li></ul><p><strong>Dynamic Fault Recovery</strong></p><ul><li>If an agent becomes unresponsive, the Central Operation Manager reassigns tasks to alternative agents.</li><li>Partial task recovery mechanisms minimise the impact of failures.</li></ul><p><strong>Benefits</strong>:</p><ul><li><strong>Resilience</strong>: Continuous monitoring ensures uninterrupted service, even under failure conditions.</li><li><strong>Transparency</strong>: Clear reporting mechanisms facilitate debugging and optimisation.</li></ul><p>For a complete definition of the <a href="https://gitlab.com/iucteam/agent-protocol-for-autonomous-communication/-/wikis/home"><strong>Agent Protocol for Autonomous Communication (APAC)</strong></a> please refer to <a href="https://gitlab.com/iucteam/agent-protocol-for-autonomous-communication/-/wikis/home">this</a> GitLab wiki page.</p><h3>Benefits of APAC</h3><p><strong>1. Standardisation</strong><br>A protocol like APAC provides a consistent framework for inter-agent communication. This reduces fragmentation and simplifies integration, allowing organisations to onboard agents without reinventing the wheel.</p><p><strong>2. Enhanced Security</strong><br>Protocols enforce best practices, such as token-based authentication and encrypted communication, ensuring sensitive data is protected. By standardising security mechanisms, APAC builds trust across distributed systems.</p><p><strong>3. Interoperability</strong><br>By leveraging widely adopted standards (e.g., OpenID Connect, JSON schemas), APAC ensures compatibility with diverse frameworks and platforms, reducing the barrier to entry for new agents or systems.</p><p><strong>4. Scalability and Modularity</strong><br>A defined protocol enables systems to scale horizontally by seamlessly adding new agents. Its modular nature ensures that components can be updated or replaced without impacting the overall system.</p><p><strong>5. Adaptability to Change</strong><br>Dynamic schema evolution ensures that as agent capabilities grow or change, the system adapts without requiring redeployment. This future-proofs the architecture against evolving requirements.</p><p><strong>6. Observability and Governance</strong><br>Protocols embed observability standards, enabling granular logging, auditing, and monitoring. Governance frameworks built into protocols (e.g., credential revocation, trust management) ensure operational compliance and transparency.</p><p><strong>7. Resilience Through Fault Tolerance</strong><br>With features like fallback mechanisms and error codes, protocols like APAC reduce downtime and improve overall reliability. They create self-healing systems that dynamically recover from failures.</p><h3>Future Enhancements</h3><p>While APAC is fairly robust in its current form, future iterations will bring substantial advancements:</p><p><strong>1. Asynchronous Communication</strong><br>Implementing WebSocket or MQTT protocols will enable real-time, bi-directional communication, critical for IoT and high-speed environments.</p><p><strong>2. Dynamic Schema Evolution</strong><br>Agents’ capabilities will evolve without redeployment by incorporating self-updating schemas. This feature ensures long-term viability in rapidly changing industries.</p><p><strong>3. Enhanced Discovery Workflows</strong><br>Algorithms will optimise discovery for large agent pools, reducing latency and ensuring efficient capability matching.</p><p><strong>4. Error Handling and Failover</strong><br>Comprehensive error codes (e.g., 429 Too Many Requests) and partial task recovery mechanisms will improve system resilience.</p><h3>Concluding Thoughts</h3><p>Defining a protocol such as APAC transcends mere communication — it lays the groundwork for intelligent, secure, and scalable distributed systems.</p><p>By marrying modular architecture with robust standards, APAC ensures adaptability and resilience in dynamic, high-demand environments.</p><p>This approach is not just a technological enhancement but a strategic imperative for enterprises aiming to harness the full potential of agentic AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54432885767e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution Architecture for Agentic AI: Designing Adaptive, Collaborative Systems]]></title>
            <link>https://quirino-brizi.medium.com/solution-architecture-for-agentic-ai-designing-adaptive-collaborative-systems-410a8a154235?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/410a8a154235</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[solution-architecture]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 01:02:00 GMT</pubDate>
            <atom:updated>2025-04-19T06:32:59.413Z</atom:updated>
            <content:encoded><![CDATA[<p>Building on my previous <a href="https://medium.com/@quirino-brizi/embracing-agentic-api-services-a-new-era-for-intelligent-context-aware-api-management-f021017cb0ba">exploration of collaborative intelligence in API services</a>, I am exploring how agentic AI systems could be architected.</p><p>The solution architecture here proposed is inspired by cell-based architecture and plan to leverage serverless architecture to provide computational capabilities; understanding that, in an era where automation and artificial intelligence converge, solution architectures must facilitate adaptability and context-aware intelligence.</p><p>This article examines the architecture for an Agentic AI system, detailing the role of Directors, Sensors, Brains, a Central Operation Manager, AI Models, and Data Sources. Together, these components form a dynamic, adaptive system, engineered to respond in real-time to complex workflows with minimal human intervention.</p><p>The potential of agentic systems lies not only in their autonomous decision-making capabilities but in their adaptability, scalability, and resilience, particularly valuable for dynamic and high-demand domains such as finance, healthcare, IoT, and customer experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VGFdxaQPnl5u62_wVvuLQ.png" /></figure><h3>The Evolution of Intelligent API Systems</h3><p>Agentic AI-based systems represent the next stage in the evolution of API-driven architectures, transitioning from static, rule-based logic to collaborative, intelligent entities that autonomously plan and execute workflows.</p><p>By leveraging distributed cell-based architecture, this solution introduces intelligence at multiple levels within the system, enabling real-time responsiveness and adaptability to user demands and environmental contexts.</p><p>Imagine a scenario where an API call triggers not a single, linear response but a nuanced, context-aware workflow, dynamically assembled by a central intelligence. This approach optimises workflows based on real-time data and evolving requirements, allowing systems to scale and adapt without extensive re-coding.</p><h3>Architectural Components</h3><h4>1. Directors</h4><p>Directors are high-level agents with a global perspective of the system. They act as strategic overseers, generating <em>Tasks</em> to guide overall workflows. Directors do not directly execute work; instead, they delegate it to Sensors, ensuring that resources are optimally allocated for complex tasks.</p><p>Directors are also responsible for adapting workflows based on evolving data, making them essential for orchestrating the system’s higher-level intelligence.</p><ul><li><strong>Key Role</strong>: High-level orchestration and delegation.</li><li><strong>Use Case</strong>: In a customer service application, a Director might identify the need for collecting the data related to the customer query, operate sentiment analysis on customer feedback and summarise a response, the identified tasks are then delegated to Sensors.</li></ul><h4>2. Sensors</h4><p>Sensors are intelligent tools that do not just interact with the “outside world” they make, as well, sense of the information allowing for better specialisation and favouring single responsibility.</p><p>Unlike Directors, Sensors operate at a granular level, performing detailed actions that contribute to the larger workflow. For example, a Sensor might be responsible for gathering user data, triggering notifications based on specific parameters or summarise text.</p><p>While Sensors operate independently, they coordinate with Directors and Brains to complete complex workflows.</p><ul><li><strong>Key Role</strong>: Perform detailed, specific tasks.</li><li><strong>Use Case</strong>: In a logistics application, a Sensor could track inventory levels in real time, notifying Directors of any discrepancies or shortages, allowing the system to adapt to supply chain changes.</li></ul><h4>3. Brains</h4><p>Brains represent the intelligence within the system. They can be AI models (such as Large Language Models, Convolutional Neural Networks, or rule engines) that perform complex decision-making, analytics, or content creation based on input from Directors or Sensors.</p><p>Brains are not limited to a single form of AI; they might involve a mix of machine learning, natural language understanding (NLU), and traditional rule-based systems.</p><ul><li><strong>Key Role</strong>: Provide expertise and complex analysis.</li><li><strong>Use Case</strong>: A Brain might be used in a healthcare application to evaluate patient data retrieved by Sensors, assessing risk levels based on historical trends and alerting Directors if intervention is required.</li></ul><h4>4. Central Operation Manager (COM)</h4><p>The Central Operation Manager (COM) acts as the orchestrator of the entire system.</p><p>Its primary purpose is to understand the requirement received and define the vertical activities that need are to be carried forward by Directors, this behaviour allows to dynamically plans workflows based on specific API requests and ensures that the system adapts in real time.</p><p>Unlike traditional orchestrators, COM manages long-running workflows and is designed to function as a containerised service on an orchestration platform (e.g., Kubernetes).</p><ul><li><strong>Key Role</strong>: Workflow orchestration and dynamic planning.</li><li><strong>Use Case</strong>: In a real estate application, the COM might create a custom workflow for selecting properties to buy, leveraging Directors to direct Sensors to retrieve user and neighbourhood lifestyle information, matching the best neighbourhood to user lifestyle, retrieve real estate property information and formulate a report.</li></ul><h4>5. AI Models</h4><p>AI Models serve as repositories or services providing access to trained models. These models can be stored in object storage for custom models or hosted as inference services on cloud platforms like AWS Bedrock.</p><p>AI Models are directly used by Brains and allow the system to perform complex tasks that require intelligence, such as sentiment analysis, anomaly detection, or predictive analytics, using cutting-edge machine learning techniques.</p><ul><li><strong>Key Role</strong>: Provide access to trained AI models for specific tasks.</li><li><strong>Use Case</strong>: In customer feedback analysis, AI Models might analyse text data for sentiment and alert Directors if certain patterns are detected.</li></ul><h4>6. Data Sources</h4><p>Data Sources could be both internal and/or external systems that provide raw information required by the system.</p><p>Data Sources are accessed by Sensors and might include APIs, databases, or real-time data streams. Data Sources are crucial for contextualising decisions made, allowing the system to adapt based on live data inputs.</p><ul><li><strong>Key Role</strong>: Source information for decision-making and task completion.</li><li><strong>Use Case</strong>: For a weather prediction service, Data Sources could include real-time meteorological data feeds, historical weather databases, and APIs for geographic information.</li></ul><h3>Key Considerations in Agentic AI Architecture</h3><h4>1. Security and Compliance</h4><p>Implementing robust security mechanisms is essential, especially when handling sensitive data or interacting with external systems. Access controls, data encryption, and auditing mechanisms must be integrated to ensure data integrity and compliance with industry regulations. Each agent (Director, Sensor) should be authenticated and authorised independently to prevent unauthorised access or task execution.</p><ul><li><strong>Best Practice</strong>: Use token-based authentication for inter-agent communication and ensure encryption for all data in transit.</li></ul><h4>2. Observability and Monitoring</h4><p>Enhanced observability is crucial for debugging, monitoring, and compliance. By logging actions and decisions autonomously, agentic AI systems can provide a detailed audit trail, which aids in understanding and optimising system behaviour.</p><p>Observability should cover not just the COM but also the independent operations of Directors, Sensors, and Brains.</p><ul><li><strong>Best Practice</strong>: Implement distributed tracing to monitor interactions between agents and visualise workflows across the entire system.</li></ul><h4>3. Scalability and Resilience</h4><p>An agentic AI system must scale efficiently to accommodate increased demand, particularly in high-load environments.</p><p>Leveraging container orchestration platforms, i.e., Kubernetes, and Serverless Archiecture, allows the system to handle scalability by dynamically adjusting resources based on workload requirements.</p><p>Resilience should also be prioritised, ensuring that individual agent failures do not compromise the entire workflow.</p><ul><li><strong>Best Practice</strong>: Implement load balancing and automated scaling to maintain optimal system performance under variable workloads.</li></ul><h4>4. Data Quality and Dependency Management</h4><p>Data quality is fundamental to the effectiveness of agentic AI. Since agents make autonomous decisions based on real-time data, poor-quality or outdated information can lead to flawed workflows.</p><p>Regularly validating and updating data sources is essential to ensure accuracy and relevance.</p><ul><li><strong>Best Practice</strong>: Use data validation routines for critical data sources and implement retry mechanisms for transient data retrieval errors.</li></ul><h3>The Future of Agentic AI Systems</h3><p>Agentic AI systems embody a paradigm shift in architecture, bringing intelligence and adaptability to complex workflows. As these systems become more prevalent, we can expect to see continued advancements in inter-agent collaboration, workflow orchestration, and AI model integration.</p><p>The modularity of the cell-based architecture will enable organisations to scale their systems seamlessly, adding new capabilities and adapting to evolving requirements without disrupting operations.</p><p>By embedding intelligence at every level — Directors, Sensors, and the COM — this architecture provides a foundation for responsive, context-aware services that meet the demands of an ever-changing digital landscape.</p><p>The future of agentic AI promises systems that are not only smarter and more autonomous but also better equipped to handle the dynamic needs of modern enterprises.</p><p>In upcoming articles, we will further explore the technical considerations, including ethical implications and implementation challenges, that influence this innovative approach to agentic AI architecture.</p><p>Stay tuned as we continue to uncover the potential of collaborative intelligence in solution architecture.</p><h3>References</h3><ul><li><a href="https://github.com/wso2/reference-architecture/blob/master/reference-architecture-cell-based.md">WSO2 reference architecture cell based</a></li><li><a href="https://docs.aws.amazon.com/wellarchitected/latest/reducing-scope-of-impact-with-cell-based-architecture/what-is-a-cell-based-architecture.html">AWS What is a cell-based architecture</a></li><li><a href="https://aws.amazon.com/solutions/guidance/cell-based-architecture-on-aws/">AWS guidance for cell-based architecture</a></li><li><a href="https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;opi=89978449&amp;url=https://cloud.google.com/discover/what-is-serverless-architecture%23:~:text%3DServerless%2520architecture%2520is%2520a%2520software,scaling%2520all%2520the%2520cloud%2520infrastructure.&amp;ved=2ahUKEwj99uyX9cyJAxW7L1kFHfnLNr4QFnoECCoQAw&amp;usg=AOvVaw2cfCP1UMTUokyCegWOVFWH">Google what is serverless architecture</a></li><li><a href="https://aws.amazon.com/lambda/serverless-architectures-learn-more/">AWS serverless architecture</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=410a8a154235" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing Agentic API Services: A New Era for Intelligent, Context-Aware API Management]]></title>
            <link>https://quirino-brizi.medium.com/embracing-agentic-api-services-a-new-era-for-intelligent-context-aware-api-management-f021017cb0ba?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/f021017cb0ba</guid>
            <category><![CDATA[collaborative-ai]]></category>
            <category><![CDATA[genarative-ai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 00:02:12 GMT</pubDate>
            <atom:updated>2024-10-29T09:40:11.495Z</atom:updated>
            <content:encoded><![CDATA[<p>Following my <a href="https://medium.com/@quirino-brizi/unlocking-collaborative-intelligence-e5e7f1884443">previous article</a> and my interest for AI and APIs I am here exploring how Collaborative Intelligence can be leveraged to: 1) build intelligent API services; and 2) what the impacts of building such API services could be.</p><h3>The Evolution of APIs</h3><p>In the age of automation and intelligence, as organizations strive for smarter, more adaptive systems, the once-static role of APIs is rapidly transforming. APIs need to evolve from static endpoints to intelligent entities capable of managing tasks dynamically.</p><p><strong>Agentic API Services (AAS)</strong>, leveraging agent-based models and collaborative intelligence, are an emerging approach that enables APIs to adapt and plan complex workflows in response to real-time demands.</p><p>This concept offers a shift from conventional, rule-based coded logic to an adaptive, agentic approach where a central “brain” orchestrates API interactions, enabling more responsive, context-aware services.</p><p>As we explore this groundbreaking paradigm, we’ll dig into its underlying principles, benefits, potential applications, and future trajectory.</p><h3>What Are Agentic API Services?</h3><p><strong>Agentic API Services</strong> (<strong>AAS</strong>) are APIs embedded with collaborative, multi-agent intelligence that autonomously determine the right workflows based on real-time context and needs.</p><p>That’s it, rather than relying on static code and linear sequences, AAS deploy an “intelligent coordinator” or <strong>Central Operation Manager (COM)</strong>, tasked to intelligently generate workflows. This intelligence could be provided by different AI models, i.e. Small Language Models (SLMs) for task planning or <strong>Policy Gradient-based model</strong> like Proximal Policy Optimization (PPO) for strategy selection in gaming, effectively meeting an organisation needs.</p><p>Imagine a process such as user account creation, which traditionally involves rigid sequences of identity checks, authentication, notification, and data logging. An agentic API approach transforms this by autonomously managing and adapting the steps based on the real-time context, such as implementing additional security measures if a high-risk action is detected.</p><p>This flexibility, efficiency, and context-awareness provide a foundation for a more responsive and efficient API ecosystem.</p><h4>Key Components</h4><ul><li><strong>Central Brain (Central Operation Manager)</strong>: The role of COM is to dynamically plan the workflows required to respond to the specific API requests, identify the tasks needed and assign those to specialised agents effectively able to complete the requested workload.</li><li><strong>Director Agents</strong>: Agents that have the “broader picture” in mind and are responsible for higher-level decision-making. Interpret requiremetns and/or insights from multiple Sensors to shape decisions and oversee overall operations.</li><li><strong>Sensor Agents</strong>: Intelligent tools that perform specific, focused tasks. Primarily responsible for gathering, interpreting, and transmitting data, i.e., credential validation, account setup, notification; these tools might have light processing capabilities and can be combined and customized dynamically.</li></ul><h3>Why Agentic APIs? The Benefits of Collaborative Intelligence in API Management</h3><p>Agentic APIs introduce a number of key advantages, making them suitable for complex, dynamic environments:</p><ol><li><strong>Flexibility and Scalability</strong>: The modularity of agentic APIs allows new capabilities to be added or adjusted without extensive re-coding. This means that as new requirements arise, they can be accommodated quickly.</li><li><strong>Contextual Responsiveness</strong>: Rather than following a predefined sequence, agentic APIs adjust workflows in response to specific request parameters. For instance, a financial transaction API could trigger additional fraud checks if unusual activity is detected.</li><li><strong>Efficiency in Resource Utilization</strong>: Agentic APIs reduce the chattiness of API calls and cut down on unnecessary interactions by selecting only the most relevant agents and data points, conserving computing resources and improving response times.</li><li><strong>Enhanced Observability</strong>: By logging actions and decisions autonomously, agentic APIs offer enhanced transparency, which aids in debugging, monitoring, and compliance.</li></ol><h3>Potential Use Cases for Agentic API Services</h3><p>AAS can be applied to a range of domains, particularly in sectors that require real-time responsiveness, adaptability and customization.</p><p>Below are some examples:</p><ul><li><strong>Financial Services</strong>: APIs for fraud detection, account management, and transaction authorization can benefit from agentic services by adapting in real-time to different security levels, user profiles, and transaction histories.</li><li><strong>Healthcare</strong>: In healthcare, agentic APIs could dynamically assess the necessary data retrieval and validation steps for patient records or appointment scheduling, integrating factors like urgency, patient history, and regulatory requirements.</li><li><strong>IoT and Smart Devices</strong>: Agentic APIs can optimise resource usage and manage device interactions based on environmental context, user preferences, and historical data, leading to more efficient IoT ecosystems.</li><li><strong>Customer Experience and Personalisation</strong>: In personalised marketing or support, agentic APIs can dynamically select workflows to tailor customer interactions based on prior preferences, engagement patterns, and feedback.</li></ul><h3>Challenges and Considerations</h3><p>While agentic APIs hold substantial promise, implementing such systems also presents challenges:</p><ol><li><strong>Complexity in Orchestration</strong>: Managing multiple agents and ensuring that they work seamlessly requires robust orchestration and fail-safe mechanisms.</li><li><strong>Security and Compliance</strong>: Agentic APIs must handle data securely and comply with industry regulations, requiring sophisticated access controls and auditing mechanisms.</li><li><strong>Resource Management</strong>: Adaptive intelligence comes with higher computational demands, which could lead to resource bottlenecks if not managed effectively.</li><li><strong>Data Dependency</strong>: Agentic systems require continuous data inputs to make informed decisions. Poor data quality or outdated information can lead to flawed workflows.</li></ol><h3>Opportunities for Agentic APIs</h3><p>The evolution of agents APIs points to a future where systems are more autonomous, intelligent, and user-centric. As organisations might be looking to integrate these intelligent systems, we can anticipate:</p><ul><li><strong>Increased Collaboration Across API Ecosystems</strong>: Agentic models enable APIs to operate in more interconnected ways, creating collaborative ecosystems that enhance data sharing and interoperability.</li><li><strong>Integration of Predictive Analytics</strong>: With machine learning and data insights, future agentic APIs can predict needs and proactively adapt workflows, offering even greater value.</li><li><strong>Standardization Efforts</strong>: Standards in agentic API architecture, tools, and protocols are likely to emerge, which will accelerate adoption and drive innovation across sectors.</li></ul><h3>Towards Smarter, Adaptive API Ecosystems</h3><p>AAS represent an exciting frontier in the evolution of API ecosystems. By embedding APIs with collaborative intelligence and autonomous decision-making, organisations can achieve a new level of flexibility, responsiveness, and customisation.</p><p>These advancements not only streamline operations but also create opportunities for richer, more meaningful interactions between systems and users.</p><p>As more industries might adopt an agentic approach, the boundaries of what’s possible in AAS will continue to expand, fostering a future where APIs don’t just connect services but also think, adapt, and collaborate intelligently.</p><h3>Looking Ahead</h3><p>This exploration of AAS introduces a powerful paradigm in collaborative intelligence for API ecosystems.</p><p>Upcoming articles will explore: potential solution architecture to scale AAS, challenges details and potential mitigations, and ethical considerations that influence this innovative approach.</p><p>We’ll also implement a PoC application using Lot, this will allow to understand the considerations to be made and the implementation complexity of context-aware APIs.</p><p>Stay tuned as we uncover the specifics behind the principles introduced today!</p><h3>References</h3><ul><li>Gradient Flow, Forrester, and DAIR Institute provide further reading on AI in APIs and agentic models.</li><li>Additional case studies and resources on agentic AI and multi-agent systems are available through <a href="https://thegradient.pub/">The Gradient</a> and <a href="https://www.forrester.com/report/with-agentic-ai-generative-ai-is-evolving-from-words-to-actions/RES181290">Forrester</a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f021017cb0ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Collaborative Intelligence]]></title>
            <link>https://quirino-brizi.medium.com/unlocking-collaborative-intelligence-e5e7f1884443?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5e7f1884443</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[task-management]]></category>
            <category><![CDATA[collaborative-ai]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[gen-ai-tools]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 19:22:31 GMT</pubDate>
            <atom:updated>2024-10-14T19:22:31.729Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s evolving digital landscape, the need for dynamic, intelligent systems is greater than ever.</p><p><strong>Lot</strong>, an innovative TypeScript-based library, stands out as a flexible framework designed for orchestrating intelligent agents to tackle complex tasks.</p><p>Whether the type and level of intelligence you need, <strong>Lot</strong> provides a platform that simplifies the integration of agent collaboration into your projects.</p><p>By the end of this article, you’ll have a clear understanding of Lot’s capabilities and be ready to leverage its potential in your own applications.</p><h3>Why Choose Lot for Collaborative AI?</h3><p>Lot isn’t just another AI framework; it represents a collaborative intelligence approach. By breaking down tasks into manageable pieces and distributing them across intelligent agents, Lot ensures an efficient division of labour.</p><p>Each agent is designed to handle, with a specialised intelligence, a specific domain or task type, making it easier to scale operations while maintaining precision and performance.</p><p>Imagine a scenario where a project requires multiple steps — data validation, API interaction and reporting, AI-driven cloud services, complex resource management, automated decision-making, team-based strategy games, etc.</p><p><em>Lot seamlessly orchestrates</em> agents to perform the tasks at hand, ensuring efficiency and accuracy.</p><h3>What Makes Lot Unique?</h3><p>Lot has been designed to empowers developers to:</p><ul><li>Coordinate intelligent agents interfacing with multiple AI models (e.g., LLMs, Machine Learning APIs) and specialised in different tasks.</li><li>Solve complex multi-step problems through task-based dynamic leadership.</li><li>Achieve higher accuracy, flexibility, and efficiency in AI-driven solutions.</li></ul><h4>1. Task Delegation with Manager Agents</h4><p>Amongst others, Lot introduces a Manager agent that acts as a central task delegation system. This agent leverages its AI brain, which is the decision-making system each agent uses, to assign tasks to specific agents based on predefined roles and capabilities.</p><p>For example, a Resource Provisioning Agent would be responsible for tasks like creating new users or provisioning services.</p><p>The flexibility of Lot’s task management system allows users to create workflows that can adapt to both simple and complex requirements.</p><pre>it(&#39;completed tasks assigned by a manager&#39;, async () =&gt; {<br>  const manager: Agent&lt;string, string&gt; = new ManagerAgent(new ManagerBrain())<br>  const task: Task&lt;string, string&gt; = new Task(<br>    TaskType.DefinesAndAllocateTasks,<br>    `Create a new user based on the following information:<br>  <br>  Name: New User<br>  Role: Admin`,<br>    new Expectation(&#39;the new resource is created&#39;, 1),<br>    &#39;Create a new resource&#39;<br>  )<br>  const lot: Lot&lt;string, string&gt; = new Lot([manager])<br>  <br>  const answers: Answer&lt;string&gt;[] = await lot.crackOn([task], Dynamic.CentralisedTaskDelegation)<br>  const actual: Answer&lt;string&gt; = answers[0]<br>  expect(actual.getContent()).to.be.eq(&#39;New User has been created with role Admin&#39;)<br>})</pre><h4>2. Asynchronous Task Handling</h4><p>The distributed agent architecture allows tasks to be handled asynchronously, making it ideal for use cases where a task might not immediately provide the final answer but requires further refinement or additional data gathering.</p><h4>3. Extensibility</h4><p>Lot’s design <em>isn’t limited to language models or predefined AI tools</em>. It can be extended to handle non-language models, such as image recognition, database interactions, or any API-driven service.</p><p>This versatility makes Lot suitable for a wide range of applications, from AI-driven research to enterprise-level automation.</p><h3>A Look Under the Hood</h3><p>Lot’s architecture is built around brain strategies. Each agent possesses a ‘Brain’ that processes the task in line with its specific tools.</p><p>In the example provided below, a user creation task is delegated to an agent, which uses the appropriate tool to provision a new user.</p><p>This modular approach ensures that Lot can easily integrate new tools as they become available.</p><pre>class ManagerBrain extends Brain&lt;string, string&gt; {<br>  public async evaluate(instruction: Instruction&lt;string, string&gt;): Promise&lt;Thought&lt;string&gt;&gt; {<br>    const owner: ResourceProvisioningAgent&lt;string, string&gt; = new ResourceProvisioningAgent(new ToolBrain()).addTools(<br>      new UserProvisioningTool(&#39;userProvisioning&#39;, &#39;Allows to provision new users&#39;)<br>    )<br>    const assignedTask: AssignedTask&lt;string, string&gt; = new AssignedTask(<br>      TaskType.ResourceProvisioning,<br>      instruction.asString(),<br>      instruction.getExpectation(),<br>      &#39;provision a new user&#39;,<br>      owner<br>    )<br>    return new Thought(<br>      `${owner.getName()} will use userProvisioning tool to provision the new user, ${owner.getName()} is responsible for extracting username and password`,<br>      1,<br>      instruction.getExpectedConfidenceThreshold()<br>    ).addTasks(assignedTask)<br>  }<br>}</pre><p>In this snippet, we see the central orchestration system, the ManagerBrain, acting like a project manager in the real world. It assesses the task at hand and assigns the right person — or in this case, the right agent — to get the job done.</p><p>The implementation is admittedly quite simple, but it demonstrates how an agent brain can be defined based on the current requirement and therefore <em>evolve and adapt</em>. You can, for instance, define your brain using LAM (Large Action Models) or your very own CNN (Convolutional Neural Network) or a rule engine; just extend the base Brain!</p><p>The result? A clean and efficient way of managing task flow across different agents.</p><h3>Visualising Lot’s Output</h3><p>In the image below, we see Lot in action, efficiently assigning and processing tasks.</p><p>From the task assignment to the creation of a new user, Lot’s transparent process allows developers to track and refine the steps in real time.</p><p>These images underscore Lot’s capability to manage complex tasks in an organised, modular fashion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcSzw77BwqiG__zAiZB-yQ.png" /><figcaption>Fig. 1 — Lot execution logs</figcaption></figure><p>The test case from which the logs are generated can be found <a href="https://gitlab.com/iucteam/lot/-/blob/main/src/test/ts/integration/CentralisedTaskDelegationOrchestratorTest.ts">here</a>.</p><h3>How to Get Started</h3><p>Getting started with Lot is simple. Its modular design means you can add agents as needed and customise them based on your project’s requirements.</p><ol><li><strong>Install Lot</strong>: Clone the repository and install the required dependencies.</li><li><strong>Create Agents</strong>: Define the agents responsible for different tasks.</li><li><strong>Define Tasks</strong>: Create tasks and let the Manager Brain distribute them across your agents.</li></ol><p>For more examples, use cases and details, explore Lot’s <a href="https://gitlab.com/iucteam/lot/-/tree/main">GitLab repository</a>.</p><h3>Final Thoughts</h3><p><strong>Lot</strong> is more than a framework — it’s a platform designed for collaborative intelligence.</p><p>By allowing for easy integration and extending task-based workflows, Lot can open the door to new patterns for developing API services as well as modern AI-driven applications.</p><p>Whether you’re automating cloud services, provisioning resources, or coordinating complex tasks, Lot’s flexible agent-based approach provides the tools you need to succeed.</p><p>Ready to explore the power of Lot? We welcome contributions and ideas from the community!</p><p>Whether you’re looking to extend its capabilities or refine existing features, join us on <a href="https://gitlab.com/iucteam/lot/-/tree/main">GitLab</a> and help shape the future of collaborative intelligence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5e7f1884443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generating C4 Diagrams with LLMs: An Overview and Future Directions]]></title>
            <link>https://quirino-brizi.medium.com/generating-c4-diagrams-with-llms-an-overview-and-future-directions-24c3dae62431?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/24c3dae62431</guid>
            <category><![CDATA[c4-model]]></category>
            <category><![CDATA[plantuml]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 21:15:08 GMT</pubDate>
            <atom:updated>2024-12-23T12:13:56.284Z</atom:updated>
            <content:encoded><![CDATA[<p>C4 diagrams provide a structured method for visualising complex software architectures by breaking down systems into containers, components, and contexts. Manually creating these diagrams can be time-consuming, but advancements in natural language processing (NLP) offer a path to automate this task.</p><p>Building on the concepts in the recent paper <a href="https://arxiv.org/abs/2310.12128"><em>DiagrammerGPT</em></a>, this article discusses an LLM-based solution that uses <a href="https://plantuml.com/">PlantUML</a> and <a href="https://github.com/plantuml-stdlib/C4-PlantUML">PlantUML C4</a> to generate <a href="https://c4model.com/">C4 diagrams</a> from textual descriptions.</p><h3>System Overview</h3><p>My solution leverages <a href="https://ai.google.dev/gemma">Google Gemma7B</a> Large Language Model (LLM) for the tasks of designing and auditing.</p><p>The design and audit task are executed in a loop creating and iterative process that allows to refine entities and their relationships, and ultimately providing a diagram layout that accurately represents of the received caption — the description of the diagram to generate.</p><p>The generated design is then automatically converted to its <a href="https://plantuml.com/">PlantUML</a> representation.</p><h4>Designer</h4><p>The designer is responsible for creating the diagram layout describing entities and relationships in a form that is tractable by the LLM. For this reason during the generation process entities and relationships are separated into clearly defined groups.</p><p>Inside each group, entities and relationships are defined using <a href="https://plantuml.com/">PlantUML</a> and <a href="https://github.com/plantuml-stdlib/C4-PlantUML">PlantUML C4</a> syntax.</p><p>The LLM is instructed using a few-shot prompt, which includes:</p><ul><li>Generation rules: Guidelines for creating C4 diagrams.</li><li>Examples: A set of examples illustrating how the diagrams should be generated.</li><li>Caption and feedback: The provided caption, and if applicable, feedback from the auditor on previously generated diagrams.</li></ul><h4>Auditor</h4><p>The auditor is responsible for evaluating the generated list of entities and relationships for correctness.</p><p>Same as per the designer the diagram layout describing entities and relationships is provided in a form that is tractable by the LLM. For this reason during the audit process entities and relationships are separated into clearly defined groups.</p><p>During the audit process the LLM is instructed using few-shot prompt that includes:</p><ul><li>Generation rules: The same guidelines used by the generator.</li><li>Examples: Both correct and incorrect diagram generations.</li><li>Generated diagram and caption: The diagram produced by the generator and the original caption.</li></ul><p>The auditor outputs a statement indicating whether the generated diagram is correct. If the diagram is lacking, feedback is given to the generator for further iterations.</p><h4>Generated diagrams</h4><p>Below are examples of the generated C4 diagrams.</p><p><strong>Caption</strong>: generate a container diagram with a the following typescript services: a game rule service responsible for validating game actions, an account service responsible for managing user accounts which uses DynamoDB and connects to it via https, a game service responsible for maintaining the game status and that uses DynamoDB as a storage and a notification service responsible for sending notification via SNS software system. All services apart from notification service are exposed via AWS API Gateway. Account service and Game Service push notification to a queue based on AWS SNS while notification service reads from the same queue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*DvUKKeimyQ6dfr7PnGYdvQ.png" /></figure><p><strong>Caption</strong>: generate a diagram composed by an api gateway responsible for the api management which exposes via https two services: payment service and cart service. the cart service is responsible for managing customers shopping cart is built using springboot and is connected to a postgresql db responsible for storing cart information, the payment service is responsible for orchestrating payments is implemented using typescript and is connected to stripe software system using https</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*g_oJ-5gnHd5w_MaQSC0qOg.png" /></figure><h3>Integration with RAG</h3><p>As evolution for the system I am planning to integrate with <a href="https://en.wikipedia.org/wiki/Prompt_engineering#Retrieval-augmented_generation">Retrieval-Augmented Generation</a> (RAG) to enhance the generator with specialised context.</p><p>By using RAG, the generator will access domain-specific knowledge base, enabling for more accurate and tailored diagrams.</p><p>Furthermore, RAG allows the system to extend its capabilities by offering textual assessments of how the generated diagrams align with accepted or standard patterns.</p><p>This feature enhances the auditor’s feedback, helping users understand the strengths and weaknesses of the generated diagrams in relation to best practices.</p><h3>Benefits and Challenges</h3><p>My system offers several benefits, including:</p><ul><li>Efficiency: Generating diagrams in a single step reduces the time needed to create visual representations of software architectures.</li><li>Consistency: The use of LLMs ensures consistent application of diagram generation rules across different diagrams.</li><li>Scalability: Automated diagram generation can handle large volumes of textual descriptions, making it scalable for complex projects.</li><li>Specialised Knowledge: Integration with RAG enables access to specialised context for improved diagram accuracy.</li></ul><p>However, there are challenges:</p><ul><li>Model Accuracy: Ensuring LLMs’ accuracy is essential to avoid errors in diagram generation and auditing.</li><li>Iterative Process: Although the system can generate diagrams in a single step, multiple iterations may be needed to perfect results based on auditor feedback.</li><li>Knowledge Base Management: Building and maintaining a robust knowledge base for RAG requires careful curation to ensure high-quality, up-to-date information.</li></ul><h3>Conclusion</h3><p>My LLM-based system using PlantUML and Google Gemma7B demonstrates how modern NLP techniques can revolutionise the creation of C4 diagrams from textual descriptions.</p><p>By integrating my system with RAG, the accuracy and specialisation of diagram generation can be enhanced, as well as provide valuable textual assessments.</p><p>Despite the challenges, the benefits in terms of efficiency, consistency, and scalability make this approach a promising path for automating software architecture visualisation.</p><p>If you have any questions or would like to discuss my work further, please feel free to reach out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24c3dae62431" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An attempt to design and develop for portability]]></title>
            <link>https://quirino-brizi.medium.com/an-attempt-to-design-and-develop-for-portability-d7c15cc8a6c2?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7c15cc8a6c2</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[open-api]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 08:31:19 GMT</pubDate>
            <atom:updated>2023-04-16T08:38:23.256Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the aspects that, as an architect, I believe should always be taken into consideration is the large variety of factors that can impact the evolution of the software ecosystem we are designing and implementing and as a result the difficulty to select technologies and methodologies that allows for such evolution.</p><p>What in my opinion mitigates the impacts of the uncertainty brought by the evolutionary unknowns is the ability to deliver software systems that can be executed upon different mediums.</p><p>This allows to minimise the required effort for both executing any eventual migration to a different technological stack and maintaining and evolving the service afterwards.</p><p>From the consideration above I started designing DinO Serverless, I picked the name “serverless” to indicate that the developer should be agnostic of the target delivery platform — medium. The framework should completely abstract the underlying medium as the server infrastructure is abstracted in a serverless cloud-native development model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*53-Y5U07qB-hPWfupxWCKA.png" /></figure><p>The requirements I initially defined for the framework are:</p><ul><li>Should be designed for portability and to limit vendor and technology lock-in</li><li>Should provide a form of DI/IoC</li><li>Should provide the ability to define APIs using documentation first approach</li><li>Should provide the ability to run the service as stand-alone or integrating with function based services</li><li>Should provide the ability to use multiple cloud providers</li><li>Should provide the ability to handle both generic events and defined APIs coexisting or not</li></ul><p>Following the requirements defined DinO Serverless is evolving into a lightweight framework that provides a simplified approach to develop services that can be run either leveraging Express or in integrating with AWS Lambda or GCP Functions and that allows to define the exposed APIs using OpenAPI 3.x.</p><p>Additional functionalities that are provided by the framework are:</p><ul><li>Built-in input and output validation based on OpenAPI definition</li><li>Ability to define custom middlewares as a before and after execution aspect for the current API execution handler</li><li>Ability to handle stream events mapping it to: a default handler method or an OpenAPI defined handler mapped to “/” path and POST HTTP method</li><li>Swagger UI that allows for simplified local development and demonstration of implemented features</li></ul><p>The evolution of the framework is at the moment geared towards better event handling, in particular the following requirements are set:</p><ul><li>Allow to define multiple event handlers based on configurable aspect of the received event</li><li>Allow to de-structure top-level event properties as method handler parameters</li></ul><p>If you followed me until here you are probably interested, in this case you can find DinO Serverless on <a href="https://gitlab.com/codesketch/dino-serverless">GitLab</a> and <a href="https://www.npmjs.com/package/dino-serverless">NPM</a>.</p><p>In the next series of articles I will introduce more practical aspects that will describe how to use DinO Serverless into a brand new or existing NodeJS or Typescript application. In the meantime you can refer to <a href="http://.com/codesketch/serverless-template/">this work-in-progress development template</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7c15cc8a6c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effective communication using architectural diagrams]]></title>
            <link>https://quirino-brizi.medium.com/effective-communication-using-architectural-diagrams-3349d3e6fff0?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/3349d3e6fff0</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[c4-model]]></category>
            <category><![CDATA[architectural-design]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 14:01:43 GMT</pubDate>
            <atom:updated>2022-11-22T14:01:43.293Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m a strong proponent of DDD principles and overall everything that creates an ubiquitous language and a common understanding.</p><p>In my experience I struggled to create such common ground using diagramming techniques like UML and through different and improvised approaches, I always needed to create something similar to C4, which I now use with a slight, but to me, fundamental change.</p><h4>Using C4 following the proposed layering structure, part of my stakeholders struggle to understand the jump between context and container diagrams.</h4><p>While presenting the solution architecture, going from context to container diagrams, domain experts that do not necessarily have technical background or are simply not interested in technicalities struggle to follow the conversation and as a result, are not able to effectively provide feedback.</p><p>This is a fundamental issue as it creates a communication breakdown socialising functional requirements and so a suboptimal definition of non-functional ones.</p><p>The change I found to be effective is to depict the four layers as:</p><ul><li>first layer, the context of the whole system — as proposed by C4</li><li>second layer, the functional bounded context components of the system</li><li>third layer, hosts the container definition — as proposed by C4</li><li>fourth layer, the components — as proposed by C4</li></ul><p>effectively shifting the representation of one level.</p><p>As an example, if I’m designing a marketplace solution I would propose the following diagrams:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*MMxpUxwB3RNz2QYCZ0J21Q.png" /><figcaption>System Context Diagram</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3iV3ljt0JDW-PNtzbWJv5w.png" /><figcaption>Functional Bounded Context Diagram</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z0PEaKYII4xWZ7X7IbOq1g.png" /><figcaption>Order System Container Diagram</figcaption></figure><p><strong>Each system will be described using both container and component diagrams providing details for teams responsible for the delivery.</strong></p><p>The benefits I noticed following the proposed approach are:</p><ul><li>Non technical domain experts and technical people are able to share a wider conversational ground, improving the overall quality of delivery</li><li>The improved information flow allows for critical thinking resulting in innovative solutions</li><li>All four levels are now easily maintainable. I tend, and I see a growing number of people that reports the same, to avoid using layer four, code, of the C4 proposed approach as it is difficult to maintain</li><li>The whole representation is now coherent as there is no need to bring into the mix a different diagramming technique</li><li>Improved readability and maintainability of the solution architecture as the Functional Bounded Context provides a view of the interactions across different systems</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3349d3e6fff0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dino, a Dependency Injection Framework for NodeJS]]></title>
            <link>https://quirino-brizi.medium.com/dino-a-dependency-injection-framework-for-nodejs-e6b6e7e611e9?source=rss-f52d69230765------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6b6e7e611e9</guid>
            <category><![CDATA[openapi3]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[inversion-of-control]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <dc:creator><![CDATA[Quirino Brizi]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 15:51:09 GMT</pubDate>
            <atom:updated>2021-02-26T16:11:01.925Z</atom:updated>
            <content:encoded><![CDATA[<p>Dino is a Dependency Injection and Invertion of Control framework for NodeJS applications that can be instructed using both configuration and programmatic approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtbuGGmgaF8rx6gEPUzLIQ.png" /><figcaption>dino-core</figcaption></figure><p>Dino focuses on simplicity and productivity making everyone’s programming experience fun, safe and quick.</p><p>With Dino you can:</p><ul><li>Build micro-services, Dino Express based on Dino and OpenAPI 3.0 provides capabilities that make development fast and fun taking full advantage of the micro-services architecture possibilities</li><li>Build serverless, Dino Serverless based on Dino and Dino Express allows you to easilly build functions on AWS and GCP</li></ul><h3>Start a new Project</h3><p>This section presents the creation of a context-scan based project, context-scan is automatically enabled when no context configuration is provided or the contextScan configuration entry is set to true as part of the context configuration.</p><p>Context configuration can be provided as a parameter of the run method</p><pre>require(&#39;dino-core&#39;)<br>  .run(&#39;example/dino.yml&#39;)<br>  .resolve(&#39;testComponent&#39;).printEnvironment();</pre><p>By default Dino assumes that the project uses the following folder structure,</p><pre>root<br> |_ index.js (the entrypoint for your application)<br> |_ src<br>   |_ main<br>     |_ node (here you can define your application sources)<br>     |_ resources (i.e. configuration files)<br>   |_ test<br>     |_ node (here you can define your application test sources)</pre><p>if required, this can be configured using DINO_CONTEXT_ROOT environment variable or the contextRoot configuration entry as part of the context configuration.</p><p>Once context-scan is enabled Dino will populate its context with Component, Service, Repository and Configuration classes found on the specified folder trees.</p><p>Dino will automatically add to the application context a configuration context that can be accessed using the environment keyword. Configuration will be loaded from the resource defined with --dino.config.path command line switch or DINO_CONFIG_PATH environment variable.</p><p>Dino can be installed using npm:</p><pre>npm install dino-core</pre><p>Once this step is completed your components can be defined, extending your class from Component class.</p><pre>const {Component} = require(&#39;dino&#39;);</pre><pre>class BaseComponent extends Component {<br>  constructor({ environment, fs }) {<br>    <em>super</em>();<br>    <em>this</em>.environment = environment;<br>    <em>this</em>.fs = fs;<br>  }<br>  <br>  printEnvironment() {<br>    console.log(<em>JSON</em>.stringify(<em>this</em>.environment));<br>    console.log(&#39;&gt;&gt; do I have fs as well? &#39;, undefined != <em>this</em>.fs);<br>  }<br>}<br>module.exports = BaseComponent;</pre><p>While your configurations can be defined extending your class from Configuration class.</p><pre>const {Scope, Resolver, Configuration} = require(&#39;../../../src/main/node/main&#39;);</pre><pre><br>class TestConfiguration extends Configuration {<br>  configure() {<br>    return <em>this</em>.asComponentDescriptor(require(&#39;fs&#39;), Scope.SINGLETON, Resolver.VALUE, &#39;fs&#39;);<br>  }<br>}</pre><pre>module.exports = TestConfiguration;</pre><p>Once the implementation is completed it can be run by adding the following code to your index.js</p><pre>require(&#39;dino-core&#39;)<br>  .run()<br>  .resolve(&#39;baseComponent&#39;).printEnvironment();</pre><p>That’s it!</p><p>You can find a working example based on the above code <a href="https://gitlab.com/codesketch/dino/-/tree/master/examples/contextscan"><strong>here</strong></a>, and a bit more complex example based on Dino and Dino Express <a href="https://gitlab.com/codesketch/dino-express-getting-started"><strong>here</strong></a>.</p><p>Dino is currently used in production @ <a href="https://applaudart.com/">ApplaudArt</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6b6e7e611e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>