Buckets:

download
raw
912 Bytes
"""
Weave Integration
=================
Demonstrates logging Agno model calls with Weave.
"""
import weave
from agno.agent import Agent
from agno.models.openai import OpenAIChat
# ---------------------------------------------------------------------------
# Setup
# ---------------------------------------------------------------------------
weave.init("agno")
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(model=OpenAIChat(id="gpt-5.6-luna"), markdown=True)
@weave.op()
def run(content: str):
return agent.run(content)
# ---------------------------------------------------------------------------
# Run Example
# ---------------------------------------------------------------------------
if __name__ == "__main__":
run("Share a 2 sentence horror story")

Xet Storage Details

Size:
912 Bytes
·
Xet hash:
2a9f44d72598e87cca047416c6d00b7668fc13d133adad9f7f2ab0d1bc62c2cd

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