from ai_query import generate_text
from ai_query.providers import llama, tool, Field
@tool(description="Get stock price")
async def get_stock(symbol: str = Field(description="Stock symbol")) -> str:
return f"{symbol}: $150.00"
result = await generate_text(
model=llama("llama-3.1-70b-instruct"),
prompt="What is the price of AAPL?",
tools={"get_stock": get_stock}
)