Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/venopyx/clevercall
CleverCall utilizes Cloudflare's AI for function calling, fetching dynamic data from APIs like GitHub and Yahoo Finance.
https://github.com/venopyx/clevercall
agent ai ai-agent cloudflare function-calling github hermes-2-pro-mistral-7b hgf huggingface langchain llm nousresearch python yfinance
Last synced: 22 days ago
JSON representation
CleverCall utilizes Cloudflare's AI for function calling, fetching dynamic data from APIs like GitHub and Yahoo Finance.
- Host: GitHub
- URL: https://github.com/venopyx/clevercall
- Owner: venopyX
- License: mit
- Created: 2024-10-26T21:40:04.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T21:29:02.000Z (4 months ago)
- Last Synced: 2024-11-16T04:25:31.057Z (3 months ago)
- Topics: agent, ai, ai-agent, cloudflare, function-calling, github, hermes-2-pro-mistral-7b, hgf, huggingface, langchain, llm, nousresearch, python, yfinance
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CleverCall
CleverCall is a powerful tool that leverages Cloudflare's AI capabilities to perform function calling and retrieve dynamic information. It integrates with various APIs to fetch user data from GitHub and stock information from Yahoo Finance, providing an efficient way to interact with APIs using natural language.
## Features
- **GitHub User Info**: Fetch publicly available information about any GitHub user.
- **Stock Information**: Get real-time stock prices, company profiles, and analyst recommendations.
- **Cloudflare AI Integration**: Use Cloudflare's AI model to process user queries and call the appropriate functions dynamically.## Getting Started
### Prerequisites
- Python 3.x
- Install the required packages:
```bash
pip install requests yfinance langchain
```### Setup
1. Clone the repository:
```bash
git clone https://github.com/gladsonchala/clevercall.git
cd clevercall
```2. Update your Cloudflare account details in the code:
- Replace `account_id` and `api_token` with your Cloudflare account credentials.### Usage
Run the main script to start using CleverCall:
```bash
python main.py
```You can customize the `user_query` variable in `main.py` to test different queries, such as:
```python
user_query = "Get information about the GitHub user 'octocat'."
```### Available Tools
- **get_github_user(username)**: Fetches information about a GitHub user by username.
- **get_current_stock_price(symbol)**: Retrieves the current stock price for a given stock symbol.
- **get_company_profile(symbol)**: Provides the company profile for a specified stock symbol.
- **get_analyst_recommendations(symbol)**: Returns analyst recommendations for a specific stock.### Example Queries
- Fetch GitHub user info:
```python
user_query = "Get information about the GitHub user 'octocat'."
```- Get current stock price:
```python
user_query = "What is the current price of AAPL?"
```## Contributing
Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
## Contact
For any inquiries, feel free to reach out to [[email protected]](mailto:[email protected]).
---
CleverCall makes API interactions seamless and intuitive. Enjoy exploring its features!