integrate-hub-agent

Guides embedding pre-built GAIA hub agents into developer applications via npm or Python.

1.6k|168|Updated Dec 16, 2024
One-click install
npx skills add https://github.com/amd/gaia --skill integrate-hub-agent-amd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integrate-hub-agent
Source: https://github.com/amd/gaia/tree/main/.claude/skills/integrate-hub-agent
Command: npx skills add https://github.com/amd/gaia --skill integrate-hub-agent-amd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers who want to embed a pre-built GAIA hub agent into their own application face uncertainty about which agents exist, which runtime to pick, and how the two integration shapes (npm sidecar vs. Python framework plugin) actually work. ## Core Features & Use Cases - Live agent discovery: Lists hub/agents/ at runtime to find the current set of agents and their available runtimes instead of trusting a hardcoded list. - Two integration shapes: Explains the npm shape (install package, fetch and SHA-256-verify a binary, spawn a local HTTP sidecar, call a typed TypeScript client, shut down) versus the Python shape (pip install, auto-registration via the gaia.agent entry-point group, invocation through the GAIA registry or process_query). - Per-agent handoff: Checks for an agent-specific SKILL.md and executes it when present, otherwise synthesizes steps from the agent's README, manifest (gaia-agent.yaml / package.json), and source entry point. - Use Case: A developer building an Electron app asks to add the email agent; the skill identifies the npm agent-email package, then follows its own SKILL.md and SPEC.md for the exact sidecar integration contract. ## Quick Start Ask the assistant to integrate a specific GAIA hub agent, such as the email or analyst agent, into your application and specify whether your project is JavaScript/TypeScript or Python.

Frequently Asked Questions about integrate-hub-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a GAIA hub agent into my application?

First list hub/agents/ to find the agent and runtime, then follow its shape: npm packages install a typed TypeScript client that spawns a local HTTP sidecar, while Python packages pip-install and auto-register with the GAIA registry via the gaia.agent entry-point group.

What is the difference between the npm and Python GAIA agent packages?

The npm package is a client for a local native sidecar binary that you fetch, SHA-256-verify, spawn, and shut down. The Python package is a GAIA framework plugin that registers on install and is invoked through the registry or its process_query method.

How do I call a GAIA Python agent in-process?

Populate the registry first with AgentRegistry().discover(), then call create_agent with the agent's id from its gaia-agent.yaml manifest. Alternatively construct the agent class directly and use the base Agent entry point process_query(text), which returns a dict.

Does the npm GAIA agent package require Python or a GAIA install?

No, the npm package carries a frozen native binary, so no Python or separate GAIA install is needed. The agent still requires a local model backend such as Lemonade Server for inference.

Why does create_agent raise ValueError for a GAIA agent?

The registry is empty until discover() is called to scan the gaia.agent entry points. Call discover() on the AgentRegistry before create_agent, and confirm the id in the agent's gaia-agent.yaml since it can differ from the directory name.