Skip to content

CharlesCreativeContent/toolhouse-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building an AI Clinic Agent using Toolhouse

Toolhouse is a platform that enables developers to integrate tools into their projects to build powerful AI agents effortlessly. With Toolhouse, you can leverage pre-built tools and create applications that perform a multitude of useful tasks with minimal code.

Feel free to check out the video to see Toolhouse in action.

Getting Started

Step 1: Clone the Repository

git clone https://github.com/CharlesCreativeContent/toolhouse-example.git
cd toolhouse-example

Step 2: Set Up Environment Variables

  • Create a .env file in the root directory of the project and add your Toolhouse and OpenAI API keys:
TOOLHOUSE_API_KEY=your_toolhouse_api_key
OPENAI_API_KEY=your_openai_api_key

Step 3: Install Dependencies

  • Install the required dependencies by running:
pip install -r requirements.txt

Step 4: Run the Application

  • Once all dependencies are installed, you can start the server with:
python app.py

The server will be running, and you can view the demo application at http://127.0.0.1:8000 and the API documentation at http://127.0.0.1:8000/docs

Step 5: Test the API

The FastAPI application includes a Swagger UI that allows you to test the various endpoints. The available endpoints are:

Endpoint Description

Endpoint Description
/pets Answers pet owners using an veterinary clinics documents and can tell if the clinic is open
/blog Generates a first draft of a research blog post including embedded links.
/customer Provides customer service answers, adapting to open and closing hours.
/twitter Returns details about Twitter users and sends emails using hunter.io API.
/test A test route to check the integration of the Toolhouse SDK.

Project Structure

  • app.py: The main file that sets up the FastAPI application and integrates Toolhouse with OpenAI's GPT models.
  • system_prompts.py: Contains pre-configured system prompts that shape the behavior of each endpoint.
  • demo.html: Web page demonstrating the retrieval augmented generation (RAG) and search tools for a veterinary clinic.

Understanding Toolhouse SDK

Toolhouse acts as an orchestration layer between GPT models and various tools. By integrating the Toolhouse SDK, you enable AI models to perform actions based on decisions made during interactions. For instance, the AI can send emails or retrieve customer support information by adding a tool in Toolhouse without the need to update your code.

More Projects

Runware Pokémon Generator
Runware Pokémon Generator
CoinGecko-Thesys-MCP
CoinGecko-Thesys-MCP
Travel Web-Application
Portfolio

About

AI prompts using the toolhouse sdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published