Agno AI

Use the Orq.ai proxy with Agno to build production-ready AI agents

Prerequisite

To start using the Autogen SDK with Orq, you need an API Key ready within your Orq.ai account.

📘

To setup your API key, see API keys & Endpoints.

Using Orq.ai as Proxy

Using the Orq.ai Proxy, you benefit from the Platform Traces, Cost and Usage Monitoring, keeping full compatibility and unified API with all models available.

from os import getenv
from agno.agent import Agent
from agno.tools.yfinance import YFinanceTools
from agno.models.openai.like import OpenAILike

agent = Agent(
    model=OpenAILike(
        id="openai/gpt-4o",
        api_key=getenv("ORQ_API_KEY"),
        base_url="https://api.orq.ai/v2/proxy",
    ),
    tools=[YFinanceTools(stock_price=True)],
    instructions="Use tables to display data. Don't include any other text.",
    markdown=True,
)

# Print the response in the terminal
agent.print_response("What is the stock price of Apple?", stream=True)