返回顶部
a

ainative-agent-framework

Build multi-agent systems and swarms on AINative. Use when (1) Orchestrating multiple specialized AI agents, (2) Dispatching tasks to OpenClaw agents (aurora, sage, nova, atlas, etc.), (3) Implementing agent-to-agent communication via ACP, (4) Building autonomous workflows with agent handoffs, (5) Collecting RLHF feedback for agent improvement. Closes #1524.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
95
下载量
0
收藏
概述
安装方式
版本历史

ainative-agent-framework

# AINative Agent Framework ## OpenClaw Agent Swarm AINative uses OpenClaw as its local agent gateway. 9 specialized agents are available: | Agent | ID | Specialty | |-------|-----|-----------| | Main | `main` | Orchestration, routing, default | | Atlas Redwood | `atlas` | Infrastructure & deployment | | Lyra Chen-Sato | `lyra` | Frontend & UI | | Sage Okafor | `sage` | Backend & APIs | | Vega Martinez | `vega` | Data & analytics | | Nova Sinclair | `nova` | Security & auth | | Luma Harrington | `luma` | Documentation | | Helios Mercer | `helios` | Performance & optimization | | Aurora Vale | `aurora` | Testing & QA | ## Dispatch Tasks via CLI ```bash # Route to best agent automatically openclaw agent --agent main --message "Review the auth endpoint for SQL injection" # Target a specific agent openclaw agent --agent aurora --message "Write tests for the billing module" openclaw agent --agent sage --message "Add rate limiting to the credits endpoint" openclaw agent --agent nova --message "Audit API key storage for security issues" openclaw agent --agent atlas --message "Check Railway deploy logs for errors" ``` ## Dispatch via Cody Script ```bash # Status check python3 scripts/cody_openclaw.py status python3 scripts/cody_openclaw.py agents # Dispatch a task python3 scripts/cody_openclaw.py dispatch --agent aurora --task "Run test suite for billing module" python3 scripts/cody_openclaw.py dispatch --agent sage --task "Implement POST /api/v1/echo/register" # Send a direct message python3 scripts/cody_openclaw.py message --agent main --message "What is the current test coverage?" ``` ## ACP (Agent Communication Protocol) ```bash # Connect to ACP session directly openclaw acp --session agent:main:main --token YOUR_GATEWAY_TOKEN # Via cody script python3 scripts/cody_openclaw.py acp --session agent:main:main ``` ## Python Agent Pattern Build your own agent that calls AINative APIs: ```python import requests class AINativeAgent: def __init__(self, api_key: str, system_prompt: str): self.api_key = api_key self.system_prompt = system_prompt self.messages = [] def think(self, user_input: str) -> str: self.messages.append({"role": "user", "content": user_input}) resp = requests.post( "https://api.ainative.studio/v1/public/chat/completions", headers={"X-API-Key": self.api_key}, json={ "model": "claude-3-5-sonnet-20241022", "messages": [ {"role": "system", "content": self.system_prompt}, *self.messages ], "max_tokens": 2048, } ).json() reply = resp["choices"][0]["message"]["content"] self.messages.append({"role": "assistant", "content": reply}) return reply def remember(self, fact: str): """Persist something to ZeroMemory.""" requests.post( "https://api.ainative.studio/api/v1/public/memory/v2/remember", headers={"X-API-Key": self.api_key}, json={"content": fact, "memory_type": "episodic"} ) def recall(self, query: str) -> list: """Retrieve relevant memories.""" resp = requests.post( "https://api.ainative.studio/api/v1/public/memory/v2/recall", headers={"X-API-Key": self.api_key}, json={"query": query, "limit": 5} ).json() return [m["content"] for m in resp.get("memories", [])] # Usage agent = AINativeAgent("ak_your_key", "You are a helpful coding assistant.") response = agent.think("How do I implement rate limiting in FastAPI?") agent.remember(f"User asked about rate limiting: {response[:100]}") ``` ## Multi-Agent Handoff Pattern ```python def route_task(task: str) -> str: """Route task to the right OpenClaw agent.""" routing = { "test": "aurora", "security": "nova", "deploy": "atlas", "frontend": "lyra", "backend": "sage", "performance": "helios", "data": "vega", "docs": "luma", } for keyword, agent_id in routing.items(): if keyword in task.lower(): return agent_id return "main" import subprocess def dispatch(task: str): agent_id = route_task(task) subprocess.run(["openclaw", "agent", "--agent", agent_id, "--message", task]) ``` ## RLHF Feedback Collect feedback to improve agent quality: ```bash # Via MCP tool zerodb-rlhf-feedback ``` ```python requests.post( "https://api.ainative.studio/api/v1/public/zerodb/rlhf/feedback", headers={"X-API-Key": "ak_your_key"}, json={ "session_id": "sess-123", "rating": 5, "feedback": "Agent correctly identified the SQL injection vector", } ) ``` ## Monitor Agent Swarm ```bash # Real-time logs python3 scripts/cody_openclaw.py logs --follow # Status dashboard openclaw status ``` ## References - `scripts/cody_openclaw.py` — Cody's OpenClaw control script - `.claude/commands/openclaw-dispatch.md` — /openclaw-dispatch command - `.openclaw/openclaw.json` — Local gateway configuration - `src/backend/app/services/` — Backend agent services

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ainative-agent-framework-1776064750 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ainative-agent-framework-1776064750 技能

通过命令行安装

skillhub install ainative-agent-framework-1776064750

下载 Zip 包

⬇ 下载 ainative-agent-framework v1.0.0

文件大小: 2.91 KB | 发布时间: 2026-4-14 14:18

v1.0.0 最新 2026-4-14 14:18
AINative Agent Framework v1.0.0 — Initial release

- Introduces OpenClaw agent swarm with 9 specialized AI agents for orchestration, deployment, frontend, backend, data, security, documentation, performance, and testing.
- Provides CLI and Cody Script commands for dispatching tasks and communicating with agents.
- Outlines patterns for agent-to-agent communication (ACP), autonomous workflows, and multi-agent handoffs.
- Includes a Python class for building custom agents with memory and recall capabilities.
- Documents RLHF feedback collection and real-time monitoring of agent activities.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部