agents

Develop Python-based LLM agents with tool use and control loops.

1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/hung-phan/ml-skills --skill agents-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents
Source: https://github.com/hung-phan/ml-skills/tree/main/skills/ml-review/references/ml-architectures/agents
Command: npx skills add https://github.com/hung-phan/ml-skills --skill agents-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, llm, control theory, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the limitations of raw LLMs by enabling the creation of intelligent agents that can interact with external tools, perform complex tasks, and adapt based on observations.

Core Features & Use Cases

  • Tool Use: Agents can call external tools and APIs to perform tasks like searching, executing code, and interacting with databases.
  • Control Loops: Implement control loops to manage the sequence of actions and decisions made by the agent.
  • Memory: Store and retrieve information to improve the agent's decision-making and learning over time.
  • Use Case: For building a system that can automatically answer complex questions by integrating LLMs with external tools and databases.

Quick Start

Use the agents skill to create an agent that searches the web for information and then summarizes the findings.

Frequently Asked Questions about agents

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

FAQPage Schema
How do I build an LLM agent with tool use and control loops in Python?

You build an LLM agent with tool use and control loops by using Python architecture to manage action sequences and invoke external APIs. This enables the agent to perform complex tasks and adapt its decisions based on real-time observations.

How does memory improve LLM agent decision-making?

Memory improves LLM agent decision-making by storing and retrieving historical information over time. This allows the agent to learn from past actions and maintain context, resulting in more adaptive and accurate tool invocation within the control loop.

Do I need to know control theory to implement an LLM agent?

Yes, you need knowledge of control theory, LLMs, and Python tool invocation to implement an agent. Control theory is essential for designing the control loops that manage the sequence of actions and decisions made by the agent.

What is the best way to integrate external APIs with an LLM for complex tasks?

The best way to integrate external APIs with an LLM is by building an intelligent agent architecture in Python. This approach handles tool invocation and control loops, enabling the system to automatically search, execute code, and interact with databases.

Why use an LLM agent instead of a raw LLM for database interaction?

You use an LLM agent instead of a raw LLM because raw models cannot interact with external tools or adapt based on observations. Agents implement control loops and memory to automatically query databases and perform complex external tasks.

What are the limitations of using control loops for LLM tool use?

Limitations of using control loops for LLM tool use include the requirement for advanced knowledge in control theory and Python. Complex external integrations also demand careful management of action sequences and memory to prevent decision-making errors.