Python SDK for the AskNews API.
pip install asknews
from asknews import AskNewsSDK
ask = AskNewsSDK()
query = "Effect of fed policy on tech sector"
# prompt-optimized string ready to go for any LLM:
news_context = ask.news.search_news(query).as_string
And you will have a prompt-optimized string ready to go for any LLM.
Find full details at the AskNews API documentation.
Join our Discord to see what other people are building, and to get support with your projects.