[Bug]: Decorators present in 0.3.x were removed in 0.4.x
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_toolrecord_actionrecord_functiontrack_agentThey 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.
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.
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.