AYN - Agents You NeedΒΆ

The meta-framework for AI agent interoperability

Think β€œpip + Docker Hub + Postman” for AI agents.

License: MIT Python 3.8+

🎯 Vision¢

AYN solves the agent discovery and integration problem by providing:

  1. Unified Search across GitHub, HuggingFace, and awesome lists

  2. Standard Controller Interface for invoking any agent

  3. HTTP/REST Export via FastAPI and LangServe

  4. MCP Support for Model Context Protocol integration

  5. Custom Actions for ChatGPT and Claude

Status: early. The registry, the controller interface and the FastAPI/MCP/ChatGPT exports work. The GitHub, Hugging Face and awesome-list searchers are not implemented (they raise NotImplementedError, and AgentRegistry.search warns and skips them), and the CrewAI/LangChain/AutoGen controllers are placeholders that echo their input like the generic controller. See the roadmap below. Today registry.search finds agents you registered yourself.

πŸš€ Quick StartΒΆ

from ayn import AgentRegistry, BaseAgentController, export_agent_full_stack

# 1. Search for agents
registry = AgentRegistry()
results = registry.search("data preparation")

# 2. Create controller
controller = BaseAgentController.from_metadata(results[0])

# 3. Use the agent
result = controller.invoke({"data": [1, 2, 3]})

# 4. Export with all integrations
artifacts = export_agent_full_stack(
    controller, results[0], export_fastapi=True, export_mcp=True, export_chatgpt=True
)

πŸ“¦ InstallationΒΆ

# Basic installation
pip install ayn

# With FastAPI support
pip install ayn[fastapi]

# With LangServe support
pip install ayn[langserve]

# Full installation
pip install ayn[all]

πŸ“š DocumentationΒΆ

πŸ—οΈ ArchitectureΒΆ

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      AYN Framework                          β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚   Search     β”‚  β”‚  Controller  β”‚  β”‚    Export    β”‚    β”‚
β”‚  β”‚   Registry   β”‚  β”‚  Interface   β”‚  β”‚    Layer     β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚         β”‚                  β”‚                  β”‚            β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚  GitHub     β”‚  β”‚  BaseAgent      β”‚  β”‚  FastAPI  β”‚    β”‚
β”‚  β”‚  HuggingFaceβ”‚  β”‚  Controller     β”‚  β”‚  LangServeβ”‚    β”‚
β”‚  β”‚  AwesomeListsβ”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                          β”‚
β”‚                                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚  MCP Layer   β”‚  β”‚   Actions    β”‚  β”‚  Frameworks  β”‚    β”‚
β”‚  β”‚  Tools       β”‚  β”‚   ChatGPT    β”‚  β”‚  CrewAI      β”‚    β”‚
β”‚  β”‚  Resources   β”‚  β”‚   Claude     β”‚  β”‚  LangChain   β”‚    β”‚
β”‚  β”‚  Prompts     β”‚  β”‚   Gemini     β”‚  β”‚  AutoGen     β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸŽ“ ExamplesΒΆ

See the examples/ directory for complete working examples:

πŸ—ΊοΈ RoadmapΒΆ

Phase 1: Core βœ… (Complete)ΒΆ

  • βœ… Agent metadata and registry

  • βœ… Standard controller interface

  • βœ… FastAPI export

  • βœ… MCP server support

  • βœ… ChatGPT/Claude actions

Phase 2: Search (In Progress)ΒΆ

  • ⏳ GitHub API integration

  • ⏳ HuggingFace search

  • ⏳ Awesome list parsing

  • ⏳ Caching and indexing

Phase 3: Installation (TODO)ΒΆ

  • ⬜ Dependency management (uv/pipx)

  • ⬜ Docker support

  • ⬜ Environment isolation

  • ⬜ Version management

Phase 4: Frameworks (TODO)ΒΆ

  • ⬜ CrewAI integration

  • ⬜ LangChain/LangGraph integration

  • ⬜ AutoGen integration

  • ⬜ SmolAgents integration

See AYN_IMPLEMENTATION_ROADMAP.md for detailed plans.

🀝 Contributing¢

Contributions welcome! Key areas:

  1. Searchers: Implement real API integrations

  2. Controllers: Add framework-specific controllers

  3. Export: Additional export formats

  4. Tools: MCP tools and resources

  5. Documentation: Examples and guides

πŸ“„ LicenseΒΆ

MIT License - see LICENSE file

πŸ™ AcknowledgmentsΒΆ

Built on top of:

  • FastAPI for HTTP APIs

  • LangServe for LangChain integration

  • Model Context Protocol (Anthropic)


AYN - Making AI agents discoverable, interoperable, and deployable. πŸš€

This documentation as a single file: ayn.md (Markdown, for agents).

built 2026-11-24 04:38 UTC from bb6d744 (main) Β· ayn 0.0.4 Β· about this build