[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M752XFTEGGYMFEWZVECY31HM":3,"skill-same:01M752XFTEGGYMFEWZVECY31HM":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M752XFTEGGYMFEWZVECY31HM","hl-build-agent-app",null,"Build a complete agent app with LLM reasoning + tool execution on Hailo-10H.","TejasLamba2006\u002Fhailo-apps","TejasLamba2006","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F73745640?v=4","01M752WBF8KHM6KJTEQXTJZR9K","Tejas Lamba","01M752WBGE2NS66C4ENRHWY36S",0,"MIT","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-agent-app\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hl-build-agent-app\ndescription: Build a complete agent app with LLM reasoning + tool execution on Hailo-10H.\n---\n\n# Skill: Build Agent Application with Tool Calling\n\nBuild a complete agent app with LLM reasoning + tool execution on Hailo-10H.\n\n## When This Skill Is Loaded\n\n- User wants an **LLM agent** that can **call tools \u002F functions**\n- User mentions: agent, tools, function calling, actions, execute\n- User needs an AI that can **do things** (not just chat)\n\n## Reference Implementation\n\nStudy `hailo_apps\u002Fpython\u002Fgen_ai_apps\u002Fagent_tools_example\u002F` — the canonical agent app:\n- `agent_tools_example.py` — Main agent loop\n- `tools\u002F` — Tool implementations (subclass `BaseTool`)\n- `config.yaml` — Tool configuration\n\nAlso study the agent utilities:\n- `gen_ai_utils\u002Fllm_utils\u002Ftool_parsing.py` — Parse LLM output for tool calls\n- `gen_ai_utils\u002Fllm_utils\u002Ftool_execution.py` — `BaseTool`, `ToolResult`\n- `gen_ai_utils\u002Fllm_utils\u002Ftool_discovery.py` — Auto-discover tools from directory\n\n## Build Process\n\n### Step 1: Create App Directory\n\nCreate the app directory:\n\n```\nhailo_apps\u002Fpython\u002F\u003Ctype>\u002F\u003Capp_name>\u002F\n├── app.yaml              # App manifest (type: gen_ai)\n├── run.sh                # Launch wrapper\n├── __init__.py\n├── \u003Capp_name>.py         # Main agent loop\n├── tools\u002F\n│   ├── __init__.py\n│   ├── config.yaml          # Tool metadata\n│   ├── my_tool_1.py         # Implements BaseTool\n│   └── my_tool_2.py         # Implements BaseTool\n└── README.md             # Usage documentation (REQUIRED — never skip)\n```\n\nCreate `app.yaml` with `type: gen_ai` and `run.sh` wrapper.\nDo NOT register in `defines.py` or `resources_config.yaml`.\n\n### Step 2: Build a Tool\n\nEach tool implements the `BaseTool` interface:\n\n```python\nfrom hailo_apps.python.gen_ai_apps.agent_tools_example.tools.base import BaseTool, ToolResult\n\nclass WeatherTool(BaseTool):\n    @property\n    def name(self) -> str:\n        return \"get_weather\"\n\n    @property\n    def description(self) -> str:\n        return \"Get current weather for a city\"\n\n    @property\n    def schema(self) -> dict:\n        return {\n            \"type\": \"object\",\n            \"properties\": {\n                \"city\": {\n                    \"type\": \"string\",\n                    \"description\": \"City name (e.g., 'Tel Aviv')\"\n                }\n            },\n            \"required\": [\"city\"]\n        }\n\n    def run(self, **kwargs) -> ToolResult:\n        city = kwargs[\"city\"]\n        # Actual implementation here\n        return ToolResult(\n            success=True,\n            data={\"city\": city, \"temperature\": 25, \"condition\": \"Sunny\"}\n        )\n```\n\n### Step 4: Build Tool Config\n\n```yaml\n# tools\u002Fconfig.yaml\nversion: \"1.0\"\ntool_name: \"my_agent\"\npersona: \"You are a helpful assistant with access to tools.\"\ncapabilities:\n  - \"Look up weather information\"\n  - \"Perform calculations\"\nfew_shot_examples:\n  - user: \"What's the weather in Tel Aviv?\"\n    assistant: \"I'll check the weather for you.\"\n    tool_call: '{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Tel Aviv\"}}'\n```\n\n### Step 5: Build Main App\n\n```python\nimport signal\nimport argparse\n\nfrom hailo_apps.python.core.common.hailo_logger import get_logger\nlogger = get_logger(__name__)\n\nAPP_NAME = \"my_agent_app\"\n\n\ndef main():\n    parser = argparse.ArgumentParser(description=\"My Agent App\")\n    parser.add_argument(\"--debug\", action=\"store_true\", help=\"Show tool calls\")\n    parser.add_argument(\"--multi-turn\", action=\"store_true\", help=\"Enable multi-turn context\")\n    parser.add_argument(\"--voice\", action=\"store_true\", help=\"Enable voice input\")\n    parser.add_argument(\"--no-tts\", action=\"store_true\", help=\"Disable TTS\")\n    args = parser.parse_args()\n\n    signal.signal(signal.SIGINT, lambda s, f: sys.exit(0))\n\n    # Initialize agent (uses AgentApp or custom loop)\n    # Tool discovery from tools\u002F directory\n    # Main loop: user input → LLM reasoning → tool parsing → execution → response\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n### Step 6: Validate\n\n```bash\npython3 .github\u002Fscripts\u002Fvalidate_app.py hailo_apps\u002Fpython\u002Fgen_ai_apps\u002Fmy_agent_app --smoke-test\n```\n\n## Critical Conventions\n\n1. **Tool interface**: Implement `BaseTool` with `name`, `description`, `schema`, `run()`\n2. **Return**: `ToolResult(success=bool, data=dict)`\n3. **Discovery**: Tools auto-discovered from `tools\u002F` directory\n4. **Config**: YAML with `persona`, `capabilities`, `few_shot_examples`\n5. **JSON Schema**: Each tool's `schema` property returns valid JSON Schema\n6. **Parsing**: Use `tool_parsing` utilities to extract tool calls from LLM output\n7. **Context**: `context_manager` for multi-turn, `StateManager` for persistence\n8. **Logging**: `get_logger(__name__)`\n\n## Agent Reasoning Loop\n\n```\nUser Input\n    │\n    ▼\nLLM generates response\n    │\n    ├── Contains tool call? → Parse → Execute tool → Feed result back to LLM\n    │                                                       │\n    │                                                       ▼\n    │                                              LLM generates final response\n    │\n    └── No tool call? → Direct response to user\n```\n\n","# Skill: Build Agent Application with Tool Calling\n\nBuild a complete agent app with LLM reasoning + tool execution on Hailo-10H.\n\n## When This Skill Is Loaded\n\n- User wants an **LLM agent** that can **call tools \u002F functions**\n- User mentions: agent, tools, function calling, actions, execute\n- User needs an AI that can **do things** (not just chat)\n\n## Reference Implementation\n\nStudy `hailo_apps\u002Fpython\u002Fgen_ai_apps\u002Fagent_tools_example\u002F` — the canonical agent app:\n- `agent_tools_example.py` — Main agent loop\n- `tools\u002F` — Tool implementations (subclass `BaseTool`)\n- `config.yaml` — Tool configuration\n\nAlso study the agent utilities:\n- `gen_ai_utils\u002Fllm_utils\u002Ftool_parsing.py` — Parse LLM output for tool calls\n- `gen_ai_utils\u002Fllm_utils\u002Ftool_execution.py` — `BaseTool`, `ToolResult`\n- `gen_ai_utils\u002Fllm_utils\u002Ftool_discovery.py` — Auto-discover tools from directory\n\n## Build Process\n\n### Step 1: Create App Directory\n\nCreate the app directory:\n\n```\nhailo_apps\u002Fpython\u002F\u003Ctype>\u002F\u003Capp_name>\u002F\n├── app.yaml              # App manifest (type: gen_ai)\n├── run.sh                # Launch wrapper\n├── __init__.py\n├── \u003Capp_name>.py         # Main agent loop\n├── tools\u002F\n│   ├── __init__.py\n│   ├── config.yaml          # Tool metadata\n│   ├── my_tool_1.py         # Implements BaseTool\n│   └── my_tool_2.py         # Implements BaseTool\n└── README.md             # Usage documentation (REQUIRED — never skip)\n```\n\nCreate `app.yaml` with `type: gen_ai` and `run.sh` wrapper.\nDo NOT register in `defines.py` or `resources_config.yaml`.\n\n### Step 2: Build a Tool\n\nEach tool implements the `BaseTool` interface:\n\n```python\nfrom hailo_apps.python.gen_ai_apps.agent_tools_example.tools.base import BaseTool, ToolResult\n\nclass WeatherTool(BaseTool):\n    @property\n    def name(self) -> str:\n        return \"get_weather\"\n\n    @property\n    def description(self) -> str:\n        return \"Get current weather for a city\"\n\n    @property\n    def schema(self) -> dict:\n        return {\n            \"type\": \"object\",\n            \"properties\": {\n                \"city\": {\n                    \"type\": \"string\",\n                    \"description\": \"City name (e.g., 'Tel Aviv')\"\n                }\n            },\n            \"required\": [\"city\"]\n        }\n\n    def run(self, **kwargs) -> ToolResult:\n        city = kwargs[\"city\"]\n        # Actual implementation here\n        return ToolResult(\n            success=True,\n            data={\"city\": city, \"temperature\": 25, \"condition\": \"Sunny\"}\n        )\n```\n\n### Step 4: Build Tool Config\n\n```yaml\n# tools\u002Fconfig.yaml\nversion: \"1.0\"\ntool_name: \"my_agent\"\npersona: \"You are a helpful assistant with access to tools.\"\ncapabilities:\n  - \"Look up weather information\"\n  - \"Perform calculations\"\nfew_shot_examples:\n  - user: \"What's the weather in Tel Aviv?\"\n    assistant: \"I'll check the weather for you.\"\n    tool_call: '{\"name\": \"get_weather\", \"arguments\": {\"city\": \"Tel Aviv\"}}'\n```\n\n### Step 5: Build Main App\n\n```python\nimport signal\nimport argparse\n\nfrom hailo_apps.python.core.common.hailo_logger import get_logger\nlogger = get_logger(__name__)\n\nAPP_NAME = \"my_agent_app\"\n\n\ndef main():\n    parser = argparse.ArgumentParser(description=\"My Agent App\")\n    parser.add_argument(\"--debug\", action=\"store_true\", help=\"Show tool calls\")\n    parser.add_argument(\"--multi-turn\", action=\"store_true\", help=\"Enable multi-turn context\")\n    parser.add_argument(\"--voice\", action=\"store_true\", help=\"Enable voice input\")\n    parser.add_argument(\"--no-tts\", action=\"store_true\", help=\"Disable TTS\")\n    args = parser.parse_args()\n\n    signal.signal(signal.SIGINT, lambda s, f: sys.exit(0))\n\n    # Initialize agent (uses AgentApp or custom loop)\n    # Tool discovery from tools\u002F directory\n    # Main loop: user input → LLM reasoning → tool parsing → execution → response\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n### Step 6: Validate\n\n```bash\npython3 .github\u002Fscripts\u002Fvalidate_app.py hailo_apps\u002Fpython\u002Fgen_ai_apps\u002Fmy_agent_app --smoke-test\n```\n\n## Critical Conventions\n\n1. **Tool interface**: Implement `BaseTool` with `name`, `description`, `schema`, `run()`\n2. **Return**: `ToolResult(success=bool, data=dict)`\n3. **Discovery**: Tools auto-discovered from `tools\u002F` directory\n4. **Config**: YAML with `persona`, `capabilities`, `few_shot_examples`\n5. **JSON Schema**: Each tool's `schema` property returns valid JSON Schema\n6. **Parsing**: Use `tool_parsing` utilities to extract tool calls from LLM output\n7. **Context**: `context_manager` for multi-turn, `StateManager` for persistence\n8. **Logging**: `get_logger(__name__)`\n\n## Agent Reasoning Loop\n\n```\nUser Input\n    │\n    ▼\nLLM generates response\n    │\n    ├── Contains tool call? → Parse → Execute tool → Feed result back to LLM\n    │                                                       │\n    │                                                       ▼\n    │                                              LLM generates final response\n    │\n    └── No tool call? → Direct response to user\n```\n\n",{"name":5,"description":7},"main","9beb824677028b4974e90b0cc558b6fd6de3d935",".github\u002Fskills\u002Fhl-build-agent-app","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps","https:\u002F\u002Fgithub.com\u002FTejasLamba2006","https:\u002F\u002Ftejas.is-a.dev\u002F","Rust | Java |  TypeScript ","2026-11-12 16:44:30",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add TejasLamba2006\u002Fhailo-apps --skill hl-build-agent-app",{"tool":38,"command":39},"bunx","bunx skills add TejasLamba2006\u002Fhailo-apps --skill hl-build-agent-app",{"tool":41,"command":42},"pnpm","pnpm dlx skills add TejasLamba2006\u002Fhailo-apps --skill hl-build-agent-app","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-agent-app\u002FSKILL.md",true,[],[47,53,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M752Y17N6R7ME2TRA2NNS5X3","hl-build-voice-app","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-voice-app\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M752XW3BPNVCM0823YAEP6YA","hl-build-vlm-app","Build a complete Vision-Language Model application that uses the Hailo-10H VLM for image understanding.","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-vlm-app\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M752XT54VT5E95QASFX7F8JR","hl-build-standalone-app","Build a complete standalone app using HailoInfer + OpenCV on Hailo-8\u002F8L\u002F10H.","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-standalone-app\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M752XNJFF5KT07AZAZ6N07BP","hl-build-pipeline-app","Build a complete GStreamer pipeline app for real-time video processing on Hailo-8\u002F8L\u002F10H.","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-pipeline-app\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M752XK1JS2XC5BF31EVA06XP","hl-build-llm-app","Build a complete LLM text generation app running on Hailo-10H.","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fhl-build-llm-app\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M752XBWXEB5MRRHGAQBK6JHC","hl-validate","Validation at every phase gate.","https:\u002F\u002Fgithub.com\u002FTejasLamba2006\u002Fhailo-apps\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhl-validate\u002FSKILL.md",[],[]]