Buckets:

download
raw
1.15 kB
"""
Langtrace Integration
=====================
Demonstrates instrumenting an Agno agent with Langtrace.
"""
# Must precede other imports
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.yfinance import YFinanceTools
from langtrace_python_sdk import langtrace # type: ignore
# ---------------------------------------------------------------------------
# Setup
# ---------------------------------------------------------------------------
langtrace.init()
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
name="Stock Price Agent",
model=OpenAIChat(id="gpt-5.2"),
tools=[YFinanceTools()],
instructions="You are a stock price agent. Answer questions in the style of a stock analyst.",
)
# ---------------------------------------------------------------------------
# Run Example
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response("What is the current price of Tesla?")

Xet Storage Details

Size:
1.15 kB
·
Xet hash:
e863d529300647f694628b99e8618e7f925042c4f294cf17f018b0b8ccdd8e6b

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