Buckets:

download
raw
1.26 kB
"""
Atla Observability Integration
==============================
Demonstrates adding Atla observability to an Agno agent.
"""
from os import getenv
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.websearch import WebSearchTools
from atla_insights import configure, instrument_agno
# ---------------------------------------------------------------------------
# Setup
# ---------------------------------------------------------------------------
configure(token=getenv("ATLA_API_KEY"))
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
name="Stock Price Agent",
model=OpenAIChat(id="gpt-5.6-luna"),
tools=[WebSearchTools()],
instructions="You are a stock price agent. Answer questions in the style of a stock analyst.",
)
# ---------------------------------------------------------------------------
# Run Example
# ---------------------------------------------------------------------------
if __name__ == "__main__":
# Instrument and run
with instrument_agno("openai"):
agent.print_response("What are the latest news about the stock market?")

Xet Storage Details

Size:
1.26 kB
·
Xet hash:
772b5b655902eb7f8d9491720f9c72770956cf3bd4867703a6a41f131af9d78c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.