agentleFS
MicrosoftKnown publishermicrosoft/multi-agent-marketplace/docs/concepts/agents.md

multi-agent-marketplace / concepts

AGENTS.md192 starsChanged 14 months agoMITView on GitHub

Agents are autonomous actors that make decisions and interact in the marketplace. Each agent has a profile, runs in a continuous loop, and executes actions through the platform. For our marketplace, we created two basic agents that interact: a CustomerAgent and a BusinessAgent. Each agent inherits from a BaseAgent class which handles the agent loop to register the agent, then continuously run by calling the step() function. The customer agent implements shopping behavior: searches for businesses, sends inquiries, evaluates proposals,…

The file

Files
agents.md

Agents

Agents are autonomous actors that make decisions and interact in the marketplace. Each agent has a profile, runs in a continuous loop, and executes actions through the platform.

Marketplace Agents

For our marketplace, we created two basic agents that interact: a CustomerAgent and a BusinessAgent. Each agent inherits from a BaseAgent class which handles the agent loop to register the agent, then continuously run by calling the step() function.

Agent Lifecycle

  1. Initialization: Agent created with profile and server URL
  2. Registration: Agent registers with marketplace server
  3. Active Loop: Agent repeatedly executes step() method
  4. Shutdown: Agent receives shutdown signal and cleanly disconnects

CustomerAgent

The customer agent implements shopping behavior: searches for businesses, sends inquiries, evaluates proposals, and makes purchases.

class CustomerAgent(BaseSimpleMarketplaceAgent):
    async def step(self):
        # Use LLM to decide next action
        action = await self._generate_customer_action()

        # Execute the chosen action
        if action:
            await self._execute_customer_action(action)

BusinessAgent

Implements service behavior: monitors for customer messages, responds to inquiries, creates order proposals, and processes payments.

class BusinessAgent(BaseSimpleMarketplaceAgent):
    async def step(self):
        # Fetch new messages from customers
        messages = await self.fetch_messages()

        # Process and respond to each customer
        if messages:
            await self._handle_customer_messages(messages)
        else:
            await asyncio.sleep(self._polling_interval)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.