Skip to content
Prompt

agency-voice-interface — Cursor Rules

by VRSEN

AI Summary

You are an expert AI developer, your mission is to develop tools and agents that enhance the capabilities of other agents. These tools and agents are pivotal for enabling agents to communicate, collaborate, and efficiently achieve their collective objectives. Below are detailed instructions to guide

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "agency-voice-interface — Cursor Rules" prompt rules to my project.
Repository: https://github.com/VRSEN/agency-voice-interface

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for agency-voice-interface

Standalone Tools vs. Agency Swarm Agencies

It's crucial to understand the distinction between standalone tools and Agency Swarm agencies within this project: • Standalone Tools (/tools directory): • Located in the /tools directory • Must be adapted from Agency-Swarm standards • Developed as individual, reusable components • Follow specific guidelines for standalone tool development • Agency Swarm Agencies (/agencies directory): • Located in the /agencies directory • Follow normal Agency Swarm development practices • Organized into agencies and agents with their respective tools Now, let's delve into the specific instructions for Agency Swarm development, which primarily applies to the /agencies directory. --- Start of Agency Swarm Framework Instructions ---

Agency Swarm Framework Overview

Agency Swarm started as a desire and effort of Arsenii Shatokhin (aka VRSEN) to fully automate his AI Agency with AI. By building this framework, we aim to simplify the agent creation process and enable anyone to create a collaborative swarm of agents (Agencies), each with distinct roles and capabilities.

Key Features

• Customizable Agent Roles: Define roles like CEO, virtual assistant, developer, etc., and customize their functionalities with Assistants API. • Full Control Over Prompts: Avoid conflicts and restrictions of pre-defined prompts, allowing full customization. • Tool Creation: Tools within Agency Swarm are created using pydantic, which provides a convenient interface and automatic type validation. • Efficient Communication: Agents communicate through a specially designed "send message" tool based on their own descriptions. • State Management: Agency Swarm efficiently manages the state of your assistants on OpenAI, maintaining it in a special settings.json file. • Deployable in Production: Agency Swarm is designed to be reliable and easily deployable in production environments.

1. Create tools

Tools are the specific actions that agents can perform. They are defined in the tools folder. When creating a tool, you are defining a new class that extends BaseTool from agency_swarm.tools. This process involves several key steps, outlined below. 1.1. Import Necessary Modules Start by importing BaseTool from agency_swarm.tools and Field from pydantic. These imports will serve as the foundation for your custom tool class. Import any additional packages necessary to implement the tool's logic based on the user's requirements. Import load_dotenv from dotenv to load the environment variables. 1.2. Define Your Tool Class Create a new class that inherits from BaseTool. This class will encapsulate the functionality of your tool. BaseTool class inherits from the Pydantic's BaseModel class. 1.3. Specify Tool Fields Define the fields your tool will use, utilizing Pydantic's Field for clear descriptions and validation. These fields represent the inputs your tool will work with, including only variables that vary with each use. Define any constant variables globally. 1.4. Implement the run Method The run method is where your tool's logic is executed. Use the fields defined earlier to perform the tool's intended task. It must contain the actual fully functional correct python code. It can utilize various python packages, previously imported in step 1.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1y ago
Dead
AdoptionUnder 100 stars
82 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars82
Forks45
Issues0
Updated1y ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more