SuperAPIAI Directory

llama-agentic-system

github.com · AI agents

Agentic components of the Llama Stack APIs.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose: This repository provides examples of agent applications built on top of Llama Stack. Starting with Llama 3.1, you can build agent applications with task decomposition and multi-step reasoning, tool calling (built-in search or code interpreter, and also support for new tool definitions not seen in the zero-shot learning context), and system-level safety protection using the Llama Guard series of models.

Key capabilities: An agent application requires several components—inference on the Llama series of models, safety checks using the Llama Guard series of models, tool execution (including a code execution environment), and looping through the model's multi-step reasoning. These components are provided by a single Llama Stack Distribution. Llama Stack defines and standardizes these components, and then assembles different API implementations through Distributions.

Usage: First install the prerequisites (it is recommended to create an isolated conda Python environment), then start the Llama Stack server, and then point the client agent application to the server URL (for example http://localhost:8321)。仓库提供示例脚本、notebook and a Gradio-based UI chat interface. The example for testing a simple Agent requires a Tavily Search API key, and the environment variable TAVILY_SEARCH_API_KEY must be set. Optional custom tool API keys: store WolframAlpha in WOLFRAM_ALPHA_API_KEY, and store Brave Search in BRAVE_SEARCH_API_KEY. The client SDK supports python, node, swift, and kotlin. You can also run the application with venv, but installing the distribution requires conda, after which the steps, including pip install -r requirements.txt, are the same.

Applicable scenarios: Development and experimentation of agent applications that require multi-step reasoning, tool calling, and safety protection based on Llama models.

Limitations: The materials do not provide specific fees, prices, platform support scope, or performance data; some commands and output examples are not fully given in the original text and are not completed here.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools