Giter Site home page Giter Site logo

custom_agent_tutorial's Introduction

Setting Up and Running Custom Agent Script

Prerequisites

  1. Install Anaconda:
    Download Anaconda from https://www.anaconda.com/.

  2. Create a Virtual Environment:

    conda create -n agent_env python=3.10 pip
  3. Activate the Virtual Environment:

    conda activate agent_env

Clone and Navigate to the Repository

  1. Clone the Repo:

    git clone https://github.com/john-adeojo/custom_agent_tutorial.git
  2. Navigate to the Repo:

    cd /path/to/your-repo/custom_agent_tutorial
  3. Install Requirements:

    pip install -r requirements.txt

Configure API Keys

  1. Open the config.yaml: Update your keys, see next step for links to get your own API keys.
nano config.yaml
  1. Enter API Keys:

Run Your Query

python agent.py run

Then run your query

custom_agent_tutorial's People

Contributors

john-adeojo avatar

Stargazers

Mustafa Dikmen avatar TizzyTee avatar Leroy "Spydaz" Dyer BSC/MSC avatar Alex Beckerman avatar S.A. Hinzey avatar Francisco Moschetti avatar Saurabh Prakash avatar KidKarmaツ avatar  avatar  avatar  avatar Lennex Zinyando avatar  avatar York Han avatar Ochunkele avatar  avatar Juan Martitegui avatar Suhas M L avatar MíkúX avatar Lan Laucirica avatar Sushanth Reddy avatar A. Craze avatar Hamzah A.A.M. Qaid avatar Laza Bogdan avatar  avatar  avatar Nkululeko_Mzobe avatar Biren Gandhi avatar Samarth Gupta avatar  avatar Steve Wang avatar Alexandra Spalato avatar  avatar  avatar  avatar Stuart Hooper avatar  avatar  avatar  avatar  avatar Erich Grohse-Holz avatar Aurthur Musendame avatar  avatar  avatar  avatar Flavio Oliveira avatar Simon Tong avatar Huy Linh Nguyen avatar  avatar Emre YILMAZ avatar Bart Schrijnen avatar Alessio Delmonti avatar Maako Ravelle WOUROUGOU avatar Handy avatar Shahar avatar Mordenkainen avatar jbellsolutions avatar  avatar  avatar Vince Fulco--Bighire.tools avatar  avatar  avatar carlos segura avatar Gilbert Bagaoisan avatar Chris Armstrong avatar  avatar Pedro Haluch avatar Kabucho avatar Stephen Brown avatar  avatar  avatar  avatar Dylan Beadle avatar Kishor Kukreja avatar  avatar Ian Chen avatar Himanshu Chanda avatar  avatar fran.eth avatar  avatar Panayiotis Tzagkarakis avatar Emmanuel Ezeokeke avatar martintmv avatar Tarik Moody avatar dr. Konya Sandor avatar Gabriel Zaccak avatar Tom Huang avatar  avatar Jordan Moshcovitis avatar Alex Lana avatar Jimmy Briggs avatar Luca G. Soave avatar Horacio Rodriguez avatar  avatar  avatar Sheng-Loong Su avatar huihai avatar TsutomuN avatar  avatar John Leskas avatar

Watchers

Luca G. Soave avatar Ankush Singal avatar  avatar  avatar Ochunkele avatar

custom_agent_tutorial's Issues

Error: 'choices' key not found in response. Using empty content.

python agent.py run
Enter your query: https://inverbathrooms.ie/ extract : Contact informations headquarter or any location offices all phones with details any team member , managmenet member listed give me names and contact also all adressess including HQ, other locations , distributors make the result pretty read able and explain

gives error:

Error: 'choices' key not found in response. Using empty content.
Integration Agent:
Traceback (most recent call last):
File "/home/bc/Projects/custom_agent_tutorial/agent.py", line 166, in
agent.execute()
File "/home/bc/Projects/custom_agent_tutorial/agent.py", line 151, in execute
plan = self.run_planning_agent(query, plan=plan, outputs=outputs, feedback=response)
File "/home/bc/Projects/custom_agent_tutorial/agent.py", line 54, in run_planning_agent
content = response_dict['choices'][0]['message']['content']
KeyError: 'choices'

Using Ollama insted of ChatGPT

I came across your video 'Forget CrewAI & AutoGen, Build CUSTOM AI Agents!' and thought you made many good points, so I wanted to try the code myself. I don't have an OpenGPT account, so I wanted to try to adapt the code to use Ollama and llama3 instead. It all seemed quite manageable, but the problem I'm a bit stuck on / wondering how to get around or reimplement is the 'tool_calls' object that OpenGPT apparently has in its return JSON.

Do you have any suggestions or insights on how to best work around this? I tried following the 'solution' here (ollama/ollama-python#39 (comment)), but I can't get it to include 'tool_calls'. Any ideas or suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.