Associate operations with specific named agents
@agent
decorator to associate operations with specific agents.
@agent
decorator to explicitly identify different agents in your system:
Operations are labeled with the name of the Agent that originated them
agentops.init()
is sufficient.
@agent
decorator when you need to clearly distinguish between multiple agents in your system.
@trace
decorator to group related agent operations into logical workflows.
@tool
decorator with cost parameters to track the expenses associated with agent operations.
@session
decorator, replace it with the @trace
decorator:
@trace
decorator provides the same functionality as the legacy @session
decorator but with more flexibility and better integration with the new trace management features.