🗿 Prebuilt AI agents and tools constructed using various methods, SDK's and libraries including 🥽 GoogleAI, 🔗 LangChain, 🦙 Llama Index OpenAI API.
📦 Getting Started
- Clone the repo
- Set up environment
- Install dependencies:
pip install -r requirements.txtOPENAI_API_KEY=sk-xxxxxx
python examples/stock_agent.py
tools = [
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the latest stock price for a ticker symbol.",
"parameters": {
"type": "object",
"properties": {
"symbol": {"type": "string"}
},
"required": ["symbol"]
},
},
}
]
def get_stock_price(symbol: str):
# API call here
prices = {"AAPL": 174.2, "TSLA": 259.3}
return {"symbol": symbol, "price": prices.get(symbol, "N/A")}