8000 GitHub - cwharris/AgentIQ: The NVIDIA AgentIQ toolkit is an open-source library for efficiently connecting and optimizing teams of AI agents.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from NVIDIA/AIQToolkit

The NVIDIA AgentIQ toolkit is an open-source library for efficiently connecting and optimizing teams of AI agents.

License

Notifications You must be signed in to change notification settings

cwharris/AgentIQ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NVIDIA AgentIQ

NVIDIA AgentIQ

AgentIQ is a flexible library designed to seamlessly integrate your enterprise agents—regardless of framework—with various data sources and tools. By treating agents, tools, and agentic workflows as simple function calls, AgentIQ enables true composability: build once and reuse anywhere.

Key Features

  • Framework Agnostic: Works with any agentic framework, so you can use your current technology stack without replatforming.
  • Reusability: Every agent, tool, or workflow can be combined and repurposed, allowing developers to leverage existing work in new scenarios.
  • Rapid Development: Start with a pre-built agent, tool, or workflow, and customize it to your needs.
  • Profiling: Profile entire workflows down to the tool and agent level, track input/output tokens and timings, and identify bottlenecks.
  • Observability: Monitor and debug your workflows with any OpenTelemetry-compatible observability tool.
  • Evaluation System: Validate and maintain accuracy of agentic workflows with built-in evaluation tools.
  • User Interface: Use the AgentIQ UI chat interface to interact with your agents, visualize output, and debug workflows.
  • MCP Compatibility Compatible with Model Context Protocol (MCP), allowing tools served by MCP Servers to be used as AgentIQ functions.

With AgentIQ, you can move quickly, experiment freely, and ensure reliability across all your agent-driven projects.

Links

Get Started

  1. Ensure you have Python 3.12, and a Python development environment.

    Assuming Python 3.12 is installed, create a virtual environment and activate it with:

    python -m venv env
    source env/bin/activate
  2. Install AgentIQ with support for your desired LLM framework

    pip install agentiq[<your framework>]

    For example, to install AgentIQ with support for the LangChain framework (which is necessary for the Hello World example), use the following command:

    pip install agentiq[langchain]

    [!NOTE] AgentIQ also supports other LLM frameworks. Refer to the plugin guide for more information.

  3. Verify the installation using the AgentIQ CLI

    aiq --version

    This should output the AgentIQ version which is currently installed.

Hello World Example

  1. Ensure you have set the NVIDIA_API_KEY environment variable to allow the example to use NVIDIA NIMs. An API key can be obtained by visiting build.nvidia.com and creating an account.

    export NVIDIA_API_KEY=<your_api_key>
  2. Create the AgentIQ workflow configuration file. This file will define the agents, tools, and workflows that will be used in the example. Save the following as workflow.yaml:

    functions:
       # Add a tool to search wikipedia
       wikipedia_search:
          _type: wiki_search
          max_results: 2
    
    llms:
       # Tell AgentIQ which LLM to use for the agent
       nim_llm:
          _type: nim
          model_name: meta/llama-3.1-70b-instruct
          temperature: 0.0
    
    workflow:
       # Use an agent that 'reasons' and 'acts'
       _type: react_agent
       # Give it access to our wikipedia search tool
       tool_names: [wikipedia_search]
       # Tell it which LLM to use
       llm_name: nim_llm
       # Make it verbose
       verbose: true
       # Retry parsing errors because LLMs are non-deterministic
       retry_parsing_errors: true
       # Retry up to 3 times
       max_retries: 3
  3. Run the Hello World example using the aiq CLI and the workflow.yaml file.

    aiq run --config_file workflow.yaml --input "List five subspecies of Aardvarks"

    This will run the workflow and output the results to the console.

    Workflow Result:
    ['Here are five subspecies of Aardvarks:\n\n1. Orycteropus afer afer (Southern aardvark)\n2. O. a. adametzi  Grote, 1921 (Western aardvark)\n3. O. a. aethiopicus  Sundevall, 1843\n4. O. a. angolensis  Zukowsky & Haltenorth, 1957\n5. O. a. erikssoni  Lönnberg, 1906']

Feedback

We would love to hear from you! Please file an issue on GitHub if you have any feedback or feature requests.

Acknowledgements

We would like to thank the following open source projects that made AgentIQ possible:

About

The NVIDIA AgentIQ toolkit is an open-source library for efficiently connecting and optimizing teams of AI agents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.3%
  • Shell 1.4%
  • Other 0.3%
0