daviddwlee84 / LLM-API-Agent

Creating tools for LLM so it can call API by itself and finish complex tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LLM API Agent

Creating tools for LLM so it can call API by itself and finish complex tasks.

Good example of how to play with Agents, Tools, etc.

Getting Started

Python 3.10+

pip install -r requirements.txt

# Fill your credential
cp example.env .env

# Adhoc
python ./utils/api.py

Todos

Infrastructure

  • OpenAPI document to API Agent
  • General API document (e.g. using web crawler)
  • Self-building API call function as tool

Learning

  • Understand LangGraph

Bug

  • Fix agent executor intermediate output exceed max token length limit issue

Tasks

  • Spotify Agent
    • Basic Spotify API call based on OpenAPI document
      • Change it to notebook
      • Fix bug
    • JSON agent
  • Financial Agent
    • Simple Polygon
      • Fix bug
    • LangGraph + Polygon

Other

  • Build UI to play with each of them (if there is stable playable example)

Resources

LangChain

Tools and Agent (general)

API Agent and Planner

Template

LangGraph

Papers

Agents/Tools (general)

API Agent (specific)

API Documents

Others

About

Creating tools for LLM so it can call API by itself and finish complex tasks


Languages

Language:Jupyter Notebook 99.7%Language:Python 0.3%