Agent construction

From VectorSpaceLab/AREX-Skill · View interactive version

Agent construction is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Build and troubleshoot ADK Python Agent/LlmAgent definitions, model settings, modes, callbacks, schemas, and multi-agent delegation.

How to use this skill

Skill file

ADK Python Agent Construction

Use this sub-skill when a user asks to define, revise, or debug Python ADK agents built with google.adk.Agent or google.adk.agents.LlmAgent.

Route Here

Route Elsewhere

Quick Start

  1. Import from the public package: from google.adk import Agent or from google.adk.agents import LlmAgent, RunConfig.
  2. Name agents with valid Python identifiers; never use user as an agent name.
  3. Put model behavior in instruction, static generation options in generate_content_config, tools in tools, and final response schemas in output_schema.
  4. Expose a Python app by defining root_agent = Agent(...) in an importable module.
  5. Use a Runner only after selecting runtime services and creating or auto-creating sessions; this sub-skill focuses on the agent definitions.
from google.adk import Agent


def get_weather(city: str) -> str:
  """Return a simple weather summary."""
  return f"Weather for {city}: sunny."


root_agent = Agent(
    name="weather_agent",
    model="gemini-3.5-flash",
    instruction="Answer weather questions and call tools when needed.",
    tools=[get_weather],
)

References

Agent-Construction Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.