agentops icon indicating copy to clipboard operation
agentops copied to clipboard

[Bug]: Decorators present in 0.3.x were removed in 0.4.x

Open areibman opened this issue 9 months ago • 1 comments

Contact Details

No response

📦 Package Version

0.4.5

🎞️ Framework Version

No response

🔎 Describe the Bug

The following functions were removed in 0.4.0+. Notably:

  • record_tool
  • record_action
  • record_function
  • track_agent They should be added back as decorator spans.

See: https://github.com/AgentOps-AI/agentops/blob/0.3.26/agentops/decorators.py

🤝 Contribution

  • [ ] Yes, I'd be happy to submit a pull request with these changes.
  • [ ] I need some guidance on how to contribute.
  • [ ] I'd prefer the AgentOps team to handle this update.

areibman avatar Apr 02 '25 20:04 areibman

track_agent seems to be marked as legacy. Yet, Templates on the Project page still reference to the old examples (Sept 2024).

There's a new decorator @agent, @operation & @session https://docs.agentops.ai/v1/usage/tracking-agents

Tested with agentos version 0.4.6 However, those new decorators are also broken - In the https://app.agentops.ai Trace dashboard - all spans session, agent and operation are labeled as other, and no span is labeled as agent.

gudzenkov avatar Apr 20 '25 20:04 gudzenkov

Closing this issue as the missing decorators were restored through multiple PRs including PR #747 'AgentOps Decorators Implementation', PR #1008 'Tool decorator enhance', and PR #1039 'input/output guardrail decorator'. The decorator functionality has been reimplemented in v0.4.x.