mirror of
https://github.com/langchain-ai/example-tool-server.git
synced 2026-07-21 06:15:21 -04:00
e62833ec40ea1e6b274831fcbda3e986fc53ae5b
Example Tool Server
An example implementation of a tool server using open-tool-server.
https://github.com/langchain-ai/open-tool-server
Tools
This server implements the following example tools:
- Exchange Rate: use an exchange rate API to find the exchange rate between two different currncies.
- GithHub API: surface most recent 50 issues for a given github repository.
- Hacker News: query hacker news to find the 5 most relevant matches.
- Reddit: Query reddit for a particular topic
- Wikipedia: Get information about current events.
Usage
- Build with docker
docker build -t example-tool-server .
- Generate a secret using your favorite random number generator
export APP_SECRET=$(openssl rand -base64 32 )
export APP_SECRET=$(head -c 32 /dev/urandom | base64)
export APP_SECRET=$( let your cat walk across your keyboard)
- Run the image locally
docker run -e APP_SECRET=$APP_SECRET -p 8080:8080 example-tool-server
or deploy to your favorite cloud provider
Languages
Python
72.9%
Makefile
17.7%
Dockerfile
9.4%