query-loop-implementation
CommunityRobust tool-driven AI agent loops.
Authorsimbajigege
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides a production-ready LLM query loop that orchestrates model calls, tool executions, and structured tool results to deliver reliable final answers in AI applications.
Core Features & Use Cases
- Defines a clean separation: ConversationManager, QueryLoop, and ToolRuntime to manage state, per-turn flow, and tool execution.
- Supports ReAct-style reasoning cycles with tool calls, tool results, and iterative model prompting to reach final answers.
- Enforces safety and operational guards: maxTurns, abort/timeout, permissions, and budget controls, with recoverable error handling.
- Use cases include adding tool calling to AI apps, building agent runtimes, and implementing deterministic tool-driven workflows.
Quick Start
Install or import the Query Loop Implementation skill in your project and start using its runQueryLoop to manage model calls, tool execution, and tool_result feedback.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: query-loop-implementation Download link: https://github.com/simbajigege/book2skills/archive/main.zip#query-loop-implementation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.