Adapter for post-processing GenAI agent spans.
Invoked before span is finished.
Invoked before span is started.