# Foundational Agents

## Multi- Agent systems <a href="#id-3f16" id="id-3f16"></a>

**Multi-agent systems (MAS)** are composed of multiple interacting intelligent agents. These autonomous entities can sense their environment, learn models, make decisions, and take actions. Agents in an MAS can be software programs, robots, drones, sensors, humans, or a combination of these. Here are some key points about multi-agent systems:

1. **Composition**:

* MAS consists of several agents, each with specialized capabilities and goals.
* These agents collaborate to solve complex tasks that go beyond what a single agent can achieve.

2. **Key Capabilities and Benefits**:

* **Flexibility and Scalability**: MAS can adapt to changing environments by adding, removing, or modifying agents, making them highly scalable.
* **Robustness and Reliability**: Decentralization ensures continued system operation even with some failed components.
* **Self-Organization and Coordination**: Agents can self-organize based on rules for division of labor, coordinated decision-making, and conflict resolution.

***

<figure><img src="https://2189205881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNPz0qKGRYEorHLeR2LZb%2Fuploads%2Ftj04H7jSAnypIfH5kxib%2Fimage.avif?alt=media&#x26;token=a21584a1-872d-4d14-ad06-8ecbcf7013b3" alt=""><figcaption></figcaption></figure>

## INFERENCE AGGREGATOR AGENT <a href="#b206" id="b206"></a>

**Inference aggregator agents** play a crucial role in combining the outputs of multiple language models (LLMs) to produce refined, high-quality responses. **Inference Aggregator Agents works same as 1inch which** provides the best token swap rates by finding optimal trading paths across multiple DEXes.

* **Process**:
* Given a prompt, they send it to multiple LLMs (which can be hosted on different platforms or systems).
* They collect the responses from these LLMs.
* Finally, they use a final LLM to combine these individual responses into an ideal answer.

**Benefits**:

* **Diverse Inputs**: Aggregating responses from different LLMs leverage their unique strengths.
* **Robustness**: Even if one LLM produces suboptimal output, the aggregation process mitigates its impact.

**Interoperability :**

* **Standardization**: Defining common protocols or APIs for communication is essential.
* **Semantic Mapping**: Creating a semantic model that maps message types (speech acts) to constraints and rational effects.
* **Feasibility Conditions**: Ensuring that sender constraints are satisfied.

**Verification**:

* **Semantic Logic (SL)**: Each message type is mapped to an SL formula defining feasibility conditions and rational effects.
* **Verification Techniques**: Techniques like formal methods, model checking, and runtime monitoring verify agent behaviour.

<figure><img src="https://2189205881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNPz0qKGRYEorHLeR2LZb%2Fuploads%2F7mscluviFWcsC0rWNRNN%2Fimage%20(1).webp?alt=media&#x26;token=5ae480d0-fb82-43db-b3f8-1fa0f723d580" alt=""><figcaption></figcaption></figure>

***

## INTENT BASED AGENTS <a href="#id-00f6" id="id-00f6"></a>

Unlike traditional solvers that operate on explicit commands, AI-powered solvers can understand and efficiently execute complex user intents, even when dealing with nuanced requests. Instead of merely executing transactions based on explicit commands, “intents” allow users to delegate transaction construction and execution to new actors called “solvers.” AI models equipped with natural language processing ON KOBOTO.AI can interpret these intents with a level of nuance far beyond basic instructions.

Some intent work like this , which we going to build the future of AGENTS & better UX for the fragmentation happening at layer 2 . And making MAGICSPENT++ approach more refine through agents .

Bridges & cross-chain solutions act like a duct-tape to solve this but have actually made the UX even more complicated.

For a user with 100 USDC on 3 different L2s that wants to mint an NFT for 300 USDC it’s a nightmare navigating multiple apps for this simple action. Cross-chain zaps don’t help as well since they need the user to bridge to accumulate all their balance to a single chain before they can zap — its just bridging with extra steps.

<figure><img src="https://2189205881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNPz0qKGRYEorHLeR2LZb%2Fuploads%2FDJ9PwaGJlffehL9fMrNy%2Fimage%20(1).avif?alt=media&#x26;token=7d55cacf-5949-4cea-b6f0-fbc70bab420c" alt=""><figcaption></figcaption></figure>

MagicSpend++, a framework to allow users to magically spend on any chain instantly, without worrying about which chains their tokens are on.

MagicSpend++ leverages the existing Account Abstraction standard and builds on Coinbase’s work on MagicSpend — an innovative approach to allow users to leverage their assets held on Coinbase Exchange & utilize them on-chain.

MagicSpend++ fundamentally enables users to have a _Chain Abstracted Balance (CAB)_ instead of isolated token balances across chains. Users can use their CAB to transact instantly on any chain with a signature. No fragmentation, no bridging, no GAS, no latency. It’s magic.

Smart wallet users with MagicSpend++ get:

* A unified single balance across chains that users can spend anywhere
* Completely gas-less experience
* Instant single chain experience — NO CROSS CHAIN, NO BRIDGING, ZERO LATENCY

<figure><img src="https://2189205881-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNPz0qKGRYEorHLeR2LZb%2Fuploads%2FTcWxuqxU5ncPNrXXkplc%2Fimage%20(3).png?alt=media&#x26;token=750ad557-b7fc-418e-b8c7-777a8e28cf82" alt=""><figcaption></figcaption></figure>

Usecases like magicspend with koboto agents and DeFi platforms could all users to employ AI-driven solvers through koboto to uncover intelligent ways to fulfill different intents. For example, an intent such as “I want to buy 10 ETH for no more than $3,500 per ETH” could be addressed by an AI solver that assesses a wide range of market opportunities, potentially taking on minimal risk to maximize profit and value. This would allow DeFi protocols to offer more personalized and efficient financial services, ensuring transactions are executed in alignment with users’ trading goals .
