{"repo":"pompeii-labs/magma","free":true,"listed":false,"github":"https://github.com/pompeii-labs/magma","clone":"git clone https://github.com/pompeii-labs/magma.git","description":"An AI agent framework built to get your agents into an application as fast as possible. Deploy on MagmaDeploy.com or self-host","language":"TypeScript","stars":99,"topics":["agent","agent-based","ai","typescript","magma"],"license":null,"category":"ai-agents","readme_excerpt":"Turn your workflows into a workforce. Create and deploy conversational agents without any of the headaches. 🌋 What is Magma? Magma is a framework that lets you create AI agents without the headache. No complex chains, no confusing abstractions - just write the logic you want your agent to have. Want to try it out? Chat with Dialog, our user research agent built with Magma! ⚡️ Quick Start 1. Install Magma: 2. Create your first agent: 🔥 Key Features - Simple : Build agents in minutes with minimal code - Flexible : Use any AI provider (OpenAI, Anthropic, Groq) - Hosted : Deploy your agents in seconds with the MagmaDeploy platform - Powerful : Add tools and middleware when you need them - Observable : See exactly what your agent is doing 🛠 Examples Add Tools Tools give your agent the ability to perform actions. Any method decorated with @tool and @toolparam will be available for the agent to use. Important Notes : - Every tool method must return a string - Every tool has call as a required parameter, which is the MagmaToolCall object - Tools are executed in sequence Add Middleware Middleware is a novel concept to Magma. It allows you to add custom logic to your agent before or after a tool is executed. This is a great way to add custom logging, validation, data sanitization, etc. Types : - \"preCompletion\": Runs before the LLM call is made, takes in a MagmaUserMessage - \"onCompletion\": Runs after the agent generates a text response, takes in a MagmaAssistantMessage - \"preToolEx","default_branch":null,"files":null,"tree":[],"storefront":"/r/pompeii-labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pompeii-labs/magma/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}