agents-and-workflows
Skill by VectorSpaceLab
Guides developers building LlamaIndex agents and workflows with tools, memory, chat engines, multi-agent handoff, and streaming. Suited to teams that need agents to choose tools or route between capabilities.
Install agents-and-workflows
Built from the published package, never by AI.
git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill /tmp/AREX-Skill && mkdir -p ~/.claude/skills && cp -r /tmp/AREX-Skill/skills/repositories/repo-skills/llama-index/sub-skills/agents-and-workflows ~/.claude/skills/agents-and-workflowsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill /tmp/AREX-Skill && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AREX-Skill/skills/repositories/repo-skills/llama-index/sub-skills/agents-and-workflows ~/.gemini/antigravity-cli/skills/agents-and-workflowsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install agents-and-workflows in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides building agentic LlamaIndex applications. It covers FunctionAgent and ReActAgent, function and query engine tools, memory-aware chat, multi-agent handoff with AgentWorkflow, and event streaming. It explains when to use an agent instead of a chat engine or query engine.
It includes code patterns for tool definitions, RAG as a tool, and handoff setups, plus a bundled script that prints safe templates without calling an LLM or network by default. It is aimed at developers who build LlamaIndex agents and workflows for tool-calling and ReAct-style models, and it points to separate skills for indexing, structured outputs, and integrations.
Written from the project's SKILL.md and checked against it.
What it can do
- FunctionAgentBuilds a function-calling agent with tools, a system prompt, and optional streaming.
- ReActAgentBuilds a ReAct text-format agent for LLMs without native tool calling.
- FunctionToolConverts typed Python functions into agent tools with FunctionTool.from_defaults.
- QueryEngineToolWraps a query engine so an agent can decide when retrieval is needed.
- AgentWorkflow handoffPasses control between specialist agents using can_handoff_to and root_agent.
- MemoryKeeps chat state across runs with ChatMemoryBuffer or Memory.
- Chat enginesRuns stateful conversational RAG over one index with chat and stream_chat.
- Event streamingStreams AgentStream, ToolCall, and AgentOutput events from a run handler.
- Human-in-the-loop toolsAccepts a Context parameter and calls ctx.wait_for_event inside a tool.
- Scaffolding scriptPrints safe templates for tools, agents, streaming, and multi-agent handoff.
What you need
- Python
- LlamaIndex packages
- A configured LLM
Try asking
- Build a FunctionAgent with a discount calculator tool in Python
- Wrap my policy query engine as a QueryEngineTool for an agent
- Set up a triage agent that hands off technical questions to a docs agent
Good to know
- FunctionAgent requires an LLM with function-calling support and raises ValueError otherwise.
- ReActAgent expects Thought, Action, Action Input, or Answer blocks in the model output.
- The bundled script does not call an LLM or the network by default.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/repositories/repo-skills/llama-index/sub-skills/agents-and-workflows/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to agents-and-workflows
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
agents-and-workflows: common questions
Which agent type should I use with LlamaIndex?
Use FunctionAgent when the LLM supports function calling. Use ReActAgent when the LLM lacks native tool calling but can follow the ReAct text format.
When should I use a chat engine instead of an agent?
Chat engines suit conversational RAG over one index. Use an agent when the app must choose tools, hand off between agents, or call multiple systems.
Does the bundled script call an LLM?
No. The script prints templates and does not call an LLM or the network by default.
How do I install agents-and-workflows?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agents-and-workflows free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is agents-and-workflows safe to use?
It scores 49 of 100. Grades: maintenance C, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agents-and-workflows?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
